GithubHelp home page GithubHelp logo

Comments (8)

vala avatar vala commented on April 28, 2024

Had the same problem here, and I had @import "bootstrap/reset" in some sass file in my assets. Deleting it worked, don't know if it fits you, but I hope it'll help you

from bootstrap-sass.

thomas-mcdonald avatar thomas-mcdonald commented on April 28, 2024

@vala Okay, you need to import the mixins and variables before importing the reset now since the reset depends on a mixin or two.

from bootstrap-sass.

vala avatar vala commented on April 28, 2024

Oh yes, sorry I could have tell it this way instead of some specific example. But that was the issue I found in the gem's reset stylesheet file that made me resolve it this way. Thanks for the clarification !

from bootstrap-sass.

meetme2meat avatar meetme2meat commented on April 28, 2024

@thomas-mcdonald importing reset after mixins and variable result in following error

File to import not found or unreadable: bootstrap/patterns.

Removing the bootstap/patterns solve it
But it seem that the above error ('tab-focus'.) only occur when I define a new styling . The Compilation doesnot result in any error if there no modification

Here how the ordering of bootstrap import is defined

@import "bootstrap/reset";
@import "bootstrap/variables";

// overwrite variables here
$gridColumns: 16;
$gridColumnWidth: 50px;
$gridGutterWidth: 10px;

@import "bootstrap";
@import "bootstrap/mixins";
@import "bootstrap/reset";
@import "bootstrap/scaffolding";

@import "bootstrap/type";
@import "bootstrap/forms";
@import "bootstrap/tables";
@import "bootstrap/patterns";

No error occur with current ordering If no new styling is define

from bootstrap-sass.

vala avatar vala commented on April 28, 2024

I think you should try to put @import "bootstrap/mixins"; before @import "bootstrap/reset"; like @thomas-mcdonald said.

from bootstrap-sass.

meetme2meat avatar meetme2meat commented on April 28, 2024

@vala but trying to include @import "bootstrap/mixins before @import "bootstrap/reset" result in following error

File to import not found or unreadable: bootstrap/patterns.

from bootstrap-sass.

vala avatar vala commented on April 28, 2024

Looking at the source of the gem in vendor/assets/bootstrap i can't see any patterns file. Maybe it's not present anymore?

from bootstrap-sass.

thomas-mcdonald avatar thomas-mcdonald commented on April 28, 2024

I think you might have a SASS caching problem? All references to patterns should have been removed in this release.

In addition, if you're importing "bootstrap" you can remove all the other imports since bootstrap is a helper file that will import all the needed files. If you have any variable overrides just make sure you define them before importing.

from bootstrap-sass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.