fastlane-plugin-polidea 2.2.0.pre.1 → 3.0.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -13
- data/lib/fastlane/plugin/polidea.rb +4 -0
- data/lib/fastlane/plugin/polidea/actions/fota_s3.rb +36 -28
- data/lib/fastlane/plugin/polidea/actions/release_notes.rb +1 -1
- data/lib/fastlane/plugin/polidea/helper/page_generator.rb +17 -56
- data/lib/fastlane/plugin/polidea/helper/qr_generator.rb +1 -1
- 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} +20 -25
- metadata +4 -105
- 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,200 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import "global";
|
6
|
-
@import "buttons";
|
7
|
-
|
8
|
-
|
9
|
-
//
|
10
|
-
// Button Group Variables
|
11
|
-
//
|
12
|
-
$include-html-button-classes: $include-html-classes !default;
|
13
|
-
|
14
|
-
// Sets the margin for the right side by default, and the left margin if right-to-left direction is used
|
15
|
-
$button-bar-margin-opposite: rem-calc(10) !default;
|
16
|
-
$button-group-border-width: 1px !default;
|
17
|
-
|
18
|
-
//
|
19
|
-
// Button Group Mixins
|
20
|
-
//
|
21
|
-
|
22
|
-
// We use this to add styles for a button group container
|
23
|
-
@mixin button-group-container($styles:true, $float:false) {
|
24
|
-
@if $styles {
|
25
|
-
list-style: none;
|
26
|
-
margin: 0;
|
27
|
-
#{$default-float}: 0;
|
28
|
-
@include clearfix();
|
29
|
-
}
|
30
|
-
@if $float {
|
31
|
-
float: #{$default-float};
|
32
|
-
margin-#{$opposite-direction}: $button-bar-margin-opposite;
|
33
|
-
& div { overflow: hidden; }
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
// We use this to control styles for button groups
|
38
|
-
@mixin button-group-style($radius:false, $even:false, $float:false, $orientation:horizontal) {
|
39
|
-
|
40
|
-
> button, .button {
|
41
|
-
border-#{$default-float}: $button-group-border-width solid;
|
42
|
-
border-color: rgba(255, 255, 255, 0.5);
|
43
|
-
}
|
44
|
-
|
45
|
-
&:first-child {
|
46
|
-
button, .button {
|
47
|
-
border-#{$default-float}: 0;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
// We use this to control the flow, or remove those styles completely.
|
52
|
-
@if $float {
|
53
|
-
margin: 0;
|
54
|
-
float: $float;
|
55
|
-
display: list-item;
|
56
|
-
// Make sure the first child doesn't get the negative margin.
|
57
|
-
&:first-child { margin-#{$default-float}: 0; }
|
58
|
-
}
|
59
|
-
@else {
|
60
|
-
margin: 0 -2px;
|
61
|
-
float: none;
|
62
|
-
display: inline-block;
|
63
|
-
}
|
64
|
-
|
65
|
-
@if $orientation == vertical {
|
66
|
-
display:block;
|
67
|
-
margin:0;
|
68
|
-
> button, .button {
|
69
|
-
border-top: $button-group-border-width solid;
|
70
|
-
border-color: rgba(255, 255, 255, 0.5);
|
71
|
-
border-left-width: 0px;
|
72
|
-
margin:0;
|
73
|
-
display: block;
|
74
|
-
}
|
75
|
-
|
76
|
-
&:first-child {
|
77
|
-
button, .button {
|
78
|
-
border-top: 0;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
// We use these to control left and right radius on first/last buttons in the group.
|
84
|
-
@if $radius == true {
|
85
|
-
&,
|
86
|
-
& > a,
|
87
|
-
& > button,
|
88
|
-
& > .button { @include radius(0); }
|
89
|
-
&:first-child,
|
90
|
-
&:first-child > a,
|
91
|
-
&:first-child > button,
|
92
|
-
&:first-child > .button {
|
93
|
-
@if $orientation == vertical {
|
94
|
-
@include side-radius(top, $button-radius);
|
95
|
-
}
|
96
|
-
@else {
|
97
|
-
@include side-radius($default-float, $button-radius);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
&:last-child,
|
101
|
-
&:last-child > a,
|
102
|
-
&:last-child > button,
|
103
|
-
&:last-child > .button {
|
104
|
-
@if $orientation == vertical {
|
105
|
-
@include side-radius(bottom, $button-radius);
|
106
|
-
}
|
107
|
-
@else {
|
108
|
-
@include side-radius($opposite-direction, $button-radius);
|
109
|
-
}
|
110
|
-
}
|
111
|
-
}
|
112
|
-
@else if $radius {
|
113
|
-
&,
|
114
|
-
& > a,
|
115
|
-
& > button,
|
116
|
-
& > .button { @include radius(0); }
|
117
|
-
&:first-child,
|
118
|
-
&:first-child > a,
|
119
|
-
&:first-child > button,
|
120
|
-
&:first-child > .button {
|
121
|
-
@if $orientation == vertical {
|
122
|
-
@include side-radius(top, $radius);
|
123
|
-
}
|
124
|
-
@else {
|
125
|
-
@include side-radius($default-float, $radius);
|
126
|
-
}
|
127
|
-
}
|
128
|
-
&:last-child,
|
129
|
-
&:last-child > a,
|
130
|
-
&:last-child > button,
|
131
|
-
&:last-child > .button {
|
132
|
-
@if $orientation == vertical {
|
133
|
-
@include side-radius(bottom, $radius);
|
134
|
-
}
|
135
|
-
@else {
|
136
|
-
@include side-radius($opposite-direction, $radius);
|
137
|
-
}
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
// We use this to make the buttons even width across their container
|
142
|
-
@if $even {
|
143
|
-
width: percentage((100/$even) / 100);
|
144
|
-
button, .button { width: 100%; }
|
145
|
-
}
|
146
|
-
|
147
|
-
}
|
148
|
-
|
149
|
-
@include exports("button-group") {
|
150
|
-
@if $include-html-button-classes {
|
151
|
-
.button-group { @include button-group-container;
|
152
|
-
|
153
|
-
& > li { @include button-group-style(); }
|
154
|
-
|
155
|
-
&.stack {
|
156
|
-
& > li { @include button-group-style($orientation:vertical); }
|
157
|
-
}
|
158
|
-
|
159
|
-
&.stack-for-small {
|
160
|
-
& > li {
|
161
|
-
@include button-group-style($orientation:horizontal);
|
162
|
-
@media #{$small-only} {
|
163
|
-
@include button-group-style($orientation:vertical);
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
&.radius > * { @include button-group-style($radius:$button-radius, $float:null); }
|
169
|
-
&.radius.stack > * { @include button-group-style($radius:$button-radius, $float:null, $orientation:vertical); }
|
170
|
-
&.radius.stack-for-small > * {
|
171
|
-
@media #{$medium-up} {
|
172
|
-
@include button-group-style($radius:$button-radius, $orientation:horizontal);
|
173
|
-
}
|
174
|
-
@media #{$small-only} {
|
175
|
-
@include button-group-style($radius:$button-radius, $orientation:vertical);
|
176
|
-
}
|
177
|
-
}
|
178
|
-
|
179
|
-
&.round > * { @include button-group-style($radius:$button-round, $float:null); }
|
180
|
-
&.round.stack > * { @include button-group-style($radius:$button-med, $float:null, $orientation:vertical); }
|
181
|
-
&.round.stack-for-small > * {
|
182
|
-
@media #{$medium-up} {
|
183
|
-
@include button-group-style($radius:$button-round, $orientation:horizontal);
|
184
|
-
}
|
185
|
-
@media #{$small-only} {
|
186
|
-
@include button-group-style($radius:$button-med, $orientation:vertical);
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
@for $i from 2 through 8 {
|
191
|
-
&.even-#{$i} li { @include button-group-style($even:$i, $float:null); }
|
192
|
-
}
|
193
|
-
}
|
194
|
-
|
195
|
-
.button-bar {
|
196
|
-
@include clearfix;
|
197
|
-
.button-group { @include button-group-container($styles:false,$float:true); }
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
@@ -1,252 +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 build padding for buttons.
|
13
|
-
$button-tny: rem-calc(10) !default;
|
14
|
-
$button-sml: rem-calc(14) !default;
|
15
|
-
$button-med: rem-calc(16) !default;
|
16
|
-
$button-lrg: rem-calc(18) !default;
|
17
|
-
|
18
|
-
// We use this to control the display property.
|
19
|
-
$button-display: inline-block !default;
|
20
|
-
$button-margin-bottom: rem-calc(20) !default;
|
21
|
-
|
22
|
-
// We use these to control button text styles.
|
23
|
-
$button-font-family: $body-font-family !default;
|
24
|
-
$button-font-color: $white !default;
|
25
|
-
$button-font-color-alt: $oil !default;
|
26
|
-
$button-font-tny: rem-calc(11) !default;
|
27
|
-
$button-font-sml: rem-calc(13) !default;
|
28
|
-
$button-font-med: rem-calc(16) !default;
|
29
|
-
$button-font-lrg: rem-calc(20) !default;
|
30
|
-
$button-font-weight: $font-weight-normal !default;
|
31
|
-
$button-font-align: center !default;
|
32
|
-
|
33
|
-
// We use these to control various hover effects.
|
34
|
-
$button-function-factor: -20% !default;
|
35
|
-
|
36
|
-
// We use these to control button border styles.
|
37
|
-
$button-border-width: 0px !default;
|
38
|
-
$button-border-style: solid !default;
|
39
|
-
$button-bg-color: $primary-color !default;
|
40
|
-
$button-bg-hover: scale-color($button-bg-color, $lightness: $button-function-factor) !default;
|
41
|
-
$button-border-color: $button-bg-hover !default;
|
42
|
-
$secondary-button-bg-hover: scale-color($secondary-color, $lightness: $button-function-factor) !default;
|
43
|
-
$secondary-button-border-color: $secondary-button-bg-hover !default;
|
44
|
-
$success-button-bg-hover: scale-color($success-color, $lightness: $button-function-factor) !default;
|
45
|
-
$success-button-border-color: $success-button-bg-hover !default;
|
46
|
-
$alert-button-bg-hover: scale-color($alert-color, $lightness: $button-function-factor) !default;
|
47
|
-
$alert-button-border-color: $alert-button-bg-hover !default;
|
48
|
-
|
49
|
-
// We use this to set the default radius used throughout the core.
|
50
|
-
$button-radius: $global-radius !default;
|
51
|
-
$button-round: $global-rounded !default;
|
52
|
-
|
53
|
-
// We use this to set default opacity and cursor for disabled buttons.
|
54
|
-
$button-disabled-opacity: 0.7 !default;
|
55
|
-
$button-disabled-cursor: $cursor-default-value !default;
|
56
|
-
|
57
|
-
|
58
|
-
//
|
59
|
-
// @MIXIN
|
60
|
-
//
|
61
|
-
// We use this mixin to create a default button base.
|
62
|
-
//
|
63
|
-
// $style - Sets base styles. Can be set to false. Default: true.
|
64
|
-
// $display - Used to control display property. Default: $button-display || inline-block
|
65
|
-
|
66
|
-
@mixin button-base($style:true, $display:$button-display) {
|
67
|
-
@if $style {
|
68
|
-
border-style: $button-border-style;
|
69
|
-
border-width: $button-border-width;
|
70
|
-
cursor: $cursor-pointer-value;
|
71
|
-
font-family: $button-font-family;
|
72
|
-
font-weight: $button-font-weight;
|
73
|
-
line-height: normal;
|
74
|
-
margin: 0 0 $button-margin-bottom;
|
75
|
-
position: relative;
|
76
|
-
text-decoration: none;
|
77
|
-
text-align: $button-font-align;
|
78
|
-
-webkit-appearance: none;
|
79
|
-
-webkit-border-radius:0;
|
80
|
-
}
|
81
|
-
@if $display { display: $display; }
|
82
|
-
}
|
83
|
-
|
84
|
-
// @MIXIN
|
85
|
-
//
|
86
|
-
// We use this mixin to add button size styles
|
87
|
-
//
|
88
|
-
// $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
|
89
|
-
// $full-width - We can set $full-width:true to remove side padding extend width - Default: false
|
90
|
-
|
91
|
-
@mixin button-size($padding:$button-med, $full-width:false) {
|
92
|
-
|
93
|
-
// We control which padding styles come through,
|
94
|
-
// these can be turned off by setting $padding:false
|
95
|
-
@if $padding {
|
96
|
-
padding-top: $padding;
|
97
|
-
padding-#{$opposite-direction}: $padding * 2;
|
98
|
-
padding-bottom: $padding + rem-calc(1);
|
99
|
-
padding-#{$default-float}: $padding * 2;
|
100
|
-
|
101
|
-
// We control the font-size based on mixin input.
|
102
|
-
@if $padding == $button-med { font-size: $button-font-med; }
|
103
|
-
@else if $padding == $button-tny { font-size: $button-font-tny; }
|
104
|
-
@else if $padding == $button-sml { font-size: $button-font-sml; }
|
105
|
-
@else if $padding == $button-lrg { font-size: $button-font-lrg; }
|
106
|
-
}
|
107
|
-
|
108
|
-
// We can set $full-width:true to remove side padding extend width.
|
109
|
-
@if $full-width {
|
110
|
-
// We still need to check if $padding is set.
|
111
|
-
@if $padding {
|
112
|
-
padding-top: $padding;
|
113
|
-
padding-bottom: $padding + rem-calc(1);
|
114
|
-
} @else if $padding == false {
|
115
|
-
padding-top:0;
|
116
|
-
padding-bottom:0;
|
117
|
-
}
|
118
|
-
padding-right: 0;
|
119
|
-
padding-left: 0;
|
120
|
-
width: 100%;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
// @MIXIN
|
125
|
-
//
|
126
|
-
// we use this mixin to create the button hover and border colors
|
127
|
-
|
128
|
-
// @MIXIN
|
129
|
-
//
|
130
|
-
// We use this mixin to add button color styles
|
131
|
-
//
|
132
|
-
// $bg - Primary color set in settings file. Default: $button-bg.
|
133
|
-
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: true
|
134
|
-
// $disabled - We can set $disabled:true to create a disabled transparent button. Default: false
|
135
|
-
// $bg-hover - Button Hover Background Color. Default: $button-bg-hover
|
136
|
-
// $border-color - Button Border Color. Default: $button-border-color
|
137
|
-
@mixin button-style($bg:$button-bg-color, $radius:false, $disabled:false, $bg-hover:null, $border-color:null) {
|
138
|
-
|
139
|
-
// We control which background styles are used,
|
140
|
-
// these can be removed by setting $bg:false
|
141
|
-
@if $bg {
|
142
|
-
|
143
|
-
@if $bg-hover == null {
|
144
|
-
$bg-hover: if($bg == $button-bg-color, $button-bg-hover, scale-color($bg, $lightness: $button-function-factor));
|
145
|
-
}
|
146
|
-
|
147
|
-
@if $border-color == null {
|
148
|
-
$border-color: if($bg == $button-bg-color, $button-border-color, scale-color($bg, $lightness: $button-function-factor));
|
149
|
-
}
|
150
|
-
|
151
|
-
// This find the lightness percentage of the background color.
|
152
|
-
$bg-lightness: lightness($bg);
|
153
|
-
$bg-hover-lightness: lightness($bg-hover);
|
154
|
-
|
155
|
-
background-color: $bg;
|
156
|
-
border-color: $border-color;
|
157
|
-
&:hover,
|
158
|
-
&:focus { background-color: $bg-hover; }
|
159
|
-
|
160
|
-
// We control the text color for you based on the background color.
|
161
|
-
color: if($bg-lightness > 70%, $button-font-color-alt, $button-font-color);
|
162
|
-
|
163
|
-
&:hover,
|
164
|
-
&:focus {
|
165
|
-
color: if($bg-hover-lightness > 70%, $button-font-color-alt, $button-font-color);
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
// We can set $disabled:true to create a disabled transparent button.
|
170
|
-
@if $disabled {
|
171
|
-
cursor: $button-disabled-cursor;
|
172
|
-
opacity: $button-disabled-opacity;
|
173
|
-
box-shadow: none;
|
174
|
-
&:hover,
|
175
|
-
&:focus { background-color: $bg; }
|
176
|
-
}
|
177
|
-
|
178
|
-
// We can control how much button radius is used.
|
179
|
-
@if $radius == true { @include radius($button-radius); }
|
180
|
-
@else if $radius { @include radius($radius); }
|
181
|
-
|
182
|
-
}
|
183
|
-
|
184
|
-
// @MIXIN
|
185
|
-
//
|
186
|
-
// We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin"
|
187
|
-
//
|
188
|
-
// $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
|
189
|
-
// $bg - Primary color set in settings file. Default: $button-bg.
|
190
|
-
// $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default:false.
|
191
|
-
// $full-width - We can set $full-width:true to remove side padding extend width. Default:false.
|
192
|
-
// $disabled - We can set $disabled:true to create a disabled transparent button. Default:false.
|
193
|
-
// $is-input - <input>'s and <button>'s take on strange padding. We added this to help fix that. Default:false.
|
194
|
-
// $is-prefix - Not used? Default:false.
|
195
|
-
// $bg-hover - Button Hover Color - Default null - see button-style mixin
|
196
|
-
// $border-color - Button Border Color - Default null - see button-style mixin
|
197
|
-
// $transition - We can control whether or not to include the background-color transition property - Default:true.
|
198
|
-
@mixin button($padding:$button-med, $bg:$button-bg-color, $radius:false, $full-width:false, $disabled:false, $is-input:false, $is-prefix:false, $bg-hover:null, $border-color:null, $transition: true) {
|
199
|
-
@include button-base;
|
200
|
-
@include button-size($padding, $full-width);
|
201
|
-
@include button-style($bg, $radius, $disabled, $bg-hover, $border-color);
|
202
|
-
|
203
|
-
@if $transition {
|
204
|
-
@include single-transition(background-color);
|
205
|
-
}
|
206
|
-
}
|
207
|
-
|
208
|
-
|
209
|
-
@include exports("button") {
|
210
|
-
@if $include-html-button-classes {
|
211
|
-
|
212
|
-
// Default styles applied outside of media query
|
213
|
-
button, .button {
|
214
|
-
@include button-base;
|
215
|
-
@include button-size;
|
216
|
-
@include button-style;
|
217
|
-
|
218
|
-
@include single-transition(background-color);
|
219
|
-
|
220
|
-
&.secondary { @include button-style($bg:$secondary-color, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
|
221
|
-
&.success { @include button-style($bg:$success-color, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
|
222
|
-
&.alert { @include button-style($bg:$alert-color, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
|
223
|
-
|
224
|
-
&.large { @include button-size($padding:$button-lrg); }
|
225
|
-
&.small { @include button-size($padding:$button-sml); }
|
226
|
-
&.tiny { @include button-size($padding:$button-tny); }
|
227
|
-
&.expand { @include button-size($padding:null,$full-width:true); }
|
228
|
-
|
229
|
-
&.left-align { text-align: left; text-indent: rem-calc(12); }
|
230
|
-
&.right-align { text-align: right; padding-right: rem-calc(12); }
|
231
|
-
|
232
|
-
&.radius { @include button-style($bg:false, $radius:true); }
|
233
|
-
&.round { @include button-style($bg:false, $radius:$button-round); }
|
234
|
-
|
235
|
-
&.disabled, &[disabled] { @include button-style($bg:$button-bg-color, $disabled:true, $bg-hover:$button-bg-hover, $border-color:$button-border-color);
|
236
|
-
&.secondary { @include button-style($bg:$secondary-color, $disabled:true, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
|
237
|
-
&.success { @include button-style($bg:$success-color, $disabled:true, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
|
238
|
-
&.alert { @include button-style($bg:$alert-color, $disabled:true, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
|
239
|
-
}
|
240
|
-
}
|
241
|
-
|
242
|
-
//firefox 2px fix
|
243
|
-
button::-moz-focus-inner {border:0; padding:0;}
|
244
|
-
|
245
|
-
@media #{$medium-up} {
|
246
|
-
button, .button {
|
247
|
-
@include button-base($style:false, $display:inline-block);
|
248
|
-
@include button-size($padding:false, $full-width:false);
|
249
|
-
}
|
250
|
-
}
|
251
|
-
}
|
252
|
-
}
|