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,130 @@
|
|
1
|
+
//
|
2
|
+
// Pricing Table Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use this to control the border color
|
6
|
+
$price-table-border: solid 1px #ddd !default;
|
7
|
+
|
8
|
+
// We use this to control the bottom margin of the pricing table
|
9
|
+
$price-table-margin-bottom: emCalc(20px) !default;
|
10
|
+
|
11
|
+
// We use these to control the title styles
|
12
|
+
$price-title-bg: #ddd !default;
|
13
|
+
$price-title-padding: emCalc(15px) emCalc(20px) !default;
|
14
|
+
$price-title-align: center !default;
|
15
|
+
$price-title-color: #333 !default;
|
16
|
+
$price-title-weight: bold !default;
|
17
|
+
$price-title-size: emCalc(16px) !default;
|
18
|
+
|
19
|
+
// We use these to control the price styles
|
20
|
+
$price-money-bg: #eee !default;
|
21
|
+
$price-money-padding: emCalc(15px) emCalc(20px) !default;
|
22
|
+
$price-money-align: center !default;
|
23
|
+
$price-money-color: #333 !default;
|
24
|
+
$price-money-weight: normal !default;
|
25
|
+
$price-money-size: emCalc(20px) !default;
|
26
|
+
|
27
|
+
// We use these to control the description styles
|
28
|
+
$price-bg: #fff !default;
|
29
|
+
$price-desc-color: #777 !default;
|
30
|
+
$price-desc-padding: emCalc(15px) !default;
|
31
|
+
$price-desc-align: center !default;
|
32
|
+
$price-desc-font-size: emCalc(12px) !default;
|
33
|
+
$price-desc-weight: normal !default;
|
34
|
+
$price-desc-line-height: 1.4 !default;
|
35
|
+
$price-desc-bottom-border: dotted 1px #ddd !default;
|
36
|
+
|
37
|
+
// We use these to control the list item styles
|
38
|
+
$price-item-color: #333 !default;
|
39
|
+
$price-item-padding: emCalc(15px) !default;
|
40
|
+
$price-item-align: center !default;
|
41
|
+
$price-item-font-size: emCalc(14px) !default;
|
42
|
+
$price-item-weight: normal !default;
|
43
|
+
$price-item-bottom-border: dotted 1px #ddd !default;
|
44
|
+
|
45
|
+
// We use these to control the CTA area styles
|
46
|
+
$price-cta-bg: #f5f5f5 !default;
|
47
|
+
$price-cta-align: center !default;
|
48
|
+
$price-cta-padding: emCalc(20px) emCalc(20px) 0 !default;
|
49
|
+
|
50
|
+
//
|
51
|
+
// Pricing Table Mixins
|
52
|
+
//
|
53
|
+
|
54
|
+
// We use this to create the container element for the pricing tables
|
55
|
+
@mixin pricing-table-container {
|
56
|
+
border: $price-table-border;
|
57
|
+
margin-left: 0;
|
58
|
+
margin-bottom: $price-table-margin-bottom;
|
59
|
+
|
60
|
+
& * {
|
61
|
+
list-style: none;
|
62
|
+
line-height: 1;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
// We use this mixin to create the pricing table title styles
|
67
|
+
@mixin pricing-table-title {
|
68
|
+
background-color: $price-title-bg;
|
69
|
+
padding: $price-title-padding;
|
70
|
+
text-align: $price-title-align;
|
71
|
+
color: $price-title-color;
|
72
|
+
font-weight: $price-title-weight;
|
73
|
+
font-size: $price-title-size;
|
74
|
+
}
|
75
|
+
|
76
|
+
// We use this mixin to control the pricing table price styles
|
77
|
+
@mixin pricing-table-price {
|
78
|
+
background-color: $price-money-bg;
|
79
|
+
padding: $price-money-padding;
|
80
|
+
text-align: $price-money-align;
|
81
|
+
color: $price-money-color;
|
82
|
+
font-weight: $price-money-weight;
|
83
|
+
font-size: $price-money-size;
|
84
|
+
}
|
85
|
+
|
86
|
+
// We use this mixin to create the description styles for the pricing table
|
87
|
+
@mixin pricing-table-description {
|
88
|
+
background-color: $price-bg;
|
89
|
+
padding: $price-desc-padding;
|
90
|
+
text-align: $price-desc-align;
|
91
|
+
color: $price-desc-color;
|
92
|
+
font-size: $price-desc-font-size;
|
93
|
+
font-weight: $price-desc-weight;
|
94
|
+
line-height: $price-desc-line-height;
|
95
|
+
border-bottom: $price-desc-bottom-border;
|
96
|
+
}
|
97
|
+
|
98
|
+
// We use this mixin to style the bullet items in the pricing table
|
99
|
+
@mixin pricing-table-bullet {
|
100
|
+
background-color: $price-bg;
|
101
|
+
padding: $price-item-padding;
|
102
|
+
text-align: $price-item-align;
|
103
|
+
color: $price-item-color;
|
104
|
+
font-size: $price-item-font-size;
|
105
|
+
font-weight: $price-item-weight;
|
106
|
+
border-bottom: $price-item-bottom-border;
|
107
|
+
}
|
108
|
+
|
109
|
+
// We use this mixin to style the CTA area of the pricing tables
|
110
|
+
@mixin pricing-table-cta {
|
111
|
+
background-color: $price-cta-bg;
|
112
|
+
text-align: $price-cta-align;
|
113
|
+
padding: $price-cta-padding;
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
@if $include-html-classes {
|
118
|
+
|
119
|
+
/* Pricing Tables */
|
120
|
+
.pricing-table {
|
121
|
+
@include pricing-table-container;
|
122
|
+
|
123
|
+
.title { @include pricing-table-title; }
|
124
|
+
.price { @include pricing-table-price; }
|
125
|
+
.description { @include pricing-table-description; }
|
126
|
+
.bullet-item { @include pricing-table-bullet; }
|
127
|
+
.cta-button { @include pricing-table-cta; }
|
128
|
+
}
|
129
|
+
|
130
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
//
|
2
|
+
// Progress Bar Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use this to se the prog bar height
|
6
|
+
$progress-bar-height: emCalc(25px) !default;
|
7
|
+
|
8
|
+
// We use these to control the border styles
|
9
|
+
$progress-bar-border-color: darken(#fff, 20%) !default;
|
10
|
+
$progress-bar-border-size: 1px !default;
|
11
|
+
$progress-bar-border-style: solid !default;
|
12
|
+
$progress-bar-border-radius: $button-radius !default;
|
13
|
+
|
14
|
+
// We use these to control the margin & padding
|
15
|
+
$progress-bar-pad: emCalc(2px) !default;
|
16
|
+
$progress-bar-margin-bottom: emCalc(10px) !default;
|
17
|
+
|
18
|
+
// We use these to set the meter colors
|
19
|
+
$progress-meter-color: $primary-color !default;
|
20
|
+
$progress-meter-secondary-color: $secondary-color !default;
|
21
|
+
$progress-meter-success-color: $success-color !default;
|
22
|
+
$progress-meter-alert-color: $alert-color !default;
|
23
|
+
|
24
|
+
|
25
|
+
//
|
26
|
+
// Progress Bar Mixins
|
27
|
+
//
|
28
|
+
|
29
|
+
// We use this to set up the progress bar container
|
30
|
+
@mixin progress-container {
|
31
|
+
height: $progress-bar-height;
|
32
|
+
border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color;
|
33
|
+
padding: $progress-bar-pad;
|
34
|
+
margin-bottom: $progress-bar-margin-bottom;
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin progress-meter($bg:$primary-color) {
|
38
|
+
background: $bg;
|
39
|
+
height: 100%;
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
@if $include-html-classes {
|
45
|
+
|
46
|
+
/* Progress Bar */
|
47
|
+
.progress {
|
48
|
+
@include progress-container;
|
49
|
+
|
50
|
+
// Meter
|
51
|
+
.meter {
|
52
|
+
@include progress-meter;
|
53
|
+
}
|
54
|
+
&.secondary .meter { @include progress-meter($bg:$secondary-color); }
|
55
|
+
&.success .meter { @include progress-meter($bg:$success-color); }
|
56
|
+
&.alert .meter { @include progress-meter($bg:$alert-color); }
|
57
|
+
|
58
|
+
&.radius { @include radius($global-radius);
|
59
|
+
.meter { @include radius($global-radius - 1); }
|
60
|
+
}
|
61
|
+
|
62
|
+
&.round { @include radius(1000px);
|
63
|
+
.meter { @include radius(999px); }
|
64
|
+
}
|
65
|
+
|
66
|
+
}
|
67
|
+
|
68
|
+
}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
// NEED TO FINISH THE LOGIC HERE
|
2
|
+
|
3
|
+
//
|
4
|
+
// Reveal Variables
|
5
|
+
//
|
6
|
+
|
7
|
+
// We use these to control the style of the reveal overlay.
|
8
|
+
$reveal-overlay-bg: rgba(#000, .45) !default;
|
9
|
+
$reveal-overlay-bg-old: #000 !default;
|
10
|
+
|
11
|
+
// We use these to control the style of the modal itself.
|
12
|
+
$reveal-modal-bg: #fff !default;
|
13
|
+
$reveal-position-top: emCalc(15px) !default;
|
14
|
+
$reveal-default-width: 80% !default;
|
15
|
+
$reveal-modal-padding: emCalc(20px) !default;
|
16
|
+
$reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
|
17
|
+
|
18
|
+
// We use these to style the reveal close button
|
19
|
+
$reveal-close-font-size: emCalc(22px) !default;
|
20
|
+
$reveal-close-top: emCalc(8px) !default;
|
21
|
+
$reveal-close-side: emCalc(11px) !default;
|
22
|
+
$reveal-close-color: #aaa !default;
|
23
|
+
$reveal-close-weight: bold !default;
|
24
|
+
|
25
|
+
// We use these to control the modal border
|
26
|
+
$reveal-border-style: solid !default;
|
27
|
+
$reveal-border-width: 1px !default;
|
28
|
+
$reveal-border-color: #666 !default;
|
29
|
+
|
30
|
+
//
|
31
|
+
// Reveal Mixins
|
32
|
+
//
|
33
|
+
|
34
|
+
// We use this to create the reveal background overlay styles
|
35
|
+
@mixin reveal-bg {
|
36
|
+
position: fixed;
|
37
|
+
height: 100%;
|
38
|
+
width: 100%;
|
39
|
+
background: $reveal-overlay-bg-old;
|
40
|
+
background: $reveal-overlay-bg;
|
41
|
+
z-index: 98;
|
42
|
+
display: none;
|
43
|
+
top: 0;
|
44
|
+
left: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
// We use this mixin to create the structure of a reveal modal
|
48
|
+
@mixin reveal-modal-base($base-style:true, $width:$reveal-default-width) {
|
49
|
+
@if $base-style {
|
50
|
+
visibility: hidden;
|
51
|
+
display: none;
|
52
|
+
position: absolute;
|
53
|
+
#{$default-float}: 50%;
|
54
|
+
z-index: 99;
|
55
|
+
height: auto;
|
56
|
+
background-color: #fff;
|
57
|
+
|
58
|
+
// Make sure rows don't have a min-width on them
|
59
|
+
.column,
|
60
|
+
.columns { min-width: 0; }
|
61
|
+
|
62
|
+
// Get rid of margin from first and last element inside modal
|
63
|
+
& > :first-child { margin-top: 0; }
|
64
|
+
& > :last-child { margin-bottom: 0; }
|
65
|
+
}
|
66
|
+
|
67
|
+
@if $width {
|
68
|
+
margin-#{$default-float}: -($width / 2);
|
69
|
+
width: $width;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
// We use this to style the reveal modal defaults
|
74
|
+
@mixin reveal-modal-style($bg:$reveal-modal-bg, $padding:$reveal-modal-padding, $border:true, $border-style:$reveal-border-style, $border-width:$reveal-border-width, $border-color:$reveal-border-color, $box-shadow:true, $top-offset:$reveal-position-top) {
|
75
|
+
|
76
|
+
@if $bg { background-color: $bg; }
|
77
|
+
@if $padding { padding: $padding; }
|
78
|
+
|
79
|
+
@if $border { border: $border-style $border-width $border-color; }
|
80
|
+
|
81
|
+
// We can choose whether or not to include the default box-shadow.
|
82
|
+
@if $box-shadow {
|
83
|
+
-webkit-box-shadow: $reveal-box-shadow;
|
84
|
+
box-shadow: $reveal-box-shadow;
|
85
|
+
}
|
86
|
+
|
87
|
+
@if $top-offset { top: $top-offset; }
|
88
|
+
}
|
89
|
+
|
90
|
+
// We use this to create a close button for the reveal modal
|
91
|
+
@mixin reveal-close($color:$reveal-close-color) {
|
92
|
+
font-size: $reveal-close-font-size;
|
93
|
+
line-height: 1;
|
94
|
+
position: absolute;
|
95
|
+
top: $reveal-close-top;
|
96
|
+
#{$default-opposite}: $reveal-close-side;
|
97
|
+
color: $color;
|
98
|
+
font-weight: $reveal-close-weight;
|
99
|
+
cursor: pointer;
|
100
|
+
}
|
101
|
+
|
102
|
+
@if $include-html-classes {
|
103
|
+
// Reveal Modals
|
104
|
+
.reveal-modal-bg { @include reveal-bg; }
|
105
|
+
|
106
|
+
.reveal-modal {
|
107
|
+
@include reveal-modal-base;
|
108
|
+
@include reveal-modal-style;
|
109
|
+
|
110
|
+
.close-reveal-modal { @include reveal-close; }
|
111
|
+
}
|
112
|
+
|
113
|
+
// Large Screen Styles
|
114
|
+
@media #{$small} {
|
115
|
+
|
116
|
+
.reveal-modal {
|
117
|
+
@include reveal-modal-style(false, emCalc(30px), false, $box-shadow: false, $top-offset: emCalc(100px));
|
118
|
+
|
119
|
+
&.small { @include reveal-modal-base(false, 30%); }
|
120
|
+
&.medium { @include reveal-modal-base(false, 40%); }
|
121
|
+
&.large { @include reveal-modal-base(false, 60%); }
|
122
|
+
&.xlarge { @include reveal-modal-base(false, 70%); }
|
123
|
+
&.expand { @include reveal-modal-base(false, 95%); }
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
// Reveal Print Styles
|
128
|
+
@media print {
|
129
|
+
div:not(.reveal-modal) { display: none; }
|
130
|
+
}
|
131
|
+
}
|
@@ -0,0 +1,194 @@
|
|
1
|
+
//
|
2
|
+
// Section Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use these to set padding and hover factor
|
6
|
+
$section-padding: emCalc(15px) !default;
|
7
|
+
$section-function-factor: 10% !default;
|
8
|
+
|
9
|
+
// These style the titles
|
10
|
+
$section-title-color: #333 !default;
|
11
|
+
$section-title-bg: #efefef !default;
|
12
|
+
$section-title-bg-active: darken($section-title-bg, $section-function-factor) !default;
|
13
|
+
$section-title-bg-active-tabs: #fff !default;
|
14
|
+
|
15
|
+
// Want to control border size, here ya go!
|
16
|
+
$section-border-size: 1px !default;
|
17
|
+
$section-border-style: solid !default;
|
18
|
+
$section-border-color: #ccc !default;
|
19
|
+
|
20
|
+
// Control the color of the background and some size options
|
21
|
+
$section-content-bg: #fff !default;
|
22
|
+
$section-vertical-nav-min-width: emCalc(200px) !default;
|
23
|
+
$section-bottom-margin: emCalc(20px) !default;
|
24
|
+
|
25
|
+
|
26
|
+
//
|
27
|
+
// Section Mixins
|
28
|
+
//
|
29
|
+
|
30
|
+
// We use this mixin to create the basic container styles for sections when they act like accordions
|
31
|
+
@mixin section-container($base-style:true, $section-type:accordion) {
|
32
|
+
|
33
|
+
// We can set this to false to not include these styles to avoid repeated CSS on classes.
|
34
|
+
@if $base-style {
|
35
|
+
width: 100%;
|
36
|
+
display: block;
|
37
|
+
margin-bottom: $section-bottom-margin;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Accordion container border styles
|
41
|
+
@if $section-type == accordion {
|
42
|
+
border: $section-border-size $section-border-style $section-border-color;
|
43
|
+
border-top: none;
|
44
|
+
}
|
45
|
+
|
46
|
+
// Tabs container border styles
|
47
|
+
@else if $section-type == tabs {
|
48
|
+
border: 0;
|
49
|
+
position: relative;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Vertical Nav container border styles
|
53
|
+
@else if $section-type == vertical-nav {
|
54
|
+
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// We use this mixin to create the styles for sections as accordions.
|
59
|
+
@mixin section($section-type:accordion) {
|
60
|
+
|
61
|
+
// Accordion styles
|
62
|
+
@if $section-type == accordion {
|
63
|
+
|
64
|
+
border-top: $section-border-size $section-border-style $section-border-color;
|
65
|
+
position: relative;
|
66
|
+
|
67
|
+
*>:first-child { padding-top: 0; }
|
68
|
+
*>:last-child { padding-bottom: 0; }
|
69
|
+
|
70
|
+
.title {
|
71
|
+
top: 0;
|
72
|
+
cursor: pointer;
|
73
|
+
width: 100%;
|
74
|
+
margin: 0;
|
75
|
+
background-color: $section-title-bg;
|
76
|
+
|
77
|
+
a {
|
78
|
+
padding: $section-padding;
|
79
|
+
display: inline-block;
|
80
|
+
color: $section-title-color;
|
81
|
+
font-size: emCalc(14px);
|
82
|
+
white-space: nowrap;
|
83
|
+
width: 100%;
|
84
|
+
}
|
85
|
+
&:hover { background-color: darken($section-title-bg, $section-function-factor/2); }
|
86
|
+
}
|
87
|
+
|
88
|
+
.content {
|
89
|
+
display: none;
|
90
|
+
padding: $section-padding;
|
91
|
+
background-color: $section-content-bg;
|
92
|
+
|
93
|
+
*:last-child { margin-bottom: 0; }
|
94
|
+
}
|
95
|
+
|
96
|
+
&.active {
|
97
|
+
.content { display: block; }
|
98
|
+
.title { background: $section-title-bg-active; }
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
}
|
103
|
+
|
104
|
+
// Tab Styles
|
105
|
+
@else if $section-type == tabs {
|
106
|
+
padding-top: 0;
|
107
|
+
border: 0;
|
108
|
+
position: static;
|
109
|
+
|
110
|
+
.title {
|
111
|
+
top: 1px;
|
112
|
+
width: auto;
|
113
|
+
border: $section-border-size $section-border-style $section-border-color;
|
114
|
+
border-right: 0;
|
115
|
+
position: absolute;
|
116
|
+
z-index: 1;
|
117
|
+
|
118
|
+
a { width: 100%; }
|
119
|
+
}
|
120
|
+
&:last-child .title { border-right: $section-border-size $section-border-style $section-border-color; }
|
121
|
+
|
122
|
+
.content {
|
123
|
+
border: $section-border-size $section-border-style $section-border-color;
|
124
|
+
position: absolute;
|
125
|
+
z-index: 10;
|
126
|
+
}
|
127
|
+
|
128
|
+
&.active {
|
129
|
+
|
130
|
+
.title {
|
131
|
+
background-color: $section-title-bg-active-tabs;
|
132
|
+
z-index: 11;
|
133
|
+
border-bottom: 0;
|
134
|
+
}
|
135
|
+
.content { position: relative; }
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
// Vertical Nav Styles
|
140
|
+
@else if $section-type == vertical-nav {
|
141
|
+
|
142
|
+
padding-top: 0 !important;
|
143
|
+
|
144
|
+
.title a { display: block; width: 100%; }
|
145
|
+
|
146
|
+
.content { display: none; }
|
147
|
+
|
148
|
+
&.active {
|
149
|
+
.content {
|
150
|
+
display: block;
|
151
|
+
position: absolute;
|
152
|
+
left: 100%;
|
153
|
+
top: -1px;
|
154
|
+
z-index: 999;
|
155
|
+
min-width: $section-vertical-nav-min-width;
|
156
|
+
border: $section-border-size $section-border-style $section-border-color;;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
|
163
|
+
@if $include-html-classes {
|
164
|
+
|
165
|
+
/* Sections */
|
166
|
+
.section-container {
|
167
|
+
@include section-container;
|
168
|
+
|
169
|
+
section,
|
170
|
+
.section { @include section; }
|
171
|
+
}
|
172
|
+
|
173
|
+
@media #{$small} {
|
174
|
+
|
175
|
+
.section-container.accordion .section {
|
176
|
+
padding-top: 0 !important;
|
177
|
+
}
|
178
|
+
|
179
|
+
.section-container.vertical-nav {
|
180
|
+
@include section-container(false);
|
181
|
+
|
182
|
+
section,
|
183
|
+
.section { @include section(vertical-nav); }
|
184
|
+
}
|
185
|
+
|
186
|
+
.section-container.tabs {
|
187
|
+
@include section-container(false, tabs);
|
188
|
+
|
189
|
+
section,
|
190
|
+
.section { @include section(tabs); }
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
}
|