themepile-abstractio 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +28 -0
- data/.rbenv-version +1 -0
- data/CONTRIBUTING.md +53 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +136 -0
- data/Rakefile +2 -0
- data/abstractio.gemspec +18 -0
- data/js/foundation/foundation.alerts.js +50 -0
- data/js/foundation/foundation.clearing.js +516 -0
- data/js/foundation/foundation.cookie.js +74 -0
- data/js/foundation/foundation.dropdown.js +159 -0
- data/js/foundation/foundation.forms.js +516 -0
- data/js/foundation/foundation.joyride.js +842 -0
- data/js/foundation/foundation.js +403 -0
- data/js/foundation/foundation.magellan.js +130 -0
- data/js/foundation/foundation.orbit.js +373 -0
- data/js/foundation/foundation.placeholder.js +159 -0
- data/js/foundation/foundation.reveal.js +276 -0
- data/js/foundation/foundation.section.js +409 -0
- data/js/foundation/foundation.tooltips.js +206 -0
- data/js/foundation/foundation.topbar.js +252 -0
- data/js/foundation/index.js +16 -0
- data/js/vendor/custom.modernizr.js +4 -0
- data/js/vendor/jquery.js +9597 -0
- data/js/vendor/zepto.js +1884 -0
- data/lib/abstractio.rb +17 -0
- data/lib/abstractio/engine.rb +20 -0
- data/lib/abstractio/generators/USAGE +15 -0
- data/lib/abstractio/generators/install_generator.rb +54 -0
- data/lib/abstractio/generators/templates/application.html.erb +46 -0
- data/lib/abstractio/generators/templates/application.html.haml +31 -0
- data/lib/abstractio/generators/templates/application.html.slim +28 -0
- data/lib/abstractio/version.rb +3 -0
- data/lib/themepile-abstractio.rb +17 -0
- data/scss/abstractio.scss +46 -0
- data/scss/abstractio/_variables.scss +1224 -0
- data/scss/abstractio/components/_alert-boxes.scss +107 -0
- data/scss/abstractio/components/_block-grid.scss +68 -0
- data/scss/abstractio/components/_breadcrumbs.scss +125 -0
- data/scss/abstractio/components/_button-groups.scss +89 -0
- data/scss/abstractio/components/_buttons.scss +227 -0
- data/scss/abstractio/components/_clearing.scss +224 -0
- data/scss/abstractio/components/_custom-forms.scss +263 -0
- data/scss/abstractio/components/_dropdown-buttons.scss +115 -0
- data/scss/abstractio/components/_dropdown.scss +150 -0
- data/scss/abstractio/components/_flex-video.scss +46 -0
- data/scss/abstractio/components/_forms.scss +362 -0
- data/scss/abstractio/components/_global.scss +280 -0
- data/scss/abstractio/components/_grid.scss +186 -0
- data/scss/abstractio/components/_inline-lists.scss +53 -0
- data/scss/abstractio/components/_joyride.scss +215 -0
- data/scss/abstractio/components/_keystrokes.scss +57 -0
- data/scss/abstractio/components/_labels.scss +85 -0
- data/scss/abstractio/components/_magellan.scss +23 -0
- data/scss/abstractio/components/_orbit.scss +213 -0
- data/scss/abstractio/components/_pagination.scss +100 -0
- data/scss/abstractio/components/_panels.scss +77 -0
- data/scss/abstractio/components/_pricing-tables.scss +131 -0
- data/scss/abstractio/components/_progress-bars.scss +71 -0
- data/scss/abstractio/components/_reveal.scss +132 -0
- data/scss/abstractio/components/_section.scss +318 -0
- data/scss/abstractio/components/_side-nav.scss +69 -0
- data/scss/abstractio/components/_split-buttons.scss +167 -0
- data/scss/abstractio/components/_sub-nav.scss +68 -0
- data/scss/abstractio/components/_switch.scss +251 -0
- data/scss/abstractio/components/_tables.scss +84 -0
- data/scss/abstractio/components/_thumbs.scss +48 -0
- data/scss/abstractio/components/_tooltips.scss +117 -0
- data/scss/abstractio/components/_top-bar.scss +495 -0
- data/scss/abstractio/components/_type.scss +426 -0
- data/scss/abstractio/components/_visibility.scss +322 -0
- data/scss/normalize.scss +402 -0
- data/templates/project/.gitignore +44 -0
- data/templates/project/MIT-LICENSE.txt +20 -0
- data/templates/project/config.rb +26 -0
- data/templates/project/humans.txt +8 -0
- data/templates/project/index.html +124 -0
- data/templates/project/manifest.rb +45 -0
- data/templates/project/robots.txt +4 -0
- data/templates/project/scss/app.scss +48 -0
- data/templates/upgrade/manifest.rb +34 -0
- metadata +153 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
//
|
2
|
+
// Inline List Variables
|
3
|
+
//
|
4
|
+
$include-html-global-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
// We use this to control the margins and padding of the inline list.
|
7
|
+
$inline-list-top-margin: 0 !default;
|
8
|
+
$inline-list-opposite-margin: 0 !default;
|
9
|
+
$inline-list-bottom-margin: emCalc(17px) !default;
|
10
|
+
$inline-list-default-float-margin: emCalc(-22px) !default;
|
11
|
+
|
12
|
+
$inline-list-padding: 0 !default;
|
13
|
+
|
14
|
+
// We use this to control the overflow of the inline list.
|
15
|
+
$inline-list-overflow: hidden !default;
|
16
|
+
|
17
|
+
// We use this to control the list items
|
18
|
+
$inline-list-display: block !default;
|
19
|
+
|
20
|
+
// We use this to control any elments within list items
|
21
|
+
$inline-list-children-display: block !default;
|
22
|
+
|
23
|
+
//
|
24
|
+
// Inline List Mixins
|
25
|
+
//
|
26
|
+
|
27
|
+
// We use this mixin to create inline lists
|
28
|
+
@mixin inline-list {
|
29
|
+
margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
|
30
|
+
margin-#{$default-float}: $inline-list-default-float-margin;
|
31
|
+
margin-#{$opposite-direction}: $inline-list-opposite-margin;
|
32
|
+
padding: $inline-list-padding;
|
33
|
+
list-style: none;
|
34
|
+
overflow: $inline-list-overflow;
|
35
|
+
|
36
|
+
& > li {
|
37
|
+
list-style: none;
|
38
|
+
float: $default-float;
|
39
|
+
margin-#{$default-float}: emCalc(22px);
|
40
|
+
display: $inline-list-display;
|
41
|
+
&>* { display: $inline-list-children-display; }
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
@if $include-html-global-classes != false {
|
47
|
+
|
48
|
+
/* Inline Lists */
|
49
|
+
.inline-list {
|
50
|
+
@include inline-list();
|
51
|
+
}
|
52
|
+
|
53
|
+
}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
//
|
2
|
+
// Joyride Variables
|
3
|
+
//
|
4
|
+
$include-html-joyride-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
// Controlling default Joyride styles
|
7
|
+
$joyride-tip-bg: rgb(0,0,0) !default;
|
8
|
+
$joyride-tip-default-width: 300px !default;
|
9
|
+
$joyride-tip-padding: emCalc(18px) emCalc(20px) emCalc(24px) !default;
|
10
|
+
$joyride-tip-border: solid 1px #555 !default;
|
11
|
+
$joyride-tip-radius: 4px !default;
|
12
|
+
$joyride-tip-position-offset: 22px !default;
|
13
|
+
|
14
|
+
// Here, we're setting the tip dont styles
|
15
|
+
$joyride-tip-font-color: #fff !default;
|
16
|
+
$joyride-tip-font-size: emCalc(14px) !default;
|
17
|
+
$joyride-tip-header-weight: bold !default;
|
18
|
+
|
19
|
+
// This changes the nub size
|
20
|
+
$joyride-tip-nub-size: 14px !default;
|
21
|
+
|
22
|
+
// This adjusts the styles for the timer when its enabled
|
23
|
+
$joyride-tip-timer-width: 50px !default;
|
24
|
+
$joyride-tip-timer-height: 3px !default;
|
25
|
+
$joyride-tip-timer-color: #666 !default;
|
26
|
+
|
27
|
+
// This changes up the styles for the close button
|
28
|
+
$joyride-tip-close-color: #777 !default;
|
29
|
+
$joyride-tip-close-size: 30px !default;
|
30
|
+
$joyride-tip-close-weight: normal !default;
|
31
|
+
|
32
|
+
// When Joyride is filling the screen, we use this style for the bg
|
33
|
+
$joyride-screenfill: rgba(0,0,0,0.5) !default;
|
34
|
+
|
35
|
+
|
36
|
+
// We decided not to make a mixin for this because it relies on predefined classes to work properly.
|
37
|
+
|
38
|
+
@if $include-html-joyride-classes != false {
|
39
|
+
|
40
|
+
/* Foundation Joyride */
|
41
|
+
.joyride-list { display: none; }
|
42
|
+
|
43
|
+
/* Default styles for the container */
|
44
|
+
.joyride-tip-guide {
|
45
|
+
display: none;
|
46
|
+
position: absolute;
|
47
|
+
background: $joyride-tip-bg;
|
48
|
+
color: $joyride-tip-font-color;
|
49
|
+
z-index: 101;
|
50
|
+
top: 0;
|
51
|
+
#{$default-float}: 2.5%;
|
52
|
+
font-family: inherit;
|
53
|
+
font-weight: normal;
|
54
|
+
width: 95%;
|
55
|
+
}
|
56
|
+
|
57
|
+
.lt-ie9 .joyride-tip-guide {
|
58
|
+
max-width:800px;
|
59
|
+
#{$default-float}: 50%;
|
60
|
+
margin-#{$default-float}:-400px;
|
61
|
+
}
|
62
|
+
|
63
|
+
.joyride-content-wrapper {
|
64
|
+
width: 100%;
|
65
|
+
|
66
|
+
padding: $joyride-tip-padding;
|
67
|
+
|
68
|
+
.button { margin-bottom: 0 !important; }
|
69
|
+
}
|
70
|
+
|
71
|
+
/* Add a little css triangle pip, older browser just miss out on the fanciness of it */
|
72
|
+
.joyride-tip-guide {
|
73
|
+
.joyride-nub {
|
74
|
+
display: block;
|
75
|
+
position: absolute;
|
76
|
+
#{$default-float}: $joyride-tip-position-offset;
|
77
|
+
width: 0;
|
78
|
+
height: 0;
|
79
|
+
border: inset $joyride-tip-nub-size;
|
80
|
+
|
81
|
+
&.top {
|
82
|
+
border-top-style: solid;
|
83
|
+
border-color: $joyride-tip-bg;
|
84
|
+
border-top-color: transparent !important;
|
85
|
+
border-#{$default-float}-color: transparent !important;
|
86
|
+
border-#{$opposite-direction}-color: transparent !important;
|
87
|
+
top: -($joyride-tip-nub-size*2);
|
88
|
+
}
|
89
|
+
&.bottom {
|
90
|
+
border-bottom-style: solid;
|
91
|
+
border-color: $joyride-tip-bg !important;
|
92
|
+
border-bottom-color: transparent !important;
|
93
|
+
border-#{$default-float}-color: transparent !important;
|
94
|
+
border-#{$opposite-direction}-color: transparent !important;
|
95
|
+
bottom: -($joyride-tip-nub-size*2);
|
96
|
+
}
|
97
|
+
|
98
|
+
&.right { right: -($joyride-tip-nub-size*2); }
|
99
|
+
&.left { left: -($joyride-tip-nub-size*2); }
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
/* Typography */
|
104
|
+
.joyride-tip-guide h1,
|
105
|
+
.joyride-tip-guide h2,
|
106
|
+
.joyride-tip-guide h3,
|
107
|
+
.joyride-tip-guide h4,
|
108
|
+
.joyride-tip-guide h5,
|
109
|
+
.joyride-tip-guide h6 {
|
110
|
+
line-height: 1.25;
|
111
|
+
margin: 0;
|
112
|
+
font-weight: $joyride-tip-header-weight;
|
113
|
+
color: $joyride-tip-font-color;
|
114
|
+
}
|
115
|
+
.joyride-tip-guide p {
|
116
|
+
margin: 0 0 emCalc(18px) 0;
|
117
|
+
font-size: $joyride-tip-font-size;
|
118
|
+
line-height: 1.3;
|
119
|
+
}
|
120
|
+
|
121
|
+
.joyride-timer-indicator-wrap {
|
122
|
+
width: $joyride-tip-timer-width;
|
123
|
+
height: $joyride-tip-timer-height;
|
124
|
+
border: $joyride-tip-border;
|
125
|
+
position: absolute;
|
126
|
+
#{$opposite-direction}: emCalc(17px);
|
127
|
+
bottom: emCalc(16px);
|
128
|
+
}
|
129
|
+
.joyride-timer-indicator {
|
130
|
+
display: block;
|
131
|
+
width: 0;
|
132
|
+
height: inherit;
|
133
|
+
background: $joyride-tip-timer-color;
|
134
|
+
}
|
135
|
+
|
136
|
+
.joyride-close-tip {
|
137
|
+
position: absolute;
|
138
|
+
#{$opposite-direction}: 12px;
|
139
|
+
top: 10px;
|
140
|
+
color: $joyride-tip-close-color !important;
|
141
|
+
text-decoration: none;
|
142
|
+
font-size: $joyride-tip-close-size;
|
143
|
+
font-weight: $joyride-tip-close-weight;
|
144
|
+
line-height: .5 !important;
|
145
|
+
|
146
|
+
&:hover,
|
147
|
+
&:focus { color: #eee !important; }
|
148
|
+
}
|
149
|
+
|
150
|
+
.joyride-modal-bg {
|
151
|
+
position: fixed;
|
152
|
+
height: 100%;
|
153
|
+
width: 100%;
|
154
|
+
background: transparent;
|
155
|
+
background: $joyride-screenfill;
|
156
|
+
z-index: 100;
|
157
|
+
display: none;
|
158
|
+
top: 0;
|
159
|
+
#{$default-float}: 0;
|
160
|
+
cursor: pointer;
|
161
|
+
}
|
162
|
+
|
163
|
+
.joyride-expose-wrapper {
|
164
|
+
background-color: #ffffff;
|
165
|
+
position: absolute;
|
166
|
+
border-radius: 3px;
|
167
|
+
z-index: 102;
|
168
|
+
-moz-box-shadow: 0px 0px 30px #ffffff;
|
169
|
+
-webkit-box-shadow: 0px 0px 15px #ffffff;
|
170
|
+
box-shadow: 0px 0px 15px #ffffff;
|
171
|
+
}
|
172
|
+
|
173
|
+
.joyride-expose-cover {
|
174
|
+
background: transparent;
|
175
|
+
border-radius: 3px;
|
176
|
+
position: absolute;
|
177
|
+
z-index: 9999;
|
178
|
+
top: 0px;
|
179
|
+
left: 0px;
|
180
|
+
}
|
181
|
+
|
182
|
+
|
183
|
+
/* Styles for screens that are atleast 768px; */
|
184
|
+
@media #{$small} {
|
185
|
+
.joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit;
|
186
|
+
.joyride-nub {
|
187
|
+
&.bottom {
|
188
|
+
border-color: $joyride-tip-bg !important;
|
189
|
+
border-bottom-color: transparent !important;
|
190
|
+
border-#{$default-float}-color: transparent !important;
|
191
|
+
border-#{$opposite-direction}-color: transparent !important;
|
192
|
+
bottom: -($joyride-tip-nub-size*2);
|
193
|
+
}
|
194
|
+
&.right {
|
195
|
+
border-color: $joyride-tip-bg !important;
|
196
|
+
border-top-color: transparent !important;
|
197
|
+
border-right-color: transparent !important; border-bottom-color: transparent !important;
|
198
|
+
top: $joyride-tip-position-offset;
|
199
|
+
left: auto;
|
200
|
+
right: -($joyride-tip-nub-size*2);
|
201
|
+
}
|
202
|
+
&.left {
|
203
|
+
border-color: $joyride-tip-bg !important;
|
204
|
+
border-top-color: transparent !important;
|
205
|
+
border-left-color: transparent !important;
|
206
|
+
border-bottom-color: transparent !important;
|
207
|
+
top: $joyride-tip-position-offset;
|
208
|
+
left: -($joyride-tip-nub-size*2);
|
209
|
+
right: auto;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
//
|
2
|
+
// Keystroke Variables
|
3
|
+
//
|
4
|
+
$include-html-type-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
// We use these to control text styles.
|
7
|
+
$keystroke-font: "Consolas", "Menlo", "Courier", monospace !default;
|
8
|
+
$keystroke-font-size: emCalc(15px) !default;
|
9
|
+
$keystroke-font-color: #222 !default;
|
10
|
+
$keystroke-font-color-alt: #fff !default;
|
11
|
+
$keystroke-function-factor: 7% !default;
|
12
|
+
|
13
|
+
// We use this to control keystroke padding.
|
14
|
+
$keystroke-padding: emCalc(2px) emCalc(4px) emCalc(0px) !default;
|
15
|
+
|
16
|
+
// We use these to control background and border styles.
|
17
|
+
$keystroke-bg: darken(#fff, $keystroke-function-factor) !default;
|
18
|
+
$keystroke-border-style: solid !default;
|
19
|
+
$keystroke-border-width: 1px !default;
|
20
|
+
$keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor) !default;
|
21
|
+
$keystroke-radius: $global-radius !default;
|
22
|
+
|
23
|
+
//
|
24
|
+
// Keystroke Mixins
|
25
|
+
//
|
26
|
+
|
27
|
+
// We use this mixin to create keystroke styles.
|
28
|
+
@mixin keystroke($bg:$keystroke-bg) {
|
29
|
+
// This find the lightness percentage of the background color.
|
30
|
+
$bg-lightness: lightness($bg);
|
31
|
+
|
32
|
+
background-color: $bg;
|
33
|
+
border-color: darken($bg, $keystroke-function-factor);
|
34
|
+
|
35
|
+
// We adjust the font color based on the brightness of the background.
|
36
|
+
@if $bg-lightness > 70% { color: $keystroke-font-color; }
|
37
|
+
@else { color: $keystroke-font-color-alt; }
|
38
|
+
|
39
|
+
border-style: $keystroke-border-style;
|
40
|
+
border-width: $keystroke-border-width;
|
41
|
+
margin: 0;
|
42
|
+
font-family: $keystroke-font;
|
43
|
+
font-size: $keystroke-font-size;
|
44
|
+
padding: $keystroke-padding;
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
@if $include-html-type-classes != false {
|
49
|
+
|
50
|
+
/* Keystroke Characters */
|
51
|
+
.keystroke,
|
52
|
+
kbd {
|
53
|
+
@include keystroke;
|
54
|
+
@include radius($keystroke-radius);
|
55
|
+
}
|
56
|
+
|
57
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
//
|
2
|
+
// Label Variables
|
3
|
+
//
|
4
|
+
$include-html-label-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
// We use these to style the labels
|
7
|
+
$label-padding: emCalc(3px) emCalc(10px) emCalc(4px) !default;
|
8
|
+
$label-radius: $global-radius !default;
|
9
|
+
|
10
|
+
// We use these to style the label text
|
11
|
+
$label-font-sizing: emCalc(14px) !default;
|
12
|
+
$label-font-weight: bold !default;
|
13
|
+
$label-font-color: #333 !default;
|
14
|
+
$label-font-color-alt: #fff !default;
|
15
|
+
|
16
|
+
//
|
17
|
+
// Label Mixins
|
18
|
+
//
|
19
|
+
|
20
|
+
// We use this mixin to create a default label base.
|
21
|
+
@mixin label-base {
|
22
|
+
font-weight: $label-font-weight;
|
23
|
+
text-align: center;
|
24
|
+
text-decoration: none;
|
25
|
+
line-height: 1;
|
26
|
+
white-space: nowrap;
|
27
|
+
display: inline-block;
|
28
|
+
position: relative;
|
29
|
+
}
|
30
|
+
|
31
|
+
// We use this mixin to add label size styles.
|
32
|
+
@mixin label-size($padding:$label-padding, $text-size:$label-font-sizing) {
|
33
|
+
@if $padding { padding: $padding; }
|
34
|
+
@if $text-size { font-size: $text-size; }
|
35
|
+
}
|
36
|
+
|
37
|
+
// We use this mixin to add label styles.
|
38
|
+
@mixin label-style($bg:$primary-color, $radius:false) {
|
39
|
+
|
40
|
+
// We control which background color comes through
|
41
|
+
@if $bg {
|
42
|
+
|
43
|
+
// This find the lightness percentage of the background color.
|
44
|
+
$bg-lightness: lightness($bg);
|
45
|
+
|
46
|
+
background-color: $bg;
|
47
|
+
|
48
|
+
// We control the text color for you based on the background color.
|
49
|
+
@if $bg-lightness < 70% { color: $label-font-color-alt; }
|
50
|
+
@else { color: $label-font-color; }
|
51
|
+
}
|
52
|
+
|
53
|
+
// We use this to control the radius on labels.
|
54
|
+
@if $radius == true { @include radius($label-radius); }
|
55
|
+
@else if $radius { @include radius($radius); }
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
// We use this to add close buttons to alerts
|
60
|
+
@mixin label($padding:$label-padding, $text-size:$label-font-sizing, $bg:$primary-color, $radius:false) {
|
61
|
+
|
62
|
+
@include label-base;
|
63
|
+
@include label-size($padding, $text-size);
|
64
|
+
@include label-style($bg, $radius);
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
@if $include-html-label-classes != false {
|
69
|
+
|
70
|
+
/* Labels */
|
71
|
+
.label {
|
72
|
+
@include label-base;
|
73
|
+
@include label-size;
|
74
|
+
@include label-style;
|
75
|
+
|
76
|
+
|
77
|
+
&.radius { @include label-style(false, true); }
|
78
|
+
&.round { @include label-style(false, $radius:1000px); }
|
79
|
+
|
80
|
+
&.alert { @include label-style($alert-color); }
|
81
|
+
&.success { @include label-style($success-color); }
|
82
|
+
&.secondary { @include label-style($secondary-color); }
|
83
|
+
}
|
84
|
+
|
85
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//
|
2
|
+
// Magellan Variables
|
3
|
+
//
|
4
|
+
$include-html-magellan-classes: $include-html-classes !default;
|
5
|
+
|
6
|
+
$magellan-bg: #fff !default;
|
7
|
+
$magellan-padding: 10px !default;
|
8
|
+
|
9
|
+
@if $include-html-magellan-classes != false {
|
10
|
+
|
11
|
+
[data-magellan-expedition] {
|
12
|
+
background: $magellan-bg;
|
13
|
+
z-index: 50;
|
14
|
+
min-width: 100%;
|
15
|
+
padding: $magellan-padding;
|
16
|
+
|
17
|
+
.sub-nav {
|
18
|
+
margin-bottom: 0;
|
19
|
+
dd { margin-bottom: 0; }
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
}
|
@@ -0,0 +1,213 @@
|
|
1
|
+
// Orbit Settings
|
2
|
+
$include-html-orbit-classes: $include-html-classes !default;
|
3
|
+
|
4
|
+
// We use these to control the caption styles
|
5
|
+
$orbit-container-bg: #f5f5f5 !default;
|
6
|
+
$orbit-caption-bg-old-browser: #000 !default;
|
7
|
+
$orbit-caption-bg-old: rgb(0,0,0) !default;
|
8
|
+
$orbit-caption-bg: rgba(0,0,0,0.6) !default;
|
9
|
+
$orbit-caption-font-color: #fff !default;
|
10
|
+
|
11
|
+
// We use these to control the left/right nav styles
|
12
|
+
$orbit-nav-bg-old: rgb(0,0,0) !default;
|
13
|
+
$orbit-nav-bg: rgba(0,0,0,0.6) !default;
|
14
|
+
|
15
|
+
// We use these to control the timer styles
|
16
|
+
$orbit-timer-bg-old: rgb(0,0,0) !default;
|
17
|
+
$orbit-timer-bg: rgba(0,0,0,0.6) !default;
|
18
|
+
|
19
|
+
// We use these to control the bullet nav styles
|
20
|
+
$orbit-bullet-nav-color: #999 !default;
|
21
|
+
$orbit-bullet-nav-color-active: #222 !default;
|
22
|
+
|
23
|
+
// We use thes to controls the style of slide numbers
|
24
|
+
$orbit-slide-number-bg: rgba(0,0,0,0) !default;
|
25
|
+
$orbit-slide-number-font-color: #fff !default;
|
26
|
+
$orbit-slide-number-padding: emCalc(5px) !default;
|
27
|
+
|
28
|
+
// Margin for when Orbit is stacked on small screens
|
29
|
+
$stack-on-small-margin-bottom: emCalc(20px) !default;
|
30
|
+
|
31
|
+
@if $include-html-orbit-classes != false {
|
32
|
+
|
33
|
+
.orbit-container {
|
34
|
+
overflow: hidden;
|
35
|
+
width: 100%;
|
36
|
+
position: relative;
|
37
|
+
background: $orbit-container-bg;
|
38
|
+
|
39
|
+
.orbit-slides-container {
|
40
|
+
list-style: none;
|
41
|
+
margin: 0;
|
42
|
+
padding: 0;
|
43
|
+
position: relative;
|
44
|
+
|
45
|
+
img { display: block; }
|
46
|
+
|
47
|
+
&>* {
|
48
|
+
position: relative;
|
49
|
+
float: $default-float;
|
50
|
+
height: 100%;
|
51
|
+
|
52
|
+
.orbit-caption {
|
53
|
+
position: absolute;
|
54
|
+
bottom: 0;
|
55
|
+
background-color: $orbit-caption-bg-old;
|
56
|
+
background-color: $orbit-caption-bg;
|
57
|
+
color: #fff;
|
58
|
+
width: 100%;
|
59
|
+
padding: 10px 14px;
|
60
|
+
font-size: emCalc(14px);
|
61
|
+
|
62
|
+
* { color: $orbit-caption-font-color; }
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.orbit-slide-number {
|
68
|
+
position: absolute;
|
69
|
+
top: 10px;
|
70
|
+
#{$default-float}: 10px;
|
71
|
+
font-size: 12px;
|
72
|
+
span { font-weight: 700; padding: $orbit-slide-number-padding;}
|
73
|
+
color: $orbit-slide-number-font-color;
|
74
|
+
background: $orbit-slide-number-bg;
|
75
|
+
}
|
76
|
+
|
77
|
+
.orbit-timer {
|
78
|
+
position: absolute;
|
79
|
+
top: 10px;
|
80
|
+
#{$opposite-direction}: 10px;
|
81
|
+
height: 6px;
|
82
|
+
width: 100px;
|
83
|
+
.orbit-progress {
|
84
|
+
height: 100%;
|
85
|
+
background-color: $orbit-timer-bg-old;
|
86
|
+
background-color: $orbit-timer-bg;
|
87
|
+
display: block;
|
88
|
+
width: 0%;
|
89
|
+
}
|
90
|
+
|
91
|
+
& > span {
|
92
|
+
display: none;
|
93
|
+
position: absolute;
|
94
|
+
top: 10px;
|
95
|
+
#{$opposite-direction}: 0px;
|
96
|
+
width: 11px;
|
97
|
+
height: 14px;
|
98
|
+
border: solid 4px #000;
|
99
|
+
border-top: none;
|
100
|
+
border-bottom: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
&.paused {
|
104
|
+
& > span {
|
105
|
+
#{$opposite-direction}: -6px;
|
106
|
+
top: 9px;
|
107
|
+
width: 11px;
|
108
|
+
height: 14px;
|
109
|
+
border: inset 8px;
|
110
|
+
border-right-style: solid;
|
111
|
+
border-color: transparent transparent transparent #000;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
&:hover .orbit-timer > span { display: block; }
|
117
|
+
|
118
|
+
// Let's get those controls to be right in the center on each side
|
119
|
+
.orbit-prev,
|
120
|
+
.orbit-next {
|
121
|
+
position: absolute;
|
122
|
+
top: 50%;
|
123
|
+
margin-top: -25px;
|
124
|
+
background-color: $orbit-nav-bg-old;
|
125
|
+
background-color: $orbit-nav-bg;
|
126
|
+
width: 50px;
|
127
|
+
height: 60px;
|
128
|
+
line-height: 50px;
|
129
|
+
color: white;
|
130
|
+
text-indent: -9999px !important;
|
131
|
+
|
132
|
+
& > span {
|
133
|
+
position: absolute;
|
134
|
+
top: 50%;
|
135
|
+
margin-top: -16px;
|
136
|
+
display: block;
|
137
|
+
width: 0;
|
138
|
+
height: 0;
|
139
|
+
border: inset 16px;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
.orbit-prev { #{$default-float}: 0;
|
143
|
+
& > span {
|
144
|
+
border-#{$opposite-direction}-style: solid;
|
145
|
+
border-color: transparent;
|
146
|
+
border-#{$opposite-direction}-color: #fff;
|
147
|
+
}
|
148
|
+
&:hover > span {
|
149
|
+
border-#{$opposite-direction}-color: #ccc;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
.orbit-next { #{$opposite-direction}: 0;
|
153
|
+
& > span {
|
154
|
+
border-color: transparent;
|
155
|
+
border-#{$default-float}-style: solid;
|
156
|
+
border-#{$default-float}-color: #fff;
|
157
|
+
#{$default-float}: 50%;
|
158
|
+
margin-#{$default-float}: -8px;
|
159
|
+
}
|
160
|
+
&:hover > span {
|
161
|
+
border-#{$default-float}-color: #ccc;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
.orbit-bullets {
|
167
|
+
margin: 0 auto 30px auto;
|
168
|
+
overflow: hidden;
|
169
|
+
position: relative;
|
170
|
+
top: 10px;
|
171
|
+
|
172
|
+
li {
|
173
|
+
display: block;
|
174
|
+
width: 18px;
|
175
|
+
height: 18px;
|
176
|
+
background: $orbit-bullet-nav-color;
|
177
|
+
float: $default-float;
|
178
|
+
margin-#{$opposite-direction}: 6px;
|
179
|
+
border: solid 2px $orbit-bullet-nav-color-active;
|
180
|
+
@include radius(1000px);
|
181
|
+
|
182
|
+
&.active {
|
183
|
+
background: $orbit-bullet-nav-color-active;
|
184
|
+
}
|
185
|
+
|
186
|
+
&:last-child { margin-#{$opposite-direction}: 0; }
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
.touch {
|
191
|
+
.orbit-container {
|
192
|
+
.orbit-prev,
|
193
|
+
.orbit-next { display: none; }
|
194
|
+
}
|
195
|
+
|
196
|
+
.orbit-bullets { display: none; }
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
@media #{$small} {
|
201
|
+
|
202
|
+
.touch {
|
203
|
+
.orbit-container {
|
204
|
+
.orbit-prev,
|
205
|
+
.orbit-next { display: inherit; }
|
206
|
+
}
|
207
|
+
|
208
|
+
.orbit-bullets { display: block; }
|
209
|
+
}
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
}
|