annotate sites/all/themes/zen/STARTERKIT/sass/_init.scss @ 2:b74b41bb73f0

-- Google analytics module
author danieleb <danielebarchiesi@me.com>
date Thu, 22 Aug 2013 17:22:54 +0100
parents
children
rev   line source
danielebarchiesi@2 1 //
danielebarchiesi@2 2 // Initialization partial
danielebarchiesi@2 3 //
danielebarchiesi@2 4 // To make it easier to use all variables and mixins in any Sass file in this
danielebarchiesi@2 5 // theme, each .scss file has a @import "init" declaration. And this _init.scss
danielebarchiesi@2 6 // file is in charge of importing all the other partials needed for the theme.
danielebarchiesi@2 7 //
danielebarchiesi@2 8 // This initialization partial is organized in this way:
danielebarchiesi@2 9 // - First we set any shared Sass variables.
danielebarchiesi@2 10 // - Next we import Compass plug-ins (Sass mixin libraries).
danielebarchiesi@2 11 // - Last we define our custom mixins for this theme.
danielebarchiesi@2 12 //
danielebarchiesi@2 13
danielebarchiesi@2 14
danielebarchiesi@2 15 // =============================================================================
danielebarchiesi@2 16 // Variables
danielebarchiesi@2 17 // =============================================================================
danielebarchiesi@2 18
danielebarchiesi@2 19 //
danielebarchiesi@2 20 // Legacy IE support
danielebarchiesi@2 21 //
danielebarchiesi@2 22 // These variables are used by many mixins to add additional CSS to support
danielebarchiesi@2 23 // specific versions of IE or specific vendor prefixes.
danielebarchiesi@2 24 //
danielebarchiesi@2 25 // IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 3 ways:
danielebarchiesi@2 26 // - Drop support for IE 6/7. :-) Set $legacy-support-for-ie6
danielebarchiesi@2 27 // and $legacy-support-for-ie7 to false.
danielebarchiesi@2 28 // - (Preferred) Install the box-sizing polyfill and set the variable below to
danielebarchiesi@2 29 // the absolute path URL to the boxsizing.htc file.
danielebarchiesi@2 30 // @see https://github.com/Schepp/box-sizing-polyfill
danielebarchiesi@2 31 // $box-sizing-polyfill-path: "/path/to/boxsizing.htc";
danielebarchiesi@2 32 // - Use the same CSS unit for grid and gutter width in resonsive-sidebars.scss
danielebarchiesi@2 33 // (use px for both or use % for both) and set the box-sizing variable to content-box.
danielebarchiesi@2 34 //
danielebarchiesi@2 35 // Zen does not require special handling for IE8 or later. But Compass uses that
danielebarchiesi@2 36 // variable for a couple edge cases. We include it for completeness sake. See
danielebarchiesi@2 37 // the documentation at http://compass-style.org/reference/compass/support/
danielebarchiesi@2 38 $legacy-support-for-ie6: false;
danielebarchiesi@2 39 $legacy-support-for-ie7: false;
danielebarchiesi@2 40 $legacy-support-for-ie8: true;
danielebarchiesi@2 41
danielebarchiesi@2 42
danielebarchiesi@2 43 //
danielebarchiesi@2 44 // Font faces, stacks and sizes.
danielebarchiesi@2 45 //
danielebarchiesi@2 46
danielebarchiesi@2 47 // Compass' vertical_rhythm extension is a powerful tool to set up a vertical
danielebarchiesi@2 48 // rhythm for your entire page. You can see some of its mixins and functions in
danielebarchiesi@2 49 // use in the normalize.scss file.
danielebarchiesi@2 50 // @see http://compass-style.org/reference/compass/typography/vertical_rhythm/
danielebarchiesi@2 51
danielebarchiesi@2 52 $base-font-size: 16px; // The font size set on the root html element.
danielebarchiesi@2 53 $base-line-height: 24px; // This line-height determines the basic unit of vertical rhythm.
danielebarchiesi@2 54
danielebarchiesi@2 55 $h1-font-size: 2 * $base-font-size;
danielebarchiesi@2 56 $h2-font-size: 1.5 * $base-font-size;
danielebarchiesi@2 57 $h3-font-size: 1.17 * $base-font-size;
danielebarchiesi@2 58 $h4-font-size: 1 * $base-font-size;
danielebarchiesi@2 59 $h5-font-size: 0.83 * $base-font-size;
danielebarchiesi@2 60 $h6-font-size: 0.67 * $base-font-size;
danielebarchiesi@2 61
danielebarchiesi@2 62 // The following font family declarations are based on the Microsoft core web
danielebarchiesi@2 63 // fonts which are common fonts available on most computer systems. The DejaVu
danielebarchiesi@2 64 // and Nimbus Sans fonts are commonly available on Linux systems where the MS
danielebarchiesi@2 65 // fonts are less common. Tahoma and Helvetica are also widely available.
danielebarchiesi@2 66 //
danielebarchiesi@2 67 // A user's web browser will look at the comma-separated list and will
danielebarchiesi@2 68 // attempt to use each font in turn until it finds one that is available
danielebarchiesi@2 69 // on the user's computer. The final "generic" font (sans-serif, serif or
danielebarchiesi@2 70 // monospace) hints at what type of font to use if the web browser doesn't
danielebarchiesi@2 71 // find any of the fonts in the list.
danielebarchiesi@2 72
danielebarchiesi@2 73 // First, let's create some font stacks.
danielebarchiesi@2 74 $times-new-roman: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
danielebarchiesi@2 75 $times: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
danielebarchiesi@2 76 $georgia: Georgia, "Times New Roman", "DejaVu Serif", serif;
danielebarchiesi@2 77
danielebarchiesi@2 78 $verdana: Verdana, Tahoma, "DejaVu Sans", sans-serif;
danielebarchiesi@2 79 $tahoma: Tahoma, Verdana, "DejaVu Sans", sans-serif;
danielebarchiesi@2 80 $helvetica: Helvetica, Arial, "Nimbus Sans L", sans-serif;
danielebarchiesi@2 81 $arial: Arial, Helvetica, "Nimbus Sans L", sans-serif;
danielebarchiesi@2 82
danielebarchiesi@2 83 // For an explanation of why "sans-serif" is at the end of this list, see
danielebarchiesi@2 84 // http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
danielebarchiesi@2 85 $courier: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
danielebarchiesi@2 86
danielebarchiesi@2 87 // Now create some variables for the font stacks we want to use on this site.
danielebarchiesi@2 88 $base-font-family: $verdana; // The font family set on the html element.
danielebarchiesi@2 89 $font-body: $verdana;
danielebarchiesi@2 90 $font-monospace: $courier;
danielebarchiesi@2 91
danielebarchiesi@2 92
danielebarchiesi@2 93 //
danielebarchiesi@2 94 // Colors, etc.
danielebarchiesi@2 95 //
danielebarchiesi@2 96
danielebarchiesi@2 97 // The amount lists, blockquotes and comments are indented.
danielebarchiesi@2 98 $indent-amount: 30px;
danielebarchiesi@2 99
danielebarchiesi@2 100 // The height of the navigation container.
danielebarchiesi@2 101 $nav-height: 3em;
danielebarchiesi@2 102
danielebarchiesi@2 103 // Tab styling.
danielebarchiesi@2 104 $tabs-container-bg: #fff;
danielebarchiesi@2 105 $tabs-border: #bbb;
danielebarchiesi@2 106
danielebarchiesi@2 107
danielebarchiesi@2 108 // =============================================================================
danielebarchiesi@2 109 // Partials to be shared with all .scss files.
danielebarchiesi@2 110 // =============================================================================
danielebarchiesi@2 111
danielebarchiesi@2 112 // Add Compass' IE and vendor prefix support variables.
danielebarchiesi@2 113 @import "compass/support";
danielebarchiesi@2 114 // Better than Drupal's clearfix.
danielebarchiesi@2 115 @import "compass/utilities/general/clearfix";
danielebarchiesi@2 116 // See http://compass-style.org/help/tutorials/spriting/
danielebarchiesi@2 117 @import "compass/utilities/sprites";
danielebarchiesi@2 118 // Use one CSS3 mixin instead of multiple vendor prefixes.
danielebarchiesi@2 119 @import "compass/css3";
danielebarchiesi@2 120 // Helps set up a vertical rhythm.
danielebarchiesi@2 121 @import "compass/typography/vertical_rhythm";
danielebarchiesi@2 122 // Add the Zen Grids responsive layout mixins.
danielebarchiesi@2 123 @import "zen";
danielebarchiesi@2 124
danielebarchiesi@2 125 // Now we add our custom helper mixins.
danielebarchiesi@2 126 @import "mixins";