zurb-foundation 3.2.5 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -2
- data/CHANGELOG.md +1 -26
- data/CONTRIBUTING.md +18 -0
- data/Gemfile.lock +19 -0
- data/Gruntfile.js +27 -0
- data/README.md +5 -6
- data/{Capfile → docs/Capfile} +0 -1
- data/docs/Gemfile +8 -0
- data/docs/Gemfile.lock +43 -0
- data/docs/Procfile +2 -0
- data/docs/README.md +1 -0
- data/docs/_sidebar-components.html.erb +109 -0
- data/docs/_sidebar.html.erb +109 -0
- data/docs/_zurb-jobs.html.erb +5 -0
- data/docs/changelog.html.erb +185 -0
- data/docs/compile.rb +43 -0
- data/docs/components/alert-boxes.html.erb +202 -0
- data/docs/components/block-grid.html.erb +118 -0
- data/docs/components/breadcrumbs.html.erb +146 -0
- data/docs/components/button-groups.html.erb +174 -0
- data/docs/components/buttons.html.erb +220 -0
- data/docs/components/clearing.html.erb +152 -0
- data/docs/components/custom-forms.html.erb +306 -0
- data/docs/components/dropdown-buttons.html.erb +233 -0
- data/docs/components/dropdown.html.erb +186 -0
- data/docs/components/flex-video.html.erb +93 -0
- data/docs/components/forms.html.erb +468 -0
- data/docs/components/grid.html.erb +355 -0
- data/docs/components/inline-lists.html.erb +89 -0
- data/docs/components/joyride.html.erb +178 -0
- data/docs/components/keystrokes.html.erb +74 -0
- data/docs/components/labels.html.erb +98 -0
- data/docs/components/magellan.html.erb +84 -0
- data/docs/components/orbit.html.erb +262 -0
- data/docs/components/pagination.html.erb +181 -0
- data/docs/components/panels.html.erb +121 -0
- data/docs/components/pricing-tables.html.erb +154 -0
- data/docs/components/progress-bars.html.erb +120 -0
- data/docs/components/reveal.html.erb +147 -0
- data/docs/components/section.html.erb +156 -0
- data/docs/components/side-nav.html.erb +122 -0
- data/docs/components/split-buttons.html.erb +218 -0
- data/docs/components/sub-nav.html.erb +120 -0
- data/docs/components/switch.html.erb +288 -0
- data/docs/components/tables.html.erb +123 -0
- data/docs/components/thumbnails.html.erb +87 -0
- data/docs/components/tooltips.html.erb +73 -0
- data/docs/components/top-bar.html.erb +219 -0
- data/docs/components/type.html.erb +359 -0
- data/docs/components/visibility.html.erb +102 -0
- data/docs/config.ru +12 -0
- data/docs/config/deploy.rb +33 -0
- data/docs/controller.rb +43 -0
- data/docs/css/_coderay.scss +116 -0
- data/docs/css/_settings.scss +1 -0
- data/docs/css/docs.scss +174 -0
- data/docs/css/normalize.scss +396 -0
- data/docs/css/qunit-composite.css +13 -0
- data/docs/css/qunit.css +235 -0
- data/docs/faq.html.erb +61 -0
- data/docs/img/demos/demo1-th.png +0 -0
- data/docs/img/demos/demo1.png +0 -0
- data/docs/img/demos/demo2-th.png +0 -0
- data/docs/img/demos/demo2.png +0 -0
- data/docs/img/demos/demo3-th.png +0 -0
- data/docs/img/demos/demo3.png +0 -0
- data/docs/img/demos/demo4-th.png +0 -0
- data/docs/img/demos/demo4.png +0 -0
- data/docs/img/demos/demo5-th.png +0 -0
- data/docs/img/demos/demo5.png +0 -0
- data/docs/index.html.erb +299 -0
- data/docs/javascript.html.erb +133 -0
- data/docs/js/docs.js +3 -0
- data/docs/js/qunit-composite.js +105 -0
- data/docs/js/qunit.js +1977 -0
- data/docs/js/tests/tabs/simple_tabs.html +57 -0
- data/docs/js/tests/tabs/simple_tabs.js +54 -0
- data/docs/js/tests/tooltips/tooltips.html +39 -0
- data/docs/js/tests/tooltips/tooltips.js +11 -0
- data/docs/layout.html.erb +99 -0
- data/docs/rails.html.erb +66 -0
- data/docs/sass.html.erb +299 -0
- data/docs/support.html.erb +134 -0
- data/foundation.gemspec +2 -4
- data/index.html +3 -23
- data/js/foundation/foundation.alerts.js +50 -0
- data/js/foundation/foundation.clearing.js +478 -0
- data/{vendor/assets/javascripts/foundation/jquery.cookie.js → js/foundation/foundation.cookie.js} +3 -1
- data/js/foundation/foundation.dropdown.js +122 -0
- data/js/foundation/foundation.forms.js +403 -0
- data/js/foundation/foundation.joyride.js +613 -0
- data/js/foundation/foundation.js +331 -0
- data/js/foundation/foundation.magellan.js +130 -0
- data/js/foundation/foundation.orbit.js +355 -0
- data/{vendor/assets/javascripts/foundation/jquery.placeholder.js → js/foundation/foundation.placeholder.js} +4 -2
- data/js/foundation/foundation.reveal.js +264 -0
- data/js/foundation/foundation.section.js +180 -0
- data/js/foundation/foundation.tooltips.js +195 -0
- data/js/foundation/foundation.topbar.js +187 -0
- data/js/foundation/index.js +16 -0
- data/{vendor/assets/javascripts/foundation/modernizr.foundation.js → js/vendor/custom.modernizr.js} +0 -0
- data/js/vendor/jquery.js +9597 -0
- data/js/vendor/zepto.js +1782 -0
- data/lib/foundation/engine.rb +8 -1
- data/lib/foundation/generators/install_generator.rb +24 -1
- data/lib/foundation/generators/templates/application.html.erb +20 -6
- data/lib/foundation/generators/templates/application.html.haml +2 -6
- data/lib/foundation/generators/templates/application.html.slim +2 -5
- data/lib/foundation/version.rb +1 -1
- data/lib/zurb-foundation.rb +7 -9
- data/package.json +9 -0
- data/scss/foundation.scss +42 -15
- data/scss/foundation/_foundation-global.scss +226 -0
- data/scss/foundation/components/_alert-boxes.scss +106 -0
- data/scss/foundation/components/_block-grid.scss +63 -0
- data/scss/foundation/components/_breadcrumbs.scss +117 -0
- data/scss/foundation/components/_button-groups.scss +59 -0
- data/scss/foundation/components/_buttons.scss +217 -0
- data/scss/foundation/components/_clearing.scss +209 -0
- data/scss/foundation/components/_custom-forms.scss +232 -0
- data/scss/foundation/components/_dropdown-buttons.scss +114 -0
- data/scss/foundation/components/_dropdown.scss +137 -0
- data/scss/foundation/components/_flex-video.scss +45 -0
- data/scss/foundation/components/_forms.scss +309 -0
- data/scss/foundation/components/_grid.scss +149 -71
- data/scss/foundation/components/_inline-lists.scss +47 -0
- data/scss/foundation/components/_joyride.scss +193 -0
- data/scss/foundation/components/_keystrokes.scss +56 -0
- data/scss/foundation/components/_labels.scss +81 -0
- data/scss/foundation/components/_magellan.scss +15 -0
- data/scss/foundation/components/_orbit.scss +193 -0
- data/scss/foundation/components/_pagination.scss +99 -0
- data/scss/foundation/components/_panels.scss +76 -0
- data/scss/foundation/components/_pricing-tables.scss +130 -0
- data/scss/foundation/components/_progress-bars.scss +68 -0
- data/scss/foundation/components/_reveal.scss +131 -0
- data/scss/foundation/components/_section.scss +194 -0
- data/scss/foundation/components/_side-nav.scss +68 -0
- data/scss/foundation/components/_split-buttons.scss +159 -0
- data/scss/foundation/components/_sub-nav.scss +67 -0
- data/scss/foundation/components/_switch.scss +242 -0
- data/scss/foundation/components/_tables.scss +80 -0
- data/scss/foundation/components/_thumbs.scss +45 -0
- data/scss/foundation/components/_tooltips.scss +113 -0
- data/scss/foundation/components/_top-bar.scss +443 -0
- data/scss/foundation/components/_type.scss +411 -0
- data/scss/foundation/components/_visibility.scss +117 -0
- data/scss/normalize.scss +396 -0
- data/templates/project/config.rb +26 -0
- data/templates/project/index.html +28 -43
- data/templates/project/manifest.rb +21 -28
- data/templates/project/scss/_settings.scss +4 -243
- data/templates/project/scss/app.scss +37 -44
- data/templates/project/scss/normalize.scss +396 -0
- data/test/stylesheets/styles.css +955 -0
- metadata +144 -153
- data/config/deploy.rb +0 -42
- data/lib/foundation/generators/layout_generator.rb +0 -28
- data/scss/foundation/_settings.scss +0 -281
- data/scss/foundation/common/_base.scss +0 -4
- data/scss/foundation/common/_forms.scss +0 -117
- data/scss/foundation/common/_globals.scss +0 -35
- data/scss/foundation/common/_ratios.scss +0 -19
- data/scss/foundation/common/_typography.scss +0 -104
- data/scss/foundation/components/modules/_all.scss +0 -10
- data/scss/foundation/components/modules/_buttons.scss +0 -178
- data/scss/foundation/components/modules/_clearing.scss +0 -61
- data/scss/foundation/components/modules/_joyride.scss +0 -33
- data/scss/foundation/components/modules/_mqueries.scss +0 -458
- data/scss/foundation/components/modules/_navbar.scss +0 -74
- data/scss/foundation/components/modules/_offcanvas.scss +0 -55
- data/scss/foundation/components/modules/_orbit.scss +0 -90
- data/scss/foundation/components/modules/_reveal.scss +0 -34
- data/scss/foundation/components/modules/_tabs.scss +0 -67
- data/scss/foundation/components/modules/_topbar.scss +0 -167
- data/scss/foundation/components/modules/_ui.scss +0 -292
- data/scss/foundation/functions/_all.scss +0 -2
- data/scss/foundation/functions/_convert-number-to-word.scss +0 -10
- data/scss/foundation/functions/_grid-calc.scss +0 -5
- data/scss/foundation/functions/modular-scale.scss +0 -3
- data/scss/foundation/mixins/_all.scss +0 -5
- data/scss/foundation/mixins/_clearfix.scss +0 -13
- data/scss/foundation/mixins/_css-triangle.scss +0 -22
- data/scss/foundation/mixins/_font-size.scss +0 -13
- data/scss/foundation/mixins/_respond-to.scss +0 -11
- data/scss/foundation/mixins/_semantic-grid.scss +0 -66
- data/test/buttons.html +0 -189
- data/test/clearing.html +0 -85
- data/test/config.rb +0 -11
- data/test/elements.html +0 -490
- data/test/forms.html +0 -371
- data/test/grid.html +0 -543
- data/test/images/orbit-demo/demo1.jpeg +0 -0
- data/test/images/orbit-demo/demo2.jpeg +0 -0
- data/test/images/orbit-demo/demo3.jpeg +0 -0
- data/test/images/orbit-demo/slider-background.jpeg +0 -0
- data/test/index.html +0 -83
- data/test/joyride.html +0 -127
- data/test/magellan.html +0 -112
- data/test/navigation.html +0 -269
- data/test/orbit.html +0 -112
- data/test/reveal.html +0 -91
- data/test/scss/_settings.scss +0 -245
- data/test/scss/styles.scss +0 -50
- data/test/tabs.html +0 -197
- data/test/template.html +0 -52
- data/test/topbar-login.html +0 -194
- data/test/topbar.html +0 -139
- data/test/type.html +0 -188
- data/vendor/assets/images/foundation/orbit/bullets.jpg +0 -0
- data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
- data/vendor/assets/images/foundation/orbit/left-arrow.png +0 -0
- data/vendor/assets/images/foundation/orbit/loading.gif +0 -0
- data/vendor/assets/images/foundation/orbit/mask-black.png +0 -0
- data/vendor/assets/images/foundation/orbit/pause-black.png +0 -0
- data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
- data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
- data/vendor/assets/images/foundation/orbit/rotator-black.png +0 -0
- data/vendor/assets/images/foundation/orbit/timer-black.png +0 -0
- data/vendor/assets/javascripts/foundation/app.js +0 -41
- data/vendor/assets/javascripts/foundation/index.js +0 -19
- data/vendor/assets/javascripts/foundation/jquery.event.move.js +0 -580
- data/vendor/assets/javascripts/foundation/jquery.event.swipe.js +0 -130
- data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +0 -47
- data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +0 -20
- data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +0 -83
- data/vendor/assets/javascripts/foundation/jquery.foundation.clearing.js +0 -413
- data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +0 -502
- data/vendor/assets/javascripts/foundation/jquery.foundation.joyride.js +0 -639
- data/vendor/assets/javascripts/foundation/jquery.foundation.magellan.js +0 -96
- data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +0 -27
- data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +0 -55
- data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +0 -919
- data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +0 -794
- data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +0 -66
- data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +0 -211
- data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +0 -174
- data/vendor/assets/javascripts/foundation/jquery.js +0 -9555
- data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +0 -50
@@ -0,0 +1,80 @@
|
|
1
|
+
//
|
2
|
+
// Table Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// These control the background color for the table and even rows
|
6
|
+
$table-bg: #fff !default;
|
7
|
+
$table-even-row-bg: #f9f9f9 !default;
|
8
|
+
|
9
|
+
// These control the table cell border style
|
10
|
+
$table-border-style: solid !default;
|
11
|
+
$table-border-size: 1px !default;
|
12
|
+
$table-border-color: #ddd !default;
|
13
|
+
|
14
|
+
// These control the table head styles
|
15
|
+
$table-head-bg: #f5f5f5 !default;
|
16
|
+
$table-head-font-size: emCalc(14px) !default;
|
17
|
+
$table-head-font-color: #222 !default;
|
18
|
+
$table-head-font-weight: bold !default;
|
19
|
+
$table-head-padding: emCalc(8px) emCalc(10px) emCalc(10px) !default;
|
20
|
+
|
21
|
+
// These control the row padding and font styles
|
22
|
+
$table-row-padding: emCalc(9px) emCalc(10px) !default;
|
23
|
+
$table-row-font-size: emCalc(14px) !default;
|
24
|
+
$table-row-font-color: #222 !default;
|
25
|
+
$table-line-height: emCalc(18px) !default;
|
26
|
+
|
27
|
+
// These are for controlling the display and margin of tables
|
28
|
+
$table-display: table-cell !default;
|
29
|
+
$table-margin-bottom: emCalc(20px) !default;
|
30
|
+
|
31
|
+
|
32
|
+
//
|
33
|
+
// Table Mixin
|
34
|
+
//
|
35
|
+
@mixin table {
|
36
|
+
background: $table-bg;
|
37
|
+
margin-bottom: $table-margin-bottom;
|
38
|
+
border: $table-border-style $table-border-size $table-border-color;
|
39
|
+
|
40
|
+
thead,
|
41
|
+
tfoot {
|
42
|
+
background: $table-head-bg;
|
43
|
+
font-weight: $table-head-font-weight;
|
44
|
+
|
45
|
+
tr {
|
46
|
+
th,
|
47
|
+
td {
|
48
|
+
padding: $table-head-padding;
|
49
|
+
font-size: $table-head-font-size;
|
50
|
+
color: $table-head-font-color;
|
51
|
+
text-align: left;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
tr {
|
57
|
+
th,
|
58
|
+
td {
|
59
|
+
padding: $table-row-padding;
|
60
|
+
font-size: $table-row-font-size;
|
61
|
+
color: $table-row-font-color;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.even,
|
65
|
+
&.alt,
|
66
|
+
&:nth-of-type(even) { background: $table-even-row-bg; }
|
67
|
+
}
|
68
|
+
|
69
|
+
thead tr th,
|
70
|
+
tfoot tr th,
|
71
|
+
tbody tr td,
|
72
|
+
tr td,
|
73
|
+
tfoot tr td { display: $table-display; line-height: $table-line-height; }
|
74
|
+
}
|
75
|
+
|
76
|
+
|
77
|
+
/* Tables */
|
78
|
+
table {
|
79
|
+
@include table;
|
80
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
//
|
2
|
+
// Image Thumbnail Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use these to control border styles
|
6
|
+
$thumb-border-style: solid !default;
|
7
|
+
$thumb-border-width: 4px !default;
|
8
|
+
$thumb-border-color: #fff !default;
|
9
|
+
$thumb-box-shadow: 0 0 0 1px rgba(#000,.2) !default;
|
10
|
+
$thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5) !default;
|
11
|
+
|
12
|
+
// Radius and transition speed for thumbs
|
13
|
+
$thumb-radius: $global-radius !default;
|
14
|
+
$thumb-transition-speed: 200ms !default;
|
15
|
+
|
16
|
+
//
|
17
|
+
// Image Thumbnail Mixins
|
18
|
+
//
|
19
|
+
|
20
|
+
// We use this to create image thumbnail styles.
|
21
|
+
@mixin thumb($border-width:$thumb-border-width, $box-shadow:$thumb-box-shadow, $box-shadow-hover:$thumb-box-shadow-hover) {
|
22
|
+
display: inline-block;
|
23
|
+
border: $thumb-border-style $border-width $thumb-border-color;
|
24
|
+
-webkit-box-shadow: $box-shadow;
|
25
|
+
box-shadow: $box-shadow;
|
26
|
+
|
27
|
+
&:hover,
|
28
|
+
&:focus { -webkit-box-shadow: $box-shadow-hover; box-shadow: $box-shadow-hover; }
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
// If html classes are turned on we'll include these classes.
|
33
|
+
@if $include-html-classes {
|
34
|
+
|
35
|
+
/* Image Thumbnails */
|
36
|
+
.th {
|
37
|
+
@include thumb;
|
38
|
+
@include single-transition(all,$thumb-transition-speed,ease-out);
|
39
|
+
|
40
|
+
&.radius { @include radius($thumb-radius); }
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
|
@@ -0,0 +1,113 @@
|
|
1
|
+
//
|
2
|
+
// Tooltip Variables
|
3
|
+
//
|
4
|
+
$has-tip-border-bottom: dotted 1px #ccc !default;
|
5
|
+
$has-tip-font-weight: bold !default;
|
6
|
+
$has-tip-font-color: #333 !default;
|
7
|
+
$has-tip-border-bottom-hover: dotted 1px darken($primary-color, 20%) !default;
|
8
|
+
$has-tip-font-color-hover: $primary-color !default;
|
9
|
+
$has-tip-cursor-type: help !default;
|
10
|
+
|
11
|
+
$tooltip-padding: emCalc(8px) !default;
|
12
|
+
$tooltip-bg: #000 !default;
|
13
|
+
$tooltip-font-size: emCalc(15px) !default;
|
14
|
+
$tooltip-font-weight: bold !default;
|
15
|
+
$tooltip-font-color: #fff !default;
|
16
|
+
$tooltip-line-height: 1.3 !default;
|
17
|
+
$tooltip-close-font-size: emCalc(10px) !default;
|
18
|
+
$tooltip-close-font-weight: normal !default;
|
19
|
+
$tooltip-close-font-color: #888 !default;
|
20
|
+
$tooltip-font-size-sml: emCalc(14px) !default;
|
21
|
+
$tooltip-radius: $global-radius !default;
|
22
|
+
$tooltip-pip-size: 5px !default;
|
23
|
+
|
24
|
+
|
25
|
+
/* Tooltips */
|
26
|
+
|
27
|
+
.has-tip {
|
28
|
+
border-bottom: $has-tip-border-bottom;
|
29
|
+
cursor: $has-tip-cursor-type;
|
30
|
+
font-weight: $has-tip-font-weight;
|
31
|
+
color: $has-tip-font-color;
|
32
|
+
|
33
|
+
&:hover,
|
34
|
+
&:focus {
|
35
|
+
border-bottom: $has-tip-border-bottom-hover;
|
36
|
+
color: $has-tip-font-color-hover;
|
37
|
+
}
|
38
|
+
|
39
|
+
&.tip-left,
|
40
|
+
&.tip-right { float: none !important; }
|
41
|
+
}
|
42
|
+
|
43
|
+
.tooltip {
|
44
|
+
display: none;
|
45
|
+
position: absolute;
|
46
|
+
z-index: 999;
|
47
|
+
font-weight: $tooltip-font-weight;
|
48
|
+
font-size: $tooltip-font-size;
|
49
|
+
line-height: $tooltip-line-height;
|
50
|
+
padding: $tooltip-padding;
|
51
|
+
max-width: 85%;
|
52
|
+
left: 50%;
|
53
|
+
width: 100%;
|
54
|
+
color: $tooltip-font-color;
|
55
|
+
background: $tooltip-bg;
|
56
|
+
|
57
|
+
&>.nub {
|
58
|
+
display: block;
|
59
|
+
position: absolute;
|
60
|
+
width: 0;
|
61
|
+
height: 0;
|
62
|
+
border: solid $tooltip-pip-size;
|
63
|
+
border-color: transparent transparent $tooltip-bg transparent;
|
64
|
+
top: -($tooltip-pip-size * 2);
|
65
|
+
}
|
66
|
+
|
67
|
+
&.opened {
|
68
|
+
color: $has-tip-font-color-hover !important;
|
69
|
+
border-bottom: $has-tip-border-bottom-hover !important;
|
70
|
+
}
|
71
|
+
|
72
|
+
&.radius{ @include radius($tooltip-radius); }
|
73
|
+
}
|
74
|
+
|
75
|
+
.tap-to-close {
|
76
|
+
display: block;
|
77
|
+
font-size: $tooltip-close-font-size;
|
78
|
+
color: $tooltip-close-font-color;
|
79
|
+
font-weight: $tooltip-close-font-weight;
|
80
|
+
}
|
81
|
+
|
82
|
+
@media #{$small} {
|
83
|
+
.tooltip {
|
84
|
+
&>.nub {
|
85
|
+
border-color: transparent transparent $tooltip-bg transparent;
|
86
|
+
top: -($tooltip-pip-size * 2);
|
87
|
+
}
|
88
|
+
&.tip-top>.nub {
|
89
|
+
border-color: $tooltip-bg transparent transparent transparent;
|
90
|
+
top: auto;
|
91
|
+
bottom: -($tooltip-pip-size * 2);
|
92
|
+
}
|
93
|
+
|
94
|
+
&.tip-left,
|
95
|
+
&.tip-right { float: none !important; }
|
96
|
+
|
97
|
+
&.tip-left>.nub {
|
98
|
+
border-color: transparent transparent transparent $tooltip-bg;
|
99
|
+
right: -($tooltip-pip-size * 2);
|
100
|
+
left: auto;
|
101
|
+
top: 50%;
|
102
|
+
margin-top: -$tooltip-pip-size;
|
103
|
+
}
|
104
|
+
&.tip-right>.nub {
|
105
|
+
border-color: transparent $tooltip-bg transparent transparent;
|
106
|
+
right: auto;
|
107
|
+
left: -($tooltip-pip-size * 2);
|
108
|
+
top: 50%;
|
109
|
+
margin-top: -$tooltip-pip-size;
|
110
|
+
}
|
111
|
+
|
112
|
+
}
|
113
|
+
}
|
@@ -0,0 +1,443 @@
|
|
1
|
+
//
|
2
|
+
// Top Bar Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// Background color for the top bar
|
6
|
+
$topbar-bg: #111 !default;
|
7
|
+
|
8
|
+
// Height and margin
|
9
|
+
$topbar-height: 45px !default;
|
10
|
+
$topbar-margin-bottom: emCalc(30px) !default;
|
11
|
+
|
12
|
+
// Control Input height for top bar
|
13
|
+
$topbar-input-height: 2.45em !default;
|
14
|
+
|
15
|
+
// Controlling the styles for the title in the top bar
|
16
|
+
$topbar-title-weight: bold !default;
|
17
|
+
$topbar-title-font-size: emCalc(17px) !default;
|
18
|
+
|
19
|
+
// Set the link colors and styles for top-level nav
|
20
|
+
$topbar-link-color: #fff !default;
|
21
|
+
$topbar-link-weight: bold !default;
|
22
|
+
$topbar-link-font-size: emCalc(13px) !default;
|
23
|
+
|
24
|
+
// Style the top bar dropdown elements
|
25
|
+
$topbar-dropdown-bg: #333 !default;
|
26
|
+
$topbar-dropdown-link-color: #fff !default;
|
27
|
+
$topbar-dropdown-toggle-size: 5px !default;
|
28
|
+
$topbar-dropdown-toggle-color: #fff !default;
|
29
|
+
$topbar-dropdown-toggle-alpha: 0.5 !default;
|
30
|
+
|
31
|
+
// Top menu icon styles
|
32
|
+
$topbar-menu-link-transform: uppercase !default;
|
33
|
+
$topbar-menu-link-font-size: emCalc(13px) !default;
|
34
|
+
$topbar-menu-link-weight: bold !default;
|
35
|
+
$topbar-menu-link-color: #fff !default;
|
36
|
+
$topbar-menu-icon-color: #fff !default;
|
37
|
+
$topbar-menu-link-color-toggled: #888 !default;
|
38
|
+
$topbar-menu-icon-color-toggled: #888 !default;
|
39
|
+
|
40
|
+
// Transitions and breakpoint styles
|
41
|
+
$topbar-transition-speed: 300ms !default;
|
42
|
+
$topbar-breakpoint: emCalc(940px) !default; // Change to 9999px for always mobile layout
|
43
|
+
$topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !default;
|
44
|
+
|
45
|
+
|
46
|
+
/* Wrapped around .top-bar to contain to grid width */
|
47
|
+
.contain-to-grid {
|
48
|
+
width: 100%;
|
49
|
+
background: $topbar-bg;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Wrapped around .top-bar to make it fixed at the top
|
53
|
+
.fixed {
|
54
|
+
width: 100%;
|
55
|
+
#{$default-float}: 0;
|
56
|
+
position: fixed;
|
57
|
+
top: 0;
|
58
|
+
z-index: 99;
|
59
|
+
}
|
60
|
+
|
61
|
+
.top-bar {
|
62
|
+
overflow: hidden;
|
63
|
+
height: $topbar-height;
|
64
|
+
line-height: $topbar-height;
|
65
|
+
position: relative;
|
66
|
+
background: $topbar-bg;
|
67
|
+
|
68
|
+
// Topbar Global list Styles
|
69
|
+
ul {
|
70
|
+
margin-bottom: 0;
|
71
|
+
list-style: none;
|
72
|
+
}
|
73
|
+
|
74
|
+
.row { max-width: none; }
|
75
|
+
|
76
|
+
form,
|
77
|
+
input { margin-bottom: 0; }
|
78
|
+
|
79
|
+
input { height: $topbar-input-height; }
|
80
|
+
|
81
|
+
.button { padding-top: .5em; padding-bottom: .5em; margin-bottom: 0; }
|
82
|
+
|
83
|
+
// Title Area
|
84
|
+
.title-area { position: relative; }
|
85
|
+
|
86
|
+
.name {
|
87
|
+
height: $topbar-height;
|
88
|
+
margin: 0;
|
89
|
+
font-size: $em-base;
|
90
|
+
|
91
|
+
h1 {
|
92
|
+
line-height: $topbar-height;
|
93
|
+
font-size: $topbar-title-font-size;
|
94
|
+
margin: 0;
|
95
|
+
a {
|
96
|
+
font-weight: $topbar-title-weight;
|
97
|
+
color: $topbar-link-color;
|
98
|
+
width: 50%;
|
99
|
+
display: block;
|
100
|
+
padding: 0 $topbar-height / 3;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
// Menu toggle button on small devices
|
106
|
+
.toggle-topbar {
|
107
|
+
position: absolute;
|
108
|
+
right: 0;
|
109
|
+
top: 0;
|
110
|
+
|
111
|
+
a {
|
112
|
+
color: $topbar-link-color;
|
113
|
+
text-transform: $topbar-menu-link-transform;
|
114
|
+
font-size: $topbar-menu-link-font-size;
|
115
|
+
font-weight: $topbar-menu-link-weight;
|
116
|
+
position: relative;
|
117
|
+
display: block;
|
118
|
+
padding: 0 $topbar-height / 3;
|
119
|
+
height: $topbar-height;
|
120
|
+
line-height: $topbar-height;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Adding the class "menu-icon" will add the 3-line icon people love and adore.
|
124
|
+
&.menu-icon {
|
125
|
+
right: $topbar-height / 3;
|
126
|
+
top: 50%;
|
127
|
+
margin-top: -16px;
|
128
|
+
padding-left: 40px;
|
129
|
+
|
130
|
+
a {
|
131
|
+
text-indent: -48px;
|
132
|
+
width: 34px;
|
133
|
+
height: 34px;
|
134
|
+
line-height: 33px;
|
135
|
+
padding: 0;
|
136
|
+
color: $topbar-menu-link-color;
|
137
|
+
|
138
|
+
span {
|
139
|
+
position: absolute;
|
140
|
+
right: 0;
|
141
|
+
display: block;
|
142
|
+
width: 16px;
|
143
|
+
height: 0;
|
144
|
+
// Shh, don't tell, but box-shadows create the menu icon :)
|
145
|
+
-webkit-box-shadow: 0 10px 0 1px $topbar-menu-icon-color,
|
146
|
+
0 16px 0 1px $topbar-menu-icon-color,
|
147
|
+
0 22px 0 1px $topbar-menu-icon-color;
|
148
|
+
|
149
|
+
box-shadow: 0 10px 0 1px $topbar-menu-icon-color,
|
150
|
+
0 16px 0 1px $topbar-menu-icon-color,
|
151
|
+
0 22px 0 1px $topbar-menu-icon-color;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// Change things up when the top-bar is expanded
|
158
|
+
&.expanded {
|
159
|
+
height: auto;
|
160
|
+
background: transparent;
|
161
|
+
|
162
|
+
.title-area { background: $topbar-bg; }
|
163
|
+
|
164
|
+
.toggle-topbar {
|
165
|
+
a { color: $topbar-menu-link-color-toggled;
|
166
|
+
span {
|
167
|
+
// Shh, don't tell, but box-shadows create the menu icon :)
|
168
|
+
-webkit-box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled,
|
169
|
+
0 16px 0 1px $topbar-menu-icon-color-toggled,
|
170
|
+
0 22px 0 1px $topbar-menu-icon-color-toggled;
|
171
|
+
|
172
|
+
box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled,
|
173
|
+
0 16px 0 1px $topbar-menu-icon-color-toggled,
|
174
|
+
0 22px 0 1px $topbar-menu-icon-color-toggled;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
}
|
181
|
+
|
182
|
+
// Right and Left Navigation that stacked by default
|
183
|
+
.top-bar-section {
|
184
|
+
#{$default-float}: 0;
|
185
|
+
position: relative;
|
186
|
+
width: auto;
|
187
|
+
@include single-transition($default-float, $topbar-transition-speed);
|
188
|
+
|
189
|
+
ul {
|
190
|
+
width: 100%;
|
191
|
+
height: auto;
|
192
|
+
display: block;
|
193
|
+
background: $topbar-dropdown-bg;
|
194
|
+
font-size: $em-base;
|
195
|
+
margin: 0;
|
196
|
+
}
|
197
|
+
|
198
|
+
.divider {
|
199
|
+
border-bottom: solid 1px lighten($topbar-dropdown-bg, 10%);
|
200
|
+
border-top: solid 1px darken($topbar-dropdown-bg, 10%);
|
201
|
+
clear: both;
|
202
|
+
height: 1px;
|
203
|
+
width: 100%;
|
204
|
+
}
|
205
|
+
|
206
|
+
li {
|
207
|
+
& > a {
|
208
|
+
display: block;
|
209
|
+
width: 100%;
|
210
|
+
padding: 12px 0 12px $topbar-height / 3;
|
211
|
+
color: #fff;
|
212
|
+
font-size: emCalc(13px);
|
213
|
+
font-weight: bold;
|
214
|
+
background: $topbar-dropdown-bg;
|
215
|
+
|
216
|
+
&:hover { background: darken($topbar-dropdown-bg, 3%); }
|
217
|
+
|
218
|
+
|
219
|
+
&.button {
|
220
|
+
background: $primary-color;
|
221
|
+
font-size: emCalc(13px);
|
222
|
+
&:hover {
|
223
|
+
background: darken($primary-color, 10%);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
&.button.secondary {
|
227
|
+
background: $secondary-color;
|
228
|
+
&:hover {
|
229
|
+
background: darken($secondary-color, 10%);
|
230
|
+
}
|
231
|
+
}
|
232
|
+
&.button.success {
|
233
|
+
background: $success-color;
|
234
|
+
&:hover {
|
235
|
+
background: darken($success-color, 10%);
|
236
|
+
}
|
237
|
+
}
|
238
|
+
&.button.alert {
|
239
|
+
background: $alert-color;
|
240
|
+
&:hover {
|
241
|
+
background: darken($alert-color, 10%);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
// Apply the active link color when it has that class
|
248
|
+
&.active a { background: darken($topbar-dropdown-bg, 3%); }
|
249
|
+
}
|
250
|
+
|
251
|
+
// Add some extra padding for list items contains buttons
|
252
|
+
.has-form { padding: $topbar-height / 3; }
|
253
|
+
|
254
|
+
// Styling for list items that have a dropdown within them.
|
255
|
+
.has-dropdown {
|
256
|
+
position: relative;
|
257
|
+
|
258
|
+
& > a {
|
259
|
+
&:after {
|
260
|
+
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
|
261
|
+
margin-#{$default-opposite}: $topbar-height / 3;
|
262
|
+
margin-top: -($topbar-dropdown-toggle-size / 2) - 2;
|
263
|
+
position: absolute;
|
264
|
+
top: 50%;
|
265
|
+
right: 0;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
&.moved { position: static;
|
270
|
+
& > .dropdown {
|
271
|
+
visibility: visible;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
// Styling elements inside of dropdowns
|
277
|
+
.dropdown {
|
278
|
+
position: absolute;
|
279
|
+
#{$default-float}: 100%;
|
280
|
+
top: 0;
|
281
|
+
visibility: hidden;
|
282
|
+
z-index: 99;
|
283
|
+
|
284
|
+
li { width: 100%;
|
285
|
+
a {
|
286
|
+
font-weight: normal;
|
287
|
+
padding: 8px $topbar-height / 3;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
label {
|
292
|
+
padding: 8px $topbar-height / 3 2px;
|
293
|
+
margin-bottom: 0;
|
294
|
+
text-transform: uppercase;
|
295
|
+
color: #555;
|
296
|
+
font-weight: bold;
|
297
|
+
font-size: emCalc(10px);
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
// Element that controls breakpoint, no need to change this ever
|
303
|
+
.top-bar-js-breakpoint {
|
304
|
+
width: $topbar-breakpoint !important;
|
305
|
+
visibility: hidden;
|
306
|
+
}
|
307
|
+
.js-generated { display: block; }
|
308
|
+
|
309
|
+
|
310
|
+
// Top Bar styles intended for screen sizes above the breakpoint.
|
311
|
+
@media #{$topbar-media-query} {
|
312
|
+
.top-bar { background: $topbar-bg; @include clearfix; overflow: visible;
|
313
|
+
.toggle-topbar { display: none; }
|
314
|
+
|
315
|
+
.title-area { float: left; }
|
316
|
+
.name h1 a { width: auto; }
|
317
|
+
|
318
|
+
input,
|
319
|
+
.button {
|
320
|
+
line-height: 2em;
|
321
|
+
font-size: emCalc(14px);
|
322
|
+
height: 2em;
|
323
|
+
padding: 0 10px;
|
324
|
+
position: relative;
|
325
|
+
top: 8px;
|
326
|
+
}
|
327
|
+
|
328
|
+
&.expanded { background: $topbar-bg; }
|
329
|
+
}
|
330
|
+
|
331
|
+
.top-bar-section {
|
332
|
+
@include single-transition(none,0,0);
|
333
|
+
#{$default-float}: 0 !important;
|
334
|
+
|
335
|
+
ul {
|
336
|
+
width: auto;
|
337
|
+
height: auto !important;
|
338
|
+
display: inline;
|
339
|
+
|
340
|
+
li {
|
341
|
+
float: left;
|
342
|
+
.js-generated { display: none; }
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
li {
|
347
|
+
a:not(.button) {
|
348
|
+
padding: 0 $topbar-height / 3;
|
349
|
+
line-height: $topbar-height;
|
350
|
+
background: $topbar-bg;
|
351
|
+
&:hover { background: darken($topbar-dropdown-bg, 3%); }
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
.has-dropdown {
|
356
|
+
& > a {
|
357
|
+
padding-#{$default-opposite}: $topbar-dropdown-toggle-size * 7 !important;
|
358
|
+
|
359
|
+
&:after {
|
360
|
+
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
|
361
|
+
margin-top: -($topbar-dropdown-toggle-size / 2);
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
&.moved { position: relative;
|
366
|
+
& > .dropdown { visibility: hidden; }
|
367
|
+
}
|
368
|
+
|
369
|
+
&:hover,
|
370
|
+
&:active {
|
371
|
+
& > .dropdown {
|
372
|
+
visibility: visible;
|
373
|
+
}
|
374
|
+
}
|
375
|
+
|
376
|
+
.dropdown li.has-dropdown {
|
377
|
+
& > a {
|
378
|
+
&:after {
|
379
|
+
border: none;
|
380
|
+
content: "\00bb";
|
381
|
+
margin-top: -7px;
|
382
|
+
right: 5px;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
}
|
388
|
+
|
389
|
+
.dropdown {
|
390
|
+
left: 0;
|
391
|
+
top: auto;
|
392
|
+
background: transparent;
|
393
|
+
|
394
|
+
li {
|
395
|
+
a {
|
396
|
+
line-height: 1;
|
397
|
+
white-space: nowrap;
|
398
|
+
padding: 7px $topbar-height / 3;
|
399
|
+
background: lighten($topbar-bg, 5%);
|
400
|
+
}
|
401
|
+
|
402
|
+
label {
|
403
|
+
white-space: nowrap;
|
404
|
+
background: lighten($topbar-bg, 5%);
|
405
|
+
}
|
406
|
+
|
407
|
+
// Second Level Dropdowns
|
408
|
+
.dropdown {
|
409
|
+
left: 100%;
|
410
|
+
top: 0;
|
411
|
+
}
|
412
|
+
}
|
413
|
+
}
|
414
|
+
|
415
|
+
& > ul > .divider {
|
416
|
+
border-bottom: none;
|
417
|
+
border-top: none;
|
418
|
+
border-right: solid 1px lighten($topbar-bg, 10%);
|
419
|
+
border-left: solid 1px darken($topbar-bg, 10%);
|
420
|
+
clear: none;
|
421
|
+
height: $topbar-height;
|
422
|
+
width: 0px;
|
423
|
+
}
|
424
|
+
|
425
|
+
.has-form {
|
426
|
+
background: $topbar-bg;
|
427
|
+
padding: 0 $topbar-height / 3;
|
428
|
+
height: $topbar-height;
|
429
|
+
}
|
430
|
+
|
431
|
+
// Position overrides for ul.right
|
432
|
+
ul.right {
|
433
|
+
li .dropdown {
|
434
|
+
left: auto;
|
435
|
+
right: 0;
|
436
|
+
|
437
|
+
li .dropdown { right: 100%; }
|
438
|
+
}
|
439
|
+
}
|
440
|
+
|
441
|
+
}
|
442
|
+
|
443
|
+
}
|