mui-sass 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +119 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/mui-sass.rb +60 -0
- data/lib/mui/sass/engine.rb +13 -0
- data/lib/mui/sass/version.rb +5 -0
- data/mui-sass.gemspec +29 -0
- data/templates/project/manifest.rb +2 -0
- data/templates/project/styles.sass +1 -0
- data/vendor/assets/javascripts/mui.js +1593 -0
- data/vendor/assets/stylesheets/_mui.scss +27 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/.bower.json +59 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/LICENSE +21 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap-3.3.1/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/vendor/assets/stylesheets/mui/_appbar.scss +72 -0
- data/vendor/assets/stylesheets/mui/_buttons.scss +201 -0
- data/vendor/assets/stylesheets/mui/_colors.scss +348 -0
- data/vendor/assets/stylesheets/mui/_dividers.scss +25 -0
- data/vendor/assets/stylesheets/mui/_dropdowns.scss +90 -0
- data/vendor/assets/stylesheets/mui/_forms.scss +467 -0
- data/vendor/assets/stylesheets/mui/_grid.scss +29 -0
- data/vendor/assets/stylesheets/mui/_helpers.scss +284 -0
- data/vendor/assets/stylesheets/mui/_layout.scss +21 -0
- data/vendor/assets/stylesheets/mui/_mixins.scss +17 -0
- data/vendor/assets/stylesheets/mui/_overlay.scss +19 -0
- data/vendor/assets/stylesheets/mui/_panel.scss +14 -0
- data/vendor/assets/stylesheets/mui/_ripple.scss +55 -0
- data/vendor/assets/stylesheets/mui/_scaffolding.scss +110 -0
- data/vendor/assets/stylesheets/mui/_semantic-markup.scss +45 -0
- data/vendor/assets/stylesheets/mui/_tables.scss +44 -0
- data/vendor/assets/stylesheets/mui/_tabs.scss +75 -0
- data/vendor/assets/stylesheets/mui/_typography.scss +51 -0
- data/vendor/assets/stylesheets/mui/_variables.scss +256 -0
- data/vendor/assets/stylesheets/mui/mixins/_buttons.scss +58 -0
- data/vendor/assets/stylesheets/mui/mixins/_grid-framework.scss +61 -0
- data/vendor/assets/stylesheets/mui/mixins/_typography.scss +132 -0
- data/vendor/assets/stylesheets/mui/mixins/_util.scss +4 -0
- data/vendor/assets/stylesheets/mui/normalize-3.0.2.scss +427 -0
- metadata +173 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* MUI Dividers module
|
3
|
+
*/
|
4
|
+
|
5
|
+
.mui-divider {
|
6
|
+
display: block;
|
7
|
+
height: 1px;
|
8
|
+
background-color: $mui-divider-color;
|
9
|
+
}
|
10
|
+
|
11
|
+
.mui-divider-top {
|
12
|
+
border-top: 1px solid $mui-divider-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
.mui-divider-bottom {
|
16
|
+
border-bottom: 1px solid $mui-divider-color;
|
17
|
+
}
|
18
|
+
|
19
|
+
.mui-divider-left {
|
20
|
+
border-left: 1px solid $mui-divider-color;
|
21
|
+
}
|
22
|
+
|
23
|
+
.mui-divider-right {
|
24
|
+
border-right: 1px solid $mui-divider-color;
|
25
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/**
|
2
|
+
* MUI Dropdown module
|
3
|
+
*/
|
4
|
+
|
5
|
+
// ============================================================================
|
6
|
+
// MAIN COMPONENT
|
7
|
+
// ============================================================================
|
8
|
+
.mui-dropdown {
|
9
|
+
display: inline-block;
|
10
|
+
position: relative;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Toggle element
|
14
|
+
[data-mui-toggle="dropdown"] {
|
15
|
+
@include mui-node-inserted();
|
16
|
+
|
17
|
+
outline: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
// ============================================================================
|
24
|
+
// MENU ELEMENT
|
25
|
+
// ============================================================================
|
26
|
+
.mui-dropdown-menu {
|
27
|
+
@extend .mui-z1;
|
28
|
+
|
29
|
+
position: absolute;
|
30
|
+
top: 100%;
|
31
|
+
left: 0;
|
32
|
+
display: none;
|
33
|
+
min-width: 160px;
|
34
|
+
padding: 5px 0;
|
35
|
+
margin: 2px 0 0; // override default ul
|
36
|
+
list-style: none;
|
37
|
+
font-size: $mui-base-font-size;
|
38
|
+
text-align: left;
|
39
|
+
background-color: $mui-dropdown-bg-color;
|
40
|
+
border-radius: $mui-dropdown-border-radius;
|
41
|
+
z-index: 1;
|
42
|
+
background-clip: padding-box;
|
43
|
+
|
44
|
+
// open state
|
45
|
+
&.mui-open {
|
46
|
+
display: block;
|
47
|
+
}
|
48
|
+
|
49
|
+
// links within the dropdown menu
|
50
|
+
> li > a {
|
51
|
+
display: block;
|
52
|
+
padding: 3px 20px;
|
53
|
+
clear: both;
|
54
|
+
font-weight: normal;
|
55
|
+
line-height: $mui-base-line-height;
|
56
|
+
color: $mui-dropdown-link-font-color;
|
57
|
+
white-space: nowrap;
|
58
|
+
|
59
|
+
// hover & focus state
|
60
|
+
&:hover,
|
61
|
+
&:focus {
|
62
|
+
text-decoration: none;
|
63
|
+
color: $mui-dropdown-link-font-color-hover;
|
64
|
+
background-color: $mui-dropdown-link-bg-color-hover;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
> .mui-disabled > a {
|
69
|
+
&,
|
70
|
+
&:hover,
|
71
|
+
&:focus {
|
72
|
+
color: $mui-dropdown-link-font-color-disabled;
|
73
|
+
}
|
74
|
+
|
75
|
+
// nuke hover & focus effects
|
76
|
+
&:hover,
|
77
|
+
&:focus {
|
78
|
+
text-decoration: none;
|
79
|
+
background-color: transparent;
|
80
|
+
background-image: none;
|
81
|
+
cursor: $mui-cursor-disabled;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// right align
|
87
|
+
.mui-dropdown-menu-right {
|
88
|
+
left: auto;
|
89
|
+
right: 0;
|
90
|
+
}
|
@@ -0,0 +1,467 @@
|
|
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
|
+
}
|
29
|
+
|
30
|
+
input[type="file"]:focus,
|
31
|
+
input[type="radio"]:focus,
|
32
|
+
input[type="checkbox"]:focus {
|
33
|
+
// Focus for file, radio, and checkbox
|
34
|
+
@include tab-focus;
|
35
|
+
}
|
36
|
+
|
37
|
+
input[type="radio"]:disabled,
|
38
|
+
input[type="checkbox"]:disabled {
|
39
|
+
cursor: $mui-cursor-disabled;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
// ============================================================================
|
45
|
+
// FORM-CONTROL
|
46
|
+
// ============================================================================
|
47
|
+
|
48
|
+
.mui-form-control {
|
49
|
+
@include mui-node-inserted();
|
50
|
+
|
51
|
+
display: block;
|
52
|
+
background-color: $mui-input-bg-color;
|
53
|
+
color: $mui-input-font-color;
|
54
|
+
border: none;
|
55
|
+
border-bottom: 1px solid $mui-input-border-color;
|
56
|
+
outline: none;
|
57
|
+
height: $mui-input-height;
|
58
|
+
width: 100%;
|
59
|
+
font-size: $mui-input-font-size;
|
60
|
+
padding: 0;
|
61
|
+
box-shadow: none;
|
62
|
+
border-radius: 0px;
|
63
|
+
|
64
|
+
// Bugfix for firefox-android
|
65
|
+
background-image: none;
|
66
|
+
|
67
|
+
&:focus {
|
68
|
+
border-color: $mui-input-border-color-focus;
|
69
|
+
border-width: 2px;
|
70
|
+
}
|
71
|
+
|
72
|
+
&:disabled,
|
73
|
+
&:read-only {
|
74
|
+
cursor: $mui-cursor-disabled;
|
75
|
+
background-color: $mui-input-bg-color-disabled;
|
76
|
+
opacity: 1; // iOS fix for unreadable disabled content
|
77
|
+
}
|
78
|
+
|
79
|
+
&::placeholder {
|
80
|
+
color: $mui-input-placeholder-color;
|
81
|
+
opacity: 1; // Normalize firefox
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
textarea.mui-form-control {
|
86
|
+
height: auto; // Reset height for <textarea>'s
|
87
|
+
}
|
88
|
+
|
89
|
+
input.mui-form-control:focus {
|
90
|
+
// Compensate for height change on focus
|
91
|
+
height: $mui-input-height + 1px;
|
92
|
+
margin-bottom: -1px;
|
93
|
+
}
|
94
|
+
|
95
|
+
input[type="search"] {
|
96
|
+
-webkit-appearance: none; // Search inputs in iOS
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
// ============================================================================
|
102
|
+
// FORM-GROUP
|
103
|
+
// ============================================================================
|
104
|
+
|
105
|
+
.mui-form-group {
|
106
|
+
display: block;
|
107
|
+
width: 100%;
|
108
|
+
padding-top: $xFormLabelLineHeight;
|
109
|
+
margin-bottom: $mui-form-group-margin-bottom;
|
110
|
+
position: relative;
|
111
|
+
|
112
|
+
> label {
|
113
|
+
// Positioning
|
114
|
+
position: absolute;
|
115
|
+
top: 0;
|
116
|
+
|
117
|
+
// Display
|
118
|
+
display: block;
|
119
|
+
width: 100%;
|
120
|
+
|
121
|
+
// Other
|
122
|
+
color: $mui-label-font-color;
|
123
|
+
font-size: $mui-label-font-size;
|
124
|
+
font-weight: 400;
|
125
|
+
line-height: $xFormLabelLineHeight;
|
126
|
+
overflow-x: hidden;
|
127
|
+
text-overflow: ellipsis;
|
128
|
+
white-space: nowrap;
|
129
|
+
}
|
130
|
+
|
131
|
+
> .mui-form-floating-label {
|
132
|
+
// Layout
|
133
|
+
position: absolute;
|
134
|
+
top: $xFormLabelLineHeight;
|
135
|
+
|
136
|
+
// Typography
|
137
|
+
font-size: $mui-input-font-size;
|
138
|
+
line-height: $mui-input-height;
|
139
|
+
color: $mui-input-placeholder-color;
|
140
|
+
|
141
|
+
// Overflow policy
|
142
|
+
text-overflow: clip;
|
143
|
+
|
144
|
+
// Cursor
|
145
|
+
cursor: text; // for ie10
|
146
|
+
pointer-events: none;
|
147
|
+
}
|
148
|
+
|
149
|
+
> textarea {
|
150
|
+
padding-top: 5px;
|
151
|
+
min-height: $mui-textarea-height;
|
152
|
+
}
|
153
|
+
|
154
|
+
> .mui-form-control {
|
155
|
+
display: block;
|
156
|
+
}
|
157
|
+
|
158
|
+
> .mui-form-control:focus ~ label {
|
159
|
+
color: $mui-input-border-color-focus;
|
160
|
+
}
|
161
|
+
|
162
|
+
&[data-mui-wrap-label="true"] {
|
163
|
+
display: table;
|
164
|
+
padding-top: 0px;
|
165
|
+
|
166
|
+
> label:not(.mui-form-floating-label) {
|
167
|
+
display: table-header-group;
|
168
|
+
position: static;
|
169
|
+
white-space: normal;
|
170
|
+
overflow-x: visible;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
// Placed outside of form-group for performance
|
176
|
+
.mui-form-control:focus ~ .mui-form-floating-label {
|
177
|
+
top: 0px;
|
178
|
+
font-size: $mui-label-font-size;
|
179
|
+
line-height: $xFormLabelLineHeight;
|
180
|
+
text-overflow: ellipsis;
|
181
|
+
}
|
182
|
+
|
183
|
+
// Placed outside of form-group for performance
|
184
|
+
.mui-form-control:not(:focus) {
|
185
|
+
&.mui-not-empty,
|
186
|
+
&[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
|
187
|
+
&:not(:empty):not(.mui-empty):not(.mui-not-empty) {
|
188
|
+
~ .mui-form-floating-label {
|
189
|
+
color: $mui-label-font-color;
|
190
|
+
font-size: $mui-label-font-size;
|
191
|
+
line-height: $xFormLabelLineHeight;
|
192
|
+
top: 0px;
|
193
|
+
text-overflow: ellipsis;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
// ============================================================================
|
201
|
+
// CHECKBOXES-AND-RADIOS
|
202
|
+
// ============================================================================
|
203
|
+
|
204
|
+
.mui-radio,
|
205
|
+
.mui-checkbox {
|
206
|
+
position: relative;
|
207
|
+
display: block;
|
208
|
+
margin-top: 10px;
|
209
|
+
margin-bottom: 10px;
|
210
|
+
|
211
|
+
> label {
|
212
|
+
min-height: $mui-base-line-height-computed;
|
213
|
+
padding-left: 20px;
|
214
|
+
margin-bottom: 0;
|
215
|
+
font-weight: normal;
|
216
|
+
cursor: pointer;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
.mui-radio > label > input[type="radio"],
|
221
|
+
.mui-radio-inline > label > input[type="radio"],
|
222
|
+
.mui-checkbox > label> input[type="checkbox"],
|
223
|
+
.mui-checkbox-inline > label > input[type="checkbox"] {
|
224
|
+
position: absolute;
|
225
|
+
margin-left: -20px;
|
226
|
+
margin-top: 4px;
|
227
|
+
}
|
228
|
+
|
229
|
+
.mui-radio + .mui-radio,
|
230
|
+
.mui-checkbox + .mui-checkbox {
|
231
|
+
// Move up sibling radios or checkboxes for tighter spacing
|
232
|
+
margin-top: -5px;
|
233
|
+
}
|
234
|
+
|
235
|
+
.mui-radio-inline,
|
236
|
+
.mui-checkbox-inline {
|
237
|
+
// Radios and checkboxes on same line
|
238
|
+
display: inline-block;
|
239
|
+
padding-left: 20px;
|
240
|
+
margin-bottom: 0;
|
241
|
+
vertical-align: middle;
|
242
|
+
font-weight: normal;
|
243
|
+
cursor: pointer;
|
244
|
+
|
245
|
+
> input[type="radio"],
|
246
|
+
> input[type="checkbox"],
|
247
|
+
> label > input[type="radio"],
|
248
|
+
> label > input[type="checkbox"] {
|
249
|
+
margin: 4px 0 0;
|
250
|
+
line-height: normal;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
.mui-radio-inline + .mui-radio-inline,
|
255
|
+
.mui-checkbox-inline + .mui-checkbox-inline {
|
256
|
+
// Space out consecutive inline controls
|
257
|
+
margin-top: 0;
|
258
|
+
margin-left: 10px;
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
// ============================================================================
|
264
|
+
// SELECT-COMPONENT
|
265
|
+
// ============================================================================
|
266
|
+
|
267
|
+
.mui-select {
|
268
|
+
position: relative;
|
269
|
+
|
270
|
+
&:focus {
|
271
|
+
outline: 0;
|
272
|
+
|
273
|
+
> select {
|
274
|
+
height: $mui-input-height + 1px;
|
275
|
+
margin-bottom: -1px;
|
276
|
+
border-color: $mui-input-border-color-focus;
|
277
|
+
border-width: 2px;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
> select {
|
282
|
+
@include mui-node-inserted();
|
283
|
+
|
284
|
+
// Layout
|
285
|
+
display: block;
|
286
|
+
height: $mui-input-height;
|
287
|
+
width: 100%;
|
288
|
+
|
289
|
+
// Look and feel
|
290
|
+
appearance: none;
|
291
|
+
-webkit-appearance: none;
|
292
|
+
-moz-appearance: none;
|
293
|
+
outline: none;
|
294
|
+
border: none;
|
295
|
+
border-bottom: 1px solid $mui-input-border-color;
|
296
|
+
border-radius: 0px;
|
297
|
+
box-shadow: none;
|
298
|
+
background-color: $mui-input-bg-color;
|
299
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNiIgd2lkdGg9IjEwIj48cG9seWdvbiBwb2ludHM9IjAsMCAxMCwwIDUsNiIgc3R5bGU9ImZpbGw6cmdiYSgwLDAsMCwuMjQpOyIvPjwvc3ZnPg==");
|
300
|
+
background-repeat: no-repeat;
|
301
|
+
background-position: right center;
|
302
|
+
cursor: pointer;
|
303
|
+
|
304
|
+
// Typography
|
305
|
+
color: $mui-input-font-color;
|
306
|
+
font-size: $mui-input-font-size;
|
307
|
+
padding: 0 25px 0 0;
|
308
|
+
|
309
|
+
&::ms-expand {
|
310
|
+
display: none; // For IE
|
311
|
+
}
|
312
|
+
|
313
|
+
&:focus {
|
314
|
+
outline: 0;
|
315
|
+
height: $mui-input-height + 1px;
|
316
|
+
margin-bottom: -1px;
|
317
|
+
border-color: $mui-input-border-color-focus;
|
318
|
+
border-width: 2px;
|
319
|
+
}
|
320
|
+
|
321
|
+
&:disabled {
|
322
|
+
color: mui-color('black-alpha-26');
|
323
|
+
cursor: $mui-cursor-disabled;
|
324
|
+
background-color: $mui-input-bg-color-disabled;
|
325
|
+
opacity: 1; // iOS fix for unreadable disabled content
|
326
|
+
}
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
.mui-select-menu {
|
331
|
+
@extend .mui-z1;
|
332
|
+
|
333
|
+
// Positioning
|
334
|
+
position: absolute;
|
335
|
+
z-index: 1;
|
336
|
+
|
337
|
+
// Display
|
338
|
+
min-width: 100%;
|
339
|
+
overflow-y: auto;
|
340
|
+
padding: 8px 0;
|
341
|
+
|
342
|
+
// Other
|
343
|
+
background-color: mui-color('white');
|
344
|
+
font-size: $mui-input-font-size;
|
345
|
+
|
346
|
+
> div {
|
347
|
+
padding: 0 22px;
|
348
|
+
height: $mui-input-font-size + 26px;
|
349
|
+
line-height: $mui-input-font-size + 26px;
|
350
|
+
cursor: pointer;
|
351
|
+
white-space: nowrap;
|
352
|
+
|
353
|
+
&:hover {
|
354
|
+
background-color: mui-color('grey', '300');
|
355
|
+
}
|
356
|
+
|
357
|
+
&[selected] {
|
358
|
+
background-color: mui-color('grey', '200');
|
359
|
+
}
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
// ============================================================================
|
366
|
+
// INLINE-FORMS
|
367
|
+
// ============================================================================
|
368
|
+
|
369
|
+
.mui-form-inline {
|
370
|
+
@media (min-width: $mui-screen-sm-min) {
|
371
|
+
> * {
|
372
|
+
// Bottom align children
|
373
|
+
vertical-align: bottom;
|
374
|
+
}
|
375
|
+
|
376
|
+
> .mui-form-group {
|
377
|
+
display: inline-block;
|
378
|
+
margin-bottom: 0;
|
379
|
+
vertical-align: middle;
|
380
|
+
}
|
381
|
+
|
382
|
+
> .mui-form-control,
|
383
|
+
> .mui-form-group > .mui-form-group {
|
384
|
+
display: inline-block;
|
385
|
+
width: auto;
|
386
|
+
vertical-align: middle;
|
387
|
+
}
|
388
|
+
|
389
|
+
> .mui-radio,
|
390
|
+
> .mui-checkbox {
|
391
|
+
display: inline-block;
|
392
|
+
margin-top: 0;
|
393
|
+
margin-bottom: 0;
|
394
|
+
vertical-align: middle;
|
395
|
+
|
396
|
+
> label {
|
397
|
+
padding-left: 0;
|
398
|
+
}
|
399
|
+
}
|
400
|
+
|
401
|
+
> .mui-radio > label > input[type="radio"],
|
402
|
+
> .mui-checkbox > label > input[type="checkbox"] {
|
403
|
+
position: relative;
|
404
|
+
margin-left: 0;
|
405
|
+
}
|
406
|
+
|
407
|
+
> .mui-select {
|
408
|
+
display: inline-block;
|
409
|
+
}
|
410
|
+
|
411
|
+
> .mui-btn {
|
412
|
+
margin-bottom: 0;
|
413
|
+
margin-top: 0;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
}
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
// ============================================================================
|
421
|
+
// FORM-VALIDATION
|
422
|
+
// ============================================================================
|
423
|
+
|
424
|
+
.mui-form-control {
|
425
|
+
// Use thick colored border for invalid fields
|
426
|
+
&:invalid:not(:focus) {
|
427
|
+
&:not(:required),
|
428
|
+
&:required.mui-not-empty,
|
429
|
+
&:required.mui-empty.mui-dirty,
|
430
|
+
&:required[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
|
431
|
+
&:required:not(:empty):not(.mui-empty):not(.mui-not-empty) {
|
432
|
+
border-color: $mui-danger-color;
|
433
|
+
border-width: 2px;
|
434
|
+
}
|
435
|
+
}
|
436
|
+
}
|
437
|
+
|
438
|
+
// Treat <input>'s different from <textarea>'s
|
439
|
+
input.mui-form-control:invalid:not(:focus) {
|
440
|
+
&:not(:required),
|
441
|
+
&:required.mui-not-empty,
|
442
|
+
&:required.mui-empty.mui-dirty,
|
443
|
+
&:required[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
|
444
|
+
&:required:not(:empty):not(.mui-empty):not(.mui-not-empty) {
|
445
|
+
height: $mui-input-height + 1px;
|
446
|
+
margin-bottom: -1px;
|
447
|
+
}
|
448
|
+
}
|
449
|
+
|
450
|
+
.mui-form-group > .mui-form-control {
|
451
|
+
&:invalid:not(:focus) {
|
452
|
+
// Set label color to danger color
|
453
|
+
&:not(:required),
|
454
|
+
&:required.mui-not-empty,
|
455
|
+
&:required[value]:not([value=""]):not(.mui-empty):not(.mui-not-empty),
|
456
|
+
&:required:not(:empty):not(.mui-empty):not(.mui-not-empty) {
|
457
|
+
~ label {
|
458
|
+
color: $mui-danger-color;
|
459
|
+
}
|
460
|
+
}
|
461
|
+
|
462
|
+
// Set label color to danger color for dirty, empty fields
|
463
|
+
&:required.mui-empty.mui-dirty ~ label:not(.mui-form-floating-label) {
|
464
|
+
color: $mui-danger-color;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
}
|