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-grid-classes: $include-html-classes !default;
|
7
|
+
|
8
|
+
$row-width: rem-calc(1000) !default;
|
9
|
+
$column-gutter: rem-calc(30) !default;
|
10
|
+
$total-columns: 12 !default;
|
11
|
+
|
12
|
+
//
|
13
|
+
// Grid Functions
|
14
|
+
//
|
15
|
+
|
16
|
+
// Deprecated: We'll drop support for this in 5.1, use grid-calc()
|
17
|
+
@function gridCalc($colNumber, $totalColumns) {
|
18
|
+
@warn "gridCalc() is deprecated, use grid-calc()";
|
19
|
+
@return grid-calc($colNumber, $totalColumns);
|
20
|
+
}
|
21
|
+
|
22
|
+
// @FUNCTION
|
23
|
+
// $colNumber - Found in settings file
|
24
|
+
// $totalColumns - Found in settings file
|
25
|
+
@function grid-calc($colNumber, $totalColumns) {
|
26
|
+
@return percentage(($colNumber / $totalColumns));
|
27
|
+
}
|
28
|
+
|
29
|
+
//
|
30
|
+
// @mixins
|
31
|
+
//
|
32
|
+
|
33
|
+
// For creating container, nested, and collapsed rows.
|
34
|
+
//
|
35
|
+
//
|
36
|
+
// $behavior - Any special beavior for this row? Default: false. Options: nest, collapse, nest-collapse, false.
|
37
|
+
@mixin grid-row($behavior: false) {
|
38
|
+
|
39
|
+
// use @include grid-row(nest); to include a nested row
|
40
|
+
@if $behavior == nest {
|
41
|
+
width: auto;
|
42
|
+
margin-#{$default-float}: -($column-gutter/2);
|
43
|
+
margin-#{$opposite-direction}: -($column-gutter/2);
|
44
|
+
margin-top: 0;
|
45
|
+
margin-bottom: 0;
|
46
|
+
max-width: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
// use @include grid-row(collapse); to collapsed a container row margins
|
50
|
+
@else if $behavior == collapse {
|
51
|
+
width: 100%;
|
52
|
+
margin: 0;
|
53
|
+
max-width: $row-width;
|
54
|
+
}
|
55
|
+
|
56
|
+
// use @include grid-row(nest-collapse); to collapse outer margins on a nested row
|
57
|
+
@else if $behavior == nest-collapse {
|
58
|
+
width: auto;
|
59
|
+
margin: 0;
|
60
|
+
max-width: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
// use @include grid-row; to use a container row
|
64
|
+
@else {
|
65
|
+
width: 100%;
|
66
|
+
margin-#{$default-float}: auto;
|
67
|
+
margin-#{$opposite-direction}: auto;
|
68
|
+
margin-top: 0;
|
69
|
+
margin-bottom: 0;
|
70
|
+
max-width: $row-width;
|
71
|
+
}
|
72
|
+
|
73
|
+
// Clearfix for all rows
|
74
|
+
@include clearfix();
|
75
|
+
}
|
76
|
+
|
77
|
+
// Creates a column, should be used inside of a media query to control layouts
|
78
|
+
//
|
79
|
+
// $columns - The number of columns this should be
|
80
|
+
// $last-column - Is this the last column? Default: false.
|
81
|
+
// $center - Center these columns? Default: false.
|
82
|
+
// $offset - # of columns to offset. Default: false.
|
83
|
+
// $push - # of columns to push. Default: false.
|
84
|
+
// $pull - # of columns to pull. Default: false.
|
85
|
+
// $collapse - Get rid of gutter padding on column? Default: false.
|
86
|
+
// $float - Should this float? Default: true. Options: true, false, left, right.
|
87
|
+
@mixin grid-column(
|
88
|
+
$columns:false,
|
89
|
+
$last-column:false,
|
90
|
+
$center:false,
|
91
|
+
$offset:false,
|
92
|
+
$push:false,
|
93
|
+
$pull:false,
|
94
|
+
$collapse:false,
|
95
|
+
$float:true) {
|
96
|
+
|
97
|
+
position: relative;
|
98
|
+
|
99
|
+
// If collapsed, get rid of gutter padding
|
100
|
+
@if $collapse {
|
101
|
+
padding-left: 0;
|
102
|
+
padding-right: 0;
|
103
|
+
}
|
104
|
+
|
105
|
+
// Gutter padding whenever a column isn't set to collapse
|
106
|
+
// (use $collapse:null to do nothing)
|
107
|
+
@else if $collapse == false {
|
108
|
+
padding-left: $column-gutter / 2;
|
109
|
+
padding-right: $column-gutter / 2;
|
110
|
+
}
|
111
|
+
|
112
|
+
// If a column number is given, calculate width
|
113
|
+
@if $columns {
|
114
|
+
width: grid-calc($columns, $total-columns);
|
115
|
+
|
116
|
+
// If last column, float naturally instead of to the right
|
117
|
+
@if $last-column { float: $opposite-direction; }
|
118
|
+
}
|
119
|
+
|
120
|
+
// If offset, calculate appropriate margins
|
121
|
+
@if $offset { margin-#{$default-float}: grid-calc($offset, $total-columns); }
|
122
|
+
|
123
|
+
// Source Ordering, adds left/right depending on which you use.
|
124
|
+
@if $push { #{$default-float}: grid-calc($push, $total-columns); #{$opposite-direction}: auto; }
|
125
|
+
@if $pull { #{$opposite-direction}: grid-calc($pull, $total-columns); #{$default-float}: auto; }
|
126
|
+
|
127
|
+
// If centered, get rid of float and add appropriate margins
|
128
|
+
@if $center {
|
129
|
+
margin-#{$default-float}: auto;
|
130
|
+
margin-#{$opposite-direction}: auto;
|
131
|
+
float: none !important;
|
132
|
+
}
|
133
|
+
|
134
|
+
@if $float {
|
135
|
+
@if $float == left or $float == true { float: $default-float; }
|
136
|
+
@else if $float == right { float: $opposite-direction; }
|
137
|
+
@else { float: none; }
|
138
|
+
}
|
139
|
+
|
140
|
+
}
|
141
|
+
|
142
|
+
// Create presentational classes for grid
|
143
|
+
//
|
144
|
+
// $size - Name of class to use, i.e. "large" will generate .large-1, .large-2, etc.
|
145
|
+
@mixin grid-html-classes($size) {
|
146
|
+
|
147
|
+
@for $i from 1 through $total-columns - 1 {
|
148
|
+
.#{$size}-push#{-$i} {
|
149
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
150
|
+
}
|
151
|
+
.#{$size}-pull#{-$i} {
|
152
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
.column,
|
157
|
+
.columns { @include grid-column($columns:false); }
|
158
|
+
|
159
|
+
|
160
|
+
@for $i from 1 through $total-columns {
|
161
|
+
.#{$size}#{-$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
|
162
|
+
}
|
163
|
+
|
164
|
+
@for $i from 0 through $total-columns - 2 {
|
165
|
+
.#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); }
|
166
|
+
}
|
167
|
+
|
168
|
+
[class*="column"] + [class*="column"]:last-child { float: $opposite-direction; }
|
169
|
+
[class*="column"] + [class*="column"].end { float: $default-float; }
|
170
|
+
|
171
|
+
.column.#{$size}-centered,
|
172
|
+
.columns.#{$size}-centered { @include grid-column($center:true, $collapse:null, $float:false); }
|
173
|
+
|
174
|
+
.column.#{$size}-uncentered,
|
175
|
+
.columns.#{$size}-uncentered {
|
176
|
+
margin-#{$default-float}: 0;
|
177
|
+
margin-#{$opposite-direction}: 0;
|
178
|
+
float: $default-float !important;
|
179
|
+
}
|
180
|
+
|
181
|
+
.column.#{$size}-uncentered.opposite,
|
182
|
+
.columns.#{$size}-uncentered.opposite {
|
183
|
+
float: $opposite-direction !important;
|
184
|
+
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
@include exports("grid") {
|
189
|
+
@if $include-html-grid-classes {
|
190
|
+
.row {
|
191
|
+
@include grid-row;
|
192
|
+
|
193
|
+
&.collapse {
|
194
|
+
> .column,
|
195
|
+
> .columns { @include grid-column($collapse:true); }
|
196
|
+
|
197
|
+
.row {margin-left:0; margin-right:0;}
|
198
|
+
}
|
199
|
+
|
200
|
+
.row { @include grid-row($behavior:nest);
|
201
|
+
&.collapse { @include grid-row($behavior:nest-collapse); }
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
.column,
|
206
|
+
.columns { @include grid-column($columns:$total-columns); }
|
207
|
+
|
208
|
+
@media #{$small-up} {
|
209
|
+
@include grid-html-classes($size:small);
|
210
|
+
}
|
211
|
+
|
212
|
+
@media #{$medium-up} {
|
213
|
+
@include grid-html-classes($size:medium);
|
214
|
+
// Old push and pull classes
|
215
|
+
@for $i from 1 through $total-columns - 1 {
|
216
|
+
.push#{-$i} {
|
217
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
218
|
+
}
|
219
|
+
.pull#{-$i} {
|
220
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
@media #{$large-up} {
|
225
|
+
@include grid-html-classes($size:large);
|
226
|
+
}
|
227
|
+
@media #{$xlarge-up} {
|
228
|
+
@include grid-html-classes($size:xlarge);
|
229
|
+
}
|
230
|
+
@media #{$xxlarge-up} {
|
231
|
+
@include grid-html-classes($size:xxlarge);
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
@import "global";
|
2
|
+
|
3
|
+
//
|
4
|
+
// @variables
|
5
|
+
//
|
6
|
+
$include-html-inline-list-classes: $include-html-classes !default;
|
7
|
+
|
8
|
+
// We use this to control the margins and padding of the inline list.
|
9
|
+
$inline-list-top-margin: 0 !default;
|
10
|
+
$inline-list-opposite-margin: 0 !default;
|
11
|
+
$inline-list-bottom-margin: rem-calc(17) !default;
|
12
|
+
$inline-list-default-float-margin: rem-calc(-22) !default;
|
13
|
+
|
14
|
+
$inline-list-padding: 0 !default;
|
15
|
+
|
16
|
+
// We use this to control the overflow of the inline list.
|
17
|
+
$inline-list-overflow: hidden !default;
|
18
|
+
|
19
|
+
// We use this to control the list items
|
20
|
+
$inline-list-display: block !default;
|
21
|
+
|
22
|
+
// We use this to control any elments within list items
|
23
|
+
$inline-list-children-display: block !default;
|
24
|
+
|
25
|
+
//
|
26
|
+
// @mixins
|
27
|
+
//
|
28
|
+
// We use this mixin to create inline lists
|
29
|
+
@mixin inline-list {
|
30
|
+
margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
|
31
|
+
margin-#{$default-float}: $inline-list-default-float-margin;
|
32
|
+
margin-#{$opposite-direction}: $inline-list-opposite-margin;
|
33
|
+
padding: $inline-list-padding;
|
34
|
+
list-style: none;
|
35
|
+
overflow: $inline-list-overflow;
|
36
|
+
|
37
|
+
& > li {
|
38
|
+
list-style: none;
|
39
|
+
float: $default-float;
|
40
|
+
margin-#{$default-float}: rem-calc(22);
|
41
|
+
display: $inline-list-display;
|
42
|
+
&>* { display: $inline-list-children-display; }
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
@include exports("inline-list") {
|
47
|
+
@if $include-html-inline-list-classes {
|
48
|
+
.inline-list {
|
49
|
+
@include inline-list();
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,220 @@
|
|
1
|
+
@import "global";
|
2
|
+
|
3
|
+
//
|
4
|
+
// @variables
|
5
|
+
//
|
6
|
+
$include-html-joyride-classes: $include-html-classes !default;
|
7
|
+
|
8
|
+
// Controlling default Joyride styles
|
9
|
+
$joyride-tip-bg: #333 !default;
|
10
|
+
$joyride-tip-default-width: 300px !default;
|
11
|
+
$joyride-tip-padding: rem-calc(18 20 24) !default;
|
12
|
+
$joyride-tip-border: solid 1px #555 !default;
|
13
|
+
$joyride-tip-radius: 4px !default;
|
14
|
+
$joyride-tip-position-offset: 22px !default;
|
15
|
+
|
16
|
+
// Here, we're setting the tip dont styles
|
17
|
+
$joyride-tip-font-color: #fff !default;
|
18
|
+
$joyride-tip-font-size: rem-calc(14) !default;
|
19
|
+
$joyride-tip-header-weight: bold !default;
|
20
|
+
|
21
|
+
// This changes the nub size
|
22
|
+
$joyride-tip-nub-size: 10px !default;
|
23
|
+
|
24
|
+
// This adjusts the styles for the timer when its enabled
|
25
|
+
$joyride-tip-timer-width: 50px !default;
|
26
|
+
$joyride-tip-timer-height: 3px !default;
|
27
|
+
$joyride-tip-timer-color: #666 !default;
|
28
|
+
|
29
|
+
// This changes up the styles for the close button
|
30
|
+
$joyride-tip-close-color: #777 !default;
|
31
|
+
$joyride-tip-close-size: 24px !default;
|
32
|
+
$joyride-tip-close-weight: normal !default;
|
33
|
+
|
34
|
+
// When Joyride is filling the screen, we use this style for the bg
|
35
|
+
$joyride-screenfill: rgba(0,0,0,0.5) !default;
|
36
|
+
|
37
|
+
|
38
|
+
// We decided not to make a mixin for this because it relies on
|
39
|
+
// predefined classes to work properly.
|
40
|
+
@include exports("joyride") {
|
41
|
+
@if $include-html-joyride-classes {
|
42
|
+
|
43
|
+
/* Foundation Joyride */
|
44
|
+
.joyride-list { display: none; }
|
45
|
+
|
46
|
+
/* Default styles for the container */
|
47
|
+
.joyride-tip-guide {
|
48
|
+
display: none;
|
49
|
+
position: absolute;
|
50
|
+
background: $joyride-tip-bg;
|
51
|
+
color: $joyride-tip-font-color;
|
52
|
+
z-index: 101;
|
53
|
+
top: 0;
|
54
|
+
#{$default-float}: 2.5%;
|
55
|
+
font-family: inherit;
|
56
|
+
font-weight: normal;
|
57
|
+
width: 95%;
|
58
|
+
}
|
59
|
+
|
60
|
+
.lt-ie9 .joyride-tip-guide {
|
61
|
+
max-width:800px;
|
62
|
+
#{$default-float}: 50%;
|
63
|
+
margin-#{$default-float}:-400px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.joyride-content-wrapper {
|
67
|
+
width: 100%;
|
68
|
+
|
69
|
+
padding: $joyride-tip-padding;
|
70
|
+
|
71
|
+
.button { margin-bottom: 0 !important; }
|
72
|
+
}
|
73
|
+
|
74
|
+
/* Add a little css triangle pip, older browser just miss out on the fanciness of it */
|
75
|
+
.joyride-tip-guide {
|
76
|
+
.joyride-nub {
|
77
|
+
display: block;
|
78
|
+
position: absolute;
|
79
|
+
#{$default-float}: $joyride-tip-position-offset;
|
80
|
+
width: 0;
|
81
|
+
height: 0;
|
82
|
+
border: $joyride-tip-nub-size solid $joyride-tip-bg;
|
83
|
+
|
84
|
+
&.top {
|
85
|
+
border-top-style: solid;
|
86
|
+
border-color: $joyride-tip-bg;
|
87
|
+
border-top-color: transparent !important;
|
88
|
+
border-#{$default-float}-color: transparent !important;
|
89
|
+
border-#{$opposite-direction}-color: transparent !important;
|
90
|
+
top: -($joyride-tip-nub-size*2);
|
91
|
+
}
|
92
|
+
&.bottom {
|
93
|
+
border-bottom-style: solid;
|
94
|
+
border-color: $joyride-tip-bg !important;
|
95
|
+
border-bottom-color: transparent !important;
|
96
|
+
border-#{$default-float}-color: transparent !important;
|
97
|
+
border-#{$opposite-direction}-color: transparent !important;
|
98
|
+
bottom: -($joyride-tip-nub-size*2);
|
99
|
+
}
|
100
|
+
|
101
|
+
&.right { right: -($joyride-tip-nub-size*2); }
|
102
|
+
&.left { left: -($joyride-tip-nub-size*2); }
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
/* Typography */
|
107
|
+
.joyride-tip-guide h1,
|
108
|
+
.joyride-tip-guide h2,
|
109
|
+
.joyride-tip-guide h3,
|
110
|
+
.joyride-tip-guide h4,
|
111
|
+
.joyride-tip-guide h5,
|
112
|
+
.joyride-tip-guide h6 {
|
113
|
+
line-height: 1.25;
|
114
|
+
margin: 0;
|
115
|
+
font-weight: $joyride-tip-header-weight;
|
116
|
+
color: $joyride-tip-font-color;
|
117
|
+
}
|
118
|
+
.joyride-tip-guide p {
|
119
|
+
margin: rem-calc(0 0 18 0);
|
120
|
+
font-size: $joyride-tip-font-size;
|
121
|
+
line-height: 1.3;
|
122
|
+
}
|
123
|
+
|
124
|
+
.joyride-timer-indicator-wrap {
|
125
|
+
width: $joyride-tip-timer-width;
|
126
|
+
height: $joyride-tip-timer-height;
|
127
|
+
border: $joyride-tip-border;
|
128
|
+
position: absolute;
|
129
|
+
#{$opposite-direction}: rem-calc(17);
|
130
|
+
bottom: rem-calc(16);
|
131
|
+
}
|
132
|
+
.joyride-timer-indicator {
|
133
|
+
display: block;
|
134
|
+
width: 0;
|
135
|
+
height: inherit;
|
136
|
+
background: $joyride-tip-timer-color;
|
137
|
+
}
|
138
|
+
|
139
|
+
.joyride-close-tip {
|
140
|
+
position: absolute;
|
141
|
+
#{$opposite-direction}: 12px;
|
142
|
+
top: 10px;
|
143
|
+
color: $joyride-tip-close-color !important;
|
144
|
+
text-decoration: none;
|
145
|
+
font-size: $joyride-tip-close-size;
|
146
|
+
font-weight: $joyride-tip-close-weight;
|
147
|
+
line-height: .5 !important;
|
148
|
+
|
149
|
+
&:hover,
|
150
|
+
&:focus { color: #eee !important; }
|
151
|
+
}
|
152
|
+
|
153
|
+
.joyride-modal-bg {
|
154
|
+
position: fixed;
|
155
|
+
height: 100%;
|
156
|
+
width: 100%;
|
157
|
+
background: transparent;
|
158
|
+
background: $joyride-screenfill;
|
159
|
+
z-index: 100;
|
160
|
+
display: none;
|
161
|
+
top: 0;
|
162
|
+
#{$default-float}: 0;
|
163
|
+
cursor: $cursor-pointer-value;
|
164
|
+
}
|
165
|
+
|
166
|
+
.joyride-expose-wrapper {
|
167
|
+
background-color: #ffffff;
|
168
|
+
position: absolute;
|
169
|
+
border-radius: 3px;
|
170
|
+
z-index: 102;
|
171
|
+
@if $experimental {
|
172
|
+
-moz-box-shadow: 0 0 30px #ffffff;
|
173
|
+
-webkit-box-shadow: 0 0 15px #ffffff;
|
174
|
+
}
|
175
|
+
box-shadow: 0 0 15px #ffffff;
|
176
|
+
}
|
177
|
+
|
178
|
+
.joyride-expose-cover {
|
179
|
+
background: transparent;
|
180
|
+
border-radius: 3px;
|
181
|
+
position: absolute;
|
182
|
+
z-index: 9999;
|
183
|
+
top: 0;
|
184
|
+
left: 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
/* Styles for screens that are atleast 768px; */
|
189
|
+
@media #{$small} {
|
190
|
+
.joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit;
|
191
|
+
.joyride-nub {
|
192
|
+
&.bottom {
|
193
|
+
border-color: $joyride-tip-bg !important;
|
194
|
+
border-bottom-color: transparent !important;
|
195
|
+
border-#{$default-float}-color: transparent !important;
|
196
|
+
border-#{$opposite-direction}-color: transparent !important;
|
197
|
+
bottom: -($joyride-tip-nub-size*2);
|
198
|
+
}
|
199
|
+
&.right {
|
200
|
+
border-color: $joyride-tip-bg !important;
|
201
|
+
border-top-color: transparent !important;
|
202
|
+
border-right-color: transparent !important; border-bottom-color: transparent !important;
|
203
|
+
top: $joyride-tip-position-offset;
|
204
|
+
left: auto;
|
205
|
+
right: -($joyride-tip-nub-size*2);
|
206
|
+
}
|
207
|
+
&.left {
|
208
|
+
border-color: $joyride-tip-bg !important;
|
209
|
+
border-top-color: transparent !important;
|
210
|
+
border-left-color: transparent !important;
|
211
|
+
border-bottom-color: transparent !important;
|
212
|
+
top: $joyride-tip-position-offset;
|
213
|
+
left: -($joyride-tip-nub-size*2);
|
214
|
+
right: auto;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|