ellipsis-compass 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/ellipsis-compass.rb +4 -0
- data/stylesheets/animation/_animate.scss +1206 -0
- data/stylesheets/animation/_animation.scss +121 -0
- data/stylesheets/animation/_animations.scss +771 -0
- data/stylesheets/animation/_transit.scss +425 -0
- data/stylesheets/animation/_transitions.scss +320 -0
- data/stylesheets/base/_breakpoints.scss +64 -0
- data/stylesheets/base/_document.scss +219 -0
- data/stylesheets/base/_global.scss +88 -0
- data/stylesheets/base/_normalize.scss +406 -0
- data/stylesheets/component/_component.scss +939 -0
- data/stylesheets/component/_ui.scss +955 -0
- data/stylesheets/flexbox/_flexbox.scss +305 -0
- data/stylesheets/font/_icons.scss +1492 -0
- data/stylesheets/font/_ubuntu.scss +38 -0
- data/stylesheets/form/_form.scss +836 -0
- data/stylesheets/grid/_grid.scss +312 -0
- data/stylesheets/helpers/_all.scss +8 -0
- data/stylesheets/helpers/_component.scss +177 -0
- data/stylesheets/helpers/_convenience.scss +277 -0
- data/stylesheets/helpers/_functions.scss +427 -0
- data/stylesheets/helpers/_grid.scss +39 -0
- data/stylesheets/helpers/_hardware-acceleration.scss +22 -0
- data/stylesheets/helpers/_mixins.scss +207 -0
- data/stylesheets/helpers/_touch.scss +107 -0
- data/stylesheets/helpers/_visibility.scss +138 -0
- data/stylesheets/image/_images.scss +19 -0
- data/stylesheets/imports/elements/_autosearch.scss +11 -0
- data/stylesheets/imports/elements/_badge.scss +23 -0
- data/stylesheets/imports/elements/_barchart.scss +254 -0
- data/stylesheets/imports/elements/_form.scss +8 -0
- data/stylesheets/imports/elements/_loginform.scss +6 -0
- data/stylesheets/imports/elements/_modellist.scss +14 -0
- data/stylesheets/imports/elements/_pluralize.scss +8 -0
- data/stylesheets/imports/elements/_signupform.scss +6 -0
- data/stylesheets/imports/elements/_slidenotification.scss +65 -0
- data/stylesheets/imports/elements/_stickyreveal.scss +44 -0
- data/stylesheets/imports/elements/_template.scss +7 -0
- data/stylesheets/imports/elements/_veneer.scss +36 -0
- data/stylesheets/shared/_shared.scss +282 -0
- data/stylesheets/touch/ui/_drawer.scss +41 -0
- data/stylesheets/touch/ui/_dropdown.scss +58 -0
- data/stylesheets/touch/ui/_menu.scss +131 -0
- data/stylesheets/touch/ui/_navbar.scss +44 -0
- data/stylesheets/touch/ui/_toggle.scss +127 -0
- data/stylesheets/touch/ui/_topbar.scss +48 -0
- data/stylesheets/typography/_typography.scss +746 -0
- data/stylesheets/ui/_autocomplete.scss +117 -0
- data/stylesheets/ui/_badge.scss +73 -0
- data/stylesheets/ui/_box.scss +78 -0
- data/stylesheets/ui/_breadcrumb.scss +64 -0
- data/stylesheets/ui/_button.scss +395 -0
- data/stylesheets/ui/_carousel.scss +284 -0
- data/stylesheets/ui/_collapsible.scss +61 -0
- data/stylesheets/ui/_container.scss +297 -0
- data/stylesheets/ui/_datepicker.scss +218 -0
- data/stylesheets/ui/_drawer.scss +96 -0
- data/stylesheets/ui/_dropdown.scss +394 -0
- data/stylesheets/ui/_file.scss +147 -0
- data/stylesheets/ui/_gallery.scss +219 -0
- data/stylesheets/ui/_label.scss +167 -0
- data/stylesheets/ui/_loading.scss +70 -0
- data/stylesheets/ui/_mediaobject.scss +108 -0
- data/stylesheets/ui/_menu.scss +287 -0
- data/stylesheets/ui/_menutab.scss +175 -0
- data/stylesheets/ui/_modal.scss +47 -0
- data/stylesheets/ui/_navbar.scss +315 -0
- data/stylesheets/ui/_notification.scss +154 -0
- data/stylesheets/ui/_pagination.scss +137 -0
- data/stylesheets/ui/_parallax.scss +233 -0
- data/stylesheets/ui/_popover.scss +3 -0
- data/stylesheets/ui/_rating.scss +106 -0
- data/stylesheets/ui/_sidebar.scss +110 -0
- data/stylesheets/ui/_slidingpanel.scss +57 -0
- data/stylesheets/ui/_social.scss +213 -0
- data/stylesheets/ui/_sticky.scss +9 -0
- data/stylesheets/ui/_table.scss +423 -0
- data/stylesheets/ui/_tabs.scss +242 -0
- data/stylesheets/ui/_toggle.scss +49 -0
- data/stylesheets/ui/_tooltip.scss +57 -0
- data/stylesheets/ui/_topbar.scss +210 -0
- data/stylesheets/ui/_tree.scss +3 -0
- data/stylesheets/ui/_window.scss +205 -0
- metadata +140 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
@mixin font-ubuntu(){
|
2
|
+
@font-face {
|
3
|
+
font-family: 'ubuntulight';
|
4
|
+
src: url('fonts/ubuntu-l.eot');
|
5
|
+
src: url('fonts/ubuntu-l.eot?#iefix') format('embedded-opentype'),
|
6
|
+
url('fonts/ubuntu-l.woff') format('woff'),
|
7
|
+
url('fonts/ubuntu-l.ttf') format('truetype'),
|
8
|
+
url('fonts/ubuntu-l.svg#ubuntulight') format('svg');
|
9
|
+
font-weight: normal;
|
10
|
+
font-style: normal;
|
11
|
+
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
@font-face {
|
16
|
+
font-family: 'ubuntumedium';
|
17
|
+
src: url('fonts/ubuntu-m.eot');
|
18
|
+
src: url('fonts/ubuntu-m.eot?#iefix') format('embedded-opentype'),
|
19
|
+
url('fonts/ubuntu-m.woff') format('woff'),
|
20
|
+
url('fonts/ubuntu-m.ttf') format('truetype'),
|
21
|
+
url('fonts/ubuntu-m.svg#ubuntumedium') format('svg');
|
22
|
+
font-weight: normal;
|
23
|
+
font-style: normal;
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
@font-face {
|
28
|
+
font-family: 'ubunturegular';
|
29
|
+
src: url('fonts/ubuntu-r.eot');
|
30
|
+
src: url('fonts/ubuntu-r.eot?#iefix') format('embedded-opentype'),
|
31
|
+
url('fonts/ubuntu-r.woff') format('woff'),
|
32
|
+
url('fonts/ubuntu-r.ttf') format('truetype'),
|
33
|
+
url('fonts/ubuntu-r.svg#ubunturegular') format('svg');
|
34
|
+
font-weight: normal;
|
35
|
+
font-style: normal;
|
36
|
+
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,836 @@
|
|
1
|
+
/* Variables ------------------------------------------------------------------------- */
|
2
|
+
|
3
|
+
$include-form-input-animation: true !default;
|
4
|
+
$form-input-margin: 0 0 1em 0 !default;
|
5
|
+
$form-input-padding: 0.6em 0.75em !default;
|
6
|
+
|
7
|
+
$form-spacing: 1.5em !default;
|
8
|
+
$form-label-font-size: 1em !default;
|
9
|
+
$form-label-font-weight: bold !default;
|
10
|
+
$form-label-font-color: $global-font-color !default;
|
11
|
+
$form-label-bottom-margin: .2em !default;
|
12
|
+
$form-input-animation: all 0.25s linear !default;
|
13
|
+
|
14
|
+
$form-input-border-radius: 0 !default;
|
15
|
+
$form-input-outline: none !default;
|
16
|
+
|
17
|
+
$form-fieldset-padding: .5em !default;
|
18
|
+
$form-fieldset-margin: 1em 0 !default;
|
19
|
+
$form-fieldset-button-margin-top: 3em !default;
|
20
|
+
$form-fieldset-border:0 !default;
|
21
|
+
|
22
|
+
$form-checkbox-label-padding: 0 0 0 1.5em !default;
|
23
|
+
$form-checkbox-size: 1.2em !default;
|
24
|
+
$form-checkbox-icon-font-size: 1em !default;
|
25
|
+
$form-radio-border-radius: 100px !default;
|
26
|
+
$form-radio-icon-font-size: .625em !default;
|
27
|
+
|
28
|
+
$form-switch-toggle-size: 2.5em;
|
29
|
+
$form-switch-height: 2.5em !default;
|
30
|
+
$form-switch-width: 5em !default;
|
31
|
+
$form-switch-border-radius: 2.5em !default;
|
32
|
+
$form-switch-top-position: .7em !default;
|
33
|
+
$form-switch-font-size: .75em !default;
|
34
|
+
|
35
|
+
$form-dropdown-padding: .5em 1em .5em 1em !default;
|
36
|
+
$form-dropdown-border-radius: .6em !default;
|
37
|
+
$form-dropdown-width: 18.625em !default;
|
38
|
+
$form-dropdown-select-font-weight: normal !default;
|
39
|
+
|
40
|
+
//input type=number
|
41
|
+
$form-input-number-font-color: $global-font-color !default;
|
42
|
+
|
43
|
+
|
44
|
+
/* Mixins ----------------------------------------------------------------------------------------------------- */
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
//semantic input
|
49
|
+
@mixin _semantic-input-text($component) {
|
50
|
+
input[type="text"],
|
51
|
+
input[type="password"],
|
52
|
+
input[type="date"],
|
53
|
+
input[type="datetime"],
|
54
|
+
input[type="email"],
|
55
|
+
input[type="number"],
|
56
|
+
input[type="search"],
|
57
|
+
input[type="tel"],
|
58
|
+
input[type="time"],
|
59
|
+
input[type="url"],
|
60
|
+
textarea {
|
61
|
+
&.#{$component} {
|
62
|
+
@extend %#{$component}-background !optional;
|
63
|
+
@extend %#{$component}-border !optional;
|
64
|
+
@extend %#{$component}-font !optional;
|
65
|
+
outline: none;
|
66
|
+
font-weight: bold;
|
67
|
+
@extend %#{$component}-placeholder !optional;
|
68
|
+
&:focus{
|
69
|
+
@extend %#{$component}-background-hover !optional;
|
70
|
+
@extend %#{$component}-border-hover !optional;
|
71
|
+
@extend %#{$component}-font !optional;
|
72
|
+
outline: none;
|
73
|
+
font-weight: bold;
|
74
|
+
@extend %#{$component}-placeholder !optional;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
@mixin _semantic-form-label($class, $color) {
|
81
|
+
label {
|
82
|
+
&.#{$class} {
|
83
|
+
color: $color;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
@mixin _semantic-search(){
|
89
|
+
.ui-search,ui-search{
|
90
|
+
&.warning{
|
91
|
+
&:after{
|
92
|
+
color:$component-warning-font-color !important;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
&.success{
|
96
|
+
&:after{
|
97
|
+
color:$component-success-font-color !important;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
&.info{
|
101
|
+
&:after{
|
102
|
+
color:$component-info-font-color !important;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
&.error{
|
106
|
+
&:after{
|
107
|
+
color:$component-error-font-color !important;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
/* Base Form Markup ----------------------------------------------*/
|
113
|
+
|
114
|
+
@mixin form-base($input-component: css-input) {
|
115
|
+
|
116
|
+
form {
|
117
|
+
margin: 0 0 ($form-spacing * 1);
|
118
|
+
}
|
119
|
+
|
120
|
+
.row form .row,grid-row form grid-row {
|
121
|
+
margin: 0 (-($form-spacing / 2));
|
122
|
+
|
123
|
+
.column, .columns,grid-columns {
|
124
|
+
padding: 0 ($form-spacing / 2);
|
125
|
+
}
|
126
|
+
|
127
|
+
&.collapse {
|
128
|
+
margin: 0;
|
129
|
+
.column, .columns,grid-columns {
|
130
|
+
padding: 0;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
label {
|
136
|
+
font-size: $form-label-font-size;
|
137
|
+
color: $form-label-font-color;
|
138
|
+
cursor: pointer;
|
139
|
+
display: block;
|
140
|
+
font-weight: $form-label-font-weight;
|
141
|
+
margin-bottom: $form-label-bottom-margin;
|
142
|
+
margin-left: 3px;
|
143
|
+
&.disabled {
|
144
|
+
cursor: normal !important;
|
145
|
+
}
|
146
|
+
&.checkbox {
|
147
|
+
margin-bottom: 1em;
|
148
|
+
}
|
149
|
+
&.radio {
|
150
|
+
margin-bottom: 1em;
|
151
|
+
}
|
152
|
+
&.right {
|
153
|
+
float: none;
|
154
|
+
text-align: right;
|
155
|
+
}
|
156
|
+
&.inline {
|
157
|
+
line-height: (1em + ($form-spacing * 1.5));
|
158
|
+
margin: 0 0 $form-spacing 0;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
input[type="text"],
|
163
|
+
input[type="password"],
|
164
|
+
input[type="date"],
|
165
|
+
input[type="datetime"],
|
166
|
+
input[type="email"],
|
167
|
+
input[type="number"],
|
168
|
+
input[type="search"],
|
169
|
+
input[type="tel"],
|
170
|
+
input[type="time"],
|
171
|
+
input[type="url"],
|
172
|
+
textarea {
|
173
|
+
font-family: inherit;
|
174
|
+
@extend %#{$input-component}-background !optional;
|
175
|
+
@extend %#{$input-component}-border !optional;
|
176
|
+
@extend %#{$input-component}-font !optional;
|
177
|
+
@extend %#{$input-component}-placeholder !optional;
|
178
|
+
@include border-radius($form-input-border-radius);
|
179
|
+
display: block;
|
180
|
+
font-size: 1em;
|
181
|
+
margin: $form-input-margin;
|
182
|
+
padding: $form-input-padding;
|
183
|
+
width: 100%;
|
184
|
+
outline: $form-input-outline;
|
185
|
+
-webkit-appearance: none;
|
186
|
+
|
187
|
+
@if $include-form-input-animation == true
|
188
|
+
{
|
189
|
+
@include transition($form-input-animation);
|
190
|
+
}
|
191
|
+
|
192
|
+
&:focus {
|
193
|
+
@extend %#{$input-component}-background-hover !optional;
|
194
|
+
@extend %#{$input-component}-font !optional;
|
195
|
+
@extend %#{$input-component}-placeholder !optional;
|
196
|
+
}
|
197
|
+
&[disabled] {
|
198
|
+
@extend %#{$input-component}-disabled !optional;
|
199
|
+
}
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
@include _semantic-input-text(error);
|
204
|
+
@include _semantic-input-text(info);
|
205
|
+
@include _semantic-input-text(warning);
|
206
|
+
@include _semantic-input-text(success);
|
207
|
+
@include _semantic-search();
|
208
|
+
|
209
|
+
|
210
|
+
textarea {
|
211
|
+
height: auto;
|
212
|
+
}
|
213
|
+
|
214
|
+
select {
|
215
|
+
width: 100%;
|
216
|
+
}
|
217
|
+
|
218
|
+
fieldset {
|
219
|
+
border: $form-fieldset-border;
|
220
|
+
padding: #{$form-fieldset-padding};
|
221
|
+
margin: #{$form-fieldset-margin};
|
222
|
+
|
223
|
+
button {
|
224
|
+
margin-top: $form-fieldset-button-margin-top;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
}
|
229
|
+
|
230
|
+
/* Form Input ---------------------------------------------------------------------------------------------------------*/
|
231
|
+
|
232
|
+
@mixin form-input($check-component: css-checkbox, $switch-component: css-switch, $switch-toggle-component: css-switch-toggle,$number-component:default,
|
233
|
+
$button-box-shadow: true,
|
234
|
+
$button-margin: 10px,
|
235
|
+
$input-padding-right: 6rem,
|
236
|
+
$input-padding-left: 6rem,
|
237
|
+
$z-index: 2) {
|
238
|
+
|
239
|
+
.ui-input-addon,ui-input-addon {
|
240
|
+
@include display-flex();
|
241
|
+
margin: 0 0 1em 0;
|
242
|
+
position:relative;
|
243
|
+
input {
|
244
|
+
@include flex(1);
|
245
|
+
margin: 0 !important;
|
246
|
+
|
247
|
+
&:not(:first-child) {
|
248
|
+
border-left: 0;
|
249
|
+
}
|
250
|
+
&:not(:last-child) {
|
251
|
+
border-right: 0;
|
252
|
+
}
|
253
|
+
}
|
254
|
+
.ui-button,ui-button {
|
255
|
+
margin: 0;
|
256
|
+
&:not(:active) {
|
257
|
+
box-shadow: none;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
input, .ui-button,ui-button {
|
261
|
+
padding: 0.6em 0.75em;
|
262
|
+
&:first-child {
|
263
|
+
border-top-right-radius: 0;
|
264
|
+
border-bottom-right-radius: 0;
|
265
|
+
}
|
266
|
+
&:last-child {
|
267
|
+
border-top-left-radius: 0;
|
268
|
+
border-bottom-left-radius: 0;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
&.large-icon{
|
272
|
+
input,.ui-button,ui-button{
|
273
|
+
padding:0.25em 0.375em;
|
274
|
+
}
|
275
|
+
.ui-button,ui-button{
|
276
|
+
&>span{
|
277
|
+
font-size:2em;
|
278
|
+
padding-left:.5em;
|
279
|
+
padding-right:.5em;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
input[type="checkbox"] {
|
286
|
+
&.ui-checkbox, &.ui-switch {
|
287
|
+
opacity: 0;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
input[type="checkbox"] {
|
291
|
+
&.ui-checkbox {
|
292
|
+
position: absolute;
|
293
|
+
left: 0;
|
294
|
+
bottom: 0;
|
295
|
+
z-index: 99;
|
296
|
+
height: 30px;
|
297
|
+
width: 100%;
|
298
|
+
cursor: pointer;
|
299
|
+
}
|
300
|
+
}
|
301
|
+
label {
|
302
|
+
&.ui-form {
|
303
|
+
position: relative;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
input[type="checkbox"] + label.ui-checkbox {
|
307
|
+
display: block;
|
308
|
+
position: relative;
|
309
|
+
padding: $form-checkbox-label-padding;
|
310
|
+
vertical-align: text-bottom;
|
311
|
+
padding-bottom: 0;
|
312
|
+
margin-bottom: 1em;
|
313
|
+
line-height:1.2;
|
314
|
+
cursor: pointer;
|
315
|
+
&:before {
|
316
|
+
content: "";
|
317
|
+
display: block;
|
318
|
+
line-height:1.2;
|
319
|
+
height: $form-checkbox-size;
|
320
|
+
width: $form-checkbox-size;
|
321
|
+
text-align: center;
|
322
|
+
position: absolute;
|
323
|
+
bottom: 0;
|
324
|
+
left: 0;
|
325
|
+
font-size: $form-checkbox-icon-font-size;
|
326
|
+
@extend %#{$check-component}-border !optional;
|
327
|
+
@extend %#{$check-component}-background !optional;
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
&.inline{
|
332
|
+
display:inline-block;
|
333
|
+
}
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
input[type="checkbox"]:checked + label.ui-checkbox {
|
338
|
+
|
339
|
+
&:before {
|
340
|
+
content: "#{$global-icon-check}";
|
341
|
+
@extend %#{$check-component}-font !optional;
|
342
|
+
font-family: $global-icon-font-family;
|
343
|
+
font-size: $form-checkbox-icon-font-size;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
|
347
|
+
input[type="checkbox"]:disabled + label.ui-checkbox {
|
348
|
+
@extend %#{$check-component}-disabled !optional;
|
349
|
+
background: none !important;
|
350
|
+
}
|
351
|
+
|
352
|
+
input[type="checkbox"]:disabled:checked + label.ui-checkbox {
|
353
|
+
@extend %#{$check-component}-disabled !optional;
|
354
|
+
background: none !important;
|
355
|
+
}
|
356
|
+
|
357
|
+
input[type="radio"] {
|
358
|
+
&.ui-radio {
|
359
|
+
opacity: 0;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
input[type="radio"] + label.ui-radio {
|
364
|
+
display: block;
|
365
|
+
position: relative;
|
366
|
+
padding: $form-checkbox-label-padding;
|
367
|
+
vertical-align: text-bottom;
|
368
|
+
padding-bottom: 0;
|
369
|
+
margin-bottom: 0em;
|
370
|
+
line-height: 1;
|
371
|
+
&:before {
|
372
|
+
content: "";
|
373
|
+
display: block;
|
374
|
+
line-height: 1;
|
375
|
+
height: $form-checkbox-size;
|
376
|
+
width: $form-checkbox-size;
|
377
|
+
text-align: center;
|
378
|
+
position: absolute;
|
379
|
+
bottom: 0em;
|
380
|
+
left: 0;
|
381
|
+
@extend %#{$check-component}-border !optional;
|
382
|
+
@extend %#{$check-component}-background !optional;
|
383
|
+
@include border-radius($form-radio-border-radius);
|
384
|
+
}
|
385
|
+
&.inline{
|
386
|
+
display:inline-block;
|
387
|
+
margin-bottom:1em;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
input[type="radio"]:checked + label.ui-radio {
|
392
|
+
&:after {
|
393
|
+
line-height: 1;
|
394
|
+
content: '#{$global-icon-radio}';
|
395
|
+
font-size: $form-radio-icon-font-size;
|
396
|
+
@extend %#{$check-component}-icon !optional;
|
397
|
+
font-family: $global-icon-font-family;
|
398
|
+
bottom:.4em;
|
399
|
+
left:.4em;
|
400
|
+
position: absolute;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
input[type="radio"]:disabled + label.ui-radio {
|
405
|
+
@extend %#{$check-component}-disabled !optional;
|
406
|
+
background: none !important
|
407
|
+
}
|
408
|
+
|
409
|
+
input[type="radio"]:disabled:checked + label.ui-radio {
|
410
|
+
@extend %#{$check-component}-disabled !optional;
|
411
|
+
background: none !important;
|
412
|
+
}
|
413
|
+
|
414
|
+
//switch
|
415
|
+
input[type="checkbox"].ui-switch + label.ui-switch {
|
416
|
+
display: block;
|
417
|
+
position: relative;
|
418
|
+
width: $form-switch-width;
|
419
|
+
height: $form-switch-height;
|
420
|
+
border-radius: $form-switch-border-radius;
|
421
|
+
@extend %#{$switch-component}-background !optional;
|
422
|
+
@extend %#{$switch-component}-border !optional;
|
423
|
+
@extend %#{$switch-component}-box-shadow !optional;
|
424
|
+
margin: 0;
|
425
|
+
padding: 0;
|
426
|
+
&:before {
|
427
|
+
content: '';
|
428
|
+
border: 0;
|
429
|
+
background: none;
|
430
|
+
}
|
431
|
+
&:after {
|
432
|
+
content: "";
|
433
|
+
width: $form-switch-toggle-size;
|
434
|
+
height: $form-switch-toggle-size;
|
435
|
+
border-radius: 100px;
|
436
|
+
@extend %#{$switch-toggle-component}-background !optional;
|
437
|
+
@extend %#{$switch-toggle-component}-border !optional;
|
438
|
+
position: absolute;
|
439
|
+
top: 0;
|
440
|
+
left: 1%;
|
441
|
+
z-index: 999;
|
442
|
+
@include transition(left 0.1s linear);
|
443
|
+
}
|
444
|
+
|
445
|
+
}
|
446
|
+
|
447
|
+
input[type="checkbox"].ui-switch:disabled + label.ui-switch {
|
448
|
+
@extend %#{$switch-component}-disabled !optional;
|
449
|
+
}
|
450
|
+
|
451
|
+
input[type="checkbox"].ui-switch:checked + label.ui-switch {
|
452
|
+
@extend %#{$switch-component}-background-active !optional;
|
453
|
+
@extend %#{$switch-component}-border-active !optional;
|
454
|
+
&:after {
|
455
|
+
@extend %#{$switch-toggle-component}-border-active !optional;
|
456
|
+
left: 49%;
|
457
|
+
@include transition(left 0.1s linear);
|
458
|
+
}
|
459
|
+
|
460
|
+
}
|
461
|
+
|
462
|
+
input[type="checkbox"].ui-switch:disabled:checked + label.ui-switch {
|
463
|
+
@extend %#{$switch-component}-disabled !optional;
|
464
|
+
&:before {
|
465
|
+
content: '';
|
466
|
+
border: 0;
|
467
|
+
background: none;
|
468
|
+
}
|
469
|
+
&:after {
|
470
|
+
left: 49%;
|
471
|
+
}
|
472
|
+
|
473
|
+
}
|
474
|
+
|
475
|
+
//number
|
476
|
+
label {
|
477
|
+
&.ui-number {
|
478
|
+
display: inline-block;
|
479
|
+
margin-right: 3px;
|
480
|
+
padding: 0;
|
481
|
+
input {
|
482
|
+
border: 0;
|
483
|
+
width: 40px;
|
484
|
+
margin: 0;
|
485
|
+
padding: .2rem .2rem 6px .2rem;
|
486
|
+
color: $form-input-number-font-color;
|
487
|
+
font-size: 1em;
|
488
|
+
display: inline-block;
|
489
|
+
background: transparent;
|
490
|
+
&:focus {
|
491
|
+
background: none !important;
|
492
|
+
}
|
493
|
+
}
|
494
|
+
ul,ui-input-number {
|
495
|
+
display: inline-block;
|
496
|
+
list-style: none;
|
497
|
+
padding-bottom: 7px;
|
498
|
+
vertical-align: middle;
|
499
|
+
margin-left: -5px;
|
500
|
+
& > li,&> input-item {
|
501
|
+
float: left;
|
502
|
+
margin-right: .5em;
|
503
|
+
margin-left: 0px;
|
504
|
+
border-radius: 5px;
|
505
|
+
@extend %#{$number-component}-background !optional;
|
506
|
+
@extend %#{$number-component}-border !optional;
|
507
|
+
height: 2em;
|
508
|
+
width: 2em;
|
509
|
+
position: relative;
|
510
|
+
cursor: pointer;
|
511
|
+
&:hover{
|
512
|
+
@extend %#{$number-component}-background-hover !optional;
|
513
|
+
@extend %#{$number-component}-border-hover !optional;
|
514
|
+
}
|
515
|
+
&:focus{
|
516
|
+
@include tab-focus();
|
517
|
+
}
|
518
|
+
&:active {
|
519
|
+
@extend %#{$number-component}-background-active !optional;
|
520
|
+
@extend %#{$number-component}-font-active !optional;
|
521
|
+
@extend %#{$number-component}-border-active !optional;
|
522
|
+
@extend %#{$number-component}-box-shadow-active !optional;
|
523
|
+
}
|
524
|
+
&.plus,&[plus] {
|
525
|
+
&:before {
|
526
|
+
font-family: $global-icon-font-family;
|
527
|
+
position: absolute;
|
528
|
+
top: .3em;
|
529
|
+
left: .375em;
|
530
|
+
font-size: 1em;
|
531
|
+
content: '#{$global-icon-plus}';
|
532
|
+
@extend %#{$number-component}-icon !optional;
|
533
|
+
}
|
534
|
+
}
|
535
|
+
&.minus,&[minus] {
|
536
|
+
&:before {
|
537
|
+
font-family: $global-icon-font-family;
|
538
|
+
position: absolute;
|
539
|
+
top: .3em;
|
540
|
+
left:.375em;
|
541
|
+
font-size: 1em;
|
542
|
+
content: '#{$global-icon-minus}';
|
543
|
+
@extend %#{$number-component}-icon !optional;
|
544
|
+
}
|
545
|
+
}
|
546
|
+
}
|
547
|
+
|
548
|
+
}
|
549
|
+
}
|
550
|
+
}
|
551
|
+
|
552
|
+
}
|
553
|
+
|
554
|
+
/* Form Dropdown ----------------------------------------------------------------------------------------------- */
|
555
|
+
|
556
|
+
@mixin ui-select($component: default) {
|
557
|
+
|
558
|
+
.ui-select,ui-select {
|
559
|
+
position: relative;
|
560
|
+
@extend %#{$component}-background !optional;
|
561
|
+
min-width: $form-dropdown-width;
|
562
|
+
padding: #{$form-dropdown-padding};
|
563
|
+
@extend %#{$component}-border !optional;
|
564
|
+
@extend %#{$component}-box-shadow !optional;
|
565
|
+
border-radius: $form-dropdown-border-radius;
|
566
|
+
display: inline-block;
|
567
|
+
&.disabled, &.ui-disabled {
|
568
|
+
@extend %#{$component}-disabled !optional;;
|
569
|
+
}
|
570
|
+
line-height:1.5;
|
571
|
+
&.expand, &.ui-expand {
|
572
|
+
width: 100%;
|
573
|
+
}
|
574
|
+
& > select {
|
575
|
+
-webkit-appearance: none;
|
576
|
+
-moz-appearance: window;
|
577
|
+
font-size: 1em;
|
578
|
+
line-height: 1;
|
579
|
+
background: transparent;
|
580
|
+
border: 0;
|
581
|
+
@extend %#{$component}-font !optional;
|
582
|
+
text-shadow: none !important;
|
583
|
+
outline: none;
|
584
|
+
font-weight: $form-dropdown-select-font-weight;
|
585
|
+
option{
|
586
|
+
color:$black;
|
587
|
+
}
|
588
|
+
}
|
589
|
+
::-ms-expand {
|
590
|
+
display: none;
|
591
|
+
}
|
592
|
+
&:after {
|
593
|
+
$font-size:1em;
|
594
|
+
content: "#{$global-icon-down}";
|
595
|
+
@extend %#{$component}-icon !optional;
|
596
|
+
font-family: $global-icon-font-family;
|
597
|
+
font-size: $font-size;
|
598
|
+
position: absolute;
|
599
|
+
right: .6em;
|
600
|
+
top: .7em;
|
601
|
+
line-height: 1;
|
602
|
+
pointer-events: none;
|
603
|
+
}
|
604
|
+
@content;
|
605
|
+
}
|
606
|
+
|
607
|
+
@-moz-document url-prefix() {
|
608
|
+
.ui-select,ui-select {
|
609
|
+
& > select {
|
610
|
+
text-overflow: '';
|
611
|
+
text-indent: .1rem;
|
612
|
+
}
|
613
|
+
}
|
614
|
+
}
|
615
|
+
@media #{$breakpoint-phone} {
|
616
|
+
.ui-select,ui-select {
|
617
|
+
width: 90%;
|
618
|
+
}
|
619
|
+
}
|
620
|
+
}
|
621
|
+
|
622
|
+
/* Form Input Icon ----------------------------------------------------------------------------------------------- */
|
623
|
+
|
624
|
+
|
625
|
+
/* private */
|
626
|
+
@mixin _form-input-icon($component: null,
|
627
|
+
$font-size: null,
|
628
|
+
$border-radius: null,
|
629
|
+
$icon:null,
|
630
|
+
$placeholder-color: null,
|
631
|
+
$padding-right: null,
|
632
|
+
$right: null) {
|
633
|
+
|
634
|
+
position: relative;
|
635
|
+
display:block;
|
636
|
+
input {
|
637
|
+
@extend %#{$component}-background !optional;
|
638
|
+
@extend %#{$component}-border !optional;
|
639
|
+
@extend %#{$component}-font !optional;
|
640
|
+
@extend %#{$component}-placeholder !optional;
|
641
|
+
@include border-radius($border-radius);
|
642
|
+
padding-right: $padding-right;
|
643
|
+
|
644
|
+
&:focus {
|
645
|
+
@extend %#{$component}-background-hover !optional;
|
646
|
+
}
|
647
|
+
}
|
648
|
+
&:after {
|
649
|
+
font-family: $global-icon-font-family;
|
650
|
+
content: '#{$icon}';
|
651
|
+
position: absolute;
|
652
|
+
@extend %#{$component}-icon !optional;
|
653
|
+
font-size: $font-size;
|
654
|
+
right: $right;
|
655
|
+
top: icon-position($form-input-padding, $font-size);
|
656
|
+
line-height: component-line-height($font-size, 1);
|
657
|
+
z-index: 99;
|
658
|
+
|
659
|
+
}
|
660
|
+
}
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
@mixin _form-search-input($component: null, $touch-component:null,
|
665
|
+
$border-radius: null,
|
666
|
+
$placeholder-color: null,
|
667
|
+
$touch-border-radius: null,
|
668
|
+
$touch-placeholder-color: null) {
|
669
|
+
|
670
|
+
$icon:$global-icon-search;
|
671
|
+
display:block;
|
672
|
+
@media #{$breakpoint-desktop}{
|
673
|
+
@if $border-radius == null{
|
674
|
+
$border-radius: $form-input-border-radius;
|
675
|
+
}
|
676
|
+
$padding-right: 3em;
|
677
|
+
$right: .3em;
|
678
|
+
$font-size: 1.5em;
|
679
|
+
width:100%;
|
680
|
+
@include _form-input-icon($component, $font-size, $border-radius,$icon, $placeholder-color, $padding-right, $right);
|
681
|
+
}
|
682
|
+
@media #{$breakpoint-touch}{
|
683
|
+
@if $touch-border-radius == null{
|
684
|
+
$border-radius: $global-touch-search-radius;
|
685
|
+
}
|
686
|
+
$padding-right: 2em;
|
687
|
+
$right: .5em;
|
688
|
+
$font-size: 1em;
|
689
|
+
font-size:.9em;
|
690
|
+
@include _form-input-icon($touch-component, $font-size, $border-radius,$icon, $touch-placeholder-color, $padding-right, $right);
|
691
|
+
}
|
692
|
+
}
|
693
|
+
|
694
|
+
|
695
|
+
/* public */
|
696
|
+
@mixin ui-search($class: null, $component: null, $touch-component: null,
|
697
|
+
$border-radius: null,
|
698
|
+
$placeholder-color: $gray,
|
699
|
+
$touch-border-radius: null,
|
700
|
+
$touch-placeholder-color: $gray) {
|
701
|
+
|
702
|
+
.ui-search,ui-search {
|
703
|
+
@if $class !=null {
|
704
|
+
&.#{$class} {
|
705
|
+
@include _form-search-input($component, $touch-component, $border-radius, $placeholder-color, $touch-border-radius, $touch-placeholder-color);
|
706
|
+
@content;
|
707
|
+
}
|
708
|
+
} @else {
|
709
|
+
@include _form-search-input($component, $touch-component, $border-radius, $placeholder-color, $touch-border-radius, $touch-placeholder-color);
|
710
|
+
@content;
|
711
|
+
}
|
712
|
+
}
|
713
|
+
|
714
|
+
}
|
715
|
+
|
716
|
+
@mixin ui-input-icon($class: null, $component: null,
|
717
|
+
$border-radius: null,
|
718
|
+
$icon: null,
|
719
|
+
$placeholder-color: $gray) {
|
720
|
+
@if $class !=null {
|
721
|
+
.ui-input-icon,ui-input-icon {
|
722
|
+
&.#{$class} {
|
723
|
+
@if $border-radius == null{
|
724
|
+
$border-radius: $form-input-border-radius;
|
725
|
+
}
|
726
|
+
$padding-right: 3em;
|
727
|
+
$right: .3em;
|
728
|
+
$font-size: 1.5em;
|
729
|
+
@include _form-input-icon($component, $font-size, $border-radius,$icon, $placeholder-color, $padding-right, $right);
|
730
|
+
@content;
|
731
|
+
}
|
732
|
+
}
|
733
|
+
}
|
734
|
+
|
735
|
+
}
|
736
|
+
@mixin semantic-input-icons(){
|
737
|
+
.ui-input-icon,ui-input-icon{
|
738
|
+
&.error{
|
739
|
+
&:after{
|
740
|
+
color: $component-error-font-color;
|
741
|
+
opacity: 1;
|
742
|
+
text-shadow: none;
|
743
|
+
}
|
744
|
+
}
|
745
|
+
&.success{
|
746
|
+
&:after{
|
747
|
+
color: $component-success-font-color;
|
748
|
+
opacity: 1;
|
749
|
+
text-shadow: none;
|
750
|
+
}
|
751
|
+
}
|
752
|
+
&.info{
|
753
|
+
&:after{
|
754
|
+
color: $component-info-font-color;
|
755
|
+
opacity: 1;
|
756
|
+
text-shadow: none;
|
757
|
+
}
|
758
|
+
}
|
759
|
+
&.warning{
|
760
|
+
&:after{
|
761
|
+
color: $component-warning-font-color;
|
762
|
+
opacity: 1;
|
763
|
+
text-shadow: none;
|
764
|
+
}
|
765
|
+
}
|
766
|
+
}
|
767
|
+
}
|
768
|
+
|
769
|
+
@mixin form-fieldset($component:null){
|
770
|
+
fieldset {
|
771
|
+
@if $component==null{
|
772
|
+
border: $form-fieldset-border;
|
773
|
+
}@else{
|
774
|
+
@extend %#{$component}-border !optional;
|
775
|
+
}
|
776
|
+
@extend %#{$component}-background !optional;
|
777
|
+
@extend %#{$component}-box-shadow !optional;
|
778
|
+
@extend %#{$component}-font !optional;
|
779
|
+
padding: #{$form-fieldset-padding};
|
780
|
+
margin: #{$form-fieldset-margin};
|
781
|
+
font-size:1em;
|
782
|
+
.ui-button,ui-button {
|
783
|
+
margin-top:1em;
|
784
|
+
margin-bottom:1em;
|
785
|
+
}
|
786
|
+
legend{
|
787
|
+
font-size:1.5em;
|
788
|
+
font-weight:bold;
|
789
|
+
margin-bottom:1em;
|
790
|
+
}
|
791
|
+
.ui-selecy,ui-select{
|
792
|
+
margin-bottom:2em;
|
793
|
+
}
|
794
|
+
input[type="radio"] + label.ui-radio {
|
795
|
+
display:inline-block;
|
796
|
+
margin:0;
|
797
|
+
margin-bottom:2em;
|
798
|
+
|
799
|
+
}
|
800
|
+
input[type="checkbox"] + label.ui-checkbox {
|
801
|
+
display:inline-block;
|
802
|
+
margin-right:2em;
|
803
|
+
margin-bottom:2em;
|
804
|
+
|
805
|
+
}
|
806
|
+
@include phone-content(){
|
807
|
+
label + input[type="radio"]{
|
808
|
+
margin-top:-2em;
|
809
|
+
}
|
810
|
+
input[type="radio"] + label.ui-radio {
|
811
|
+
display:block;
|
812
|
+
margin:0;
|
813
|
+
margin-top:-1em;
|
814
|
+
|
815
|
+
&:last-child{
|
816
|
+
margin-bottom:1.5em;
|
817
|
+
}
|
818
|
+
}
|
819
|
+
input[type="checkbox"] + label.ui-checkbox {
|
820
|
+
display:block;
|
821
|
+
margin:.5em 0 1em 0;
|
822
|
+
&:last-child{
|
823
|
+
margin-bottom:1.5em;
|
824
|
+
}
|
825
|
+
}
|
826
|
+
}
|
827
|
+
@content;
|
828
|
+
}
|
829
|
+
}
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|