todc-bootstrap-sass 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE +22 -0
- data/README.md +60 -0
- data/lib/assets/images/checkmark.png +0 -0
- data/lib/assets/images/glyphicons-halflings-white.png +0 -0
- data/lib/assets/images/glyphicons-halflings.png +0 -0
- data/lib/assets/stylesheets/todc-bootstrap-responsive.scss +1 -0
- data/lib/assets/stylesheets/todc-bootstrap.scss +1 -0
- data/lib/assets/stylesheets/todc-bootstrap/_alerts.scss +45 -0
- data/lib/assets/stylesheets/todc-bootstrap/_breadcrumbs.scss +10 -0
- data/lib/assets/stylesheets/todc-bootstrap/_button-groups.scss +153 -0
- data/lib/assets/stylesheets/todc-bootstrap/_buttons.scss +239 -0
- data/lib/assets/stylesheets/todc-bootstrap/_dropdowns.scss +117 -0
- data/lib/assets/stylesheets/todc-bootstrap/_forms.scss +248 -0
- data/lib/assets/stylesheets/todc-bootstrap/_google-mixins.scss +71 -0
- data/lib/assets/stylesheets/todc-bootstrap/_labels-badges.scss +31 -0
- data/lib/assets/stylesheets/todc-bootstrap/_modals.scss +20 -0
- data/lib/assets/stylesheets/todc-bootstrap/_navbar.scss +718 -0
- data/lib/assets/stylesheets/todc-bootstrap/_navs.scss +147 -0
- data/lib/assets/stylesheets/todc-bootstrap/_pager.scss +53 -0
- data/lib/assets/stylesheets/todc-bootstrap/_pagination.scss +58 -0
- data/lib/assets/stylesheets/todc-bootstrap/_popovers.scss +12 -0
- data/lib/assets/stylesheets/todc-bootstrap/_progress-bars.scss +65 -0
- data/lib/assets/stylesheets/todc-bootstrap/_responsive-navbar.scss +147 -0
- data/lib/assets/stylesheets/todc-bootstrap/_scaffolding.scss +37 -0
- data/lib/assets/stylesheets/todc-bootstrap/_scrollbars.scss +48 -0
- data/lib/assets/stylesheets/todc-bootstrap/_sprites.scss +24 -0
- data/lib/assets/stylesheets/todc-bootstrap/_tables.scss +51 -0
- data/lib/assets/stylesheets/todc-bootstrap/_thumbnails.scss +24 -0
- data/lib/assets/stylesheets/todc-bootstrap/_todc-mixins.scss +71 -0
- data/lib/assets/stylesheets/todc-bootstrap/_tooltip.scss +13 -0
- data/lib/assets/stylesheets/todc-bootstrap/_variables.scss +386 -0
- data/lib/assets/stylesheets/todc-bootstrap/_wells.scss +20 -0
- data/lib/assets/stylesheets/todc-bootstrap/bootstrap.scss +39 -0
- data/lib/assets/stylesheets/todc-bootstrap/responsive.scss +5 -0
- data/lib/todc-bootstrap-sass.rb +49 -0
- data/lib/todc-bootstrap-sass/compass_functions.rb +14 -0
- data/lib/todc-bootstrap-sass/engine.rb +8 -0
- data/lib/todc-bootstrap-sass/rails_functions.rb +14 -0
- data/lib/todc-bootstrap-sass/version.rb +7 -0
- metadata +124 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Background
|
6
|
+
.modal-backdrop {
|
7
|
+
background-color: $white;
|
8
|
+
// Fade for backdrop
|
9
|
+
&.fade { opacity: 0; }
|
10
|
+
}
|
11
|
+
|
12
|
+
.modal-backdrop,
|
13
|
+
.modal-backdrop.fade.in {
|
14
|
+
@include opacity(75);
|
15
|
+
}
|
16
|
+
|
17
|
+
// Base modal
|
18
|
+
.modal {
|
19
|
+
@include border-radius(0);
|
20
|
+
}
|
@@ -0,0 +1,718 @@
|
|
1
|
+
//
|
2
|
+
// Navbars (Redux)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// COMMON STYLES
|
7
|
+
// -------------
|
8
|
+
|
9
|
+
// Inner for background effects
|
10
|
+
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
11
|
+
.navbar-inner {
|
12
|
+
min-height: $navbarHeight;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// Brand: website or project name
|
17
|
+
// -------------------------
|
18
|
+
.navbar .brand {
|
19
|
+
// Vertically center the text given $navbarHeight
|
20
|
+
padding: (($navbarHeight - $baseLineHeight) / 2) 20px (($navbarHeight - $baseLineHeight) / 2);
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
// Plain text in topbar
|
25
|
+
// -------------------------
|
26
|
+
.navbar-text {
|
27
|
+
line-height: $navbarHeight;
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
// Brand: dropdown menu
|
32
|
+
// -------------------------
|
33
|
+
.navbar .brand.dropdown-menu {
|
34
|
+
display: none;
|
35
|
+
padding: 0 0 6px;
|
36
|
+
margin-left: -20px;
|
37
|
+
font-size: $baseFontSize;
|
38
|
+
}
|
39
|
+
.open > .brand.dropdown-menu {
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
|
43
|
+
// Dividers in navbar
|
44
|
+
// -------------------------
|
45
|
+
.navbar .divider-vertical {
|
46
|
+
height: $navbarHeight;
|
47
|
+
}
|
48
|
+
|
49
|
+
// Buttons in navbar
|
50
|
+
// -------------------------
|
51
|
+
.navbar .btn,
|
52
|
+
.navbar .btn-group {
|
53
|
+
@include navbarVerticalAlign(26px); // Vertically center in navbar
|
54
|
+
}
|
55
|
+
.navbar .btn {
|
56
|
+
padding: $paddingSmall; // FIXME: This is probably not necessary for the btn-group;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Navbar forms
|
60
|
+
// -------------------------
|
61
|
+
.navbar-form {
|
62
|
+
input,
|
63
|
+
select,
|
64
|
+
.radio,
|
65
|
+
.checkbox {
|
66
|
+
@include navbarVerticalAlign(26px); // Vertically center in navbar
|
67
|
+
padding: 2px 14px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Navbar search
|
72
|
+
// -------------------------
|
73
|
+
.navbar-search {
|
74
|
+
@include navbarVerticalAlign(26px); // Vertically center in navbar
|
75
|
+
.search-query {
|
76
|
+
padding: 2px 14px;
|
77
|
+
line-height: normal;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// NAVIGATION
|
83
|
+
// ----------
|
84
|
+
|
85
|
+
// Links
|
86
|
+
.navbar .nav > li > a {
|
87
|
+
// Vertically center the text given $navbarHeight
|
88
|
+
padding: (($navbarHeight - $baseLineHeight) / 2) 15px (($navbarHeight - $baseLineHeight) / 2);
|
89
|
+
font-weight: bold;
|
90
|
+
}
|
91
|
+
|
92
|
+
// Navbar button for toggling navbar items in responsive layouts
|
93
|
+
// These definitions need to come after '.navbar .btn'
|
94
|
+
.navbar .btn-navbar {
|
95
|
+
padding: 4px 10px 7px;
|
96
|
+
@include navbarVerticalAlign(26px); // Vertically center in navbar
|
97
|
+
@include gradient-vertical(#f5f5f5, #f1f1f1);
|
98
|
+
border: 1px solid #dcdcdc;
|
99
|
+
@include box-shadow(none);
|
100
|
+
}
|
101
|
+
|
102
|
+
// Right aligned menus need alt position
|
103
|
+
.navbar .pull-right > li > .dropdown-menu,
|
104
|
+
.navbar .nav > li > .dropdown-menu.pull-right {
|
105
|
+
.dropdown-menu {
|
106
|
+
@include border-radius(0);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
// Inverted navbar
|
112
|
+
// -------------------------
|
113
|
+
|
114
|
+
.navbar-inverse {
|
115
|
+
|
116
|
+
// Navbar search
|
117
|
+
.navbar-search {
|
118
|
+
.search-query {
|
119
|
+
|
120
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
121
|
+
&:focus,
|
122
|
+
&.focused {
|
123
|
+
padding: 1px 15px;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// Navbar collapse button
|
129
|
+
.btn-navbar {
|
130
|
+
@include buttonBackground(darken($navbarInverseBackgroundHighlight, 5%), darken($navbarInverseBackground, 5%));
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
// Masthead
|
136
|
+
// -------------------------
|
137
|
+
.navbar-masthead {
|
138
|
+
|
139
|
+
// Brand: website or project name
|
140
|
+
// -------------------------
|
141
|
+
.brand {
|
142
|
+
padding: (($navbarGoogleBarHeight - $baseLineHeight) / 2) 20px (($navbarGoogleBarHeight - $baseLineHeight) / 2);
|
143
|
+
}
|
144
|
+
|
145
|
+
// Plain text in topbar
|
146
|
+
// -------------------------
|
147
|
+
.navbar-text {
|
148
|
+
line-height: $navbarGoogleBarHeight;
|
149
|
+
}
|
150
|
+
|
151
|
+
// Dividers in navbar
|
152
|
+
// -------------------------
|
153
|
+
.divider-vertical {
|
154
|
+
height: 34px;
|
155
|
+
// margin: 6px 9px;
|
156
|
+
border-right: 1px solid $navbarGoogleBarBackgroundHighlight;
|
157
|
+
border-left: 1px solid $navbarGoogleBarBackground;
|
158
|
+
}
|
159
|
+
|
160
|
+
// Buttons in navbar
|
161
|
+
// -------------------------
|
162
|
+
.btn,
|
163
|
+
.btn-group {
|
164
|
+
@include navbarVerticalAlign($navbarGoogleBarHeight, $navbarGoogleBarHeight); // Vertically center in navbar
|
165
|
+
padding: 4px 12px;
|
166
|
+
}
|
167
|
+
|
168
|
+
// Navbar forms
|
169
|
+
// -------------------------
|
170
|
+
.navbar-form {
|
171
|
+
input,
|
172
|
+
select,
|
173
|
+
.radio,
|
174
|
+
.checkbox {
|
175
|
+
@include navbarVerticalAlign(30px, $navbarGoogleBarHeight); // Vertically center in navbar
|
176
|
+
padding: 4px 8px;
|
177
|
+
}
|
178
|
+
.btn,
|
179
|
+
.btn-group {
|
180
|
+
@include navbarVerticalAlign(30px, $navbarGoogleBarHeight); // Vertically center in navbar
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// Navbar search
|
185
|
+
// -------------------------
|
186
|
+
.navbar-search {
|
187
|
+
@include navbarVerticalAlign(30px, $navbarGoogleBarHeight); // Vertically center in navbar
|
188
|
+
.search-query {
|
189
|
+
padding: 4px 14px;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
// Inner for background effects
|
194
|
+
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
195
|
+
.navbar-inner {
|
196
|
+
@include border-radius($baseBorderRadius);
|
197
|
+
@include box-shadow(none);
|
198
|
+
min-height: $navbarGoogleBarHeight;
|
199
|
+
margin: 0px;
|
200
|
+
color: $navbarText;
|
201
|
+
@include gradient-vertical($navbarGoogleBarBackground, $navbarGoogleBarBackground);
|
202
|
+
border: 1px solid $navbarGoogleBarBorder;
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
// Fixed navbar
|
208
|
+
// -------------------------
|
209
|
+
|
210
|
+
// Shared (top/bottom) styles
|
211
|
+
&.navbar-fixed-top,
|
212
|
+
&.navbar-fixed-bottom {
|
213
|
+
z-index: $zindexFixedGooglebar;
|
214
|
+
}
|
215
|
+
|
216
|
+
// NAVIGATION
|
217
|
+
// ----------
|
218
|
+
|
219
|
+
.nav {
|
220
|
+
@include navbarVerticalAlign(34px, $navbarGoogleBarHeight); // Vertically center in navbar
|
221
|
+
}
|
222
|
+
|
223
|
+
// Links
|
224
|
+
.nav > li > a {
|
225
|
+
float: none;
|
226
|
+
// Vertically center the text given $navbarHeight
|
227
|
+
// padding: (($navbarGoogleBarHeight - $baseLineHeight) / 2) 15px (($navbarGoogleBarHeight - $baseLineHeight) / 2);
|
228
|
+
padding: 8px 15px;
|
229
|
+
font-weight: normal;
|
230
|
+
color: $navbarGoogleBarLinkColor;
|
231
|
+
text-decoration: none;
|
232
|
+
text-shadow: 0 1px 0 $navbarGoogleBarBackgroundHighlight;
|
233
|
+
}
|
234
|
+
.nav .dropdown-toggle .caret {
|
235
|
+
margin-top: 8px;
|
236
|
+
}
|
237
|
+
|
238
|
+
// Hover
|
239
|
+
.nav > li > a:focus,
|
240
|
+
.nav > li > a:hover {
|
241
|
+
text-decoration: none;
|
242
|
+
background-color: $navbarGoogleBarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
243
|
+
color: $navbarGoogleBarLinkColorHover;
|
244
|
+
}
|
245
|
+
|
246
|
+
// Active nav items
|
247
|
+
.nav > .active > a,
|
248
|
+
.nav > .active > a:hover,
|
249
|
+
.nav > .active > a:focus {
|
250
|
+
@include box-shadow(none);
|
251
|
+
color: $navbarGoogleBarLinkColorActive;
|
252
|
+
text-decoration: none;
|
253
|
+
@include gradient-vertical($navbarGoogleBarLinkBackgroundActive, $navbarGoogleBarLinkBackgroundActive);
|
254
|
+
}
|
255
|
+
|
256
|
+
// Navbar button for toggling navbar items in responsive layouts
|
257
|
+
// These definitions need to come after '.navbar .btn'
|
258
|
+
.btn-navbar {
|
259
|
+
padding: 4px 10px 7px;
|
260
|
+
@include navbarVerticalAlign(26px, $navbarGoogleBarHeight); // Vertically center in navbar
|
261
|
+
// @include gradient-vertical($navbarGoogleBarBackgroundHighlight, $navbarGoogleBarBackground);
|
262
|
+
@include gradient-vertical(#f5f5f5, #f1f1f1);
|
263
|
+
border: 1px solid #dcdcdc;
|
264
|
+
}
|
265
|
+
|
266
|
+
|
267
|
+
// Inverted navbar
|
268
|
+
// -------------------------
|
269
|
+
|
270
|
+
&.navbar-inverse {
|
271
|
+
color: $navbarGoogleBarInverseText;
|
272
|
+
|
273
|
+
.navbar-inner {
|
274
|
+
border-color: $navbarGoogleBarInverseBorder;
|
275
|
+
@include gradient-vertical($navbarGoogleBarInverseBackgroundHighlight, $navbarGoogleBarInverseBackground);
|
276
|
+
}
|
277
|
+
|
278
|
+
.brand,
|
279
|
+
.nav > li > a {
|
280
|
+
color: $navbarGoogleBarInverseLinkColor;
|
281
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
282
|
+
&:hover {
|
283
|
+
color: $navbarGoogleBarInverseLinkColorHover;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
.nav > li > a:focus,
|
288
|
+
.nav > li > a:hover {
|
289
|
+
color: $navbarGoogleBarInverseLinkColorHover;
|
290
|
+
background-color: $navbarGoogleBarInverseLinkBackgroundHover;
|
291
|
+
}
|
292
|
+
|
293
|
+
.nav .active > a,
|
294
|
+
.nav .active > a:hover,
|
295
|
+
.nav .active > a:focus {
|
296
|
+
color: $navbarGoogleBarInverseLinkColorActive;
|
297
|
+
@include gradient-vertical($navbarGoogleBarInverseLinkBackgroundActive, $navbarGoogleBarInverseLinkBackgroundActive);
|
298
|
+
}
|
299
|
+
|
300
|
+
// Inline text links
|
301
|
+
.navbar-link {
|
302
|
+
color: $navbarGoogleBarInverseLinkColor;
|
303
|
+
&:hover {
|
304
|
+
color: $navbarGoogleBarInverseLinkColorHover;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
// Dividers in navbar
|
309
|
+
.divider-vertical {
|
310
|
+
border-right-color: $navbarGoogleBarInverseBackgroundHighlight;
|
311
|
+
border-left-color: $navbarGoogleBarInverseBackground;
|
312
|
+
}
|
313
|
+
|
314
|
+
// Dropdowns
|
315
|
+
.nav li.dropdown.open > .dropdown-toggle,
|
316
|
+
.nav li.dropdown.active > .dropdown-toggle,
|
317
|
+
.nav li.dropdown.open.active > .dropdown-toggle {
|
318
|
+
color: $navbarGoogleBarInverseLinkColorActive;
|
319
|
+
background-color: $navbarGoogleBarInverseLinkBackgroundActive;
|
320
|
+
}
|
321
|
+
.nav li.dropdown > .dropdown-toggle .caret {
|
322
|
+
border-top-color: $navbarGoogleBarInverseLinkColor;
|
323
|
+
border-bottom-color: $navbarGoogleBarInverseLinkColor;
|
324
|
+
}
|
325
|
+
.nav li.dropdown.open > .dropdown-toggle .caret,
|
326
|
+
.nav li.dropdown.active > .dropdown-toggle .caret,
|
327
|
+
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
328
|
+
border-top-color: $navbarGoogleBarInverseLinkColorActive;
|
329
|
+
border-bottom-color: $navbarGoogleBarInverseLinkColorActive;
|
330
|
+
}
|
331
|
+
|
332
|
+
// Navbar search
|
333
|
+
.navbar-search {
|
334
|
+
.search-query {
|
335
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
|
336
|
+
@include transition(none);
|
337
|
+
@include placeholder($navbarGoogleBarInverseSearchPlaceholderColor);
|
338
|
+
color: $white;
|
339
|
+
background-color: $navbarGoogleBarInverseSearchBackground;
|
340
|
+
border-color: $navbarGoogleBarInverseSearchBorder;
|
341
|
+
|
342
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
343
|
+
&:focus,
|
344
|
+
&.focused {
|
345
|
+
@include box-shadow(0 0 3px rgba(0,0,0,.15));
|
346
|
+
padding: 5px 15px;
|
347
|
+
color: $grayDark;
|
348
|
+
text-shadow: 0 1px 0 $white;
|
349
|
+
background-color: $navbarGoogleBarInverseSearchBackgroundFocus;
|
350
|
+
border: 0;
|
351
|
+
outline: 0;
|
352
|
+
}
|
353
|
+
}
|
354
|
+
}
|
355
|
+
|
356
|
+
// Navbar collapse button
|
357
|
+
.btn-navbar {
|
358
|
+
@include buttonBackground(darken($navbarGoogleBarInverseBackgroundHighlight, 5%), darken($navbarGoogleBarInverseBackground, 5%));
|
359
|
+
}
|
360
|
+
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
|
365
|
+
// Toolbar
|
366
|
+
// -------------------------
|
367
|
+
.navbar-toolbar {
|
368
|
+
|
369
|
+
// Brand: website or project name
|
370
|
+
// -------------------------
|
371
|
+
.brand,
|
372
|
+
.brand .btn {
|
373
|
+
// Vertically center the text given $navbarHeight
|
374
|
+
padding: (($navbarGoogleNavHeight - $baseLineHeight) / 2) 20px (($navbarGoogleNavHeight - $baseLineHeight) / 2);
|
375
|
+
font-size: 16px;
|
376
|
+
font-weight: bold;
|
377
|
+
color: $navbarGoogleNavBrandColor;
|
378
|
+
text-shadow: none;
|
379
|
+
}
|
380
|
+
|
381
|
+
// Plain text in topbar
|
382
|
+
// -------------------------
|
383
|
+
.navbar-text {
|
384
|
+
@include navbarVerticalAlign($navbarGoogleNavHeight, $navbarGoogleNavHeight); // Vertically center in navbar
|
385
|
+
line-height: $navbarGoogleNavHeight;
|
386
|
+
}
|
387
|
+
|
388
|
+
// Dividers in navbar
|
389
|
+
// -------------------------
|
390
|
+
.divider-vertical {
|
391
|
+
height: $navbarGoogleNavHeight - 2;
|
392
|
+
margin: 0 9px;
|
393
|
+
border-right: 1px solid $navbarGoogleNavBackground;
|
394
|
+
border-left: 1px solid $navbarGoogleNavBackgroundHighlight;
|
395
|
+
}
|
396
|
+
|
397
|
+
// Optional: Group multiple button groups together for a toolbar
|
398
|
+
.btn-toolbar {
|
399
|
+
margin: 0;
|
400
|
+
}
|
401
|
+
|
402
|
+
// Buttons in navbar
|
403
|
+
// -------------------------
|
404
|
+
.btn,
|
405
|
+
.btn-group {
|
406
|
+
@include navbarVerticalAlign(30px, $navbarGoogleNavHeight); // Vertically center in navbar
|
407
|
+
}
|
408
|
+
.btn {
|
409
|
+
padding: 4px 12px; // FIXME: This is probably not necessary for the btn-group;
|
410
|
+
}
|
411
|
+
|
412
|
+
.btn,
|
413
|
+
.btn-small,
|
414
|
+
.btn-group > .btn,
|
415
|
+
.btn-group > .btn-small {
|
416
|
+
font-size: $fontSizeSmall;
|
417
|
+
}
|
418
|
+
|
419
|
+
// Reset fonts for other sizes
|
420
|
+
.btn-mini,
|
421
|
+
.btn-group > .btn-mini {
|
422
|
+
font-size: $fontSizeMini;
|
423
|
+
}
|
424
|
+
.btn-large,
|
425
|
+
.btn-group > .btn-large {
|
426
|
+
font-size: $fontSizeLarge;
|
427
|
+
}
|
428
|
+
|
429
|
+
// Navbar forms
|
430
|
+
// -------------------------
|
431
|
+
.navbar-form {
|
432
|
+
input,
|
433
|
+
select,
|
434
|
+
.radio,
|
435
|
+
.checkbox {
|
436
|
+
@include navbarVerticalAlign(30px, $navbarGoogleNavHeight); // Vertically center in navbar
|
437
|
+
padding: 4px 8px;
|
438
|
+
}
|
439
|
+
.btn,
|
440
|
+
.btn-group {
|
441
|
+
@include navbarVerticalAlign(30px, $navbarGoogleNavHeight); // Vertically center in navbar
|
442
|
+
}
|
443
|
+
}
|
444
|
+
|
445
|
+
// Navbar search
|
446
|
+
// -------------------------
|
447
|
+
.navbar-search {
|
448
|
+
@include navbarVerticalAlign(30px, $navbarGoogleNavHeight); // Vertically center in navbar
|
449
|
+
.search-query {
|
450
|
+
padding: 4px 14px;
|
451
|
+
}
|
452
|
+
}
|
453
|
+
|
454
|
+
// Inner for background effects
|
455
|
+
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
456
|
+
.navbar-inner {
|
457
|
+
@include border-radius($baseBorderRadius);
|
458
|
+
@include box-shadow(none);
|
459
|
+
min-height: $navbarGoogleNavHeight;
|
460
|
+
margin: 0px;
|
461
|
+
color: $navbarText;
|
462
|
+
@include gradient-vertical($navbarGoogleNavBackground, $navbarGoogleNavBackground);
|
463
|
+
border: 1px solid $navbarGoogleNavBorder;
|
464
|
+
}
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
// Fixed navbar
|
469
|
+
// -------------------------
|
470
|
+
|
471
|
+
// Shared (top/bottom) styles
|
472
|
+
&.navbar-fixed-top,
|
473
|
+
&.navbar-fixed-bottom {
|
474
|
+
z-index: $zindexFixedGooglenav;
|
475
|
+
}
|
476
|
+
&.navbar-fixed-top,
|
477
|
+
&.navbar-fixed-bottom,
|
478
|
+
&.navbar-static-top {
|
479
|
+
.nav > li > a {
|
480
|
+
// padding: (($navbarGoogleNavHeight - $baseLineHeight) / 2) 15px ((($navbarGoogleNavHeight - $baseLineHeight) / 2) - 1);
|
481
|
+
}
|
482
|
+
|
483
|
+
// Dividers in navbar
|
484
|
+
// -------------------------
|
485
|
+
.divider-vertical {
|
486
|
+
height: $navbarGoogleNavHeight - 1;
|
487
|
+
}
|
488
|
+
}
|
489
|
+
|
490
|
+
// NAVIGATION
|
491
|
+
// ----------
|
492
|
+
|
493
|
+
.nav > li {
|
494
|
+
position: relative;
|
495
|
+
}
|
496
|
+
|
497
|
+
// Links
|
498
|
+
.nav > li > a {
|
499
|
+
// padding: 9px 15px 8px;
|
500
|
+
padding: (floor(($navbarGoogleNavHeight - $baseLineHeight) / 2)) 15px ((($navbarGoogleNavHeight - $baseLineHeight) / 2));
|
501
|
+
color: $navbarGoogleNavLinkColor;
|
502
|
+
text-shadow: none;
|
503
|
+
}
|
504
|
+
.nav > li > a.brand {
|
505
|
+
color: $navbarGoogleNavBrandColor;
|
506
|
+
}
|
507
|
+
|
508
|
+
// Active nav items
|
509
|
+
.nav > .active > a {
|
510
|
+
font-weight: bold;
|
511
|
+
&:before {
|
512
|
+
position: absolute;
|
513
|
+
bottom: -1px;
|
514
|
+
left: 50%;
|
515
|
+
display: inline-block;
|
516
|
+
margin-left: -8px; /* value should match border-width below */
|
517
|
+
border-right: 8px solid transparent;
|
518
|
+
border-bottom: 8px solid $navbarGoogleNavBorder;
|
519
|
+
border-left: 8px solid transparent;
|
520
|
+
content: '';
|
521
|
+
}
|
522
|
+
&:after {
|
523
|
+
position: absolute;
|
524
|
+
bottom: -1px;
|
525
|
+
left: 50%;
|
526
|
+
display: inline-block;
|
527
|
+
margin-left: -7px; /* value should match border-width below */
|
528
|
+
border-right: 7px solid transparent;
|
529
|
+
border-bottom: 7px solid $dropdownBackground;
|
530
|
+
border-left: 7px solid transparent;
|
531
|
+
content: '';
|
532
|
+
}
|
533
|
+
}
|
534
|
+
|
535
|
+
.nav > .active > a,
|
536
|
+
.nav > .active > a:hover,
|
537
|
+
.nav > .active > a:focus {
|
538
|
+
@include box-shadow(none);
|
539
|
+
color: $navbarGoogleNavLinkColorActive;
|
540
|
+
background-color: $navbarGoogleNavLinkBackgroundActive;
|
541
|
+
}
|
542
|
+
|
543
|
+
.nav > li > a:focus,
|
544
|
+
.nav > li > a:hover {
|
545
|
+
color: $navbarGoogleNavLinkColorHover;
|
546
|
+
text-decoration: underline;
|
547
|
+
background-color: transparent;
|
548
|
+
}
|
549
|
+
|
550
|
+
// Navbar button for toggling navbar items in responsive layouts
|
551
|
+
// These definitions need to come after '.navbar .btn'
|
552
|
+
.btn-navbar {
|
553
|
+
padding: 4px 10px 7px;
|
554
|
+
@include navbarVerticalAlign(26px, $navbarGoogleNavHeight); // Vertically center in navbar
|
555
|
+
@include gradient-vertical(#f5f5f5, #f1f1f1);
|
556
|
+
border: 1px solid #dcdcdc;
|
557
|
+
}
|
558
|
+
|
559
|
+
// Dropdown menus
|
560
|
+
// --------------
|
561
|
+
|
562
|
+
// Menu position and menu carets
|
563
|
+
.nav > li > .dropdown-menu {
|
564
|
+
border-top-width: 0;
|
565
|
+
&:before {
|
566
|
+
display: none;
|
567
|
+
}
|
568
|
+
&:after {
|
569
|
+
display: none;
|
570
|
+
}
|
571
|
+
}
|
572
|
+
|
573
|
+
|
574
|
+
// Dropdowns
|
575
|
+
.nav li.dropdown.open > .dropdown-toggle,
|
576
|
+
.nav li.dropdown.active > .dropdown-toggle,
|
577
|
+
.nav li.dropdown.open.active > .dropdown-toggle {
|
578
|
+
background-color: $navbarGoogleNavLinkBackgroundActive;
|
579
|
+
}
|
580
|
+
|
581
|
+
|
582
|
+
// Brand Dropdowns
|
583
|
+
.nav > li > a.brand:focus,
|
584
|
+
.nav > li > a.brand:hover {
|
585
|
+
color: $navbarGoogleNavBrandColor;
|
586
|
+
text-decoration: none;
|
587
|
+
}
|
588
|
+
|
589
|
+
.nav li.dropdown.open > .brand.dropdown-toggle,
|
590
|
+
.nav li.dropdown.active > .brand.dropdown-toggle,
|
591
|
+
.nav li.dropdown.open.active > .brand.dropdown-toggle {
|
592
|
+
background-color: $navbarGoogleNavLinkBackgroundActive;
|
593
|
+
color: $navbarGoogleNavBrandColor;
|
594
|
+
text-decoration: none;
|
595
|
+
}
|
596
|
+
|
597
|
+
.nav li.dropdown > .brand.dropdown-toggle .caret {
|
598
|
+
border-top-color: $navbarGoogleNavBrandColor;
|
599
|
+
border-bottom-color: $navbarGoogleNavBrandColor;
|
600
|
+
}
|
601
|
+
|
602
|
+
|
603
|
+
// Inverted navbar
|
604
|
+
// -------------------------
|
605
|
+
|
606
|
+
&.navbar-inverse {
|
607
|
+
color: $navbarGoogleNavInverseText;
|
608
|
+
|
609
|
+
.navbar-inner {
|
610
|
+
border-color: $navbarGoogleNavInverseBorder;
|
611
|
+
@include gradient-vertical($navbarGoogleNavInverseBackgroundHighlight, $navbarGoogleNavInverseBackground);
|
612
|
+
background: $navbarGoogleNavInverseBackground;
|
613
|
+
}
|
614
|
+
|
615
|
+
.brand,
|
616
|
+
.nav > li > a {
|
617
|
+
font-weight: normal;
|
618
|
+
color: $navbarGoogleNavInverseLinkColor;
|
619
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
620
|
+
&:hover {
|
621
|
+
color: $navbarGoogleNavInverseLinkColorHover;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
|
625
|
+
.nav > li > a:focus,
|
626
|
+
.nav > li > a:hover {
|
627
|
+
color: $navbarGoogleNavInverseLinkColorHover;
|
628
|
+
background-color: $navbarGoogleNavInverseLinkBackgroundHover;
|
629
|
+
}
|
630
|
+
|
631
|
+
.nav .active > a,
|
632
|
+
.nav .active > a:hover,
|
633
|
+
.nav .active > a:focus {
|
634
|
+
font-weight: bold;
|
635
|
+
color: $navbarGoogleNavInverseLinkColorActive;
|
636
|
+
background-color: $navbarGoogleNavInverseLinkBackgroundActive;
|
637
|
+
}
|
638
|
+
.nav .active > a:hover {
|
639
|
+
text-decoration: underline;
|
640
|
+
}
|
641
|
+
|
642
|
+
// Inline text links
|
643
|
+
.navbar-link {
|
644
|
+
color: $navbarGoogleNavInverseLinkColor;
|
645
|
+
&:hover {
|
646
|
+
color: $navbarGoogleNavInverseLinkColorHover;
|
647
|
+
}
|
648
|
+
}
|
649
|
+
|
650
|
+
// Dividers in navbar
|
651
|
+
.divider-vertical {
|
652
|
+
border-right-color: $navbarGoogleNavInverseBackgroundHighlight;
|
653
|
+
border-left-color: $navbarGoogleNavInverseBackground;
|
654
|
+
}
|
655
|
+
|
656
|
+
// Dropdowns
|
657
|
+
.nav li.dropdown.open > .dropdown-toggle,
|
658
|
+
.nav li.dropdown.active > .dropdown-toggle,
|
659
|
+
.nav li.dropdown.open.active > .dropdown-toggle {
|
660
|
+
color: $navbarGoogleNavInverseLinkColorActive;
|
661
|
+
background-color: $navbarGoogleNavInverseLinkBackgroundActive;
|
662
|
+
}
|
663
|
+
.nav li.dropdown > .dropdown-toggle .caret {
|
664
|
+
border-top-color: $navbarGoogleNavInverseLinkColor;
|
665
|
+
border-bottom-color: $navbarGoogleNavInverseLinkColor;
|
666
|
+
}
|
667
|
+
.nav li.dropdown.open > .dropdown-toggle .caret,
|
668
|
+
.nav li.dropdown.active > .dropdown-toggle .caret,
|
669
|
+
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
670
|
+
border-top-color: $navbarGoogleNavInverseLinkColorActive;
|
671
|
+
border-bottom-color: $navbarGoogleNavInverseLinkColorActive;
|
672
|
+
}
|
673
|
+
|
674
|
+
// Navbar search
|
675
|
+
.navbar-search {
|
676
|
+
.search-query {
|
677
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
|
678
|
+
@include transition(none);
|
679
|
+
@include placeholder($navbarGoogleNavInverseSearchPlaceholderColor);
|
680
|
+
color: $white;
|
681
|
+
background-color: $navbarGoogleNavInverseSearchBackground;
|
682
|
+
border-color: $navbarGoogleNavInverseSearchBorder;
|
683
|
+
|
684
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
685
|
+
&:focus,
|
686
|
+
&.focused {
|
687
|
+
@include box-shadow(0 0 3px rgba(0,0,0,.15));
|
688
|
+
padding: 5px 15px;
|
689
|
+
color: $grayDark;
|
690
|
+
text-shadow: 0 1px 0 $white;
|
691
|
+
background-color: $navbarGoogleNavInverseSearchBackgroundFocus;
|
692
|
+
border: 0;
|
693
|
+
outline: 0;
|
694
|
+
}
|
695
|
+
}
|
696
|
+
}
|
697
|
+
|
698
|
+
// Navbar collapse button
|
699
|
+
.btn-navbar {
|
700
|
+
@include buttonBackground(darken($navbarGoogleNavInverseLinkBackgroundActive, 5%), darken($navbarGoogleNavInverseBackground, 5%));
|
701
|
+
}
|
702
|
+
|
703
|
+
}
|
704
|
+
|
705
|
+
}
|
706
|
+
|
707
|
+
|
708
|
+
// Fixed navbar
|
709
|
+
// -------------------------
|
710
|
+
|
711
|
+
// Shared (top/bottom) styles
|
712
|
+
.navbar-fixed-top .navbar-inner,
|
713
|
+
.navbar-static-top .navbar-inner {
|
714
|
+
border-width: 0 0 1px;
|
715
|
+
}
|
716
|
+
.navbar-fixed-bottom .navbar-inner {
|
717
|
+
border-width: 1px 0 0;
|
718
|
+
}
|