fastlane-plugin-polidea 2.2.0.pre → 3.0.1
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 +4 -4
- data/README.md +9 -13
- data/lib/fastlane/plugin/polidea.rb +4 -0
- data/lib/fastlane/plugin/polidea/actions/fota_mail.rb +13 -3
- data/lib/fastlane/plugin/polidea/actions/fota_s3.rb +36 -29
- data/lib/fastlane/plugin/polidea/actions/release_notes.rb +1 -1
- data/lib/fastlane/plugin/polidea/actions/release_notes_from_commits.rb +1 -1
- data/lib/fastlane/plugin/polidea/helper/page_generator.rb +28 -56
- data/lib/fastlane/plugin/polidea/helper/qr_generator.rb +7 -42
- data/lib/fastlane/plugin/polidea/version.rb +1 -1
- data/templates/install.erb +238 -0
- data/{lib/fastlane/plugin/polidea/templates/download.erb → templates/mail.erb} +18 -23
- metadata +10 -111
- data/lib/fastlane/plugin/polidea/actions/extract_app_icon.rb +0 -172
- data/lib/fastlane/plugin/polidea/actions/extract_app_name.rb +0 -100
- data/lib/fastlane/plugin/polidea/actions/extract_version.rb +0 -106
- data/lib/fastlane/plugin/polidea/actions/get_binary_size.rb +0 -57
- data/lib/fastlane/plugin/polidea/templates/images/cover-shuttle.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/icon-placeholder.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/polidea-logo.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-behance.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-dribbble.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-facebook.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-github.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-instagram.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-linkedin.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/images/social-twitter.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css +0 -4895
- data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css.map +0 -7
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/bg.png +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1024.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1280.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1360.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1440.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_1680.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_768.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_ipad_1024.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/jenkins_bg_ipad_768.jpg +0 -0
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/logo.svg +0 -32
- data/lib/fastlane/plugin/polidea/templates/installation-page/img/logo_square.svg +0 -12
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation.min.js +0 -10
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.abide.js +0 -294
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.accordion.js +0 -65
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.alert.js +0 -43
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.clearing.js +0 -558
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.dropdown.js +0 -313
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.equalizer.js +0 -74
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.interchange.js +0 -344
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.joyride.js +0 -915
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.js +0 -625
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.magellan.js +0 -189
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.offcanvas.js +0 -139
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.orbit.js +0 -472
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.reveal.js +0 -443
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.slider.js +0 -231
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.tab.js +0 -167
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.tooltip.js +0 -298
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/foundation/foundation.topbar.js +0 -436
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/aes.js +0 -35
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/enc-base64-min.js +0 -8
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/fastclick.js +0 -9
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/jquery.cookie.js +0 -8
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/jquery.js +0 -26
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/modernizr.js +0 -8
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/pbkdf2.js +0 -19
- data/lib/fastlane/plugin/polidea/templates/installation-page/js/vendor/placeholder.js +0 -2
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/fonts.scss +0 -64
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation.scss +0 -45
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/_functions.scss +0 -101
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/_settings.scss +0 -1441
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_accordion.scss +0 -156
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_alert-boxes.scss +0 -126
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_block-grid.scss +0 -132
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_breadcrumbs.scss +0 -132
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_button-groups.scss +0 -200
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_buttons.scss +0 -252
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_clearing.scss +0 -247
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_dropdown-buttons.scss +0 -129
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_dropdown.scss +0 -248
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_flex-video.scss +0 -51
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_forms.scss +0 -570
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_global.scss +0 -447
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_grid.scss +0 -275
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_icon-bar.scss +0 -293
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_inline-lists.scss +0 -57
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_joyride.scss +0 -222
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_keystrokes.scss +0 -61
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_labels.scss +0 -105
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_magellan.scss +0 -34
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_offcanvas.scss +0 -510
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_orbit.scss +0 -368
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_pagination.scss +0 -162
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_panels.scss +0 -93
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_pricing-tables.scss +0 -150
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_progress-bars.scss +0 -79
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_range-slider.scss +0 -168
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_reveal.scss +0 -220
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_side-nav.scss +0 -116
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_split-buttons.scss +0 -191
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_sub-nav.scss +0 -125
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_switches.scss +0 -226
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tables.scss +0 -135
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tabs.scss +0 -123
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_thumbs.scss +0 -66
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_toolbar.scss +0 -70
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_tooltips.scss +0 -142
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_top-bar.scss +0 -676
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_type.scss +0 -523
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/foundation/components/_visibility.scss +0 -408
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/installation-page.scss +0 -171
- data/lib/fastlane/plugin/polidea/templates/installation-page/sass/normalize.scss +0 -425
- data/lib/fastlane/plugin/polidea/templates/installation_template.erb +0 -54
- data/lib/fastlane/plugin/polidea/templates/mailgun_template.erb +0 -1257
- data/lib/fastlane/plugin/polidea/templates/secure_installation_template.erb +0 -130
@@ -1,247 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import "global";
|
6
|
-
|
7
|
-
//
|
8
|
-
// @variables
|
9
|
-
//
|
10
|
-
$include-html-clearing-classes: $include-html-classes !default;
|
11
|
-
|
12
|
-
// We use these to set the background colors for parts of Clearing.
|
13
|
-
$clearing-bg: $oil !default;
|
14
|
-
$clearing-caption-bg: $clearing-bg !default;
|
15
|
-
$clearing-carousel-bg: rgba(51,51,51,0.8) !default;
|
16
|
-
$clearing-img-bg: $clearing-bg !default;
|
17
|
-
|
18
|
-
// We use these to style the close button
|
19
|
-
$clearing-close-color: $iron !default;
|
20
|
-
$clearing-close-size: 30px !default;
|
21
|
-
|
22
|
-
// We use these to style the arrows
|
23
|
-
$clearing-arrow-size: 12px !default;
|
24
|
-
$clearing-arrow-color: $clearing-close-color !default;
|
25
|
-
|
26
|
-
// We use these to style captions
|
27
|
-
$clearing-caption-font-color: $iron !default;
|
28
|
-
$clearing-caption-font-size: 0.875em !default;
|
29
|
-
$clearing-caption-padding: 10px 30px 20px !default;
|
30
|
-
|
31
|
-
// We use these to make the image and carousel height and style
|
32
|
-
$clearing-active-img-height: 85% !default;
|
33
|
-
$clearing-carousel-height: 120px !default;
|
34
|
-
$clearing-carousel-thumb-width: 120px !default;
|
35
|
-
$clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
36
|
-
|
37
|
-
@include exports("clearing") {
|
38
|
-
@if $include-html-clearing-classes {
|
39
|
-
// We decided to not create a mixin for Clearing because it relies
|
40
|
-
// on predefined classes and structure to work properly.
|
41
|
-
// The variables above should give enough control.
|
42
|
-
|
43
|
-
/* Clearing Styles */
|
44
|
-
.clearing-thumbs, #{data('clearing')} {
|
45
|
-
@include clearfix;
|
46
|
-
margin-bottom: 0;
|
47
|
-
margin-#{$default-float}: 0;
|
48
|
-
list-style: none;
|
49
|
-
|
50
|
-
li {
|
51
|
-
float: $default-float;
|
52
|
-
margin-#{$opposite-direction}: 10px;
|
53
|
-
}
|
54
|
-
|
55
|
-
&[class*="block-grid-"] li {
|
56
|
-
margin-#{$opposite-direction}: 0;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
.clearing-blackout {
|
61
|
-
background: $clearing-bg;
|
62
|
-
position: fixed;
|
63
|
-
width: 100%;
|
64
|
-
height: 100%;
|
65
|
-
top: 0;
|
66
|
-
#{$default-float}: 0;
|
67
|
-
z-index: 998;
|
68
|
-
|
69
|
-
.clearing-close { display: block; }
|
70
|
-
}
|
71
|
-
|
72
|
-
.clearing-container {
|
73
|
-
position: relative;
|
74
|
-
z-index: 998;
|
75
|
-
height: 100%;
|
76
|
-
overflow: hidden;
|
77
|
-
margin: 0;
|
78
|
-
}
|
79
|
-
|
80
|
-
.clearing-touch-label {
|
81
|
-
position: absolute;
|
82
|
-
top: 50%;
|
83
|
-
left: 50%;
|
84
|
-
color: $base;
|
85
|
-
font-size: 0.6em;
|
86
|
-
}
|
87
|
-
|
88
|
-
.visible-img {
|
89
|
-
height: 95%;
|
90
|
-
position: relative;
|
91
|
-
|
92
|
-
img {
|
93
|
-
position: absolute;
|
94
|
-
#{$default-float}: 50%;
|
95
|
-
top: 50%;
|
96
|
-
margin-#{$default-float}: -50%;
|
97
|
-
max-height: 100%;
|
98
|
-
max-width: 100%;
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
.clearing-caption {
|
103
|
-
color: $clearing-caption-font-color;
|
104
|
-
font-size: $clearing-caption-font-size;
|
105
|
-
line-height: 1.3;
|
106
|
-
margin-bottom: 0;
|
107
|
-
text-align: center;
|
108
|
-
bottom: 0;
|
109
|
-
background: $clearing-caption-bg;
|
110
|
-
width: 100%;
|
111
|
-
padding: $clearing-caption-padding;
|
112
|
-
position: absolute;
|
113
|
-
#{$default-float}: 0;
|
114
|
-
}
|
115
|
-
|
116
|
-
.clearing-close {
|
117
|
-
z-index: 999;
|
118
|
-
padding-#{$default-float}: 20px;
|
119
|
-
padding-top: 10px;
|
120
|
-
font-size: $clearing-close-size;
|
121
|
-
line-height: 1;
|
122
|
-
color: $clearing-close-color;
|
123
|
-
display: none;
|
124
|
-
|
125
|
-
&:hover,
|
126
|
-
&:focus { color: $iron; }
|
127
|
-
}
|
128
|
-
|
129
|
-
.clearing-assembled .clearing-container { height: 100%;
|
130
|
-
.carousel > ul { display: none; }
|
131
|
-
}
|
132
|
-
|
133
|
-
// If you want to show a lightbox, but only have a single image come through as the thumbnail
|
134
|
-
.clearing-feature li {
|
135
|
-
display: none;
|
136
|
-
&.clearing-featured-img {
|
137
|
-
display: block;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
// Large screen overrides
|
142
|
-
@media #{$medium-up} {
|
143
|
-
.clearing-main-prev,
|
144
|
-
.clearing-main-next {
|
145
|
-
position: absolute;
|
146
|
-
height: 100%;
|
147
|
-
width: 40px;
|
148
|
-
top: 0;
|
149
|
-
& > span {
|
150
|
-
position: absolute;
|
151
|
-
top: 50%;
|
152
|
-
display: block;
|
153
|
-
width: 0;
|
154
|
-
height: 0;
|
155
|
-
border: solid $clearing-arrow-size;
|
156
|
-
&:hover { opacity: 0.8; }
|
157
|
-
}
|
158
|
-
}
|
159
|
-
.clearing-main-prev {
|
160
|
-
#{$default-float}: 0;
|
161
|
-
& > span {
|
162
|
-
#{$default-float}: 5px;
|
163
|
-
border-color: transparent;
|
164
|
-
border-#{$opposite-direction}-color: $clearing-arrow-color;
|
165
|
-
}
|
166
|
-
}
|
167
|
-
.clearing-main-next {
|
168
|
-
#{$opposite-direction}: 0;
|
169
|
-
& > span {
|
170
|
-
border-color: transparent;
|
171
|
-
border-#{$default-float}-color: $clearing-arrow-color;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
|
175
|
-
.clearing-main-prev.disabled,
|
176
|
-
.clearing-main-next.disabled { opacity: 0.3; }
|
177
|
-
|
178
|
-
.clearing-assembled .clearing-container {
|
179
|
-
|
180
|
-
.carousel {
|
181
|
-
background: $clearing-carousel-bg;
|
182
|
-
height: $clearing-carousel-height;
|
183
|
-
margin-top: 10px;
|
184
|
-
text-align: center;
|
185
|
-
|
186
|
-
& > ul {
|
187
|
-
display: inline-block;
|
188
|
-
z-index: 999;
|
189
|
-
height: 100%;
|
190
|
-
position: relative;
|
191
|
-
float: none;
|
192
|
-
|
193
|
-
li {
|
194
|
-
display: block;
|
195
|
-
width: $clearing-carousel-thumb-width;
|
196
|
-
min-height: inherit;
|
197
|
-
float: $default-float;
|
198
|
-
overflow: hidden;
|
199
|
-
margin-#{$opposite-direction}: 0;
|
200
|
-
padding: 0;
|
201
|
-
position: relative;
|
202
|
-
cursor: $cursor-pointer-value;
|
203
|
-
opacity: 0.4;
|
204
|
-
clear: none;
|
205
|
-
|
206
|
-
&.fix-height {
|
207
|
-
img {
|
208
|
-
height: 100%;
|
209
|
-
max-width: none;
|
210
|
-
}
|
211
|
-
}
|
212
|
-
|
213
|
-
a.th {
|
214
|
-
border: none;
|
215
|
-
box-shadow: none;
|
216
|
-
display: block;
|
217
|
-
}
|
218
|
-
|
219
|
-
img {
|
220
|
-
cursor: $cursor-pointer-value !important;
|
221
|
-
width: 100% !important;
|
222
|
-
}
|
223
|
-
|
224
|
-
&.visible { opacity: 1; }
|
225
|
-
&:hover { opacity: 0.8; }
|
226
|
-
}
|
227
|
-
}
|
228
|
-
}
|
229
|
-
|
230
|
-
.visible-img {
|
231
|
-
background: $clearing-img-bg;
|
232
|
-
overflow: hidden;
|
233
|
-
height: $clearing-active-img-height;
|
234
|
-
}
|
235
|
-
}
|
236
|
-
|
237
|
-
.clearing-close {
|
238
|
-
position: absolute;
|
239
|
-
top: 10px;
|
240
|
-
#{$opposite-direction}: 20px;
|
241
|
-
padding-#{$default-float}: 0;
|
242
|
-
padding-top: 0;
|
243
|
-
}
|
244
|
-
}
|
245
|
-
|
246
|
-
}
|
247
|
-
}
|
@@ -1,129 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import "global";
|
6
|
-
|
7
|
-
//
|
8
|
-
// @variables
|
9
|
-
//
|
10
|
-
$include-html-button-classes: $include-html-classes !default;
|
11
|
-
|
12
|
-
// We use these to set the color of the pip in dropdown buttons
|
13
|
-
$dropdown-button-pip-color: $white !default;
|
14
|
-
$dropdown-button-pip-color-alt: $oil !default;
|
15
|
-
|
16
|
-
$button-pip-tny: rem-calc(6) !default;
|
17
|
-
$button-pip-sml: rem-calc(7) !default;
|
18
|
-
$button-pip-med: rem-calc(9) !default;
|
19
|
-
$button-pip-lrg: rem-calc(11) !default;
|
20
|
-
|
21
|
-
// We use these to style tiny dropdown buttons
|
22
|
-
$dropdown-button-padding-tny: $button-pip-tny * 7 !default;
|
23
|
-
$dropdown-button-pip-size-tny: $button-pip-tny !default;
|
24
|
-
$dropdown-button-pip-opposite-tny: $button-pip-tny * 3 !default;
|
25
|
-
$dropdown-button-pip-top-tny: -$button-pip-tny / 2 + rem-calc(1) !default;
|
26
|
-
|
27
|
-
// We use these to style small dropdown buttons
|
28
|
-
$dropdown-button-padding-sml: $button-pip-sml * 7 !default;
|
29
|
-
$dropdown-button-pip-size-sml: $button-pip-sml !default;
|
30
|
-
$dropdown-button-pip-opposite-sml: $button-pip-sml * 3 !default;
|
31
|
-
$dropdown-button-pip-top-sml: -$button-pip-sml / 2 + rem-calc(1) !default;
|
32
|
-
|
33
|
-
// We use these to style medium dropdown buttons
|
34
|
-
$dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3) !default;
|
35
|
-
$dropdown-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
36
|
-
$dropdown-button-pip-opposite-med: $button-pip-med * 2.5 !default;
|
37
|
-
$dropdown-button-pip-top-med: -$button-pip-med / 2 + rem-calc(2) !default;
|
38
|
-
|
39
|
-
// We use these to style large dropdown buttons
|
40
|
-
$dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3) !default;
|
41
|
-
$dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
42
|
-
$dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5 !default;
|
43
|
-
$dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3) !default;
|
44
|
-
|
45
|
-
// @mixins
|
46
|
-
//
|
47
|
-
// Dropdown Button Mixin
|
48
|
-
//
|
49
|
-
// We use this mixin to build off of the button mixin and add dropdown button styles
|
50
|
-
//
|
51
|
-
// $padding - Determines the size of button you're working with. Default: medium. Options [tiny, small, medium, large]
|
52
|
-
// $pip-color - Color of the little triangle that points to the dropdown. Default: $white.
|
53
|
-
// $base-style - Add in base-styles. This can be set to false. Default:true
|
54
|
-
|
55
|
-
@mixin dropdown-button($padding:medium, $pip-color:$white, $base-style:true) {
|
56
|
-
|
57
|
-
// We add in base styles, but they can be negated by setting to 'false'.
|
58
|
-
@if $base-style {
|
59
|
-
position: relative;
|
60
|
-
|
61
|
-
// This creates the base styles for the triangle pip
|
62
|
-
&:after {
|
63
|
-
position: absolute;
|
64
|
-
content: "";
|
65
|
-
width: 0;
|
66
|
-
height: 0;
|
67
|
-
display: block;
|
68
|
-
border-style: solid;
|
69
|
-
border-color: $dropdown-button-pip-color transparent transparent transparent;
|
70
|
-
top: 50%;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
// If we're dealing with tiny buttons, use these styles
|
75
|
-
@if $padding == tiny {
|
76
|
-
padding-#{$opposite-direction}: $dropdown-button-padding-tny;
|
77
|
-
&:before {
|
78
|
-
border-width: $dropdown-button-pip-size-tny;
|
79
|
-
#{$opposite-direction}: $dropdown-button-pip-opposite-tny;
|
80
|
-
margin-top: $dropdown-button-pip-top-tny;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
// If we're dealing with small buttons, use these styles
|
85
|
-
@if $padding == small {
|
86
|
-
padding-#{$opposite-direction}: $dropdown-button-padding-sml;
|
87
|
-
&:after {
|
88
|
-
border-width: $dropdown-button-pip-size-sml;
|
89
|
-
#{$opposite-direction}: $dropdown-button-pip-opposite-sml;
|
90
|
-
margin-top: $dropdown-button-pip-top-sml;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
// If we're dealing with default (medium) buttons, use these styles
|
95
|
-
@if $padding == medium {
|
96
|
-
padding-#{$opposite-direction}: $dropdown-button-padding-med;
|
97
|
-
&:after {
|
98
|
-
border-width: $dropdown-button-pip-size-med;
|
99
|
-
#{$opposite-direction}: $dropdown-button-pip-opposite-med;
|
100
|
-
margin-top: $dropdown-button-pip-top-med;
|
101
|
-
}
|
102
|
-
}
|
103
|
-
|
104
|
-
// If we're dealing with large buttons, use these styles
|
105
|
-
@if $padding == large {
|
106
|
-
padding-#{$opposite-direction}: $dropdown-button-padding-lrg;
|
107
|
-
&:after {
|
108
|
-
border-width: $dropdown-button-pip-size-lrg;
|
109
|
-
#{$opposite-direction}: $dropdown-button-pip-opposite-lrg;
|
110
|
-
margin-top: $dropdown-button-pip-top-lrg;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
// We can control the pip color. We didn't use logic in this case, just set it and forget it.
|
115
|
-
@if $pip-color {
|
116
|
-
&:after { border-color: $pip-color transparent transparent transparent; }
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
@include exports("dropdown-button") {
|
121
|
-
@if $include-html-button-classes {
|
122
|
-
.dropdown.button, button.dropdown { @include dropdown-button;
|
123
|
-
&.tiny { @include dropdown-button(tiny,$base-style:false); }
|
124
|
-
&.small { @include dropdown-button(small,$base-style:false); }
|
125
|
-
&.large { @include dropdown-button(large,$base-style:false); }
|
126
|
-
&.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
|
127
|
-
}
|
128
|
-
}
|
129
|
-
}
|
@@ -1,248 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import "global";
|
6
|
-
|
7
|
-
//
|
8
|
-
// @variables
|
9
|
-
//
|
10
|
-
$include-html-dropdown-classes: $include-html-classes !default;
|
11
|
-
|
12
|
-
// We use these to controls height and width styles.
|
13
|
-
$f-dropdown-max-width: 200px !default;
|
14
|
-
$f-dropdown-height: auto !default;
|
15
|
-
$f-dropdown-max-height: none !default;
|
16
|
-
|
17
|
-
// Used for bottom position
|
18
|
-
$f-dropdown-margin-top: 2px !default;
|
19
|
-
|
20
|
-
// Used for right position
|
21
|
-
$f-dropdown-margin-left: $f-dropdown-margin-top !default;
|
22
|
-
|
23
|
-
// Used for left position
|
24
|
-
$f-dropdown-margin-right: $f-dropdown-margin-top !default;
|
25
|
-
|
26
|
-
// Used for top position
|
27
|
-
$f-dropdown-margin-bottom: $f-dropdown-margin-top !default;
|
28
|
-
|
29
|
-
// We use this to control the background color
|
30
|
-
$f-dropdown-bg: $white !default;
|
31
|
-
|
32
|
-
// We use this to set the border styles for dropdowns.
|
33
|
-
$f-dropdown-border-style: solid !default;
|
34
|
-
$f-dropdown-border-width: 1px !default;
|
35
|
-
$f-dropdown-border-color: scale-color($white, $lightness: -20%) !default;
|
36
|
-
|
37
|
-
// We use these to style the triangle pip.
|
38
|
-
$f-dropdown-triangle-size: 6px !default;
|
39
|
-
$f-dropdown-triangle-color: $white !default;
|
40
|
-
$f-dropdown-triangle-side-offset: 10px !default;
|
41
|
-
|
42
|
-
// We use these to control styles for the list elements.
|
43
|
-
$f-dropdown-list-style: none !default;
|
44
|
-
$f-dropdown-font-color: $charcoal !default;
|
45
|
-
$f-dropdown-font-size: rem-calc(14) !default;
|
46
|
-
$f-dropdown-list-padding: rem-calc(5, 10) !default;
|
47
|
-
$f-dropdown-line-height: rem-calc(18) !default;
|
48
|
-
$f-dropdown-list-hover-bg: $smoke !default;
|
49
|
-
$dropdown-mobile-default-float: 0 !default;
|
50
|
-
|
51
|
-
// We use this to control the styles for when the dropdown has custom content.
|
52
|
-
$f-dropdown-content-padding: rem-calc(20) !default;
|
53
|
-
|
54
|
-
//
|
55
|
-
// @mixins
|
56
|
-
//
|
57
|
-
//
|
58
|
-
// NOTE: Make default max-width change between list and content types. Can add more width with classes, maybe .small, .medium, .large, etc.;
|
59
|
-
// We use this to style the dropdown container element.
|
60
|
-
// $content-list - Sets list-style. Default: list. Options: [list, content]
|
61
|
-
// $triangle - Sets if dropdown has triangle. Default:true.
|
62
|
-
// $max-width - Default: $f-dropdown-max-width || 200px.
|
63
|
-
@mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
|
64
|
-
position: absolute;
|
65
|
-
left: -9999px;
|
66
|
-
list-style: $f-dropdown-list-style;
|
67
|
-
margin-#{$default-float}: 0;
|
68
|
-
|
69
|
-
> *:first-child { margin-top: 0; }
|
70
|
-
> *:last-child { margin-bottom: 0; }
|
71
|
-
|
72
|
-
@if $content == list {
|
73
|
-
width: 100%;
|
74
|
-
max-height: $f-dropdown-max-height;
|
75
|
-
height: $f-dropdown-height;
|
76
|
-
background: $f-dropdown-bg;
|
77
|
-
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
78
|
-
font-size: $f-dropdown-font-size;
|
79
|
-
z-index: 99;
|
80
|
-
}
|
81
|
-
@else if $content == content {
|
82
|
-
padding: $f-dropdown-content-padding;
|
83
|
-
width: 100%;
|
84
|
-
height: $f-dropdown-height;
|
85
|
-
max-height: $f-dropdown-max-height;
|
86
|
-
background: $f-dropdown-bg;
|
87
|
-
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
88
|
-
font-size: $f-dropdown-font-size;
|
89
|
-
z-index: 99;
|
90
|
-
}
|
91
|
-
|
92
|
-
@if $triangle == bottom {
|
93
|
-
margin-top: $f-dropdown-margin-top;
|
94
|
-
|
95
|
-
&:before {
|
96
|
-
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
|
97
|
-
position: absolute;
|
98
|
-
top: -($f-dropdown-triangle-size * 2);
|
99
|
-
#{$default-float}: $f-dropdown-triangle-side-offset;
|
100
|
-
z-index: 99;
|
101
|
-
}
|
102
|
-
&:after {
|
103
|
-
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
|
104
|
-
position: absolute;
|
105
|
-
top: -(($f-dropdown-triangle-size + 1) * 2);
|
106
|
-
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
107
|
-
z-index: 98;
|
108
|
-
}
|
109
|
-
|
110
|
-
&.right:before {
|
111
|
-
#{$default-float}: auto;
|
112
|
-
#{$opposite-direction}: $f-dropdown-triangle-side-offset;
|
113
|
-
}
|
114
|
-
&.right:after {
|
115
|
-
#{$default-float}: auto;
|
116
|
-
#{$opposite-direction}: $f-dropdown-triangle-side-offset - 1;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
@if $triangle == $default-float {
|
121
|
-
margin-top: 0;
|
122
|
-
margin-#{$default-float}: $f-dropdown-margin-right;
|
123
|
-
|
124
|
-
&:before {
|
125
|
-
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, #{$opposite-direction});
|
126
|
-
position: absolute;
|
127
|
-
top: $f-dropdown-triangle-side-offset;
|
128
|
-
#{$default-float}: -($f-dropdown-triangle-size * 2);
|
129
|
-
z-index: 99;
|
130
|
-
}
|
131
|
-
&:after {
|
132
|
-
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$opposite-direction});
|
133
|
-
position: absolute;
|
134
|
-
top: $f-dropdown-triangle-side-offset - 1;
|
135
|
-
#{$default-float}: -($f-dropdown-triangle-size * 2) - 2;
|
136
|
-
z-index: 98;
|
137
|
-
}
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
@if $triangle == $opposite-direction {
|
142
|
-
margin-top: 0;
|
143
|
-
margin-#{$default-float}: -$f-dropdown-margin-right;
|
144
|
-
|
145
|
-
&:before {
|
146
|
-
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, #{$default-float});
|
147
|
-
position: absolute;
|
148
|
-
top: $f-dropdown-triangle-side-offset;
|
149
|
-
#{$opposite-direction}: -($f-dropdown-triangle-size * 2);
|
150
|
-
#{$default-float}: auto;
|
151
|
-
z-index: 99;
|
152
|
-
}
|
153
|
-
&:after {
|
154
|
-
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$default-float});
|
155
|
-
position: absolute;
|
156
|
-
top: $f-dropdown-triangle-side-offset - 1;
|
157
|
-
#{$opposite-direction}: -($f-dropdown-triangle-size * 2) - 2;
|
158
|
-
#{$default-float}: auto;
|
159
|
-
z-index: 98;
|
160
|
-
}
|
161
|
-
|
162
|
-
}
|
163
|
-
|
164
|
-
@if $triangle == top {
|
165
|
-
margin-top: -$f-dropdown-margin-bottom;
|
166
|
-
margin-left: 0;
|
167
|
-
|
168
|
-
&:before {
|
169
|
-
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top);
|
170
|
-
position: absolute;
|
171
|
-
top: auto;
|
172
|
-
bottom: -($f-dropdown-triangle-size * 2);
|
173
|
-
#{$default-float}: $f-dropdown-triangle-side-offset;
|
174
|
-
#{$opposite-direction}: auto;
|
175
|
-
z-index: 99;
|
176
|
-
}
|
177
|
-
&:after {
|
178
|
-
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
|
179
|
-
position: absolute;
|
180
|
-
top: auto;
|
181
|
-
bottom: -($f-dropdown-triangle-size * 2) - 2;
|
182
|
-
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
183
|
-
#{$opposite-direction}: auto;
|
184
|
-
z-index: 98;
|
185
|
-
}
|
186
|
-
|
187
|
-
}
|
188
|
-
|
189
|
-
@if $max-width { max-width: $max-width; }
|
190
|
-
@else { max-width: $f-dropdown-max-width; }
|
191
|
-
|
192
|
-
}
|
193
|
-
|
194
|
-
// @MIXIN
|
195
|
-
//
|
196
|
-
// We use this to style the list elements or content inside the dropdown.
|
197
|
-
|
198
|
-
@mixin dropdown-style {
|
199
|
-
font-size: $f-dropdown-font-size;
|
200
|
-
cursor: $cursor-pointer-value;
|
201
|
-
|
202
|
-
line-height: $f-dropdown-line-height;
|
203
|
-
margin: 0;
|
204
|
-
|
205
|
-
&:hover,
|
206
|
-
&:focus { background: $f-dropdown-list-hover-bg; }
|
207
|
-
|
208
|
-
a {
|
209
|
-
display: block;
|
210
|
-
padding: $f-dropdown-list-padding;
|
211
|
-
color: $f-dropdown-font-color;
|
212
|
-
}
|
213
|
-
}
|
214
|
-
|
215
|
-
@include exports("dropdown") {
|
216
|
-
@if $include-html-dropdown-classes {
|
217
|
-
|
218
|
-
/* Foundation Dropdowns */
|
219
|
-
.f-dropdown {
|
220
|
-
@include dropdown-container(list, bottom);
|
221
|
-
|
222
|
-
&.drop-#{$opposite-direction} {
|
223
|
-
@include dropdown-container(list, #{$default-float});
|
224
|
-
}
|
225
|
-
|
226
|
-
&.drop-#{$default-float} {
|
227
|
-
@include dropdown-container(list, #{$opposite-direction});
|
228
|
-
}
|
229
|
-
|
230
|
-
&.drop-top {
|
231
|
-
@include dropdown-container(list, top);
|
232
|
-
}
|
233
|
-
// max-width: none;
|
234
|
-
|
235
|
-
li { @include dropdown-style; }
|
236
|
-
|
237
|
-
// You can also put custom content in these dropdowns
|
238
|
-
&.content { @include dropdown-container(content, $triangle:false); }
|
239
|
-
|
240
|
-
// Sizes
|
241
|
-
&.tiny { max-width: 200px; }
|
242
|
-
&.small { max-width: 300px; }
|
243
|
-
&.medium { max-width: 500px; }
|
244
|
-
&.large { max-width: 800px; }
|
245
|
-
}
|
246
|
-
|
247
|
-
}
|
248
|
-
}
|