Project

General

Profile

Download (5.8 KB) Statistics
| Branch: | Tag: | Revision:
1
//
2
// Initialization partial
3
//
4
// To make it easier to use all variables and mixins in any Sass file in this
5
// theme, each .scss file has a @import "init" declaration. And this _init.scss
6
// file is in charge of importing all the other partials needed for the theme.
7
//
8
// This initialization partial is organized in this way:
9
// - First we set any shared Sass variables.
10
// - Next we import Compass plug-ins (Sass mixin libraries).
11
// - Last we define our custom mixins for this theme.
12
//
13

    
14

    
15
// =============================================================================
16
// Variables
17
// =============================================================================
18

    
19
//
20
// Legacy IE support
21
//
22
// These variables are used by many mixins to add additional CSS to support
23
// specific versions of IE or specific vendor prefixes.
24
//
25
// IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 3 ways:
26
// - Drop support for IE 6/7. :-) Set $legacy-support-for-ie6
27
//   and $legacy-support-for-ie7 to false.
28
// - (Preferred) Install the box-sizing polyfill and set the variable below to
29
//   the absolute path URL to the boxsizing.htc file.
30
//   @see https://github.com/Schepp/box-sizing-polyfill
31
$box-sizing-polyfill-path: "/polyfills/box-sizing-polyfill/boxsizing.htc";
32
// - Use the same CSS unit for grid and gutter width in resonsive-sidebars.scss
33
//   (use px for both or use % for both) and set the box-sizing variable to content-box.
34
//
35
// Zen does not require special handling for IE8 or later. But Compass uses that
36
// variable for a couple edge cases. We include it for completeness sake. See
37
// the documentation at http://compass-style.org/reference/compass/support/
38
$legacy-support-for-ie6: true;
39
$legacy-support-for-ie7: true;
40
$legacy-support-for-ie8: true;
41

    
42

    
43
//
44
// Font faces, stacks and sizes.
45
//
46

    
47
// Compass' vertical_rhythm extension is a powerful tool to set up a vertical
48
// rhythm for your entire page. You can see some of its mixins and functions in
49
// use in the normalize.scss file.
50
// @see http://compass-style.org/reference/compass/typography/vertical_rhythm/
51

    
52
$base-font-size:   12px; // The font size set on the root html element.
53
$base-line-height: 18px; // This line-height determines the basic unit of vertical rhythm.
54

    
55
$h1-font-size: 2    * $base-font-size;
56
$h2-font-size: 1.6  * $base-font-size;
57
$h3-font-size: 1.5 * $base-font-size;
58
$h4-font-size: 1    * $base-font-size;
59
$h5-font-size: 0.83 * $base-font-size;
60
$h6-font-size: 0.67 * $base-font-size;
61

    
62
// The following font family declarations are based on the Microsoft core web
63
// fonts which are common fonts available on most computer systems. The DejaVu
64
// and Nimbus Sans fonts are commonly available on Linux systems where the MS
65
// fonts are less common. Tahoma and Helvetica are also widely available.
66
//
67
// A user's web browser will look at the comma-separated list and will
68
// attempt to use each font in turn until it finds one that is available
69
// on the user's computer. The final "generic" font (sans-serif, serif or
70
// monospace) hints at what type of font to use if the web browser doesn't
71
// find any of the fonts in the list.
72

    
73
// First, let's create some font stacks.
74
$times-new-roman: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
75
$times:           Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
76
$georgia:         Georgia, "Times New Roman", "DejaVu Serif", serif;
77

    
78
$verdana:         Verdana, Tahoma, "DejaVu Sans", sans-serif;
79
$tahoma:          Tahoma, Verdana, "DejaVu Sans", sans-serif;
80
$helvetica:       Helvetica, Arial, "Nimbus Sans L", sans-serif;
81
$arial:           Arial, Helvetica, "Nimbus Sans L", sans-serif;
82

    
83
// For an explanation of why "sans-serif" is at the end of this list, see
84
// http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
85
$courier:         "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
86

    
87
// for the cdm_dataportal base theme we serve the DejaVu Sans as webfont
88
$droid-sans:          "droid_sansregular", sans-serif;
89
$droid-sans-mono:         "droid_sans_monoregular", monospace, sans-serif;
90

    
91
@import "../fonts/droid-sans-fontfacekit/web fonts/droidsans_regular/stylesheet.css";
92
@import "../fonts/droid-sans-mono-fontfacekit/web fonts/droidsansmono_regular/stylesheet.css";
93

    
94
// Now create some variables for the font stacks we want to use on this site.
95
$base-font-family: $droid-sans; // The font family set on the html element.
96
$font-body:        $droid-sans;
97
$font-monospace:   $droid-sans-mono;
98

    
99

    
100
//
101
// Colors, etc.
102
//
103
$page-background-color: #fff;
104
$menu-bar-background-color: #DEDEDE;
105
$menu-bar-font-size: 1.2 * $base-font-size;
106
$menu-bar-text-color: #000;
107
$menu-bar-line-height: 20px; // unit must be px !!!!
108

    
109
$link-color: #115E92;
110
$link-color-synonym: #7C7C7C; // synonyms and mispplied name links have different neutral color: grey
111

    
112

    
113
// The amount lists, blockquotes and comments are indented.
114
$indent-amount: 30px;
115

    
116
// The height of the navigation container.
117
$nav-height: 3em;
118

    
119
// Tab styling.
120
$tabs-container-bg: #fff;
121
$tabs-border: #bbb;
122

    
123

    
124
// =============================================================================
125
// Partials to be shared with all .scss files.
126
// =============================================================================
127

    
128
// Add Compass' IE and vendor prefix support variables.
129
@import "compass/support";
130
// Better than Drupal's clearfix.
131
@import "compass/utilities/general/clearfix";
132
// See http://compass-style.org/help/tutorials/spriting/
133
@import "compass/utilities/sprites";
134
// Use one CSS3 mixin instead of multiple vendor prefixes.
135
@import "compass/css3";
136
// Helps set up a vertical rhythm.
137
@import "compass/typography/vertical_rhythm";
138
// Add the Zen Grids responsive layout mixins.
139
@import "zen";
140

    
141
@import "ie-legacy"; // Adds css fixes for older IE browsers and thus adds CSS3 PIE support which emulates some css3 features, see pie.scss
142

    
143

    
144
// Now we add our custom helper mixins.
145
@import "mixins";
146

    
147

    
(2-2/13)