Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_subtheme / sass @ 87dbc3bf

Nom Taille Révision Âge Auteur Commentaire
_README.txt 2,46 ko f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
_base.scss 1,32 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
_custom.scss 5,71 ko f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
global.base.scss 13,2 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
global.styles.scss 26,5 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
lt-ie9.scss 256 octets f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
print.scss 3,63 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
responsive.custom.scss 2,23 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
responsive.desktop.scss 423 octets f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
responsive.smalltouch.landscape.scss 1,18 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
responsive.smalltouch.portrait.scss 1,19 ko 74f6bef0 environ 10 ans Assos Assos Weekly update of contrib modules
responsive.tablet.landscape.scss 424 octets f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
responsive.tablet.portrait.scss 505 octets f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7

Dernières révisions

# Date Auteur Commentaire
74f6bef0 27/03/2014 12:00 Assos Assos

Weekly update of contrib modules

f7a2490e 13/02/2014 15:56 Assos Assos

git mv htmltest drupal7

Voir les révisions

README


About SASS and Compass

This directory includes Sass versions of AT's CSS files. All files use the SCSS
syntax.

Sass is a language that is just normal CSS plus some extra features, like
variables, nested rules, math, mixins, etc. If your stylesheets are written in
Sass, helper applications can convert them to standard CSS so that you can
include the CSS in the normal ways with your theme.

To learn more about Sass, visit: http://sass-lang.com

Compass is a helper library for Sass. It includes libraries of shared mixins, a
package manager to add additional extension libraries, and an executable that
can easily convert Sass files into CSS.

To learn more about Compass, visit: http://compass-style.org

Developing with SASS and Compass

To automatically generate the CSS versions of the scss while you are doing theme
development, you'll need to tell Compass to "watch" the sass directory so that
any time a .scss file is changed it will automatically place a generated CSS
file into your sub-theme's css directory:

compass watch

If you are already in the root of your sub-theme's directory, you can simply
type: compass watch

While using generated CSS with Firebug, the line numbers it reports will be
wrong since it will be showing the generated CSS file's line numbers and not the
line numbers of the source Sass files. To correct this problem, you can install
the FireSass plug-in into Firefox.
https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/

If you do not want to use Ruby and the command line you can check out the Sassy
project for Drupal: http://drupal.org/project/sassy

Moving to Production

Once you have finished your sub-theme development and are ready to move your CSS
files to your production server, you'll need to tell sass to update all your CSS
files and to compress them (to improve performance). Note: the Compass command
will only generate CSS for .scss files that have recently changed; in order to
force it to regenerate all the CSS files, you can use the Compass' clean command
to delete all the generated CSS files.

  • Delete all CSS files by running: compass clean
  • Edit the config.rb file in your theme's directory and uncomment this line by deleting the "#" from the beginnning: #environment = :production
  • Regenerate all the CSS files by running: compass compile

And don't forget to turn on Drupal's CSS aggregation. :-)

Formats disponibles : Atom