Git Product home page Git Product logo

Comments (11)

zkmark avatar zkmark commented on May 25, 2024 1

Si usas rails agregar al inicio de bootswatch.scss
@import "bootstrap";
tu css de bootswatch

y en tu aplication.scss
@import "variables";
@import "bootstrap";
@import "bootswatch";

from bootswatch-rails.

esbanarango avatar esbanarango commented on May 25, 2024

@chiefGui Could you show how your application.css.scss or the file where you include bootswatch is defined, please.

from bootswatch-rails.

chiefGui avatar chiefGui commented on May 25, 2024

There's no application.css.scss in my application. This is my coliseum.css.scss, the one which uses bootswatch:

@import 'common';
@import 'bootswatch/flatly/variables';
@import 'bootstrap';
@import 'bootswatch/flatly/bootswatch';

/**
 * my styles
 **/

But I don't think the problem is with this file at all – I already tried to remove the importation of bootswatch and the same error is still there.

from bootswatch-rails.

esbanarango avatar esbanarango commented on May 25, 2024

@chiefGui Could you try again with the latest version v3.2.3.

from bootswatch-rails.

kalashnikovisme avatar kalashnikovisme commented on May 25, 2024

@chiefGui use v3.2.4 and I have such problem.

Rails 4.1.7, ruby 2.1.2

from bootswatch-rails.

kalashnikovisme avatar kalashnikovisme commented on May 25, 2024

To solve this problem you should add to bootswatch/#{style_name}/_bootswatch.scss

@import 'variables'

as a first line

but than I had many problems, like:

  • undefined mixin: box-shadow
  • undefined mixin: gradient-vertical-three-colors

How fix this problem?

this mixins are not in gem directory. Where are they from?

from bootswatch-rails.

westonganger avatar westonganger commented on May 25, 2024

@kalashnikovisme did you end up fixing your issue? I would love to know how

from bootswatch-rails.

westonganger avatar westonganger commented on May 25, 2024

This could have something to do with this issue. twbs/bootstrap-sass#863
It seems like bootstrap-sass is not loading the variables either.

from bootswatch-rails.

westonganger avatar westonganger commented on May 25, 2024

the problem actually lies in config/intializers/assets.rb or config/environments/production.rb

Rails.application.config.assets.precompile += %w( * )

You shouldnt precompile all, instead selectively precompile additional assets as needed

from bootswatch-rails.

kalashnikovisme avatar kalashnikovisme commented on May 25, 2024

@westonganger no. I didn't solve my problem permanently. I've removed bootswatch-rails gem and add bootswatch css-js files to my project.

from bootswatch-rails.

chiefGui avatar chiefGui commented on May 25, 2024

Guys, I do not work with Rails/Bootswatch anymore. Feel free to close this issue when you want. Thank you so far!

from bootswatch-rails.

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.