mui-sass 0.4.2 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +26 -19
- data/lib/mui/sass/version.rb +1 -1
- data/vendor/assets/javascripts/mui.js +553 -552
- data/vendor/assets/stylesheets/_mui.scss +23 -14
- data/vendor/assets/stylesheets/mui/_checkbox-and-radio.scss +60 -0
- data/vendor/assets/stylesheets/mui/{_layout.scss → _containers.scss} +0 -0
- data/vendor/assets/stylesheets/mui/{_dividers.scss → _divider.scss} +1 -1
- data/vendor/assets/stylesheets/mui/{_dropdowns.scss → _dropdown.scss} +0 -0
- data/vendor/assets/stylesheets/mui/_form.scss +40 -0
- data/vendor/assets/stylesheets/mui/{_scaffolding.scss → _reboot.scss} +73 -1
- data/vendor/assets/stylesheets/mui/_select.scss +111 -0
- data/vendor/assets/stylesheets/mui/{_tables.scss → _table.scss} +1 -1
- data/vendor/assets/stylesheets/mui/_textfield.scss +233 -0
- data/vendor/assets/stylesheets/mui/{normalize-3.0.2.scss → normalize-3.0.3.scss} +8 -11
- metadata +12 -10
- data/vendor/assets/stylesheets/mui/_forms.scss +0 -482
- data/vendor/assets/stylesheets/mui/_semantic-markup.scss +0 -45
@@ -1,9 +1,9 @@
|
|
1
|
-
/*! normalize.css v3.0.
|
1
|
+
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
|
2
2
|
|
3
3
|
/**
|
4
4
|
* 1. Set default font family to sans-serif.
|
5
|
-
* 2. Prevent iOS text size adjust after orientation change,
|
6
|
-
* user zoom.
|
5
|
+
* 2. Prevent iOS and IE text size adjust after device orientation change,
|
6
|
+
* without disabling user zoom.
|
7
7
|
*/
|
8
8
|
|
9
9
|
html {
|
@@ -71,7 +71,7 @@ audio:not([controls]) {
|
|
71
71
|
|
72
72
|
/**
|
73
73
|
* Address `[hidden]` styling not present in IE 8/9/10.
|
74
|
-
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
74
|
+
* Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
|
75
75
|
*/
|
76
76
|
|
77
77
|
[hidden],
|
@@ -91,7 +91,8 @@ a {
|
|
91
91
|
}
|
92
92
|
|
93
93
|
/**
|
94
|
-
* Improve readability
|
94
|
+
* Improve readability of focused elements when they are also in an
|
95
|
+
* active/hover state.
|
95
96
|
*/
|
96
97
|
|
97
98
|
a:active,
|
@@ -209,7 +210,6 @@ figure {
|
|
209
210
|
*/
|
210
211
|
|
211
212
|
hr {
|
212
|
-
-moz-box-sizing: content-box;
|
213
213
|
box-sizing: content-box;
|
214
214
|
height: 0;
|
215
215
|
}
|
@@ -350,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button {
|
|
350
350
|
|
351
351
|
/**
|
352
352
|
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
353
|
-
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
354
|
-
* (include `-moz` to future-proof).
|
353
|
+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
|
355
354
|
*/
|
356
355
|
|
357
356
|
input[type="search"] {
|
358
357
|
-webkit-appearance: textfield; /* 1 */
|
359
|
-
|
360
|
-
-webkit-box-sizing: content-box; /* 2 */
|
361
|
-
box-sizing: content-box;
|
358
|
+
box-sizing: content-box; /* 2 */
|
362
359
|
}
|
363
360
|
|
364
361
|
/**
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -94,28 +94,30 @@ files:
|
|
94
94
|
- vendor/assets/stylesheets/_mui.scss
|
95
95
|
- vendor/assets/stylesheets/mui/_appbar.scss
|
96
96
|
- vendor/assets/stylesheets/mui/_buttons.scss
|
97
|
+
- vendor/assets/stylesheets/mui/_checkbox-and-radio.scss
|
97
98
|
- vendor/assets/stylesheets/mui/_colors.scss
|
98
|
-
- vendor/assets/stylesheets/mui/
|
99
|
-
- vendor/assets/stylesheets/mui/
|
100
|
-
- vendor/assets/stylesheets/mui/
|
99
|
+
- vendor/assets/stylesheets/mui/_containers.scss
|
100
|
+
- vendor/assets/stylesheets/mui/_divider.scss
|
101
|
+
- vendor/assets/stylesheets/mui/_dropdown.scss
|
102
|
+
- vendor/assets/stylesheets/mui/_form.scss
|
101
103
|
- vendor/assets/stylesheets/mui/_grid.scss
|
102
104
|
- vendor/assets/stylesheets/mui/_helpers.scss
|
103
|
-
- vendor/assets/stylesheets/mui/_layout.scss
|
104
105
|
- vendor/assets/stylesheets/mui/_mixins.scss
|
105
106
|
- vendor/assets/stylesheets/mui/_overlay.scss
|
106
107
|
- vendor/assets/stylesheets/mui/_panel.scss
|
108
|
+
- vendor/assets/stylesheets/mui/_reboot.scss
|
107
109
|
- vendor/assets/stylesheets/mui/_ripple.scss
|
108
|
-
- vendor/assets/stylesheets/mui/
|
109
|
-
- vendor/assets/stylesheets/mui/
|
110
|
-
- vendor/assets/stylesheets/mui/_tables.scss
|
110
|
+
- vendor/assets/stylesheets/mui/_select.scss
|
111
|
+
- vendor/assets/stylesheets/mui/_table.scss
|
111
112
|
- vendor/assets/stylesheets/mui/_tabs.scss
|
113
|
+
- vendor/assets/stylesheets/mui/_textfield.scss
|
112
114
|
- vendor/assets/stylesheets/mui/_typography.scss
|
113
115
|
- vendor/assets/stylesheets/mui/_variables.scss
|
114
116
|
- vendor/assets/stylesheets/mui/mixins/_buttons.scss
|
115
117
|
- vendor/assets/stylesheets/mui/mixins/_grid-framework.scss
|
116
118
|
- vendor/assets/stylesheets/mui/mixins/_typography.scss
|
117
119
|
- vendor/assets/stylesheets/mui/mixins/_util.scss
|
118
|
-
- vendor/assets/stylesheets/mui/normalize-3.0.
|
120
|
+
- vendor/assets/stylesheets/mui/normalize-3.0.3.scss
|
119
121
|
homepage: https://github.com/rubysamurai/mui-sass
|
120
122
|
licenses:
|
121
123
|
- MIT
|
@@ -1,482 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* MUI Form styles
|
3
|
-
*
|
4
|
-
*/
|
5
|
-
|
6
|
-
$xFormLabelLineHeight: floor($mui-label-font-size * 1.25);
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
// ============================================================================
|
11
|
-
// NORMALIZATIONS
|
12
|
-
// ============================================================================
|
13
|
-
|
14
|
-
legend {
|
15
|
-
display: block;
|
16
|
-
width: 100%;
|
17
|
-
padding: 0;
|
18
|
-
margin-bottom: $mui-base-line-height-computed / 2;
|
19
|
-
font-size: $mui-legend-font-size;
|
20
|
-
color: $mui-legend-font-color;
|
21
|
-
line-height: inherit;
|
22
|
-
border: 0;
|
23
|
-
}
|
24
|
-
|
25
|
-
// override content-box in normalize.css
|
26
|
-
input[type="search"] {
|
27
|
-
box-sizing: border-box;
|
28
|
-
-webkit-appearance: none; // Search inputs in iOS
|
29
|
-
}
|
30
|
-
|
31
|
-
input[type="file"]:focus,
|
32
|
-
input[type="radio"]:focus,
|
33
|
-
input[type="checkbox"]:focus {
|
34
|
-
// Focus for file, radio, and checkbox
|
35
|
-
@include mui-tab-focus();
|
36
|
-
}
|
37
|
-
|
38
|
-
input[type="radio"]:disabled,
|
39
|
-
input[type="checkbox"]:disabled {
|
40
|
-
cursor: $mui-cursor-disabled;
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
// ============================================================================
|
46
|
-
// TEXTFIELD
|
47
|
-
// ============================================================================
|
48
|
-
|
49
|
-
.mui-textfield {
|
50
|
-
display: block;
|
51
|
-
padding-top: $xFormLabelLineHeight;
|
52
|
-
margin-bottom: $mui-form-group-margin-bottom;
|
53
|
-
position: relative;
|
54
|
-
|
55
|
-
> label {
|
56
|
-
// Positioning
|
57
|
-
position: absolute;
|
58
|
-
top: 0;
|
59
|
-
|
60
|
-
// Display
|
61
|
-
display: block;
|
62
|
-
width: 100%;
|
63
|
-
|
64
|
-
// Other
|
65
|
-
color: $mui-label-font-color;
|
66
|
-
font-size: $mui-label-font-size;
|
67
|
-
font-weight: 400;
|
68
|
-
line-height: $xFormLabelLineHeight;
|
69
|
-
overflow-x: hidden;
|
70
|
-
text-overflow: ellipsis;
|
71
|
-
white-space: nowrap;
|
72
|
-
}
|
73
|
-
|
74
|
-
> textarea {
|
75
|
-
padding-top: 5px;
|
76
|
-
//min-height: $mui-textarea-height;
|
77
|
-
}
|
78
|
-
|
79
|
-
> input,
|
80
|
-
> textarea {
|
81
|
-
display: block;
|
82
|
-
|
83
|
-
&:focus ~ label {
|
84
|
-
color: $mui-input-border-color-focus;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
.mui-textfield--float-label {
|
90
|
-
> label {
|
91
|
-
// Layout
|
92
|
-
position: absolute;
|
93
|
-
transform: translate(0px, $xFormLabelLineHeight);
|
94
|
-
|
95
|
-
// Typography
|
96
|
-
font-size: $mui-input-font-size;
|
97
|
-
line-height: $mui-input-height;
|
98
|
-
color: $mui-input-placeholder-color;
|
99
|
-
|
100
|
-
// Overflow policy
|
101
|
-
text-overflow: clip;
|
102
|
-
|
103
|
-
// Cursor
|
104
|
-
cursor: text; // for ie10
|
105
|
-
pointer-events: none;
|
106
|
-
}
|
107
|
-
|
108
|
-
> input,
|
109
|
-
> textarea {
|
110
|
-
&:focus ~ label {
|
111
|
-
transform: translate(0px, 0px);
|
112
|
-
font-size: $mui-label-font-size;
|
113
|
-
line-height: $xFormLabelLineHeight;
|
114
|
-
text-overflow: ellipsis;
|
115
|
-
}
|
116
|
-
|
117
|
-
&:not(:focus) {
|
118
|
-
&.mui--is-not-empty,
|
119
|
-
&[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
|
120
|
-
&:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
|
121
|
-
~ label {
|
122
|
-
color: $mui-label-font-color;
|
123
|
-
font-size: $mui-label-font-size;
|
124
|
-
line-height: $xFormLabelLineHeight;
|
125
|
-
transform: translate(0px, 0px);
|
126
|
-
text-overflow: ellipsis;
|
127
|
-
}
|
128
|
-
}
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
.mui-textfield--wrap-label {
|
134
|
-
display: table;
|
135
|
-
width: 100%;
|
136
|
-
padding-top: 0px;
|
137
|
-
|
138
|
-
&:not(.mui-textfield--float-label) > label {
|
139
|
-
display: table-header-group;
|
140
|
-
position: static;
|
141
|
-
white-space: normal;
|
142
|
-
overflow-x: visible;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
|
146
|
-
.mui-textfield > input,
|
147
|
-
.mui-textfield > textarea {
|
148
|
-
@include mui-node-inserted();
|
149
|
-
|
150
|
-
display: block;
|
151
|
-
background-color: $mui-input-bg-color;
|
152
|
-
color: $mui-input-font-color;
|
153
|
-
border: none;
|
154
|
-
border-bottom: 1px solid $mui-input-border-color;
|
155
|
-
outline: none;
|
156
|
-
width: 100%;
|
157
|
-
font-size: $mui-input-font-size;
|
158
|
-
padding: 0;
|
159
|
-
box-shadow: none;
|
160
|
-
border-radius: 0px;
|
161
|
-
|
162
|
-
// Bugfix for firefox-android
|
163
|
-
background-image: none;
|
164
|
-
|
165
|
-
&:focus {
|
166
|
-
border-color: $mui-input-border-color-focus;
|
167
|
-
border-width: 2px;
|
168
|
-
}
|
169
|
-
|
170
|
-
&:disabled,
|
171
|
-
&:read-only {
|
172
|
-
cursor: $mui-cursor-disabled;
|
173
|
-
background-color: $mui-input-bg-color-disabled;
|
174
|
-
opacity: 1; // iOS fix for unreadable disabled content
|
175
|
-
}
|
176
|
-
|
177
|
-
&::placeholder {
|
178
|
-
color: $mui-input-placeholder-color;
|
179
|
-
opacity: 1; // Normalize firefox
|
180
|
-
}
|
181
|
-
}
|
182
|
-
|
183
|
-
.mui-textfield > input {
|
184
|
-
height: $mui-input-height;
|
185
|
-
|
186
|
-
// Compensate for height change on focus
|
187
|
-
&:focus {
|
188
|
-
height: $mui-input-height + 1px;
|
189
|
-
margin-bottom: -1px;
|
190
|
-
}
|
191
|
-
}
|
192
|
-
|
193
|
-
.mui-textfield > textarea {
|
194
|
-
//height: auto; // Reset height for <textarea>s
|
195
|
-
min-height: $mui-textarea-height;
|
196
|
-
|
197
|
-
// Compensate for height change on focus
|
198
|
-
&[rows]:not([rows="2"]):focus {
|
199
|
-
margin-bottom: -1px;
|
200
|
-
}
|
201
|
-
}
|
202
|
-
|
203
|
-
.mui-textfield > input:focus {
|
204
|
-
// Compensate for height change on focus
|
205
|
-
height: $mui-input-height + 1px;
|
206
|
-
margin-bottom: -1px;
|
207
|
-
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
// ============================================================================
|
212
|
-
// CHECKBOXES-AND-RADIOS
|
213
|
-
// ============================================================================
|
214
|
-
|
215
|
-
.mui-radio,
|
216
|
-
.mui-checkbox {
|
217
|
-
position: relative;
|
218
|
-
display: block;
|
219
|
-
margin-top: 10px;
|
220
|
-
margin-bottom: 10px;
|
221
|
-
|
222
|
-
> label {
|
223
|
-
min-height: $mui-base-line-height-computed;
|
224
|
-
padding-left: 20px;
|
225
|
-
margin-bottom: 0;
|
226
|
-
font-weight: normal;
|
227
|
-
cursor: pointer;
|
228
|
-
}
|
229
|
-
}
|
230
|
-
|
231
|
-
.mui-radio > label > input[type="radio"],
|
232
|
-
.mui-radio--inline > label > input[type="radio"],
|
233
|
-
.mui-checkbox > label> input[type="checkbox"],
|
234
|
-
.mui-checkbox--inline > label > input[type="checkbox"] {
|
235
|
-
position: absolute;
|
236
|
-
margin-left: -20px;
|
237
|
-
margin-top: 4px;
|
238
|
-
}
|
239
|
-
|
240
|
-
.mui-radio + .mui-radio,
|
241
|
-
.mui-checkbox + .mui-checkbox {
|
242
|
-
// Move up sibling radios or checkboxes for tighter spacing
|
243
|
-
margin-top: -5px;
|
244
|
-
}
|
245
|
-
|
246
|
-
.mui-radio--inline,
|
247
|
-
.mui-checkbox--inline {
|
248
|
-
// Radios and checkboxes on same line
|
249
|
-
display: inline-block;
|
250
|
-
padding-left: 20px;
|
251
|
-
margin-bottom: 0;
|
252
|
-
vertical-align: middle;
|
253
|
-
font-weight: normal;
|
254
|
-
cursor: pointer;
|
255
|
-
|
256
|
-
> input[type="radio"],
|
257
|
-
> input[type="checkbox"],
|
258
|
-
> label > input[type="radio"],
|
259
|
-
> label > input[type="checkbox"] {
|
260
|
-
margin: 4px 0 0;
|
261
|
-
line-height: normal;
|
262
|
-
}
|
263
|
-
}
|
264
|
-
|
265
|
-
.mui-radio--inline + .mui-radio--inline,
|
266
|
-
.mui-checkbox--inline + .mui-checkbox--inline {
|
267
|
-
// Space out consecutive inline controls
|
268
|
-
margin-top: 0;
|
269
|
-
margin-left: 10px;
|
270
|
-
}
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
// ============================================================================
|
275
|
-
// SELECT-COMPONENT
|
276
|
-
// ============================================================================
|
277
|
-
|
278
|
-
.mui-select {
|
279
|
-
display: block;
|
280
|
-
padding-top: $xFormLabelLineHeight;
|
281
|
-
margin-bottom: $mui-form-group-margin-bottom;
|
282
|
-
position: relative;
|
283
|
-
|
284
|
-
&:focus {
|
285
|
-
outline: 0;
|
286
|
-
|
287
|
-
> select {
|
288
|
-
height: $mui-input-height + 1px;
|
289
|
-
margin-bottom: -1px;
|
290
|
-
border-color: $mui-input-border-color-focus;
|
291
|
-
border-width: 2px;
|
292
|
-
}
|
293
|
-
}
|
294
|
-
|
295
|
-
> select {
|
296
|
-
@include mui-node-inserted();
|
297
|
-
|
298
|
-
// Layout
|
299
|
-
display: block;
|
300
|
-
height: $mui-input-height;
|
301
|
-
width: 100%;
|
302
|
-
|
303
|
-
// Look and feel
|
304
|
-
appearance: none;
|
305
|
-
-webkit-appearance: none;
|
306
|
-
-moz-appearance: none;
|
307
|
-
outline: none;
|
308
|
-
border: none;
|
309
|
-
border-bottom: 1px solid $mui-input-border-color;
|
310
|
-
border-radius: 0px;
|
311
|
-
box-shadow: none;
|
312
|
-
background-color: $mui-input-bg-color;
|
313
|
-
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNiIgd2lkdGg9IjEwIj48cG9seWdvbiBwb2ludHM9IjAsMCAxMCwwIDUsNiIgc3R5bGU9ImZpbGw6cmdiYSgwLDAsMCwuMjQpOyIvPjwvc3ZnPg==");
|
314
|
-
background-repeat: no-repeat;
|
315
|
-
background-position: right center;
|
316
|
-
cursor: pointer;
|
317
|
-
|
318
|
-
// Typography
|
319
|
-
color: $mui-input-font-color;
|
320
|
-
font-size: $mui-input-font-size;
|
321
|
-
padding: 0 25px 0 0;
|
322
|
-
|
323
|
-
&::-ms-expand {
|
324
|
-
display: none; // For IE
|
325
|
-
}
|
326
|
-
|
327
|
-
&:focus {
|
328
|
-
outline: 0;
|
329
|
-
height: $mui-input-height + 1px;
|
330
|
-
margin-bottom: -1px;
|
331
|
-
border-color: $mui-input-border-color-focus;
|
332
|
-
border-width: 2px;
|
333
|
-
}
|
334
|
-
|
335
|
-
&:disabled {
|
336
|
-
color: mui-color('black-alpha-38');
|
337
|
-
cursor: $mui-cursor-disabled;
|
338
|
-
background-color: $mui-input-bg-color-disabled;
|
339
|
-
opacity: 1; // iOS fix for unreadable disabled content
|
340
|
-
}
|
341
|
-
}
|
342
|
-
}
|
343
|
-
|
344
|
-
.mui-select__menu {
|
345
|
-
@extend .mui--z1;
|
346
|
-
|
347
|
-
// Positioning
|
348
|
-
position: absolute;
|
349
|
-
z-index: 1;
|
350
|
-
|
351
|
-
// Display
|
352
|
-
min-width: 100%;
|
353
|
-
overflow-y: auto;
|
354
|
-
padding: 8px 0;
|
355
|
-
|
356
|
-
// Other
|
357
|
-
background-color: mui-color('white');
|
358
|
-
font-size: $mui-input-font-size;
|
359
|
-
|
360
|
-
// IE10+ bugfix
|
361
|
-
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
362
|
-
border-left: 1px solid mui-color('black-alpha-12');
|
363
|
-
border-top: 1px solid mui-color('black-alpha-12');
|
364
|
-
}
|
365
|
-
|
366
|
-
> div {
|
367
|
-
padding: 0 22px;
|
368
|
-
height: $mui-input-font-size + 26px;
|
369
|
-
line-height: $mui-input-font-size + 26px;
|
370
|
-
cursor: pointer;
|
371
|
-
white-space: nowrap;
|
372
|
-
|
373
|
-
&:hover {
|
374
|
-
background-color: mui-color('grey', '300');
|
375
|
-
}
|
376
|
-
|
377
|
-
&.mui--is-selected {
|
378
|
-
background-color: mui-color('grey', '200');
|
379
|
-
}
|
380
|
-
}
|
381
|
-
}
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
// ============================================================================
|
386
|
-
// INLINE-FORMS
|
387
|
-
// ============================================================================
|
388
|
-
|
389
|
-
.mui-form--inline {
|
390
|
-
@media (min-width: $mui-screen-sm-min) {
|
391
|
-
> .mui-textfield {
|
392
|
-
display: inline-block;
|
393
|
-
margin-bottom: 0;
|
394
|
-
}
|
395
|
-
|
396
|
-
> .mui-radio,
|
397
|
-
> .mui-checkbox {
|
398
|
-
display: inline-block;
|
399
|
-
margin-top: 0;
|
400
|
-
margin-bottom: 0;
|
401
|
-
vertical-align: middle;
|
402
|
-
|
403
|
-
> label {
|
404
|
-
padding-left: 0;
|
405
|
-
}
|
406
|
-
}
|
407
|
-
|
408
|
-
> .mui-radio > label > input[type="radio"],
|
409
|
-
> .mui-checkbox > label > input[type="checkbox"] {
|
410
|
-
position: relative;
|
411
|
-
margin-left: 0;
|
412
|
-
}
|
413
|
-
|
414
|
-
> .mui-select {
|
415
|
-
display: inline-block;
|
416
|
-
}
|
417
|
-
|
418
|
-
> .mui-btn {
|
419
|
-
margin-bottom: 0;
|
420
|
-
margin-top: 0;
|
421
|
-
vertical-align: bottom;
|
422
|
-
}
|
423
|
-
}
|
424
|
-
}
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
// ============================================================================
|
429
|
-
// FORM-VALIDATION
|
430
|
-
// ============================================================================
|
431
|
-
|
432
|
-
.mui-textfield > input:invalid:not(:focus),
|
433
|
-
.mui-textfield > textarea:invalid:not(:focus),
|
434
|
-
.mui-textfield > input:not(:focus).mui--is-invalid,
|
435
|
-
.mui-textfield > textarea:not(:focus).mui--is-invalid {
|
436
|
-
&:not(:required),
|
437
|
-
&:required.mui--is-not-empty,
|
438
|
-
&:required.mui--is-empty.mui--is-dirty,
|
439
|
-
&:required[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
|
440
|
-
&:required:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
|
441
|
-
border-color: $mui-danger-color;
|
442
|
-
border-width: 2px;
|
443
|
-
}
|
444
|
-
}
|
445
|
-
|
446
|
-
// Treat <input>'s different from <textarea>'s
|
447
|
-
.mui-textfield > input:invalid:not(:focus),
|
448
|
-
.mui-textfield > input:not(:focus).mui--is-invalid {
|
449
|
-
&:not(:required),
|
450
|
-
&:required.mui--is-not-empty,
|
451
|
-
&:required.mui--is-empty.mui--is-dirty,
|
452
|
-
&:required[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
|
453
|
-
&:required:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
|
454
|
-
height: $mui-input-height + 1px;
|
455
|
-
margin-bottom: -1px;
|
456
|
-
}
|
457
|
-
}
|
458
|
-
|
459
|
-
.mui-textfield > input:invalid:not(:focus),
|
460
|
-
.mui-textfield > textarea:invalid:not(:focus),
|
461
|
-
.mui-textfield > input:not(:focus).mui--is-invalid,
|
462
|
-
.mui-textfield > textarea:not(:focus).mui--is-invalid {
|
463
|
-
// Set label color to danger color
|
464
|
-
&:not(:required),
|
465
|
-
&:required.mui--is-not-empty,
|
466
|
-
&:required[value]:not([value=""]):not(.mui--is-empty):not(.mui--is-not-empty),
|
467
|
-
&:required:not(:empty):not(.mui--is-empty):not(.mui--is-not-empty) {
|
468
|
-
~ label {
|
469
|
-
color: $mui-danger-color;
|
470
|
-
}
|
471
|
-
}
|
472
|
-
}
|
473
|
-
|
474
|
-
.mui-textfield:not(.mui-textfield--float-label) > input:invalid:not(:focus),
|
475
|
-
.mui-textfield:not(.mui-textfield--float-label) > textarea:invalid:not(:focus),
|
476
|
-
.mui-textfield:not(.mui-textfield--float-label) > input:not(:focus).mui--is-invalid,
|
477
|
-
.mui-textfield:not(.mui-textfield--float-label) > textarea:not(:focus).mui--is-invalid {
|
478
|
-
// Set label color to danger color for dirty, empty fields
|
479
|
-
&:required.mui--is-empty.mui--is-dirty ~ label {
|
480
|
-
color: $mui-danger-color;
|
481
|
-
}
|
482
|
-
}
|