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,56 @@
|
|
1
|
+
//
|
2
|
+
// Keystroke Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use these to control text styles.
|
6
|
+
$keystroke-font: "Consolas", "Menlo", "Courier", monospace !default;
|
7
|
+
$keystroke-font-size: emCalc(15px) !default;
|
8
|
+
$keystroke-font-color: #222 !default;
|
9
|
+
$keystroke-font-color-alt: #fff !default;
|
10
|
+
$keystroke-function-factor: 7% !default;
|
11
|
+
|
12
|
+
// We use this to control keystroke padding.
|
13
|
+
$keystroke-padding: emCalc(2px) emCalc(4px) emCalc(0px) !default;
|
14
|
+
|
15
|
+
// We use these to control background and border styles.
|
16
|
+
$keystroke-bg: darken(#fff, $keystroke-function-factor) !default;
|
17
|
+
$keystroke-border-style: solid !default;
|
18
|
+
$keystroke-border-width: 1px !default;
|
19
|
+
$keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor) !default;
|
20
|
+
$keystroke-radius: $button-radius !default;
|
21
|
+
|
22
|
+
//
|
23
|
+
// Keystroke Mixins
|
24
|
+
//
|
25
|
+
|
26
|
+
// We use this mixin to create keystroke styles.
|
27
|
+
@mixin keystroke($bg:$keystroke-bg) {
|
28
|
+
// This find the lightness percentage of the background color.
|
29
|
+
$bg-lightness: lightness($bg);
|
30
|
+
|
31
|
+
background-color: $bg;
|
32
|
+
border-color: darken($bg, $keystroke-function-factor);
|
33
|
+
|
34
|
+
// We adjust the font color based on the brightness of the background.
|
35
|
+
@if $bg-lightness > 70% { color: $keystroke-font-color; }
|
36
|
+
@else { color: $keystroke-font-color-alt; }
|
37
|
+
|
38
|
+
border-style: $keystroke-border-style;
|
39
|
+
border-width: $keystroke-border-width;
|
40
|
+
margin: 0;
|
41
|
+
font-family: $keystroke-font;
|
42
|
+
font-size: $keystroke-font-size;
|
43
|
+
padding: $keystroke-padding;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
@if $include-html-classes {
|
48
|
+
|
49
|
+
/* Keytroke Characters */
|
50
|
+
.keystroke,
|
51
|
+
kbd {
|
52
|
+
@include keystroke;
|
53
|
+
@include radius($keystroke-radius);
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
//
|
2
|
+
// Label Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use these to style the labels
|
6
|
+
$label-padding: emCalc(3px) emCalc(10px) emCalc(4px) !default;
|
7
|
+
$label-radius: $button-radius !default;
|
8
|
+
|
9
|
+
// We use these to style the label text
|
10
|
+
$label-font-size: emCalc(14px) !default;
|
11
|
+
$label-font-weight: bold !default;
|
12
|
+
|
13
|
+
//
|
14
|
+
// Label Mixins
|
15
|
+
//
|
16
|
+
|
17
|
+
// We use this mixin to create a default label base.
|
18
|
+
@mixin label-base {
|
19
|
+
font-weight: $label-font-weight;
|
20
|
+
text-align: center;
|
21
|
+
text-decoration: none;
|
22
|
+
line-height: 1;
|
23
|
+
white-space: nowrap;
|
24
|
+
display: inline;
|
25
|
+
position: relative;
|
26
|
+
}
|
27
|
+
|
28
|
+
// We use this mixin to add label size styles.
|
29
|
+
@mixin label-size($padding:$label-padding, $text-size:$label-font-size) {
|
30
|
+
@if $padding { padding: $padding; }
|
31
|
+
@if $text-size { font-size: $text-size; }
|
32
|
+
}
|
33
|
+
|
34
|
+
// We use this mixin to add label styles.
|
35
|
+
@mixin label-style($bg:$primary-color, $radius:false) {
|
36
|
+
|
37
|
+
// We control which background color comes through
|
38
|
+
@if $bg {
|
39
|
+
|
40
|
+
// This find the lightness percentage of the background color.
|
41
|
+
$bg-lightness: lightness($bg);
|
42
|
+
|
43
|
+
background-color: $bg;
|
44
|
+
|
45
|
+
// We control the text color for you based on the background color.
|
46
|
+
@if $bg-lightness < 70% { color: #fff; }
|
47
|
+
@else { color: #333; }
|
48
|
+
}
|
49
|
+
|
50
|
+
// We use this to control the radius on labels.
|
51
|
+
@if $radius == true { @include radius($label-radius); }
|
52
|
+
@else if $radius { @include radius($radius); }
|
53
|
+
|
54
|
+
}
|
55
|
+
|
56
|
+
// We use this to add close buttons to alerts
|
57
|
+
@mixin label($padding:$label-padding, $text-size:$label-font-size, $bg:$primary-color, $radius:false) {
|
58
|
+
@include label-base;
|
59
|
+
@include label-size($padding, $text-size);
|
60
|
+
@include label-style($bg, $radius);
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
@if $include-html-classes {
|
65
|
+
|
66
|
+
/* Labels */
|
67
|
+
.label {
|
68
|
+
@include label-base;
|
69
|
+
@include label-size;
|
70
|
+
@include label-style;
|
71
|
+
|
72
|
+
|
73
|
+
&.radius { @include label-style(false, true); }
|
74
|
+
&.round { @include label-style(false, $radius:1000px); }
|
75
|
+
|
76
|
+
&.alert { @include label-style($alert-color); }
|
77
|
+
&.success { @include label-style($success-color); }
|
78
|
+
&.secondary { @include label-style($secondary-color); }
|
79
|
+
}
|
80
|
+
|
81
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
// Orbit Settings
|
2
|
+
|
3
|
+
// We use these to control the caption styles
|
4
|
+
$orbit-caption-bg-old-browser: #000 !default;
|
5
|
+
$orbit-caption-bg-old: rgb(0,0,0) !default;
|
6
|
+
$orbit-caption-bg: rgba(0,0,0,0.6) !default;
|
7
|
+
$orbit-caption-font-color: #fff !default;
|
8
|
+
|
9
|
+
// We use these to control the left/right nav styles
|
10
|
+
$orbit-nav-bg-old: rgb(0,0,0) !default;
|
11
|
+
$orbit-nav-bg: rgba(0,0,0,0.6) !default;
|
12
|
+
|
13
|
+
// We use these to control the timer styles
|
14
|
+
$orbit-timer-bg-old: rgb(0,0,0) !default;
|
15
|
+
$orbit-timer-bg: rgba(0,0,0,0.6) !default;
|
16
|
+
|
17
|
+
// We use these to control the bullet nav styles
|
18
|
+
$orbit-bullet-nav-color: #999 !default;
|
19
|
+
$orbit-bullet-nav-color-active: #222 !default;
|
20
|
+
|
21
|
+
// We use thes to controls the style of slide numbers
|
22
|
+
$orbit-slide-number-bg: rgb(0,0,0) !default;
|
23
|
+
$orbit-slide-number-font-color: #fff !default;
|
24
|
+
$orbit-slide-number-padding: emCalc(5px) !default;
|
25
|
+
|
26
|
+
|
27
|
+
.orbit-container {
|
28
|
+
overflow: hidden;
|
29
|
+
width: 100%;
|
30
|
+
position: relative;
|
31
|
+
background: #f5f5f5;
|
32
|
+
|
33
|
+
.orbit-slides-container {
|
34
|
+
list-style: none;
|
35
|
+
margin: 0;
|
36
|
+
padding: 0;
|
37
|
+
position: relative;
|
38
|
+
|
39
|
+
img { display: block; }
|
40
|
+
|
41
|
+
&>* {
|
42
|
+
position: relative;
|
43
|
+
float: left;
|
44
|
+
height: 100%;
|
45
|
+
|
46
|
+
.orbit-caption {
|
47
|
+
position: absolute;
|
48
|
+
bottom: 0;
|
49
|
+
background-color: $orbit-caption-bg-old;
|
50
|
+
background-color: $orbit-caption-bg;
|
51
|
+
color: #fff;
|
52
|
+
width: 100%;
|
53
|
+
padding: 10px 14px;
|
54
|
+
font-size: emCalc(14px);
|
55
|
+
|
56
|
+
* { color: #fff; }
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.orbit-slide-number {
|
62
|
+
position: absolute;
|
63
|
+
top: 10px;
|
64
|
+
left: 10px;
|
65
|
+
font-size: 12px;
|
66
|
+
span { font-weight: 700; }
|
67
|
+
}
|
68
|
+
|
69
|
+
.orbit-timer {
|
70
|
+
position: absolute;
|
71
|
+
top: 10px;
|
72
|
+
right: 10px;
|
73
|
+
height: 6px;
|
74
|
+
width: 100px;
|
75
|
+
.orbit-progress {
|
76
|
+
height: 100%;
|
77
|
+
background-color: $orbit-timer-bg-old;
|
78
|
+
background-color: $orbit-timer-bg;
|
79
|
+
display: block;
|
80
|
+
width: 0%;
|
81
|
+
}
|
82
|
+
|
83
|
+
& > span {
|
84
|
+
display: none;
|
85
|
+
position: absolute;
|
86
|
+
top: 10px;
|
87
|
+
right: 0px;
|
88
|
+
width: 11px;
|
89
|
+
height: 14px;
|
90
|
+
border: solid 4px #000;
|
91
|
+
border-top: none;
|
92
|
+
border-bottom: none;
|
93
|
+
}
|
94
|
+
|
95
|
+
&.paused {
|
96
|
+
& > span {
|
97
|
+
right: -6px;
|
98
|
+
top: 9px;
|
99
|
+
width: 11px;
|
100
|
+
height: 14px;
|
101
|
+
border: solid 8px;
|
102
|
+
border-color: transparent transparent transparent #000;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&:hover .orbit-timer > span { display: block; }
|
108
|
+
|
109
|
+
// Let's get those controls to be right in the center on each side
|
110
|
+
.orbit-prev,
|
111
|
+
.orbit-next {
|
112
|
+
position: absolute;
|
113
|
+
top: 50%;
|
114
|
+
margin-top: -25px;
|
115
|
+
background-color: $orbit-nav-bg-old;
|
116
|
+
background-color: $orbit-nav-bg;
|
117
|
+
width: 50px;
|
118
|
+
height: 60px;
|
119
|
+
line-height: 50px;
|
120
|
+
color: white;
|
121
|
+
text-indent: -9999px !important;
|
122
|
+
|
123
|
+
& > span {
|
124
|
+
position: absolute;
|
125
|
+
top: 50%;
|
126
|
+
margin-top: -16px;
|
127
|
+
display: block;
|
128
|
+
width: 0;
|
129
|
+
height: 0;
|
130
|
+
border: solid 16px;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
.orbit-prev { left: 0;
|
134
|
+
& > span { border-color: transparent #fff transparent transparent; }
|
135
|
+
&:hover > span { border-color: transparent #ccc transparent transparent; }
|
136
|
+
}
|
137
|
+
.orbit-next { right: 0;
|
138
|
+
& > span {
|
139
|
+
border-color: transparent transparent transparent #fff;
|
140
|
+
left: 50%;
|
141
|
+
margin-left: -8px;
|
142
|
+
}
|
143
|
+
&:hover > span { border-color: transparent transparent transparent #ccc; }
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.orbit-bullets {
|
148
|
+
margin: 0 auto 30px auto;
|
149
|
+
overflow: hidden;
|
150
|
+
position: relative;
|
151
|
+
top: 10px;
|
152
|
+
|
153
|
+
li {
|
154
|
+
display: block;
|
155
|
+
width: 18px;
|
156
|
+
height: 18px;
|
157
|
+
background: #fff;
|
158
|
+
float: left;
|
159
|
+
margin-right: 6px;
|
160
|
+
border: solid 2px #000;
|
161
|
+
@include radius(1000px);
|
162
|
+
|
163
|
+
&.active {
|
164
|
+
background: #000;
|
165
|
+
}
|
166
|
+
|
167
|
+
&:last-child { margin-right: 0; }
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
.touch {
|
172
|
+
.orbit-container {
|
173
|
+
.orbit-prev,
|
174
|
+
.orbit-next { display: none; }
|
175
|
+
}
|
176
|
+
|
177
|
+
.orbit-bullets { display: none; }
|
178
|
+
}
|
179
|
+
|
180
|
+
@media #{$small} {
|
181
|
+
|
182
|
+
.touch {
|
183
|
+
.orbit-container {
|
184
|
+
.orbit-prev,
|
185
|
+
.orbit-next { display: inherit; }
|
186
|
+
}
|
187
|
+
|
188
|
+
.orbit-bullets { display: block; }
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
//
|
2
|
+
// Pagination Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use these to control the pagination container
|
6
|
+
$pagination-height: emCalc(24px) !default;
|
7
|
+
$pagination-margin: emCalc(-5px) !default;
|
8
|
+
|
9
|
+
// We use these to set the list-item properties
|
10
|
+
$pagination-li-float: $default-float;
|
11
|
+
$pagination-li-height: emCalc(24px) !default;
|
12
|
+
$pagination-li-font-color: #222 !default;
|
13
|
+
$pagination-li-font-size: emCalc(14px) !default;
|
14
|
+
$pagination-li-margin: emCalc(5px) !default;
|
15
|
+
|
16
|
+
// We use these for the pagination anchor links
|
17
|
+
$pagination-link-pad: emCalc(1px) emCalc(7px) emCalc(1px) !default;
|
18
|
+
$pagination-link-font-color: #999 !default;
|
19
|
+
$pagination-link-active-bg: darken(#fff, 10%) !default;
|
20
|
+
|
21
|
+
// We use these for disabled anchor links
|
22
|
+
$pagination-link-unavailable-cursor: default !default;
|
23
|
+
$pagination-link-unavailable-font-color: #999 !default;
|
24
|
+
$pagination-link-unavailable-bg-active: transparent !default;
|
25
|
+
|
26
|
+
// We use these for currently selected anchor links
|
27
|
+
$pagination-link-current-background: $primary-color !default;
|
28
|
+
$pagination-link-current-font-color: #fff !default;
|
29
|
+
$pagination-link-current-font-weight: bold !default;
|
30
|
+
$pagination-link-current-cursor: default !default;
|
31
|
+
$pagination-link-current-active-bg: $primary-color !default;
|
32
|
+
|
33
|
+
//
|
34
|
+
// Pagination Mixin
|
35
|
+
//
|
36
|
+
|
37
|
+
// We use this mixin to set the properties for the creating Foundation pagination
|
38
|
+
@mixin pagination($center:false, $base-style:true) {
|
39
|
+
|
40
|
+
@if $base-style {
|
41
|
+
display: block;
|
42
|
+
height: $pagination-height;
|
43
|
+
margin-#{$default-float}: $pagination-margin;
|
44
|
+
|
45
|
+
li {
|
46
|
+
display: block;
|
47
|
+
float: $pagination-li-float;
|
48
|
+
height: $pagination-li-height;
|
49
|
+
color: $pagination-li-font-color;
|
50
|
+
font-size: $pagination-li-font-size;
|
51
|
+
margin-#{$default-float}: $pagination-li-margin;
|
52
|
+
|
53
|
+
a {
|
54
|
+
display: block;
|
55
|
+
padding: $pagination-link-pad;
|
56
|
+
color: $pagination-link-font-color;
|
57
|
+
}
|
58
|
+
|
59
|
+
&:hover a,
|
60
|
+
a:focus { background: $pagination-link-active-bg; }
|
61
|
+
|
62
|
+
&.unavailable a {
|
63
|
+
cursor: $pagination-link-unavailable-cursor;
|
64
|
+
color: $pagination-link-unavailable-font-color;
|
65
|
+
}
|
66
|
+
|
67
|
+
&.unavailable:hover a, &.unavailable a:focus { background: $pagination-link-unavailable-bg-active; }
|
68
|
+
|
69
|
+
&.current a {
|
70
|
+
background: $pagination-link-current-background;
|
71
|
+
color: $pagination-link-current-font-color;
|
72
|
+
font-weight: $pagination-link-current-font-weight;
|
73
|
+
cursor: $pagination-link-current-cursor;
|
74
|
+
|
75
|
+
&:hover,
|
76
|
+
&:focus { background: $pagination-link-current-active-bg; }
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
@if $center {
|
82
|
+
& { text-align: center;
|
83
|
+
ul > li {
|
84
|
+
float: none;
|
85
|
+
display: inline-block;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
@if $include-html-classes {
|
95
|
+
|
96
|
+
/* Pagination */
|
97
|
+
.pagination { @include pagination; }
|
98
|
+
.pagination-centered { @include pagination(true,false); }
|
99
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
//
|
2
|
+
// Panel Variables
|
3
|
+
//
|
4
|
+
|
5
|
+
// We use these to control the background and border styles
|
6
|
+
$panel-bg: darken(#fff, 5%) !default;
|
7
|
+
$panel-border-style: solid !default;
|
8
|
+
$panel-border-size: 1px !default;
|
9
|
+
|
10
|
+
// We use this % to control how much we darken things on hover
|
11
|
+
$panel-function-factor: 10% !default;
|
12
|
+
$panel-border-color: darken($panel-bg, $panel-function-factor) !default;
|
13
|
+
|
14
|
+
// We use these to set default inner padding and bottom margin
|
15
|
+
$panel-margin-bottom: emCalc(20px) !default;
|
16
|
+
$panel-padding: emCalc(20px) !default;
|
17
|
+
|
18
|
+
// We use these to set default font colors
|
19
|
+
$panel-font-color: #333 !default;
|
20
|
+
$panel-font-color-alt: #fff !default;
|
21
|
+
|
22
|
+
|
23
|
+
//
|
24
|
+
// Panel Mixins
|
25
|
+
//
|
26
|
+
|
27
|
+
// We use this mixin to create panels.
|
28
|
+
@mixin panel($bg:$panel-bg, $padding:$panel-padding) {
|
29
|
+
|
30
|
+
@if $bg {
|
31
|
+
$bg-lightness: lightness($bg);
|
32
|
+
|
33
|
+
border-style: $panel-border-style;
|
34
|
+
border-width: $panel-border-size;
|
35
|
+
border-color: darken($bg, $panel-function-factor);
|
36
|
+
margin-bottom: $panel-margin-bottom;
|
37
|
+
padding: $padding;
|
38
|
+
|
39
|
+
background: $bg;
|
40
|
+
|
41
|
+
// We set the font color based on the darkness of the bg.
|
42
|
+
@if $bg-lightness >= 50% and $bg == blue { h1,h2,h3,h4,h5,h6,p { color: $panel-font-color-alt; } }
|
43
|
+
@else if $bg-lightness >= 50% { h1,h2,h3,h4,h5,h6,p { color: $panel-font-color; } }
|
44
|
+
@else { h1,h2,h3,h4,h5,h6,p { color: $panel-font-color-alt; } }
|
45
|
+
|
46
|
+
// Respect the padding, fool.
|
47
|
+
&>:first-child { margin-top: 0; }
|
48
|
+
&>:last-child { margin-bottom: 0; }
|
49
|
+
|
50
|
+
// reset header line-heights for panels
|
51
|
+
h1,h2,h3,h4,h5,h6 {
|
52
|
+
line-height: 1; margin-bottom: emCalc(20px) / 2;
|
53
|
+
&.subheader { line-height: 1.4; }
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// Only include these classes if the option exists
|
59
|
+
@if $include-html-classes {
|
60
|
+
|
61
|
+
/* Panels */
|
62
|
+
.panel { @include panel;
|
63
|
+
|
64
|
+
&.callout {
|
65
|
+
@include panel($primary-color);
|
66
|
+
@include inset-shadow($active:false);
|
67
|
+
}
|
68
|
+
|
69
|
+
&.radius {
|
70
|
+
@include panel($bg:false);
|
71
|
+
@include radius;
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
}
|