zurb-foundation 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/README.md +9 -1
- data/composer.json +9 -0
- data/docs/CHANGELOG.md +19 -5
- data/docs/components/alert-boxes.html.erb +19 -19
- data/docs/components/breadcrumbs.html.erb +15 -15
- data/docs/components/buttons.html.erb +19 -19
- data/docs/components/clearing.html.erb +13 -13
- data/docs/components/dropdown-buttons.html.erb +13 -13
- data/docs/components/dropdown.html.erb +18 -18
- data/docs/components/flex-video.html.erb +3 -3
- data/docs/components/forms.html.erb +39 -39
- data/docs/components/grid.html.erb +1 -1
- data/docs/components/inline-lists.html.erb +5 -5
- data/docs/components/joyride.html.erb +18 -18
- data/docs/components/keystrokes.html.erb +10 -10
- data/docs/components/kitchen-sink.html.erb +1 -1
- data/docs/components/labels.html.erb +2 -2
- data/docs/components/pagination.html.erb +17 -17
- data/docs/components/panels.html.erb +13 -10
- data/docs/components/pricing-tables.html.erb +30 -30
- data/docs/components/reveal.html.erb +14 -14
- data/docs/components/section.html.erb +15 -15
- data/docs/components/side-nav.html.erb +9 -9
- data/docs/components/split-buttons.html.erb +23 -23
- data/docs/components/sub-nav.html.erb +11 -11
- data/docs/components/switch.html.erb +24 -24
- data/docs/components/tables.html.erb +15 -15
- data/docs/components/thumbnails.html.erb +5 -5
- data/docs/components/tooltips.html.erb +18 -18
- data/docs/components/top-bar.html.erb +39 -39
- data/docs/components/type.html.erb +63 -63
- data/docs/css/docs.scss +3 -1
- data/docs/img/favicons/apple-touch-icon-114x114-precomposed.png +0 -0
- data/docs/img/favicons/apple-touch-icon-144x144-precomposed.png +0 -0
- data/docs/img/favicons/apple-touch-icon-72x72-precomposed.png +0 -0
- data/docs/img/favicons/apple-touch-icon-precomposed.png +0 -0
- data/docs/img/favicons/favicon.ico +0 -0
- data/docs/layout.html.erb +10 -1
- data/docs/sass.html.erb +258 -292
- data/js/foundation/foundation.alerts.js +3 -3
- data/js/foundation/foundation.clearing.js +5 -5
- data/js/foundation/foundation.dropdown.js +1 -1
- data/js/foundation/foundation.forms.js +23 -14
- data/js/foundation/foundation.interchange.js +8 -8
- data/js/foundation/foundation.joyride.js +2 -2
- data/js/foundation/foundation.js +2 -2
- data/js/foundation/foundation.magellan.js +4 -2
- data/js/foundation/foundation.orbit.js +2 -2
- data/js/foundation/foundation.placeholder.js +21 -1
- data/js/foundation/foundation.reveal.js +3 -3
- data/js/foundation/foundation.section.js +4 -3
- data/js/foundation/foundation.tooltips.js +2 -2
- data/js/foundation/foundation.topbar.js +8 -8
- data/js/foundation/index.js +1 -1
- data/js/vendor/jquery.js +4412 -4202
- data/js/vendor/zepto.js +116 -0
- data/lib/foundation/sprockets.rb +4 -0
- data/lib/foundation/version.rb +1 -1
- data/lib/zurb-foundation.rb +6 -2
- data/scss/foundation/_variables.scss +56 -55
- data/scss/foundation/components/_alert-boxes.scss +20 -20
- data/scss/foundation/components/_block-grid.scss +1 -1
- data/scss/foundation/components/_breadcrumbs.scss +15 -15
- data/scss/foundation/components/_buttons.scss +23 -21
- data/scss/foundation/components/_clearing.scss +14 -13
- data/scss/foundation/components/_custom-forms.scss +35 -35
- data/scss/foundation/components/_dropdown-buttons.scss +13 -13
- data/scss/foundation/components/_dropdown.scss +19 -18
- data/scss/foundation/components/_flex-video.scss +3 -3
- data/scss/foundation/components/_forms.scss +40 -40
- data/scss/foundation/components/_grid.scss +1 -1
- data/scss/foundation/components/_inline-lists.scss +4 -4
- data/scss/foundation/components/_joyride.scss +16 -16
- data/scss/foundation/components/_keystrokes.scss +10 -10
- data/scss/foundation/components/_labels.scss +3 -3
- data/scss/foundation/components/_pagination.scss +17 -17
- data/scss/foundation/components/_panels.scss +21 -18
- data/scss/foundation/components/_pricing-tables.scss +30 -30
- data/scss/foundation/components/_reveal.scss +14 -14
- data/scss/foundation/components/_section.scss +16 -16
- data/scss/foundation/components/_side-nav.scss +9 -9
- data/scss/foundation/components/_split-buttons.scss +23 -23
- data/scss/foundation/components/_sub-nav.scss +11 -11
- data/scss/foundation/components/_switch.scss +23 -23
- data/scss/foundation/components/_tables.scss +15 -15
- data/scss/foundation/components/_thumbs.scss +5 -5
- data/scss/foundation/components/_tooltips.scss +17 -17
- data/scss/foundation/components/_top-bar.scss +37 -37
- data/scss/foundation/components/_type.scss +63 -63
- data/templates/upgrade/manifest.rb +2 -3
- metadata +11 -4
@@ -105,37 +105,37 @@ $base-style: true
|
|
105
105
|
<%= code_example '
|
106
106
|
/* We use these to control different shared styles for Split Buttons */
|
107
107
|
$split-button-function-factor: 15%;
|
108
|
-
$split-button-pip-color:
|
109
|
-
$split-button-pip-color-alt:
|
110
|
-
$split-button-active-bg-tint:
|
108
|
+
$split-button-pip-color: #fff;
|
109
|
+
$split-button-pip-color-alt: #333;
|
110
|
+
$split-button-active-bg-tint: rgba(0,0,0,0.1);
|
111
111
|
|
112
112
|
/* We use these to control tiny split buttons */
|
113
|
-
$split-button-padding-tny:
|
114
|
-
$split-button-span-width-tny:
|
115
|
-
$split-button-pip-size-tny:
|
116
|
-
$split-button-pip-top-tny:
|
117
|
-
$split-button-pip-left-tny:
|
113
|
+
$split-button-padding-tny: $button-tny * 9;
|
114
|
+
$split-button-span-width-tny: $button-tny * 6.5;
|
115
|
+
$split-button-pip-size-tny: $button-tny;
|
116
|
+
$split-button-pip-top-tny: $button-tny * 2;
|
117
|
+
$split-button-pip-left-tny: emCalc(-5px);
|
118
118
|
|
119
119
|
/* We use these to control small split buttons */
|
120
|
-
$split-button-padding-sml:
|
121
|
-
$split-button-span-width-sml:
|
122
|
-
$split-button-pip-size-sml:
|
123
|
-
$split-button-pip-top-sml:
|
124
|
-
$split-button-pip-left-sml:
|
120
|
+
$split-button-padding-sml: $button-sml * 7;
|
121
|
+
$split-button-span-width-sml: $button-sml * 5;
|
122
|
+
$split-button-pip-size-sml: $button-sml;
|
123
|
+
$split-button-pip-top-sml: $button-sml * 1.5;
|
124
|
+
$split-button-pip-left-sml: emCalc(-9px);
|
125
125
|
|
126
126
|
/* We use these to control medium split buttons */
|
127
|
-
$split-button-padding-med:
|
128
|
-
$split-button-span-width-med:
|
129
|
-
$split-button-pip-size-med:
|
130
|
-
$split-button-pip-top-med:
|
131
|
-
$split-button-pip-left-med:
|
127
|
+
$split-button-padding-med: $button-med * 6.4;
|
128
|
+
$split-button-span-width-med: $button-med * 4;
|
129
|
+
$split-button-pip-size-med: $button-med - emCalc(3px);
|
130
|
+
$split-button-pip-top-med: $button-med * 1.5;
|
131
|
+
$split-button-pip-left-med: emCalc(-9px);
|
132
132
|
|
133
133
|
/* We use these to control large split buttons */
|
134
|
-
$split-button-padding-lrg:
|
135
|
-
$split-button-span-width-lrg:
|
136
|
-
$split-button-pip-size-lrg:
|
137
|
-
$split-button-pip-top-lrg:
|
138
|
-
$split-button-pip-left-lrg:
|
134
|
+
$split-button-padding-lrg: $button-lrg * 6;
|
135
|
+
$split-button-span-width-lrg: $button-lrg * 3.75;
|
136
|
+
$split-button-pip-size-lrg: $button-lrg - emCalc(6px);
|
137
|
+
$split-button-pip-top-lrg: $button-lrg + emCalc(5px);
|
138
|
+
$split-button-pip-left-lrg: emCalc(-9px);
|
139
139
|
', :css %>
|
140
140
|
|
141
141
|
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
|
@@ -94,22 +94,22 @@ $active-bg: $sub-nav-active-bg
|
|
94
94
|
|
95
95
|
<%= code_example '
|
96
96
|
/* We use these to control margin and padding */
|
97
|
-
$sub-nav-list-margin:
|
98
|
-
$sub-nav-list-padding-top:
|
97
|
+
$sub-nav-list-margin: emCalc(-4px) 0 emCalc(18px);
|
98
|
+
$sub-nav-list-padding-top: emCalc(4px);
|
99
99
|
|
100
100
|
/* We use this to control the definition */
|
101
|
-
$sub-nav-font-size:
|
102
|
-
$sub-nav-font-color:
|
103
|
-
$sub-nav-font-weight:
|
104
|
-
$sub-nav-text-decoration:
|
105
|
-
$sub-nav-border-radius:
|
101
|
+
$sub-nav-font-size: emCalc(14px);
|
102
|
+
$sub-nav-font-color: #999;
|
103
|
+
$sub-nav-font-weight: normal;
|
104
|
+
$sub-nav-text-decoration: none;
|
105
|
+
$sub-nav-border-radius: 1000px;
|
106
106
|
|
107
107
|
/* We use these to control the active item styles */
|
108
108
|
$sub-nav-active-font-weight: bold;
|
109
|
-
$sub-nav-active-bg:
|
110
|
-
$sub-nav-active-color:
|
111
|
-
$sub-nav-active-padding:
|
112
|
-
$sub-nav-active-cursor:
|
109
|
+
$sub-nav-active-bg: $primary-color;
|
110
|
+
$sub-nav-active-color: #fff;
|
111
|
+
$sub-nav-active-padding: emCalc(3px) emCalc(9px);
|
112
|
+
$sub-nav-active-cursor: $cursor-default-value;', :css %>
|
113
113
|
|
114
114
|
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
|
115
115
|
|
@@ -245,38 +245,38 @@ $base-style: true
|
|
245
245
|
|
246
246
|
<%= code_example '
|
247
247
|
/* Controlling border styles and background colors for the switch container */
|
248
|
-
$switch-border-color:
|
249
|
-
$switch-border-style:
|
250
|
-
$switch-border-width:
|
251
|
-
$switch-bg:
|
248
|
+
$switch-border-color: darken(#fff, 20%);
|
249
|
+
$switch-border-style: solid;
|
250
|
+
$switch-border-width: 1px;
|
251
|
+
$switch-bg: #fff;
|
252
252
|
|
253
253
|
/* We use these to control the switch heights for our default classes */
|
254
|
-
$switch-height-tny:
|
255
|
-
$switch-height-sml:
|
256
|
-
$switch-height-med:
|
257
|
-
$switch-height-lrg:
|
258
|
-
$switch-bottom-margin:
|
254
|
+
$switch-height-tny: 22px;
|
255
|
+
$switch-height-sml: 28px;
|
256
|
+
$switch-height-med: 36px;
|
257
|
+
$switch-height-lrg: 44px;
|
258
|
+
$switch-bottom-margin: emCalc(20px);
|
259
259
|
|
260
260
|
/* We use these to control default font sizes for our classes. */
|
261
|
-
$switch-font-size-tny:
|
262
|
-
$switch-font-size-sml:
|
263
|
-
$switch-font-size-med:
|
264
|
-
$switch-font-size-lrg:
|
265
|
-
$switch-label-side-padding:
|
261
|
+
$switch-font-size-tny: 11px;
|
262
|
+
$switch-font-size-sml: 12px;
|
263
|
+
$switch-font-size-med: 14px;
|
264
|
+
$switch-font-size-lrg: 17px;
|
265
|
+
$switch-label-side-padding: 6px;
|
266
266
|
|
267
267
|
/* We use these to style the switch-paddle */
|
268
|
-
$switch-paddle-bg:
|
269
|
-
$switch-paddle-fade-to-color:
|
270
|
-
$switch-paddle-border-color:
|
271
|
-
$switch-paddle-border-width:
|
272
|
-
$switch-paddle-border-style:
|
273
|
-
$switch-paddle-transition-speed:
|
274
|
-
$switch-paddle-transition-ease:
|
275
|
-
$switch-positive-color:
|
276
|
-
$switch-negative-color:
|
268
|
+
$switch-paddle-bg: #fff;
|
269
|
+
$switch-paddle-fade-to-color: darken($switch-paddle-bg, 10%);
|
270
|
+
$switch-paddle-border-color: darken($switch-paddle-bg, 35%);
|
271
|
+
$switch-paddle-border-width: 1px;
|
272
|
+
$switch-paddle-border-style: solid;
|
273
|
+
$switch-paddle-transition-speed: .1s;
|
274
|
+
$switch-paddle-transition-ease: ease-out;
|
275
|
+
$switch-positive-color: lighten($success-color, 50%);
|
276
|
+
$switch-negative-color: #f5f5f5;
|
277
277
|
|
278
278
|
/* Outline Style for tabbing through switches */
|
279
|
-
$switch-label-outline:
|
279
|
+
$switch-label-outline: 1px dotted #888;', :css %>
|
280
280
|
|
281
281
|
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
|
282
282
|
|
@@ -88,30 +88,30 @@
|
|
88
88
|
|
89
89
|
<%= code_example '
|
90
90
|
/* These control the background color for the table and even rows */
|
91
|
-
$table-bg:
|
92
|
-
$table-even-row-bg:
|
91
|
+
$table-bg: #fff;
|
92
|
+
$table-even-row-bg: #f9f9f9;
|
93
93
|
|
94
94
|
/* These control the table cell border style */
|
95
|
-
$table-border-style:
|
96
|
-
$table-border-size:
|
97
|
-
$table-border-color:
|
95
|
+
$table-border-style: solid;
|
96
|
+
$table-border-size: 1px;
|
97
|
+
$table-border-color: #ddd;
|
98
98
|
|
99
99
|
/* These control the table head styles */
|
100
|
-
$table-head-bg:
|
101
|
-
$table-head-font-size:
|
102
|
-
$table-head-font-color:
|
100
|
+
$table-head-bg: #f5f5f5;
|
101
|
+
$table-head-font-size: emCalc(14px);
|
102
|
+
$table-head-font-color: #222;
|
103
103
|
$table-head-font-weight: bold;
|
104
|
-
$table-head-padding:
|
104
|
+
$table-head-padding: emCalc(8px) emCalc(10px) emCalc(10px);
|
105
105
|
|
106
106
|
/* These control the row padding and font styles */
|
107
|
-
$table-row-padding:
|
108
|
-
$table-row-font-size:
|
109
|
-
$table-row-font-color:
|
110
|
-
$table-line-height:
|
107
|
+
$table-row-padding: emCalc(9px) emCalc(10px);
|
108
|
+
$table-row-font-size: emCalc(14px);
|
109
|
+
$table-row-font-color: #222;
|
110
|
+
$table-line-height: emCalc(18px);
|
111
111
|
|
112
112
|
/* These are for controlling the display and margin of tables */
|
113
|
-
$table-display:
|
114
|
-
$table-margin-bottom:
|
113
|
+
$table-display: table-cell;
|
114
|
+
$table-margin-bottom: emCalc(20px);', :css %>
|
115
115
|
|
116
116
|
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
|
117
117
|
|
@@ -70,14 +70,14 @@ $box-shadow-hover: $thumb-box-shadow-hover
|
|
70
70
|
|
71
71
|
<%= code_example '
|
72
72
|
/* We use these to control border styles */
|
73
|
-
$thumb-border-style:
|
74
|
-
$thumb-border-width:
|
75
|
-
$thumb-border-color:
|
76
|
-
$thumb-box-shadow:
|
73
|
+
$thumb-border-style: solid;
|
74
|
+
$thumb-border-width: 4px;
|
75
|
+
$thumb-border-color: #fff;
|
76
|
+
$thumb-box-shadow: 0 0 0 1px rgba(#000,.2);
|
77
77
|
$thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5);
|
78
78
|
|
79
79
|
/* Radius and transition speed for thumbs */
|
80
|
-
$thumb-radius:
|
80
|
+
$thumb-radius: $global-radius;
|
81
81
|
$thumb-transition-speed: 200ms;', :css %>
|
82
82
|
|
83
83
|
</div>
|
@@ -46,25 +46,25 @@
|
|
46
46
|
|
47
47
|
<h4>Available SCSS Variables</h4>
|
48
48
|
<%= code_example '
|
49
|
-
$has-tip-border-bottom:
|
50
|
-
$has-tip-font-weight:
|
51
|
-
$has-tip-font-color:
|
49
|
+
$has-tip-border-bottom: dotted 1px #ccc;
|
50
|
+
$has-tip-font-weight: bold;
|
51
|
+
$has-tip-font-color: #333;
|
52
52
|
$has-tip-border-bottom-hover: dotted 1px darken($primary-color, 20%);
|
53
|
-
$has-tip-font-color-hover:
|
54
|
-
$has-tip-cursor-type:
|
55
|
-
|
56
|
-
$tooltip-padding:
|
57
|
-
$tooltip-bg:
|
58
|
-
$tooltip-font-size:
|
59
|
-
$tooltip-font-weight:
|
60
|
-
$tooltip-font-color:
|
61
|
-
$tooltip-line-height:
|
62
|
-
$tooltip-close-font-size:
|
63
|
-
$tooltip-close-font-weight:
|
64
|
-
$tooltip-close-font-color:
|
65
|
-
$tooltip-font-size-sml:
|
66
|
-
$tooltip-radius:
|
67
|
-
$tooltip-pip-size:
|
53
|
+
$has-tip-font-color-hover: $primary-color;
|
54
|
+
$has-tip-cursor-type: help;
|
55
|
+
|
56
|
+
$tooltip-padding: emCalc(8px);
|
57
|
+
$tooltip-bg: #000;
|
58
|
+
$tooltip-font-size: emCalc(15px);
|
59
|
+
$tooltip-font-weight: bold;
|
60
|
+
$tooltip-font-color: #fff;
|
61
|
+
$tooltip-line-height: 1.3;
|
62
|
+
$tooltip-close-font-size: emCalc(10px);
|
63
|
+
$tooltip-close-font-weight: normal;
|
64
|
+
$tooltip-close-font-color: #888;
|
65
|
+
$tooltip-font-size-sml: emCalc(14px);
|
66
|
+
$tooltip-radius: $global-radius;
|
67
|
+
$tooltip-pip-size: 5px;
|
68
68
|
', :css %>
|
69
69
|
|
70
70
|
<hr>
|
@@ -76,10 +76,10 @@
|
|
76
76
|
<div class="large-12 columns">
|
77
77
|
|
78
78
|
<h3>Build With HTML Classes</h3>
|
79
|
-
<p>The top bar is a pretty complex piece of magical UI goodness, which makes it really difficult to create a mixin from it. We rely on many presentational classes to accomplish the styles and there's a lot happening in the JS. The top bar is hoverable by default but can be changed to a click event by adding a simple <code>data-
|
79
|
+
<p>The top bar is a pretty complex piece of magical UI goodness, which makes it really difficult to create a mixin from it. We rely on many presentational classes to accomplish the styles and there's a lot happening in the JS. The top bar is hoverable by default but can be changed to a click event by adding a simple <code>data-options="is_hover:false"</code> to the <code><nav></code> element. <a href="#clickable">See an example below</a>.</p>
|
80
80
|
|
81
81
|
<h5>Basic Needs</h5>
|
82
|
-
<p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, a <code>ul class="right/left</code> element enclosed in a <code>section class="top-bar-section"</code>, and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. You can leave out the li class="name" as long as you include the .toggle-topbar element
|
82
|
+
<p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, a <code>ul class="right/left</code> element enclosed in a <code>section class="top-bar-section"</code>, and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. <!-- You can leave out the li class="name" as long as you include the .toggle-topbar element. --></p>
|
83
83
|
|
84
84
|
<h5>Positioning the Bar</h5>
|
85
85
|
<p>The top bar is built with a single <code>nav</code> element with a class of <code>top-bar</code>. It will take on full-browser width by default. To make the top bar stay fixed as you scroll, wrap it in <code>div class="fixed"</code>. If you want your navigation to be set to your grid width, wrap it in <code>div class="contain-to-grid"</code>. You may use <code>fixed</code> and <code>contain-to-grid</code> together.</p>
|
@@ -270,62 +270,62 @@
|
|
270
270
|
|
271
271
|
<%= code_example '
|
272
272
|
/* Background color for the top bar */
|
273
|
-
$topbar-bg:
|
273
|
+
$topbar-bg: #111;
|
274
274
|
|
275
275
|
/* Height and margin */
|
276
|
-
$topbar-height:
|
277
|
-
$topbar-margin-bottom:
|
276
|
+
$topbar-height: 45px;
|
277
|
+
$topbar-margin-bottom: emCalc(30px);
|
278
278
|
|
279
279
|
/* Control Input height for top bar */
|
280
|
-
$topbar-input-height:
|
280
|
+
$topbar-input-height: 2.45em;
|
281
281
|
|
282
282
|
/* Controlling the styles for the title in the top bar */
|
283
|
-
$topbar-title-weight:
|
284
|
-
$topbar-title-font-size:
|
283
|
+
$topbar-title-weight: bold;
|
284
|
+
$topbar-title-font-size: emCalc(17px);
|
285
285
|
|
286
286
|
/* Style the top bar dropdown elements */
|
287
|
-
$topbar-dropdown-bg:
|
288
|
-
$topbar-dropdown-link-color:
|
289
|
-
$topbar-dropdown-link-bg:
|
290
|
-
$topbar-dropdown-toggle-size:
|
291
|
-
$topbar-dropdown-toggle-color:
|
292
|
-
$topbar-dropdown-toggle-alpha:
|
287
|
+
$topbar-dropdown-bg: #222;
|
288
|
+
$topbar-dropdown-link-color: #fff;
|
289
|
+
$topbar-dropdown-link-bg: lighten($topbar-bg, 5%);
|
290
|
+
$topbar-dropdown-toggle-size: 5px;
|
291
|
+
$topbar-dropdown-toggle-color: #fff;
|
292
|
+
$topbar-dropdown-toggle-alpha: 0.5;
|
293
293
|
|
294
294
|
/* Set the link colors and styles for top-level nav */
|
295
|
-
$topbar-link-color:
|
296
|
-
$topbar-link-color-hover:
|
297
|
-
$topbar-link-color-active:
|
298
|
-
$topbar-link-weight:
|
299
|
-
$topbar-link-font-size:
|
300
|
-
$topbar-link-hover-lightness:
|
301
|
-
$topbar-link-bg-hover:
|
302
|
-
$topbar-link-bg-active:
|
303
|
-
|
304
|
-
$topbar-dropdown-label-color:
|
295
|
+
$topbar-link-color: #fff;
|
296
|
+
$topbar-link-color-hover: #fff;
|
297
|
+
$topbar-link-color-active: #fff;
|
298
|
+
$topbar-link-weight: bold;
|
299
|
+
$topbar-link-font-size: emCalc(13px);
|
300
|
+
$topbar-link-hover-lightness: -30%; /* Darken by 30% */
|
301
|
+
$topbar-link-bg-hover: darken($topbar-bg, 3%);
|
302
|
+
$topbar-link-bg-active: darken($topbar-bg, 3%);
|
303
|
+
|
304
|
+
$topbar-dropdown-label-color: #555;
|
305
305
|
$topbar-dropdown-label-text-transform: uppercase;
|
306
|
-
$topbar-dropdown-label-font-weight:
|
307
|
-
$topbar-dropdown-label-font-size:
|
306
|
+
$topbar-dropdown-label-font-weight: bold;
|
307
|
+
$topbar-dropdown-label-font-size: emCalc(10px);
|
308
308
|
|
309
309
|
/* Top menu icon styles */
|
310
|
-
$topbar-menu-link-transform:
|
311
|
-
$topbar-menu-link-font-size:
|
312
|
-
$topbar-menu-link-weight:
|
313
|
-
$topbar-menu-link-color:
|
314
|
-
$topbar-menu-icon-color:
|
315
|
-
$topbar-menu-link-color-toggled:
|
316
|
-
$topbar-menu-icon-color-toggled:
|
310
|
+
$topbar-menu-link-transform: uppercase;
|
311
|
+
$topbar-menu-link-font-size: emCalc(13px);
|
312
|
+
$topbar-menu-link-weight: bold;
|
313
|
+
$topbar-menu-link-color: #fff;
|
314
|
+
$topbar-menu-icon-color: #fff;
|
315
|
+
$topbar-menu-link-color-toggled: #888;
|
316
|
+
$topbar-menu-icon-color-toggled: #888;
|
317
317
|
|
318
318
|
/* Transitions and breakpoint styles */
|
319
|
-
$topbar-transition-speed:
|
320
|
-
$topbar-breakpoint:
|
321
|
-
$topbar-media-query:
|
319
|
+
$topbar-transition-speed: 300ms;
|
320
|
+
$topbar-breakpoint: emCalc(940px); /* Change to 9999px for always mobile layout */
|
321
|
+
$topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")";
|
322
322
|
|
323
323
|
/* Divider Styles */
|
324
|
-
$topbar-divider-border-bottom:
|
325
|
-
$topbar-divider-border-top:
|
324
|
+
$topbar-divider-border-bottom: solid 1px lighten($topbar-bg, 10%);
|
325
|
+
$topbar-divider-border-top: solid 1px darken($topbar-bg, 10%);
|
326
326
|
|
327
327
|
/* Sticky Class */
|
328
|
-
$topbar-sticky-class:
|
328
|
+
$topbar-sticky-class: ".sticky";', :css %>
|
329
329
|
|
330
330
|
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
|
331
331
|
|
@@ -290,102 +290,102 @@
|
|
290
290
|
|
291
291
|
<%= code_example '
|
292
292
|
/* We use these to control header font styles */
|
293
|
-
$header-font-family:
|
294
|
-
$header-font-weight:
|
295
|
-
$header-font-style:
|
296
|
-
$header-font-color:
|
297
|
-
$header-line-height:
|
298
|
-
$header-top-margin:
|
299
|
-
$header-bottom-margin:
|
300
|
-
$header-text-rendering:
|
293
|
+
$header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
294
|
+
$header-font-weight: bold;
|
295
|
+
$header-font-style: normal;
|
296
|
+
$header-font-color: #222;
|
297
|
+
$header-line-height: 1.4;
|
298
|
+
$header-top-margin: .2em;
|
299
|
+
$header-bottom-margin: .5em;
|
300
|
+
$header-text-rendering: optimizeLegibility;
|
301
301
|
|
302
302
|
/* We use these to control header font sizes */
|
303
|
-
$h1-font-size:
|
304
|
-
$h2-font-size:
|
305
|
-
$h3-font-size:
|
306
|
-
$h4-font-size:
|
307
|
-
$h5-font-size:
|
308
|
-
$h6-font-size:
|
303
|
+
$h1-font-size: emCalc(44px);
|
304
|
+
$h2-font-size: emCalc(37px);
|
305
|
+
$h3-font-size: emCalc(27px);
|
306
|
+
$h4-font-size: emCalc(23px);
|
307
|
+
$h5-font-size: emCalc(18px);
|
308
|
+
$h6-font-size: 1em;
|
309
309
|
|
310
310
|
/* These control how subheaders are styled. */
|
311
|
-
$subheader-line-height:
|
312
|
-
$subheader-font-color:
|
313
|
-
$subheader-font-weight:
|
314
|
-
$subheader-top-margin:
|
315
|
-
$subheader-bottom-margin:
|
311
|
+
$subheader-line-height: 1.4;
|
312
|
+
$subheader-font-color: lighten($header-font-color, 30%);
|
313
|
+
$subheader-font-weight: 300;
|
314
|
+
$subheader-top-margin: .2em;
|
315
|
+
$subheader-bottom-margin: .5em;
|
316
316
|
|
317
317
|
/* A general <small> styling */
|
318
|
-
$small-font-size:
|
319
|
-
$small-font-color:
|
318
|
+
$small-font-size: 60%;
|
319
|
+
$small-font-color: lighten($header-font-color, 30%);
|
320
320
|
|
321
321
|
/* We use these to style paragraphs */
|
322
|
-
$paragraph-font-family:
|
323
|
-
$paragraph-font-weight:
|
324
|
-
$paragraph-font-size:
|
325
|
-
$paragraph-line-height:
|
326
|
-
$paragraph-margin-bottom:
|
327
|
-
$paragraph-aside-font-size:
|
328
|
-
$paragraph-aside-line-height:
|
329
|
-
$paragraph-aside-font-style:
|
330
|
-
$paragraph-text-rendering:
|
322
|
+
$paragraph-font-family: inherit;
|
323
|
+
$paragraph-font-weight: normal;
|
324
|
+
$paragraph-font-size: 1em;
|
325
|
+
$paragraph-line-height: 1.6;
|
326
|
+
$paragraph-margin-bottom: emCalc(20px);
|
327
|
+
$paragraph-aside-font-size: emCalc(14px);
|
328
|
+
$paragraph-aside-line-height: 1.35;
|
329
|
+
$paragraph-aside-font-style: italic;
|
330
|
+
$paragraph-text-rendering: optimizeLegibility;
|
331
331
|
|
332
332
|
/* We use these to style <code> tags */
|
333
|
-
$code-color:
|
334
|
-
$code-font-family:
|
335
|
-
$code-font-weight:
|
333
|
+
$code-color: darken($alert-color, 15%);
|
334
|
+
$code-font-family: Consolas, "Liberation Mono", Courier, monospace;
|
335
|
+
$code-font-weight: bold;
|
336
336
|
|
337
337
|
/* We use these to style anchors */
|
338
|
-
$anchor-text-decoration:
|
339
|
-
$anchor-font-color:
|
340
|
-
$anchor-font-color-hover:
|
338
|
+
$anchor-text-decoration: none;
|
339
|
+
$anchor-font-color: $primary-color;
|
340
|
+
$anchor-font-color-hover: darken($primary-color, 5%);
|
341
341
|
|
342
342
|
/* We use these to style the <hr> element */
|
343
|
-
$hr-border-width:
|
344
|
-
$hr-border-style:
|
345
|
-
$hr-border-color:
|
346
|
-
$hr-margin:
|
343
|
+
$hr-border-width: 1px;
|
344
|
+
$hr-border-style: solid;
|
345
|
+
$hr-border-color: #ddd;
|
346
|
+
$hr-margin: emCalc(20px);
|
347
347
|
|
348
348
|
/* We use these to style lists */
|
349
|
-
$list-style-position:
|
350
|
-
$list-side-margin:
|
351
|
-
$list-nested-margin:
|
352
|
-
$definition-list-header-weight:
|
349
|
+
$list-style-position: outside;
|
350
|
+
$list-side-margin: emCalc(20px);
|
351
|
+
$list-nested-margin: emCalc(20px);
|
352
|
+
$definition-list-header-weight: bold;
|
353
353
|
$definition-list-header-margin-bottom: .3em;
|
354
|
-
$definition-list-margin-bottom:
|
354
|
+
$definition-list-margin-bottom: emCalc(12px);
|
355
355
|
|
356
356
|
/* We use these to style blockquotes */
|
357
|
-
$blockquote-font-color:
|
358
|
-
$blockquote-padding:
|
359
|
-
$blockquote-border:
|
360
|
-
$blockquote-cite-font-size:
|
361
|
-
$blockquote-cite-font-color:
|
362
|
-
$blockquote-cite-link-color:
|
357
|
+
$blockquote-font-color: lighten($header-font-color, 30%);
|
358
|
+
$blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px);
|
359
|
+
$blockquote-border: 1px solid #ddd;
|
360
|
+
$blockquote-cite-font-size: emCalc(13px);
|
361
|
+
$blockquote-cite-font-color: lighten($header-font-color, 20%);
|
362
|
+
$blockquote-cite-link-color: $blockquote-cite-font-color;
|
363
363
|
|
364
364
|
/* Acronym styles */
|
365
|
-
$acronym-underline:
|
365
|
+
$acronym-underline: 1px dotted #ddd;
|
366
366
|
|
367
367
|
/* We use these to control padding and margin */
|
368
|
-
$microformat-padding:
|
369
|
-
$microformat-margin:
|
368
|
+
$microformat-padding: emCalc(10px) emCalc(12px);
|
369
|
+
$microformat-margin: 0 0 emCalc(20px) 0;
|
370
370
|
|
371
371
|
/* We use these to control the border styles */
|
372
|
-
$microformat-border-width:
|
373
|
-
$microformat-border-style:
|
374
|
-
$microformat-border-color:
|
372
|
+
$microformat-border-width: 1px;
|
373
|
+
$microformat-border-style: solid;
|
374
|
+
$microformat-border-color: #ddd;
|
375
375
|
|
376
376
|
/* We use these to control full name font styles */
|
377
|
-
$microformat-fullname-font-weight:
|
378
|
-
$microformat-fullname-font-size:
|
377
|
+
$microformat-fullname-font-weight: bold;
|
378
|
+
$microformat-fullname-font-size: emCalc(15px);
|
379
379
|
|
380
380
|
/* We use this to control the summary font styles */
|
381
|
-
$microformat-summary-font-weight:
|
381
|
+
$microformat-summary-font-weight: bold;
|
382
382
|
|
383
383
|
/* We use this to control abbr padding */
|
384
|
-
$microformat-abbr-padding:
|
384
|
+
$microformat-abbr-padding: 0 emCalc(1px);
|
385
385
|
|
386
386
|
/* We use this to control abbr font styles */
|
387
|
-
$microformat-abbr-font-weight:
|
388
|
-
$microformat-abbr-font-decoration:
|
387
|
+
$microformat-abbr-font-weight: bold;
|
388
|
+
$microformat-abbr-font-decoration: none;
|
389
389
|
', :css %>
|
390
390
|
|
391
391
|
</div>
|