foundation-rails 5.0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/app/controllers/foundation/rails/styleguide_controller.rb +10 -0
- data/app/views/foundation/rails/styleguide/show.html.erb +134 -0
- data/config/routes.rb +3 -0
- data/foundation-rails.gemspec +25 -0
- data/lib/foundation-rails.rb +1 -0
- data/lib/foundation/rails.rb +3 -0
- data/lib/foundation/rails/engine.rb +7 -0
- data/lib/foundation/rails/generators/install_generator.rb +56 -0
- data/lib/foundation/rails/templates/application.html.erb +19 -0
- data/lib/foundation/rails/templates/application.html.haml +18 -0
- data/lib/foundation/rails/templates/application.html.slim +17 -0
- data/lib/foundation/rails/version.rb +5 -0
- data/test/dummy/.gitignore +16 -0
- data/test/dummy/Gemfile +47 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +8 -0
- data/test/dummy/app/assets/stylesheets/application.css +4 -0
- data/test/dummy/app/assets/stylesheets/foundation_and_overrides.scss +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/styleguide_controller.rb +4 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/styleguide_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +19 -0
- data/test/dummy/app/views/styleguide/show.html.erb +109 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +4 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/lib/tasks/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/robots.txt +5 -0
- data/test/dummy/test/controllers/.keep +0 -0
- data/test/dummy/test/controllers/styleguide_controller_test.rb +9 -0
- data/test/dummy/test/fixtures/.keep +0 -0
- data/test/dummy/test/helpers/.keep +0 -0
- data/test/dummy/test/helpers/styleguide_helper_test.rb +4 -0
- data/test/dummy/test/integration/.keep +0 -0
- data/test/dummy/test/mailers/.keep +0 -0
- data/test/dummy/test/models/.keep +0 -0
- data/test/dummy/test/test_helper.rb +15 -0
- data/test/dummy/vendor/assets/javascripts/.keep +0 -0
- data/test/dummy/vendor/assets/stylesheets/.keep +0 -0
- data/vendor/_settings.scss +992 -0
- data/vendor/assets/javascripts/foundation.js +15 -0
- data/vendor/assets/javascripts/foundation/foundation.abide.js +201 -0
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +41 -0
- data/vendor/assets/javascripts/foundation/foundation.alert.js +34 -0
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +450 -0
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +184 -0
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +304 -0
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +839 -0
- data/vendor/assets/javascripts/foundation/foundation.js +416 -0
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +118 -0
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -0
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +434 -0
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +347 -0
- data/vendor/assets/javascripts/foundation/foundation.tab.js +37 -0
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +202 -0
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +380 -0
- data/vendor/assets/javascripts/vendor/modernizr.js +4 -0
- data/vendor/assets/stylesheets/foundation.scss +38 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +75 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +992 -0
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +49 -0
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +113 -0
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +83 -0
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +123 -0
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +97 -0
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +234 -0
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +233 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +125 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +159 -0
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +47 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +472 -0
- data/vendor/assets/stylesheets/foundation/components/_functions.scss +70 -0
- data/vendor/assets/stylesheets/foundation/components/_global.scss +387 -0
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +234 -0
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +52 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +57 -0
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +100 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +30 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +360 -0
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +353 -0
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +145 -0
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +87 -0
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +146 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +75 -0
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +165 -0
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +83 -0
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +187 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +118 -0
- data/vendor/assets/stylesheets/foundation/components/_switch.scss +314 -0
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +93 -0
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +95 -0
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +71 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +121 -0
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +590 -0
- data/vendor/assets/stylesheets/foundation/components/_type.scss +447 -0
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +661 -0
- data/vendor/assets/stylesheets/normalize.scss +410 -0
- metadata +292 -0
@@ -0,0 +1,234 @@
|
|
1
|
+
@import "global";
|
2
|
+
|
3
|
+
//
|
4
|
+
// @variables
|
5
|
+
//
|
6
|
+
$include-html-button-classes: $include-html-classes !default;
|
7
|
+
|
8
|
+
// We use these to build padding for buttons.
|
9
|
+
$button-tny: rem-calc(10) !default;
|
10
|
+
$button-sml: rem-calc(14) !default;
|
11
|
+
$button-med: rem-calc(16) !default;
|
12
|
+
$button-lrg: rem-calc(18) !default;
|
13
|
+
|
14
|
+
// We use this to control the display property.
|
15
|
+
$button-display: inline-block !default;
|
16
|
+
$button-margin-bottom: rem-calc(20) !default;
|
17
|
+
|
18
|
+
// We use these to control button text styles.
|
19
|
+
$button-font-family: $body-font-family !default;
|
20
|
+
$button-font-color: #fff !default;
|
21
|
+
$button-font-color-alt: #333 !default;
|
22
|
+
$button-font-tny: rem-calc(11) !default;
|
23
|
+
$button-font-sml: rem-calc(13) !default;
|
24
|
+
$button-font-med: rem-calc(16) !default;
|
25
|
+
$button-font-lrg: rem-calc(20) !default;
|
26
|
+
$button-font-weight: normal !default;
|
27
|
+
$button-font-align: center !default;
|
28
|
+
|
29
|
+
// We use these to control various hover effects.
|
30
|
+
$button-function-factor: 5% !default;
|
31
|
+
|
32
|
+
// We use these to control button border styles.
|
33
|
+
$button-border-width: 1px !default;
|
34
|
+
$button-border-style: solid !default;
|
35
|
+
|
36
|
+
// We use this to set the default radius used throughout the core.
|
37
|
+
$button-radius: $global-radius !default;
|
38
|
+
$button-round: $global-rounded !default;
|
39
|
+
|
40
|
+
// We use this to set default opacity for disabled buttons.
|
41
|
+
$button-disabled-opacity: 0.7 !default;
|
42
|
+
|
43
|
+
|
44
|
+
//
|
45
|
+
// @MIXIN
|
46
|
+
//
|
47
|
+
// We use this mixin to create a default button base.
|
48
|
+
//
|
49
|
+
// $style - Sets base styles. Can be set to false. Default: true.
|
50
|
+
// $display - Used to control display property. Default: $button-display || inline-block
|
51
|
+
|
52
|
+
@mixin button-base($style:true, $display:$button-display) {
|
53
|
+
@if $style {
|
54
|
+
cursor: $cursor-pointer-value;
|
55
|
+
font-family: $button-font-family;
|
56
|
+
font-weight: $button-font-weight;
|
57
|
+
line-height: normal;
|
58
|
+
margin: 0 0 $button-margin-bottom;
|
59
|
+
position: relative;
|
60
|
+
text-decoration: none;
|
61
|
+
text-align: $button-font-align;
|
62
|
+
}
|
63
|
+
@if $display { display: $display; }
|
64
|
+
}
|
65
|
+
|
66
|
+
// @MIXIN
|
67
|
+
//
|
68
|
+
// We use this mixin to add button size styles
|
69
|
+
//
|
70
|
+
// $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
|
71
|
+
// $full-width - We can set $full-width:true to remove side padding extend width - Default: false
|
72
|
+
// $is-input - <input>'s and <button>'s take on strange padding. We added this to help fix that. Default: false
|
73
|
+
|
74
|
+
@mixin button-size($padding:$button-med, $full-width:false, $is-input:false) {
|
75
|
+
|
76
|
+
// We control which padding styles come through,
|
77
|
+
// these can be turned off by setting $padding:false
|
78
|
+
@if $padding {
|
79
|
+
padding-top: $padding;
|
80
|
+
padding-#{$opposite-direction}: $padding * 2;
|
81
|
+
padding-bottom: $padding + rem-calc(1);
|
82
|
+
padding-#{$default-float}: $padding * 2;
|
83
|
+
|
84
|
+
// We control the font-size based on mixin input.
|
85
|
+
@if $padding == $button-med { font-size: $button-font-med; }
|
86
|
+
@else if $padding == $button-tny { font-size: $button-font-tny; }
|
87
|
+
@else if $padding == $button-sml { font-size: $button-font-sml; }
|
88
|
+
@else if $padding == $button-lrg { font-size: $button-font-lrg; }
|
89
|
+
/* @else { font-size: $padding - rem-calc(2); } */
|
90
|
+
}
|
91
|
+
|
92
|
+
// We can set $full-width:true to remove side padding extend width.
|
93
|
+
@if $full-width {
|
94
|
+
// We still need to check if $padding is set.
|
95
|
+
@if $padding {
|
96
|
+
padding-top: $padding;
|
97
|
+
padding-bottom: $padding + rem-calc(1);
|
98
|
+
} @else if $padding == false {
|
99
|
+
padding-top:0;
|
100
|
+
padding-bottom:0;
|
101
|
+
}
|
102
|
+
padding-right: 0;
|
103
|
+
padding-left: 0;
|
104
|
+
width: 100%;
|
105
|
+
}
|
106
|
+
|
107
|
+
// <input>'s and <button>'s take on strange padding. We added this to help fix that.
|
108
|
+
@if $is-input == $button-lrg {
|
109
|
+
padding-top: $is-input + rem-calc(.5);
|
110
|
+
padding-bottom: $is-input + rem-calc(.5);
|
111
|
+
-webkit-appearance: none;
|
112
|
+
border: none;
|
113
|
+
font-weight: $button-font-weight !important;
|
114
|
+
}
|
115
|
+
@else if $is-input {
|
116
|
+
padding-top: $is-input + rem-calc(1);
|
117
|
+
padding-bottom: $is-input;
|
118
|
+
-webkit-appearance: none;
|
119
|
+
border: none;
|
120
|
+
font-weight: $button-font-weight !important;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
// @MIXIN
|
125
|
+
//
|
126
|
+
// We use this mixin to add button color styles
|
127
|
+
//
|
128
|
+
// $bg - Primary color set in settings file. Default: $primary-color.
|
129
|
+
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: false
|
130
|
+
// $disabled - We can set $disabled:true to create a disabled transparent button. Default: false
|
131
|
+
@mixin button-style($bg:$primary-color, $radius:false, $disabled:false) {
|
132
|
+
|
133
|
+
// We control which background styles are used,
|
134
|
+
// these can be removed by setting $bg:false
|
135
|
+
@if $bg {
|
136
|
+
// This find the lightness percentage of the background color.
|
137
|
+
$bg-lightness: lightness($bg);
|
138
|
+
|
139
|
+
background-color: $bg;
|
140
|
+
border-color: darken($bg, $button-function-factor);
|
141
|
+
&:hover,
|
142
|
+
&:focus { background-color: darken($bg, $button-function-factor); }
|
143
|
+
|
144
|
+
// We control the text color for you based on the background color.
|
145
|
+
@if $bg-lightness > 70% {
|
146
|
+
color: $button-font-color-alt;
|
147
|
+
&:hover,
|
148
|
+
&:focus { color: $button-font-color-alt; }
|
149
|
+
}
|
150
|
+
@else {
|
151
|
+
color: $button-font-color;
|
152
|
+
&:hover,
|
153
|
+
&:focus { color: $button-font-color; }
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// We can set $disabled:true to create a disabled transparent button.
|
158
|
+
@if $disabled {
|
159
|
+
cursor: $cursor-default-value;
|
160
|
+
opacity: $button-disabled-opacity;
|
161
|
+
@if $experimental {
|
162
|
+
-webkit-box-shadow: none;
|
163
|
+
}
|
164
|
+
box-shadow: none;
|
165
|
+
&:hover,
|
166
|
+
&:focus { background-color: $bg; }
|
167
|
+
}
|
168
|
+
|
169
|
+
// We can control how much button radius us used.
|
170
|
+
@if $radius == true { @include radius($button-radius); }
|
171
|
+
@else if $radius { @include radius($radius); }
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
// @MIXIN
|
176
|
+
//
|
177
|
+
// We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin"
|
178
|
+
//
|
179
|
+
// $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
|
180
|
+
// $bg - Primary color set in settings file. Default: $primary-color.
|
181
|
+
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default:false.
|
182
|
+
// $full-width - We can set $full-width:true to remove side padding extend width. Default:false.
|
183
|
+
// $disabled - We can set $disabled:true to create a disabled transparent button. Default:false.
|
184
|
+
// $is-input - <input>'s and <button>'s take on strange padding. We added this to help fix that. Default:false.
|
185
|
+
// $is-prefix - Not used? Default:false.
|
186
|
+
@mixin button($padding:$button-med, $bg:$primary-color, $radius:false, $full-width:false, $disabled:false, $is-input:false, $is-prefix:false) {
|
187
|
+
@include button-base;
|
188
|
+
@include button-size($padding, $full-width, $is-input);
|
189
|
+
@include button-style($bg, $radius, $disabled);
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
@include exports("button") {
|
194
|
+
@if $include-html-button-classes {
|
195
|
+
|
196
|
+
// Default styles applied outside of media query
|
197
|
+
button, .button {
|
198
|
+
@include button-base;
|
199
|
+
@include button-size;
|
200
|
+
@include button-style;
|
201
|
+
|
202
|
+
@include single-transition(background-color);
|
203
|
+
@include button-size($padding:false, $is-input:$button-med);
|
204
|
+
|
205
|
+
&.secondary { @include button-style($bg:$secondary-color); }
|
206
|
+
&.success { @include button-style($bg:$success-color); }
|
207
|
+
&.alert { @include button-style($bg:$alert-color); }
|
208
|
+
|
209
|
+
&.large { @include button-size($padding:$button-lrg); }
|
210
|
+
&.small { @include button-size($padding:$button-sml); }
|
211
|
+
&.tiny { @include button-size($padding:$button-tny); }
|
212
|
+
&.expand { @include button-size($padding:null,$full-width:true); }
|
213
|
+
|
214
|
+
&.left-align { text-align: left; text-indent: rem-calc(12); }
|
215
|
+
&.right-align { text-align: right; padding-right: rem-calc(12); }
|
216
|
+
|
217
|
+
&.radius { @include button-style($bg:false, $radius:true); }
|
218
|
+
&.round { @include button-style($bg:false, $radius:$button-round); }
|
219
|
+
|
220
|
+
&.disabled, &[disabled] { @include button-style($bg:$primary-color, $disabled:true);
|
221
|
+
&.secondary { @include button-style($bg:$secondary-color, $disabled:true); }
|
222
|
+
&.success { @include button-style($bg:$success-color, $disabled:true); }
|
223
|
+
&.alert { @include button-style($bg:$alert-color, $disabled:true); }
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
@media #{$medium-up} {
|
228
|
+
button, .button {
|
229
|
+
@include button-base($style:false, $display:inline-block);
|
230
|
+
@include button-size($padding:false, $full-width:false);
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
@@ -0,0 +1,233 @@
|
|
1
|
+
@import "global";
|
2
|
+
|
3
|
+
//
|
4
|
+
// @variables
|
5
|
+
//
|
6
|
+
$include-html-clearing-classes: $include-html-classes !default;
|
7
|
+
|
8
|
+
// We use these to set the background colors for parts of Clearing.
|
9
|
+
$clearing-bg: #333 !default;
|
10
|
+
$clearing-caption-bg: $clearing-bg !default;
|
11
|
+
$clearing-carousel-bg: rgba(51,51,51,0.8) !default;
|
12
|
+
$clearing-img-bg: $clearing-bg !default;
|
13
|
+
|
14
|
+
// We use these to style the close button
|
15
|
+
$clearing-close-color: #ccc !default;
|
16
|
+
$clearing-close-size: 30px !default;
|
17
|
+
|
18
|
+
// We use these to style the arrows
|
19
|
+
$clearing-arrow-size: 12px !default;
|
20
|
+
$clearing-arrow-color: $clearing-close-color !default;
|
21
|
+
|
22
|
+
// We use these to style captions
|
23
|
+
$clearing-caption-font-color: #ccc !default;
|
24
|
+
$clearing-caption-font-size: 0.875em !default;
|
25
|
+
$clearing-caption-padding: 10px 30px 20px !default;
|
26
|
+
|
27
|
+
// We use these to make the image and carousel height and style
|
28
|
+
$clearing-active-img-height: 85% !default;
|
29
|
+
$clearing-carousel-height: 120px !default;
|
30
|
+
$clearing-carousel-thumb-width: 120px !default;
|
31
|
+
$clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
32
|
+
|
33
|
+
@include exports("clearing") {
|
34
|
+
@if $include-html-clearing-classes {
|
35
|
+
// We decided to not create a mixin for Clearing because it relies
|
36
|
+
// on predefined classes and structure to work properly.
|
37
|
+
// The variables above should give enough control.
|
38
|
+
|
39
|
+
/* Clearing Styles */
|
40
|
+
[data-clearing] {
|
41
|
+
@include clearfix;
|
42
|
+
margin-bottom: 0;
|
43
|
+
margin-#{$default-float}: 0;
|
44
|
+
list-style: none;
|
45
|
+
|
46
|
+
li {
|
47
|
+
float: $default-float;
|
48
|
+
margin-#{$opposite-direction}: 10px;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.clearing-blackout {
|
53
|
+
background: $clearing-bg;
|
54
|
+
position: fixed;
|
55
|
+
width: 100%;
|
56
|
+
height: 100%;
|
57
|
+
top: 0;
|
58
|
+
#{$default-float}: 0;
|
59
|
+
z-index: 998;
|
60
|
+
|
61
|
+
.clearing-close { display: block; }
|
62
|
+
}
|
63
|
+
|
64
|
+
.clearing-container {
|
65
|
+
position: relative;
|
66
|
+
z-index: 998;
|
67
|
+
height: 100%;
|
68
|
+
overflow: hidden;
|
69
|
+
margin: 0;
|
70
|
+
}
|
71
|
+
|
72
|
+
.visible-img {
|
73
|
+
height: 95%;
|
74
|
+
position: relative;
|
75
|
+
|
76
|
+
img {
|
77
|
+
position: absolute;
|
78
|
+
#{$default-float}: 50%;
|
79
|
+
top: 50%;
|
80
|
+
margin-#{$default-float}: -50%;
|
81
|
+
max-height: 100%;
|
82
|
+
max-width: 100%;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.clearing-caption {
|
87
|
+
color: $clearing-caption-font-color;
|
88
|
+
font-size: $clearing-caption-font-size;
|
89
|
+
line-height: 1.3;
|
90
|
+
margin-bottom: 0;
|
91
|
+
text-align: center;
|
92
|
+
bottom: 0;
|
93
|
+
background: $clearing-caption-bg;
|
94
|
+
width: 100%;
|
95
|
+
padding: $clearing-caption-padding;
|
96
|
+
position: absolute;
|
97
|
+
#{$default-float}: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
.clearing-close {
|
101
|
+
z-index: 999;
|
102
|
+
padding-#{$default-float}: 20px;
|
103
|
+
padding-top: 10px;
|
104
|
+
font-size: $clearing-close-size;
|
105
|
+
line-height: 1;
|
106
|
+
color: $clearing-close-color;
|
107
|
+
display: none;
|
108
|
+
|
109
|
+
&:hover,
|
110
|
+
&:focus { color: #ccc; }
|
111
|
+
}
|
112
|
+
|
113
|
+
.clearing-assembled .clearing-container { height: 100%;
|
114
|
+
.carousel > ul { display: none; }
|
115
|
+
}
|
116
|
+
|
117
|
+
// If you want to show a lightbox, but only have a single image come through as the thumbnail
|
118
|
+
.clearing-feature li {
|
119
|
+
display: none;
|
120
|
+
&.clearing-featured-img {
|
121
|
+
display: block;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
// Large screen overrides
|
126
|
+
@media #{$medium-up} {
|
127
|
+
.clearing-main-prev,
|
128
|
+
.clearing-main-next {
|
129
|
+
position: absolute;
|
130
|
+
height: 100%;
|
131
|
+
width: 40px;
|
132
|
+
top: 0;
|
133
|
+
& > span {
|
134
|
+
position: absolute;
|
135
|
+
top: 50%;
|
136
|
+
display: block;
|
137
|
+
width: 0;
|
138
|
+
height: 0;
|
139
|
+
border: solid $clearing-arrow-size;
|
140
|
+
&:hover { opacity: 0.8; }
|
141
|
+
}
|
142
|
+
}
|
143
|
+
.clearing-main-prev {
|
144
|
+
#{$default-float}: 0;
|
145
|
+
& > span {
|
146
|
+
#{$default-float}: 5px;
|
147
|
+
border-color: transparent;
|
148
|
+
border-#{$opposite-direction}-color: $clearing-arrow-color;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
.clearing-main-next {
|
152
|
+
#{$opposite-direction}: 0;
|
153
|
+
& > span {
|
154
|
+
border-color: transparent;
|
155
|
+
border-#{$default-float}-color: $clearing-arrow-color;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
.clearing-main-prev.disabled,
|
160
|
+
.clearing-main-next.disabled { opacity: 0.3; }
|
161
|
+
|
162
|
+
.clearing-assembled .clearing-container {
|
163
|
+
|
164
|
+
.carousel {
|
165
|
+
background: $clearing-carousel-bg;
|
166
|
+
height: $clearing-carousel-height;
|
167
|
+
margin-top: 10px;
|
168
|
+
text-align: center;
|
169
|
+
|
170
|
+
& > ul {
|
171
|
+
display: inline-block;
|
172
|
+
z-index: 999;
|
173
|
+
height: 100%;
|
174
|
+
position: relative;
|
175
|
+
float: none;
|
176
|
+
|
177
|
+
li {
|
178
|
+
display: block;
|
179
|
+
width: $clearing-carousel-thumb-width;
|
180
|
+
min-height: inherit;
|
181
|
+
float: $default-float;
|
182
|
+
overflow: hidden;
|
183
|
+
margin-#{$opposite-direction}: 0;
|
184
|
+
padding: 0;
|
185
|
+
position: relative;
|
186
|
+
cursor: $cursor-pointer-value;
|
187
|
+
opacity: 0.4;
|
188
|
+
|
189
|
+
&.fix-height {
|
190
|
+
img {
|
191
|
+
height: 100%;
|
192
|
+
max-width: none;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
a.th {
|
197
|
+
border: none;
|
198
|
+
@if $experimental {
|
199
|
+
-webkit-box-shadow: none;
|
200
|
+
}
|
201
|
+
box-shadow: none;
|
202
|
+
display: block;
|
203
|
+
}
|
204
|
+
|
205
|
+
img {
|
206
|
+
cursor: $cursor-pointer-value !important;
|
207
|
+
width: 100% !important;
|
208
|
+
}
|
209
|
+
|
210
|
+
&.visible { opacity: 1; }
|
211
|
+
&:hover { opacity: 0.8; }
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
.visible-img {
|
217
|
+
background: $clearing-img-bg;
|
218
|
+
overflow: hidden;
|
219
|
+
height: $clearing-active-img-height;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
.clearing-close {
|
224
|
+
position: absolute;
|
225
|
+
top: 10px;
|
226
|
+
#{$opposite-direction}: 20px;
|
227
|
+
padding-#{$default-float}: 0;
|
228
|
+
padding-top: 0;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
}
|
233
|
+
}
|