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
@@ -1,292 +0,0 @@
|
|
1
|
-
/* Table of Contents
|
2
|
-
|
3
|
-
:: Visibility
|
4
|
-
:: Alerts
|
5
|
-
:: Labels
|
6
|
-
:: Tooltips
|
7
|
-
:: Panels
|
8
|
-
:: Accordion
|
9
|
-
:: Side Nav
|
10
|
-
:: Sub Nav
|
11
|
-
:: Pagination
|
12
|
-
:: Breadcrumbs
|
13
|
-
:: Lists
|
14
|
-
:: Inline/Link Lists
|
15
|
-
:: Keystroke Chars
|
16
|
-
:: Image Thumbnails
|
17
|
-
:: Video
|
18
|
-
:: Tables
|
19
|
-
:: Microformats
|
20
|
-
:: Progress Bars
|
21
|
-
:: Pricing Tables
|
22
|
-
|
23
|
-
*/
|
24
|
-
|
25
|
-
/* Alerts ---------------------- */
|
26
|
-
|
27
|
-
div.alert-box { display: block; padding: 6px 7px 7px; font-weight: bold; font-size: ms(0); color: $white; background-color: $mainColor; border: 1px solid rgba(#000,.1); margin-bottom: 12px; @include border-radius($alertBorderRadius); text-shadow: 0 -1px rgba(#000,.3); position: relative;
|
28
|
-
|
29
|
-
&.success { background-color: $successColor; color: #fff; text-shadow: 0 -1px rgba(#000,.3); }
|
30
|
-
&.alert { background-color: $alertColor; color: #fff; text-shadow: 0 -1px rgba(#000,.3); }
|
31
|
-
&.secondary { background-color: $secondaryColor; color: darken($secondaryColor, 60%); text-shadow: 0 1px rgba(#fff,.3); }
|
32
|
-
|
33
|
-
a.close { color: #333; position: absolute; #{$defaultOpposite}: 4px; top: -1px; font-size: ms(1); opacity: 0.2; padding: 4px; }
|
34
|
-
a.close:hover, a.close:focus { opacity: 0.4; }
|
35
|
-
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
/* Labels ---------------------- */
|
40
|
-
|
41
|
-
.label { padding: 1px 4px 2px; font-size: ms(0) - 2; font-weight: bold; text-align: center; text-decoration: none; line-height: 1; white-space: nowrap; display: inline; position: relative; bottom: 1px; color: #fff; background: $mainColor;
|
42
|
-
|
43
|
-
&.radius { @include border-radius($buttonRadius); }
|
44
|
-
&.round { padding: 1px 7px 2px; @include border-radius(1000px); }
|
45
|
-
|
46
|
-
&.alert { background-color: $alertColor; }
|
47
|
-
&.success { background-color: $successColor; }
|
48
|
-
&.secondary { background-color: $secondaryColor; color: darken($secondaryColor, 60%); }
|
49
|
-
|
50
|
-
}
|
51
|
-
|
52
|
-
/* Tooltips ---------------------- */
|
53
|
-
|
54
|
-
.has-tip { border-bottom: $hasTipBorderBottom; cursor: help; font-weight: $hasTipFontWeight; color: $hasTipFontColor;
|
55
|
-
|
56
|
-
&:hover, &:focus { border-bottom: $hasTipBorderBottomHover; color: $hasTipFontColorHover; }
|
57
|
-
&.tip-left, &.tip-right { float: none !important; }
|
58
|
-
|
59
|
-
}
|
60
|
-
|
61
|
-
.tooltip { display: none; background: $tooltipBackgroundColor; background: rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity); position: absolute; color: $tooltipFontColor; font-weight: $tooltipFontWeight; font-size: $tooltipFontSize; padding: 5px; z-index: 999; @include border-radius($tooltipBorderRadius); line-height: normal;
|
62
|
-
|
63
|
-
&>.nub { display: block; width: 0; height: 0; border: solid 5px; border-color: transparent transparent $tooltipBackgroundColor transparent; border-color: transparent transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent; position: absolute; top: -10px; #{$defaultFloat}: 10px; }
|
64
|
-
&.tip-override>.nub { border-color: transparent transparent $tooltipBackgroundColor transparent !important; border-color: transparent transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent !important; top: -10px !important; }
|
65
|
-
&.tip-top>.nub, &.tip-centered-top>.nub { border-color: $tooltipBackgroundColor transparent transparent transparent; border-color: rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent transparent transparent; top: auto; bottom: -10px; }
|
66
|
-
|
67
|
-
&.tip-left, &.tip-right { float: none !important; }
|
68
|
-
|
69
|
-
&.tip-left>.nub { border-color: transparent transparent transparent $tooltipBackgroundColor; border-color: transparent transparent transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity); right: -10px; left: auto; }
|
70
|
-
&.tip-right>.nub { border-color: transparent $tooltipBackgroundColor transparent transparent; border-color: transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent transparent; right: auto; left: -10px; }
|
71
|
-
|
72
|
-
&.noradius { @include border-radius(0); }
|
73
|
-
&.opened { color: $hasTipFontColorHover !important; border-bottom: $hasTipBorderBottomHover !important; }
|
74
|
-
|
75
|
-
}
|
76
|
-
|
77
|
-
.tap-to-close { display: block; @include font-size($tapToCloseFontSize); color: $tapToCloseFontColor; font-weight: $tapToCloseFontWeight; }
|
78
|
-
|
79
|
-
/* Panels ---------------------- */
|
80
|
-
|
81
|
-
.panel { background: darken($white, 5%); border: solid 1px darken($white, 10%); margin: 0 0 22px 0; padding: 20px;
|
82
|
-
|
83
|
-
> :first-child { margin-top: 0; }
|
84
|
-
> :last-child { margin-bottom: 0; }
|
85
|
-
|
86
|
-
&.callout { background: $mainColor; color: #fff; border-color: darken($mainColor, 10%); @include box-shadow(inset 0px 1px 0px rgba(255,255,255,0.5));
|
87
|
-
a { color: #fff; }
|
88
|
-
.button { background: $white; border: none; color: $mainColor; @include text-shadow(none);
|
89
|
-
|
90
|
-
&:hover, &:focus { background: rgba(255,255,255,0.8); }
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
&.radius { @include border-radius($buttonRadius); }
|
95
|
-
|
96
|
-
}
|
97
|
-
|
98
|
-
/* Accordion ---------------------- */
|
99
|
-
|
100
|
-
ul.accordion { margin: 0 0 22px 0; border-bottom: 1px solid $secondaryColor;
|
101
|
-
|
102
|
-
&>li { list-style: none; margin: 0; padding: 0; border-top: 1px solid $secondaryColor;
|
103
|
-
|
104
|
-
& > div.title { cursor: pointer; background: lighten($secondaryColor, 5%); padding: 15px; margin: 0; position: relative; border-#{$defaultFloat}: 1px solid $secondaryColor; border-#{$defaultOpposite}: 1px solid $secondaryColor; @include single-transition(0.15s, background, linear);
|
105
|
-
|
106
|
-
h1, h2, h3, h4, h5 { margin: 0; }
|
107
|
-
&:after { @include cssTriangle(6px, darken($secondaryColor, 30%), $defaultOpposite); position: absolute; #{$defaultOpposite}: 15px; top: 21px; }
|
108
|
-
}
|
109
|
-
|
110
|
-
.content { display: none; padding: 15px; }
|
111
|
-
|
112
|
-
&.active { border-top: 3px solid $mainColor;
|
113
|
-
|
114
|
-
.title { background: $white; padding-top: 13px;
|
115
|
-
|
116
|
-
&:after { @include cssTriangle(6px, darken($secondaryColor, 30%), top); }
|
117
|
-
}
|
118
|
-
.content { background: $white; display: block; border-#{$defaultFloat}: 1px solid $secondaryColor; border-#{$defaultOpposite}: 1px solid $secondaryColor; }
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
/* Side Nav ---------------------- */
|
126
|
-
|
127
|
-
ul.side-nav { display: block; list-style: none; margin: 0; padding: ms(1) 0;
|
128
|
-
|
129
|
-
li { display: block; list-style: none; margin: 0 0 (ms(0)/2) 0;
|
130
|
-
|
131
|
-
a { display: block; }
|
132
|
-
&.active a { color: lighten($black, 30%); font-weight: bold; }
|
133
|
-
&.divider { border-top: 1px solid darken($white, 10%); height: 0; padding: 0; }
|
134
|
-
}
|
135
|
-
}
|
136
|
-
|
137
|
-
/* Sub Navs http://www.zurb.com/article/292/how-to-create-simple-and-effective-sub-na ---------------------- */
|
138
|
-
|
139
|
-
dl.sub-nav { display: block; width: auto; overflow: hidden; margin: -4px 0 18px; margin-#{$defaultOpposite}: 0; margin-#{$defaultFloat}: -9px; padding-top: 4px;
|
140
|
-
|
141
|
-
dt, dd { float: $defaultFloat; display: inline; margin-#{$defaultFloat}: 9px; margin-bottom: 10px; }
|
142
|
-
dt { color: #999; font-weight: $bodyFontWeight; }
|
143
|
-
dd a { text-decoration: none; @include border-radius(1000px); }
|
144
|
-
dd.active a { font-weight: bold; background: $mainColor; color: #fff; padding: 3px 9px; cursor: default; }
|
145
|
-
|
146
|
-
}
|
147
|
-
|
148
|
-
/* Pagination ---------------------- */
|
149
|
-
|
150
|
-
ul.pagination { display: block; height: 24px; margin-#{$defaultFloat}: -5px;
|
151
|
-
|
152
|
-
li { float: $defaultFloat; display: block; height: 24px; color: #999; font-size: ms(0); margin-#{$defaultFloat}: 5px;
|
153
|
-
|
154
|
-
a { display: block; padding: 1px 7px 1px; color: #555; }
|
155
|
-
&:hover a, a:focus { background: darken($white, 10%); }
|
156
|
-
&.unavailable a { cursor: default; color: #999; }
|
157
|
-
&.unavailable:hover a, &.unavailable a:focus { background: transparent; }
|
158
|
-
&.current a { background: $mainColor; color: $white; font-weight: bold; cursor: default;
|
159
|
-
&:hover, &:focus { background: $mainColor; }
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
}
|
164
|
-
|
165
|
-
div.pagination-centered { text-align: center;
|
166
|
-
|
167
|
-
ul > li { float: none; display: inline-block; }
|
168
|
-
}
|
169
|
-
|
170
|
-
/* Breadcrums ---------------------- */
|
171
|
-
|
172
|
-
ul.breadcrumbs { display: block; background: lighten($secondaryColor, 5%); padding: 6px 10px 7px; border: 1px solid $secondaryColor; @include border-radius(2px); overflow: hidden; margin-#{$defaultFloat}: 0;
|
173
|
-
|
174
|
-
li { margin: 0; padding: 0 12px 0 0; float: $defaultFloat; list-style: none;
|
175
|
-
|
176
|
-
a, span { text-transform: uppercase; @include font-size(11); padding-#{$defaultFloat}: 12px; }
|
177
|
-
&:first-child a, &:first-child span { padding-#{$defaultFloat}: 0; }
|
178
|
-
}
|
179
|
-
|
180
|
-
li:before { content: "/"; color: #aaa; }
|
181
|
-
li:first-child:before { content: " "; }
|
182
|
-
li.current a { cursor: default; color: #333; }
|
183
|
-
li:hover a, li a:focus { text-decoration: underline; }
|
184
|
-
li.current:hover a, li.current a:focus { text-decoration: none; }
|
185
|
-
li.unavailable {
|
186
|
-
a { color: #999; }
|
187
|
-
&:hover a, a:focus { text-decoration: none; color: #999; cursor: default; }
|
188
|
-
}
|
189
|
-
|
190
|
-
}
|
191
|
-
|
192
|
-
/* Inline Link List */
|
193
|
-
ul.inline-list, ul.link-list { margin: 0 0 $linkListBottomMargin; padding: 0; list-style: none; overflow: hidden;
|
194
|
-
|
195
|
-
& > li { list-style: none; float: $defaultFloat; margin-#{$defaultFloat}: 22px; display: block;
|
196
|
-
|
197
|
-
& > * { display: block; }
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
|
-
/* Keytroke Characters ---------------------- */
|
202
|
-
|
203
|
-
.keystroke, kbd { font-family: "Consolas", "Menlo", "Courier", monospace; font-size: ms(0) - 1; padding: 2px 4px 0px; margin: 0; background: darken($white, 7%); border: solid 1px darken($white, 14%); @include border-radius($buttonRadius); }
|
204
|
-
|
205
|
-
/* Image Thumbnails ---------------------- */
|
206
|
-
.th { display: block;
|
207
|
-
img { display: block; border: solid 4px #fff; @include box-shadow(0 0 0 1px rgba(#000,.2)); @include border-radius($thumbRadius); @include transition-property(box-shadow); @include transition-duration(300ms); }
|
208
|
-
&:hover, &:focus {
|
209
|
-
img { @include box-shadow(0 0 6px 1px rgba($mainColor,.5)); }
|
210
|
-
}
|
211
|
-
}
|
212
|
-
|
213
|
-
/* Video - Mad props to http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ ---------------------- */
|
214
|
-
|
215
|
-
.flex-video {
|
216
|
-
position: relative;
|
217
|
-
padding-top: 25px;
|
218
|
-
padding-bottom: 67.5%;
|
219
|
-
height: 0;
|
220
|
-
margin-bottom: 16px;
|
221
|
-
overflow: hidden;
|
222
|
-
|
223
|
-
&.widescreen { padding-bottom: 57.25%; }
|
224
|
-
&.vimeo { padding-top: 0; }
|
225
|
-
|
226
|
-
iframe, object, embed, video { position: absolute; top: 0; #{$defaultFloat}: 0; width: 100%; height: 100%; }
|
227
|
-
|
228
|
-
}
|
229
|
-
|
230
|
-
/* Tables ---------------------- */
|
231
|
-
|
232
|
-
table { background: #fff; @include border-radius($tableBorderRadius); margin: 0 0 18px; border: 1px solid #ddd; }
|
233
|
-
|
234
|
-
table thead, table tfoot { background: #f5f5f5; }
|
235
|
-
table thead tr th,
|
236
|
-
table tfoot tr th,
|
237
|
-
table tbody tr td,
|
238
|
-
table tr td,
|
239
|
-
table tfoot tr td { display: table-cell; font-size: ms(0); line-height: 18px; text-align: #{$defaultFloat}; }
|
240
|
-
table thead tr th,
|
241
|
-
table tfoot tr td { padding: 8px 10px 9px; font-size: ms(0); font-weight: bold; color: #222; }
|
242
|
-
table thead tr th:first-child, table tfoot tr td:first-child { border-#{$defaultFloat}: none; }
|
243
|
-
table thead tr th:last-child, table tfoot tr td:last-child { border-#{$defaultOpposite}: none; }
|
244
|
-
|
245
|
-
table tbody tr.even,
|
246
|
-
table tbody tr.alt { background: #f9f9f9; }
|
247
|
-
table tbody tr:nth-child(even) { background: #f9f9f9; }
|
248
|
-
table tbody tr td { color: #333; padding: 9px 10px; vertical-align: top; border: none; }
|
249
|
-
|
250
|
-
/* Microformats ---------------------- */
|
251
|
-
|
252
|
-
ul.vcard { display: inline-block; margin: 0 0 12px 0; border: 1px solid #ddd; padding: 10px;
|
253
|
-
|
254
|
-
li { margin: 0; display: block; }
|
255
|
-
li.fn { font-weight: bold; font-size: ms(0) + 1; }
|
256
|
-
|
257
|
-
}
|
258
|
-
|
259
|
-
p.vevent {
|
260
|
-
span.summary { font-weight: bold; }
|
261
|
-
abbr { cursor: default; text-decoration: none; font-weight: bold; border: none; padding: 0 1px; }
|
262
|
-
}
|
263
|
-
|
264
|
-
/* Progress Bar ---------------------- */
|
265
|
-
|
266
|
-
div.progress { padding: $progBarPad; margin-bottom: 10px; border: $progBarBorderSize solid $progBarBorderColor; height: $progBarHeight;
|
267
|
-
|
268
|
-
/* meter */
|
269
|
-
.meter { background: $mainColor; height: 100%; display: block; width:50%; }
|
270
|
-
&.secondary .meter { background: $secondaryColor;}
|
271
|
-
&.success .meter { background: $successColor;}
|
272
|
-
&.alert .meter { background: $alertColor;}
|
273
|
-
|
274
|
-
/* border radii */
|
275
|
-
&.radius { @include border-radius($buttonRadius);
|
276
|
-
.meter { @include border-radius(2px); }
|
277
|
-
}
|
278
|
-
&.round { @include border-radius(1000px);
|
279
|
-
.meter { @include border-radius(1000px); }
|
280
|
-
}
|
281
|
-
|
282
|
-
}
|
283
|
-
|
284
|
-
/* Pricing Tables ---------------------- */
|
285
|
-
.pricing-table { border: $priceTableBorder; margin-left: 0; margin-bottom: 20px;
|
286
|
-
& * { list-style: none; line-height: 1; }
|
287
|
-
.title { background-color: $priceTitleBgColor; padding: $priceTitlePadding; text-align: $priceTitleAlign; color: $priceTitleColor; font-weight: $priceTitleWeight; font-size: $priceTitleSize; }
|
288
|
-
.price { background-color: $priceMoneyBgColor; padding: $priceMoneyPadding; text-align: $priceMoneyAlign; color: $priceMoneyColor; font-weight: $priceMoneyWeight; font-size: $priceMoneySize; }
|
289
|
-
.description { background-color: $priceBgColor; padding: $priceDescPadding; text-align: $priceDescAlign; color: $priceDescColor; font-size: $priceDescFontSize; font-weight: $priceDescWeight; line-height: $priceDescLineHeight; border-bottom: $priceDescBtmBorder; }
|
290
|
-
.bullet-item { background-color: $priceBgColor; padding: $priceItemPadding; text-align: $priceItemAlign; color: $priceItemColor; font-size: $priceItemFontSize; font-weight: $priceItemWeight; border-bottom: $priceItemBtmBorder; }
|
291
|
-
.cta-button { background-color: $priceCtaBgColor; text-align: $priceCtaAlign; padding: $priceCtaPadding; }
|
292
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
@function convert-number-to-word($num) {
|
2
|
-
$count:1;
|
3
|
-
@each $word in one,two,three,four,five,six,seven,eight,nine,ten,eleven,
|
4
|
-
twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen,
|
5
|
-
twenty,twentyone,twentytwo,twentythree,twentyfour{
|
6
|
-
@if ($count == $num) { @return $word; }
|
7
|
-
$count: $count + 1;
|
8
|
-
}
|
9
|
-
@return "invalid";
|
10
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
|
2
|
-
|
3
|
-
@mixin clearfix() { *zoom:1;
|
4
|
-
&:before, &:after { content: " "; display: table; }
|
5
|
-
&:after { clear: both; }
|
6
|
-
}
|
7
|
-
|
8
|
-
@mixin mobileClearfix() {
|
9
|
-
@include respondTo(smallScreen) { &:before, &:after { content: " "; display: table; }
|
10
|
-
&:after { clear: both; }
|
11
|
-
&:last-child { float: none; }
|
12
|
-
}
|
13
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
// Create CSS Triangles in a Breeze
|
2
|
-
|
3
|
-
@mixin cssTriangle($triangleSize, $triangleColor, $triangleDirection) {
|
4
|
-
content: "";
|
5
|
-
display: block;
|
6
|
-
width: 0;
|
7
|
-
height: 0;
|
8
|
-
border: solid $triangleSize;
|
9
|
-
@if ($triangleDirection == top) {
|
10
|
-
border-color: $triangleColor transparent transparent transparent;
|
11
|
-
}
|
12
|
-
@if ($triangleDirection == bottom) {
|
13
|
-
border-color: transparent transparent $triangleColor transparent;
|
14
|
-
}
|
15
|
-
@if ($triangleDirection == left) {
|
16
|
-
border-color: transparent transparent transparent $triangleColor;
|
17
|
-
}
|
18
|
-
@if ($triangleDirection == right) {
|
19
|
-
border-color: transparent $triangleColor transparent transparent;
|
20
|
-
}
|
21
|
-
// .example { @include cssTriangle(5px, #fff, bottom); }
|
22
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Font size mixin to include px and rem
|
2
|
-
|
3
|
-
@mixin font-size($size, $is-important: false) {
|
4
|
-
$size: if(unitless($size), $size, $size / 1px);
|
5
|
-
|
6
|
-
@if $is-important {
|
7
|
-
font-size: $size + px !important;
|
8
|
-
font-size: ($size / 10) + rem !important;
|
9
|
-
} @else {
|
10
|
-
font-size: $size + px;
|
11
|
-
font-size: ($size / 10) + rem;
|
12
|
-
}
|
13
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
// Mixin for Semantic Grid reponsiveness
|
2
|
-
|
3
|
-
@mixin respondTo($media) {
|
4
|
-
@if $media == smallScreen {
|
5
|
-
@media only screen and (max-width: $screenSmall - 1) { @content; }
|
6
|
-
} @else if $media == mediumScreen {
|
7
|
-
@media only screen and (max-width: $screenMedium) and (min-width: $screenSmall) { @content; }
|
8
|
-
} @else if $media == largeScreen {
|
9
|
-
@media only screen and (min-width: $screenXlarge) { @content; }
|
10
|
-
}
|
11
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
// Inspired by https://github.com/twigkit/semantic.gs/blob/master/stylesheets/scss/grid.scss
|
2
|
-
|
3
|
-
// Outer row mixin for container rows
|
4
|
-
|
5
|
-
@mixin outerRow() {
|
6
|
-
width: $rowWidth; max-width: 100%; min-width: $screenSmall; margin: 0 auto; @extend %clearfix;
|
7
|
-
@include respondTo(smallScreen) { width: auto; min-width: 0; margin-left: 0; margin-right: 0; }
|
8
|
-
}
|
9
|
-
|
10
|
-
// Inner row mixin for nested rows, must be a child of an outer-row element. $behavior can be 'collapse' to get rid of margins
|
11
|
-
|
12
|
-
@mixin innerRow($behavior: false) {
|
13
|
-
@if $behavior == collapse { @extend %row-i-base; margin: 0; @extend %clearfix;
|
14
|
-
} @else { @extend %row-i-base; margin: 0 (-($columnGutter/2)); @extend %clearfix; }
|
15
|
-
}
|
16
|
-
|
17
|
-
// Columns mixin, syntax is ($columns, $behavior). Behavior can be 'centered' which centers things or 'collapse' which collapses the gutters. ex @include row(4,[center | collapse])
|
18
|
-
|
19
|
-
@mixin column($columns:$columns, $behavior: false) {
|
20
|
-
@if $behavior == center { @extend %fl-n; margin-left: auto; margin-right: auto; @extend %c-base; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: none; width: auto; }
|
21
|
-
} @else if $behavior == collapse { @extend %fl-l; @extend %c-base; padding: 0; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: none; width: auto; }
|
22
|
-
} @else { @extend %fl-l; @extend %c-base; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: none; width: auto; } }
|
23
|
-
}
|
24
|
-
|
25
|
-
// Offset Mixin, include after a column mixin to manipulate its grid offset.
|
26
|
-
|
27
|
-
@mixin offsetBy($offset:1) { margin-left: gridCalc($offset, $totalColumns); }
|
28
|
-
|
29
|
-
// Push/Pull Mixins, include after a column mixin to manipulate stack ordering.
|
30
|
-
|
31
|
-
@mixin push($push:1) { left: gridCalc($push, $totalColumns); }
|
32
|
-
@mixin pull($push:1) { right: gridCalc($push, $totalColumns); }
|
33
|
-
|
34
|
-
// Mobile Row, synctax is @include mobile-row(); (This mixin isn't really necessary, will be deprecated in 4)
|
35
|
-
@mixin mobileRow() { @include respondTo(smallScreen) { width: auto; min-width: 0; margin-left: 0; margin-right: 0; @include clearfix(); } }
|
36
|
-
|
37
|
-
// Mobile Columns, syntax is @include mobile-column(#);
|
38
|
-
|
39
|
-
@mixin mobileColumn($columns:$columns, $behavior: false) {
|
40
|
-
@if $behavior == center { @include respondTo(smallScreen) { float: none; margin: 0 auto; position: relative; min-height: 1px; padding: 0 ($columnGutter/2); width: gridCalc($columns, $mobileTotalColumns); }
|
41
|
-
} @else if $behavior == collapse { @include respondTo(smallScreen) { float: left; position: relative; min-height: 1px; padding: 0; width: gridCalc($columns, $mobileTotalColumns); }
|
42
|
-
} @else { @include respondTo(smallScreen) { float: left; width: gridCalc($columns, $mobileTotalColumns); padding: 0 ($columnGutter/2); } }
|
43
|
-
}
|
44
|
-
|
45
|
-
// Mobile Push/Pull Mixin
|
46
|
-
|
47
|
-
@mixin mobilePush($push:1) { @include respondTo(smallScreen) { left: gridCalc($push, $mobileTotalColumns); } }
|
48
|
-
@mixin mobilePull($push:1) { @include respondTo(smallScreen) { right: gridCalc($push, $mobileTotalColumns); } }
|
49
|
-
|
50
|
-
// Invisible Placeholder Classes for Grid
|
51
|
-
%fl-l { float: left; }
|
52
|
-
%fl-r { float: right; }
|
53
|
-
%fl-n { float: none; }
|
54
|
-
|
55
|
-
%clearfix { @include clearfix(); }
|
56
|
-
%clearfix-m { @include mobileClearfix(); }
|
57
|
-
|
58
|
-
%row-o { @include outerRow(); }
|
59
|
-
%row-i-base { width: auto; max-width: none; min-width: 0; }
|
60
|
-
%row-i { @include innerRow(); }
|
61
|
-
|
62
|
-
%c-base { position: relative; min-height: 1px; padding: 0 ($columnGutter/2); }
|
63
|
-
|
64
|
-
@for $i from 1 through $totalColumns {
|
65
|
-
%c-#{$i} { @include column($i); }
|
66
|
-
}
|