GithubHelp home page GithubHelp logo

Comments (7)

bburton avatar bburton commented on April 27, 2024

Work around to copy bootstrap/_variables.scss into styles.scss

  1. Cd into the sass_dir location specified in your compass config.rb
  2. Copy bootstrap/_variables.scss out of the gem and append to styles.scss (one long line):
    $ cat $(dirname $(gem which bootstrap-sass))/../vendor/assets/stylesheets/bootstrap/_variables.scss |
    sed 's/ !default//' >> styles.scss
  3. Edit styles.scss and move @import "bootstrap" and @import "bootstrap-responsive" to the end of the file.
  4. Make any other desired edits to the variables.

from bootstrap-sass.

bburton avatar bburton commented on April 27, 2024

Work around to copy _bootstrap.scss from gem

  1. Cd into the sass_dir location specified in your compass config.rb
  2. Copy _bootstrap.scss out of the gem into local stylesheet directory:
    $ cp -p $(dirname $(gem which bootstrap-sass))/../vendor/assets/stylesheets/_bootstrap.scss .
  3. Edit _bootstrap.scss and comment out any @import's for mixin's that aren't needed.

from bootstrap-sass.

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

The README contains a link to Bootstrap's variable list and gives instructions on how to modify them. Copying the entire variables file seems unnecessary - most people will only want to configure a few variables.

The import helper I agree with, to an extent. It was something I began developing when bootstrap-sass only supported Rails but I abandoned it due to issue with how sass-rails looks at load paths. However, once #70 gets fixed, I think unpacking will be the 'supported' way to customise bootstrap-sass with compass - then you have total control over all customisation.

from bootstrap-sass.

bburton avatar bburton commented on April 27, 2024

OK, Rather than copying all the variables it would be helpful to have links to the relevant information. Someone maintaining an application may not be familiar with bootstrap-sass or bootstrap for that matter. Is this more reasonable for styles.scss?

// See https://github.com/thomas-mcdonald/bootstrap-sass/blob/master/README.md
// for information on this SASS implementation of Twitter Bootstrap.

// Add any bootstrap variables below to override the defaults.
// Complete list at http://twitter.github.com/bootstrap/less.html#variables
// Links
//$linkColor: #08c;
//$linkColorHover: darken($linkColor, 15%);
// Typography
//$baseFontSize: 13px;
//$baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
//$baseLineHeight: 18px;
//$textColor: $grayDark;
// Default 940px grid
//$gridColumns: 12;
//$gridColumnWidth: 60px;
//$gridGutterWidth: 20px;

// I gather this file is a starting point for the project.
@import "bootstrap";

// Include responsive Bootstrap styles
// @import "bootstrap-responsive";// Variables.less

from bootstrap-sass.

gilbert avatar gilbert commented on April 27, 2024

It would be really helpful to have an installer. A website I'm working is past the "bootstrap phase" and needs full customization of bootstrap styles.

Not needing to customize files directly is great for starting off, but there comes a point where you need to edit the files directly.

from bootstrap-sass.

bburton avatar bburton commented on April 27, 2024

Once issue #70 has been addressed, after compass install, you will be able to do a compass unpack bootstrap to extract all the files locally. I may have a fix for #70 but I want to test some more.

from bootstrap-sass.

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

(probably) fixed in #345

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.