curo-material-interface 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/fonts/mdi/LICENSE.txt +96 -428
- data/lib/assets/fonts/mdi/materialdesignicons-webfont.eot +0 -0
- data/lib/assets/fonts/mdi/materialdesignicons-webfont.svg +3198 -0
- data/lib/assets/fonts/mdi/materialdesignicons-webfont.ttf +0 -0
- data/lib/assets/fonts/mdi/materialdesignicons-webfont.woff +0 -0
- data/lib/assets/fonts/mdi/materialdesignicons-webfont.woff2 +0 -0
- data/lib/assets/javascripts/cmi/behaviors/form_select_behavior.coffee +22 -0
- data/lib/assets/javascripts/cmi/behaviors/form_text_field_behavior.coffee +14 -3
- data/lib/assets/javascripts/cmi/behaviors/tabs_behavior.coffee +36 -2
- data/lib/assets/javascripts/cmi/form_components/select.coffee +274 -0
- data/lib/assets/javascripts/cmi/form_components/text_field.coffee +1 -1
- data/lib/assets/javascripts/cmi/tabs.coffee +60 -29
- data/lib/assets/stylesheets/cmi/_global.sass +7 -8
- data/lib/assets/stylesheets/cmi/_icons.sass +1 -2242
- data/lib/assets/stylesheets/cmi/_mixins.sass +24 -0
- data/lib/assets/stylesheets/cmi/_reset.sass +3 -3
- data/lib/assets/stylesheets/cmi/_variables.sass +21 -6
- data/lib/assets/stylesheets/cmi/components/_buttons.sass +143 -2
- data/lib/assets/stylesheets/cmi/components/_cards.sass +105 -0
- data/lib/assets/stylesheets/cmi/components/_flex-modal-ie.sass +21 -0
- data/lib/assets/stylesheets/cmi/components/_flex-modal.sass +59 -40
- data/lib/assets/stylesheets/cmi/components/_lists.sass +61 -0
- data/lib/assets/stylesheets/cmi/components/_loading-indicator.sass +26 -4
- data/lib/assets/stylesheets/cmi/components/_ripples.sass +1 -0
- data/lib/assets/stylesheets/cmi/components/_tables.sass +37 -0
- data/lib/assets/stylesheets/cmi/form_components/_checkbox.sass +14 -14
- data/lib/assets/stylesheets/cmi/form_components/_inputs.sass +83 -0
- data/lib/assets/stylesheets/cmi/form_components/_selects.sass +58 -0
- data/lib/assets/stylesheets/cmi/form_components/_text_field.sass +0 -84
- data/lib/assets/stylesheets/cmi/mdi/_core.scss +9 -0
- data/lib/assets/stylesheets/cmi/mdi/_icons.scss +19 -0
- data/lib/assets/stylesheets/cmi/mdi/_materialdesignicons.scss +5 -0
- data/lib/assets/stylesheets/cmi/mdi/_path.scss +11 -0
- data/lib/assets/stylesheets/cmi/mdi/_variables.scss +4 -0
- data/lib/curo_material_interface/engine.rb +11 -5
- data/lib/curo_material_interface/version.rb +1 -1
- metadata +20 -6
- data/lib/assets/fonts/mdi/Material-Design-Icons.eot +0 -0
- data/lib/assets/fonts/mdi/Material-Design-Icons.svg +0 -751
- data/lib/assets/fonts/mdi/Material-Design-Icons.ttf +0 -0
- data/lib/assets/fonts/mdi/Material-Design-Icons.woff +0 -0
@@ -2,9 +2,33 @@
|
|
2
2
|
=cmi-border-radius($radius)
|
3
3
|
+border-top-radius($radius)
|
4
4
|
+border-bottom-radius($radius)
|
5
|
+
=border-radius($radius)
|
6
|
+
+border-top-radius($radius)
|
7
|
+
+border-bottom-radius($radius)
|
5
8
|
|
6
9
|
// bourbon removed support
|
7
10
|
// see - http://generatedcontent.org/post/37949105556/updateyourcss3
|
8
11
|
=cmi-box-shadow($values...)
|
9
12
|
-webkit-box-shadow: $values
|
10
13
|
box-shadow: $values
|
14
|
+
=box-shadow($values...)
|
15
|
+
-webkit-box-shadow: $values
|
16
|
+
box-shadow: $values
|
17
|
+
|
18
|
+
// bourbon removed support
|
19
|
+
=box-sizing($radius)
|
20
|
+
-webkit-box-sizing: $radius
|
21
|
+
-moz-box-sizing: $radius
|
22
|
+
box-sizing: $radius
|
23
|
+
|
24
|
+
// keyframes
|
25
|
+
=keyframes($name)
|
26
|
+
@-webkit-keyframes #{$name}
|
27
|
+
@content
|
28
|
+
@-moz-keyframes #{$name}
|
29
|
+
@content
|
30
|
+
@-ms-keyframes #{$name}
|
31
|
+
@content
|
32
|
+
@keyframes #{$name}
|
33
|
+
@content
|
34
|
+
|
@@ -118,7 +118,7 @@
|
|
118
118
|
|
119
119
|
hr
|
120
120
|
height: 0
|
121
|
-
box-sizing
|
121
|
+
+box-sizing(content-box)
|
122
122
|
|
123
123
|
pre
|
124
124
|
overflow: auto
|
@@ -168,7 +168,7 @@
|
|
168
168
|
input[type="checkbox"],
|
169
169
|
input[type="radio"]
|
170
170
|
padding: 0
|
171
|
-
box-sizing
|
171
|
+
+box-sizing(border-box)
|
172
172
|
|
173
173
|
input[type="number"]::-webkit-inner-spin-button,
|
174
174
|
input[type="number"]::-webkit-outer-spin-button
|
@@ -176,7 +176,7 @@
|
|
176
176
|
|
177
177
|
input[type="search"]
|
178
178
|
-webkit-appearance: textfield
|
179
|
-
box-sizing
|
179
|
+
+box-sizing(content-box)
|
180
180
|
|
181
181
|
input[type="search"]::-webkit-search-cancel-button,
|
182
182
|
input[type="search"]::-webkit-search-decoration
|
@@ -7,8 +7,6 @@ $color-primary: #afd23e !default
|
|
7
7
|
$color-text-selection-bg: lighten($color-primary, 20%) !default
|
8
8
|
$color-text-selection-text: #333 !default
|
9
9
|
|
10
|
-
// tables
|
11
|
-
$color-table-border: color("grey", "lighten-4") !default
|
12
10
|
|
13
11
|
// blockquote
|
14
12
|
$blockquote-color-border: color("grey", "lighten-3") !default
|
@@ -35,11 +33,12 @@ $button-height: 2.25rem !default
|
|
35
33
|
|
36
34
|
// button - standard font-size
|
37
35
|
$button-font-size: 0.875rem !default
|
36
|
+
$button-line-height: 1.0625rem !default
|
38
37
|
|
39
38
|
// button - standard margin / padding
|
40
39
|
$button-margin-vertical: 0.375rem !default
|
41
40
|
$button-margin-horizontal: 0.25rem !default
|
42
|
-
$button-padding-vertical: ($button-height - $button-
|
41
|
+
$button-padding-vertical: ($button-height - $button-line-height) / 2 !default
|
43
42
|
$button-padding-horizontal: 0.5rem !default
|
44
43
|
|
45
44
|
// button - standard border radius
|
@@ -59,21 +58,37 @@ $button-default-font-color: color("grey", "darken-3") !default
|
|
59
58
|
$button-primary-bg-color: $color-primary !default
|
60
59
|
$button-primary-font-color: color("grey", "darken-3") !default
|
61
60
|
|
61
|
+
// button - danger
|
62
|
+
$button-danger-bg-color: color('red', 'darken-1') !default
|
63
|
+
$button-danger-font-color: color("grey", "lighten-4") !default
|
64
|
+
|
62
65
|
// button - small
|
63
66
|
$button-small-min-width: 4.375rem !default
|
64
67
|
$button-small-height: 1.8125rem !default
|
65
68
|
$button-small-font-size: 0.75rem !default
|
69
|
+
$button-small-line-height: 0.9375rem !default
|
66
70
|
$button-small-padding-horizontal: 0.4rem !default
|
67
|
-
$button-small-padding-vertical: ($button-small-height - $button-small-
|
71
|
+
$button-small-padding-vertical: ($button-small-height - $button-small-line-height) / 2 !default
|
68
72
|
|
69
73
|
// button - large
|
70
74
|
$button-large-min-width: 6.5rem !default
|
71
75
|
$button-large-height: 2.6875rem !default
|
72
76
|
$button-large-font-size: 1.0625rem !default
|
77
|
+
$button-large-line-height: 1.25rem !default
|
73
78
|
$button-large-padding-horizontal: 0.7rem !default
|
74
|
-
$button-large-padding-vertical: ($button-large-height - $button-large-
|
79
|
+
$button-large-padding-vertical: ($button-large-height - $button-large-line-height) / 2 !default
|
75
80
|
|
76
81
|
|
82
|
+
// ------------------------------------
|
83
|
+
// tables
|
84
|
+
|
85
|
+
$color-table-border: color("grey", "lighten-4") !default
|
86
|
+
|
87
|
+
$color-table-row-active: $color-primary
|
88
|
+
|
89
|
+
// ------------------------------------
|
90
|
+
// lists
|
91
|
+
|
77
92
|
// ------------------------------------
|
78
93
|
// modal
|
79
94
|
|
@@ -104,7 +119,7 @@ $loading-diameter: 100px !default
|
|
104
119
|
// ripples
|
105
120
|
|
106
121
|
$ripples-color-default: rgba(#fff, 0.4) !default
|
107
|
-
$ripples-color-dark: rgba(#000, 0.
|
122
|
+
$ripples-color-dark: rgba(#000, 0.05) !default
|
108
123
|
$ripples-color-primary: rgba($color-primary, 0.4) !default
|
109
124
|
|
110
125
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
// base declaration
|
2
2
|
.cmi-btn, a.cmi-btn, button.cmi-btn
|
3
|
+
+cmi-border-radius($button-border-radius)
|
4
|
+
+box-sizing(border-box)
|
3
5
|
position: relative
|
4
6
|
display: inline-block
|
5
7
|
overflow: hidden
|
@@ -11,13 +13,13 @@
|
|
11
13
|
text-align: center
|
12
14
|
text-transform: uppercase
|
13
15
|
text-decoration: none
|
14
|
-
line-height:
|
16
|
+
line-height: $button-line-height
|
15
17
|
letter-spacing: 0.05rem
|
16
18
|
border: none
|
17
19
|
outline: 0
|
18
20
|
cursor: pointer
|
21
|
+
color: $button-default-font-color
|
19
22
|
-webkit-tap-highlight-color: transparent
|
20
|
-
+cmi-border-radius($button-border-radius)
|
21
23
|
&:hover
|
22
24
|
outline: none
|
23
25
|
text-decoration: none
|
@@ -68,12 +70,34 @@
|
|
68
70
|
background-color: lighten($button-primary-bg-color, 10%)
|
69
71
|
color: $button-primary-font-color
|
70
72
|
|
73
|
+
// button danger
|
74
|
+
.cmi-btn.cmi-btn-danger, a.cmi-btn.cmi-btn-danger, button.cmi-btn.cmi-btn-danger
|
75
|
+
background-color: $button-danger-bg-color
|
76
|
+
color: $button-danger-font-color
|
77
|
+
&:hover
|
78
|
+
background-color: darken($button-danger-bg-color, 5%)
|
79
|
+
color: lighten($button-danger-font-color, 5%)
|
80
|
+
&:active,
|
81
|
+
&:target
|
82
|
+
background-color: darken($button-danger-bg-color, 10%)
|
83
|
+
color: lighten($button-danger-font-color, 5%)
|
84
|
+
|
85
|
+
// button danger flat
|
86
|
+
.cmi-btn.cmi-btn-danger-flat, a.cmi-btn.cmi-btn-danger-flat, button.cmi-btn.cmi-btn-danger-flat
|
87
|
+
color: $button-danger-bg-color
|
88
|
+
&:hover
|
89
|
+
color: lighten($button-danger-bg-color, 5%)
|
90
|
+
&:active,
|
91
|
+
&:target
|
92
|
+
color: lighten($button-danger-bg-color, 5%)
|
93
|
+
|
71
94
|
// button small
|
72
95
|
.cmi-btn.cmi-btn-small, a.cmi-btn.cmi-btn-small, button.cmi-btn.cmi-btn-small
|
73
96
|
min-width: $button-small-min-width
|
74
97
|
height: $button-small-height
|
75
98
|
padding: $button-small-padding-vertical $button-small-padding-horizontal
|
76
99
|
font-size: $button-small-font-size
|
100
|
+
line-height: $button-small-line-height
|
77
101
|
|
78
102
|
// button large
|
79
103
|
.cmi-btn.cmi-btn-large, a.cmi-btn.cmi-btn-large, button.cmi-btn.cmi-btn-large
|
@@ -81,10 +105,97 @@
|
|
81
105
|
height: $button-large-height
|
82
106
|
padding: $button-large-padding-vertical $button-large-padding-horizontal
|
83
107
|
font-size: $button-large-font-size
|
108
|
+
line-height: $button-large-line-height
|
84
109
|
|
85
110
|
// button block
|
86
111
|
.cmi-btn.cmi-btn-block, a.cmi-btn.cmi-btn-block, button.cmi-btn.cmi-btn-block
|
87
112
|
display: block
|
113
|
+
margin-left: 0
|
114
|
+
margin-right: 0
|
115
|
+
|
116
|
+
|
117
|
+
// ------------------------------------
|
118
|
+
// circle buttons
|
119
|
+
|
120
|
+
.cmi-btn.cmi-btn-circle
|
121
|
+
+cmi-border-radius(25px)
|
122
|
+
+clearfix
|
123
|
+
display: inline-block
|
124
|
+
min-width: 50px
|
125
|
+
height: 50px
|
126
|
+
padding: 0
|
127
|
+
text-align: left
|
128
|
+
i,
|
129
|
+
.cmi-btn-circle-slide-content
|
130
|
+
position: relative
|
131
|
+
display: block
|
132
|
+
white-space: nowrap
|
133
|
+
i
|
134
|
+
float: left
|
135
|
+
padding: 15px
|
136
|
+
font-size: 19px
|
137
|
+
.cmi-btn-circle-slide-content
|
138
|
+
overflow: hidden
|
139
|
+
max-width: 0px
|
140
|
+
margin-right: 0px
|
141
|
+
padding: 18px 0
|
142
|
+
float: right
|
143
|
+
font-size: 14px
|
144
|
+
line-height: 1
|
145
|
+
+transition-property(margin-right max-width)
|
146
|
+
+transition-duration(.25s)
|
147
|
+
+transition-timing-function(ease)
|
148
|
+
+transition-delay(.3s)
|
149
|
+
&:hover
|
150
|
+
.cmi-btn-circle-slide-content
|
151
|
+
max-width: 400px
|
152
|
+
margin-right: 20px
|
153
|
+
+transition-property(margin-right max-width)
|
154
|
+
+transition-duration(.25s)
|
155
|
+
+transition-timing-function(ease)
|
156
|
+
+transition-delay(0s)
|
157
|
+
|
158
|
+
// button small
|
159
|
+
.cmi-btn.cmi-btn-circle.cmi-btn-small
|
160
|
+
+cmi-border-radius(40px / 2)
|
161
|
+
min-width: 40px
|
162
|
+
height: 40px
|
163
|
+
padding: 0
|
164
|
+
i
|
165
|
+
padding: 11px
|
166
|
+
font-size: 17px
|
167
|
+
.cmi-btn-circle-slide-content
|
168
|
+
padding: 13px 0
|
169
|
+
font-size: 12px
|
170
|
+
line-height: 14px
|
171
|
+
|
172
|
+
// button large
|
173
|
+
.cmi-btn.cmi-btn-circle.cmi-btn-large
|
174
|
+
+cmi-border-radius(60px / 2)
|
175
|
+
min-width: 60px
|
176
|
+
height: 60px
|
177
|
+
padding: 0
|
178
|
+
i
|
179
|
+
padding: 19px
|
180
|
+
font-size: 22px
|
181
|
+
.cmi-btn-circle-slide-content
|
182
|
+
padding: 20px 0
|
183
|
+
font-size: 18px
|
184
|
+
line-height: 20px
|
185
|
+
|
186
|
+
// button grow left
|
187
|
+
.cmi-btn.cmi-btn-circle-left
|
188
|
+
text-align: right
|
189
|
+
i
|
190
|
+
float: right
|
191
|
+
.cmi-btn-circle-slide-content
|
192
|
+
margin-right: 0px !important
|
193
|
+
float: left
|
194
|
+
+transition-property(margin-left max-width)
|
195
|
+
&:hover
|
196
|
+
.cmi-btn-circle-slide-content
|
197
|
+
margin-left: 20px
|
198
|
+
+transition-property(margin-left max-width)
|
88
199
|
|
89
200
|
|
90
201
|
// ------------------------------------
|
@@ -111,3 +222,33 @@
|
|
111
222
|
background-color: lighten($button-primary-bg-color, 5%)
|
112
223
|
|
113
224
|
|
225
|
+
// ------------------------------------
|
226
|
+
// content dependend changes
|
227
|
+
|
228
|
+
td.cmi-td
|
229
|
+
.cmi-btn
|
230
|
+
margin-top: 0
|
231
|
+
margin-bottom: 0
|
232
|
+
|
233
|
+
tr.cmi-tr-active
|
234
|
+
.cmi-btn, a.cmi-btn, button.cmi-btn
|
235
|
+
background-color: #f4f4f4
|
236
|
+
&:hover
|
237
|
+
background-color: lighten(#f4f4f4, 5%)
|
238
|
+
&:active,
|
239
|
+
&:target
|
240
|
+
background-color: lighten(#f4f4f4, 5%)
|
241
|
+
|
242
|
+
.cmi-flex-list-table
|
243
|
+
.cmi-btn
|
244
|
+
margin-top: 0
|
245
|
+
margin-bottom: 0
|
246
|
+
ul.cmi-flex-list-table-active
|
247
|
+
.cmi-btn, a.cmi-btn, button.cmi-btn
|
248
|
+
background-color: #f4f4f4
|
249
|
+
&:hover
|
250
|
+
background-color: lighten(#f4f4f4, 5%)
|
251
|
+
&:active,
|
252
|
+
&:target
|
253
|
+
background-color: lighten(#f4f4f4, 5%)
|
254
|
+
|
@@ -0,0 +1,105 @@
|
|
1
|
+
.cmi-card,
|
2
|
+
.cmi-card-header,
|
3
|
+
.cmi-card-image,
|
4
|
+
.cmi-card-content,
|
5
|
+
.cmi-card-actions
|
6
|
+
+box-sizing(border-box)
|
7
|
+
position: relative
|
8
|
+
display: block
|
9
|
+
|
10
|
+
.cmi-card
|
11
|
+
+cmi-border-radius(2px)
|
12
|
+
+cmi-box-shadow(0 2px 5px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12))
|
13
|
+
overflow: hidden
|
14
|
+
margin: 0.5rem 0 1rem 0
|
15
|
+
background-color: #fff
|
16
|
+
|
17
|
+
.cmi-card-header,
|
18
|
+
.cmi-card-content
|
19
|
+
padding: 16px
|
20
|
+
|
21
|
+
.cmi-card-header
|
22
|
+
+clearfix
|
23
|
+
.cmi-card-header-image
|
24
|
+
+cmi-border-radius(20px)
|
25
|
+
position: relative
|
26
|
+
overflow: hidden
|
27
|
+
float: left
|
28
|
+
width: 40px
|
29
|
+
height: 40px
|
30
|
+
margin-right: 16px
|
31
|
+
img
|
32
|
+
width: 40px
|
33
|
+
height: auto
|
34
|
+
.cmi-card-header-headline
|
35
|
+
margin: 0 0 3px 0
|
36
|
+
font-size: 18px
|
37
|
+
line-height: 1.2
|
38
|
+
.cmi-card-header-sub-headline
|
39
|
+
margin: 0
|
40
|
+
font-size: 14px
|
41
|
+
line-height: 1.2
|
42
|
+
color: color('grey', 'base')
|
43
|
+
|
44
|
+
.cmi-card-image
|
45
|
+
img.cmi-img
|
46
|
+
width: 100%
|
47
|
+
height: auto
|
48
|
+
span.cmi-span
|
49
|
+
+position(absolute, auto auto 0 0)
|
50
|
+
padding: 20px
|
51
|
+
font-size: 24px
|
52
|
+
font-weight: 300
|
53
|
+
text-shadow: 0 0 4px rgba(#000, 0.4)
|
54
|
+
color: #fff
|
55
|
+
|
56
|
+
.cmi-card-content
|
57
|
+
*:first-child
|
58
|
+
margin-top: 0px
|
59
|
+
&.cmi-h1,
|
60
|
+
&.cmi-h2,
|
61
|
+
&.cmi-h3,
|
62
|
+
&.cmi-h4,
|
63
|
+
&.cmi-h5,
|
64
|
+
&.cmi-h6
|
65
|
+
margin-top: 8px
|
66
|
+
*:last-child
|
67
|
+
margin-bottom: 0px
|
68
|
+
|
69
|
+
.cmi-card-actions
|
70
|
+
padding: 8px
|
71
|
+
a, .cmi-btn
|
72
|
+
min-width: 0
|
73
|
+
margin-top: 0
|
74
|
+
margin-bottom: 0
|
75
|
+
padding: $button-padding-vertical 8px
|
76
|
+
color: $color-primary
|
77
|
+
&:hover
|
78
|
+
color: lighten($color-primary, 15%)
|
79
|
+
background-color: transparent
|
80
|
+
*:first-child
|
81
|
+
margin-left: 0px
|
82
|
+
*:last-child
|
83
|
+
margin-right: 0px
|
84
|
+
|
85
|
+
.cmi-card-separator
|
86
|
+
height: 0px
|
87
|
+
margin: 0
|
88
|
+
padding: 0
|
89
|
+
border-top: 1px solid rgba(#000, 0.05)
|
90
|
+
border-bottom: 1px solid rgba(#fff, 0.15)
|
91
|
+
|
92
|
+
.cmi-card-primary
|
93
|
+
color: #fff
|
94
|
+
background-color: $color-primary
|
95
|
+
a, .cmi-btn
|
96
|
+
color: color('grey', 'darken-3')
|
97
|
+
&:hover
|
98
|
+
color: color('grey', 'darken-1')
|
99
|
+
.cmi-card-header,
|
100
|
+
.cmi-card-content
|
101
|
+
color: #fff
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.cmi-flex-modal-dialog
|
2
|
+
> main.cmi-main
|
3
|
+
display: block
|
4
|
+
height: auto
|
5
|
+
max-height: none
|
6
|
+
margin: 0
|
7
|
+
padding: 0
|
8
|
+
> aside.cmi-aside,
|
9
|
+
> section.cmi-section
|
10
|
+
display: block
|
11
|
+
overflow: auto
|
12
|
+
height: auto
|
13
|
+
-webkit-overflow-scrolling: touch
|
14
|
+
-ms-overflow-style: none
|
15
|
+
> aside.cmi-aside
|
16
|
+
position: absolute
|
17
|
+
width: $modal-sidebar-width
|
18
|
+
> section.cmi-section
|
19
|
+
position: relative
|
20
|
+
margin-left: $modal-sidebar-width
|
21
|
+
|
@@ -2,6 +2,17 @@ body.cmi-flex-modal-open
|
|
2
2
|
overflow: hidden
|
3
3
|
|
4
4
|
// base modal structure
|
5
|
+
.cmi-flex-modal,
|
6
|
+
.cmi-flex-modal-dialog,
|
7
|
+
.cmi-flex-modal-dialog-inner,
|
8
|
+
.cmi-flex-modal-dialog > header.cmi-header,
|
9
|
+
.cmi-flex-modal-dialog > main.cmi-main,
|
10
|
+
.cmi-flex-modal-dialog > footer.cmi-footer
|
11
|
+
.cmi-flex-modal-dialog-inner > header.cmi-header,
|
12
|
+
.cmi-flex-modal-dialog-inner > main.cmi-main,
|
13
|
+
.cmi-flex-modal-dialog-inner > footer.cmi-footer
|
14
|
+
+box-sizing(border-box)
|
15
|
+
|
5
16
|
.cmi-flex-modal
|
6
17
|
+position(fixed, 0 0 0 0)
|
7
18
|
+backface-visibility(hidden)
|
@@ -11,29 +22,24 @@ body.cmi-flex-modal-open
|
|
11
22
|
z-index: $modal-z-index
|
12
23
|
background-color: $modal-backdrop-color
|
13
24
|
|
14
|
-
.cmi-flex-modal-dialog
|
15
|
-
.cmi-flex-modal-dialog-inner
|
16
|
-
overflow: hidden
|
17
|
-
z-index: 0
|
18
|
-
margin: 0
|
19
|
-
padding: 0
|
20
|
-
outline: 0
|
25
|
+
.cmi-flex-modal-dialog
|
21
26
|
+display(flex)
|
22
27
|
+flex-direction(column)
|
23
28
|
+flex-wrap(nowrap)
|
24
29
|
+align-items(stretch)
|
25
30
|
+cmi-border-radius(3px)
|
31
|
+
overflow: hidden
|
32
|
+
z-index: 0
|
33
|
+
margin: 0
|
34
|
+
padding: 0
|
35
|
+
outline: 0
|
26
36
|
|
27
37
|
.cmi-flex-modal-dialog
|
28
38
|
+position(absolute, 5% 5% auto 5%)
|
29
39
|
max-height: 90%
|
30
40
|
@extend .cmi-z-depth-5
|
31
41
|
|
32
|
-
.cmi-flex-modal-dialog
|
33
|
-
position: relative
|
34
|
-
|
35
|
-
.cmi-flex-modal-dialog,
|
36
|
-
.cmi-flex-modal-dialog-inner
|
42
|
+
.cmi-flex-modal-dialog
|
37
43
|
> header.cmi-header,
|
38
44
|
> main.cmi-main,
|
39
45
|
> footer.cmi-footer
|
@@ -41,53 +47,63 @@ body.cmi-flex-modal-open
|
|
41
47
|
|
42
48
|
> header.cmi-header,
|
43
49
|
> footer.cmi-footer
|
44
|
-
overflow: hidden
|
45
|
-
z-index: 10
|
46
50
|
+display(flex)
|
47
51
|
+flex-shrink(0)
|
52
|
+
overflow: hidden
|
53
|
+
z-index: 10
|
48
54
|
|
49
55
|
> header.cmi-header
|
56
|
+
+border-top-radius(3px)
|
50
57
|
height: $modal-header-height
|
51
58
|
background-color: $modal-header-bgcolor
|
52
|
-
+border-top-radius(3px)
|
53
59
|
|
54
60
|
> main.cmi-main
|
61
|
+
+display(flex)
|
62
|
+
+flex-direction(row)
|
63
|
+
+flex-shrink(1)
|
64
|
+
+backface-visibility(hidden)
|
65
|
+
+flex-wrap(nowrap)
|
66
|
+
display: -ms-flexbox
|
67
|
+
display: ms-flexbox
|
68
|
+
-ms-flex-direction: row
|
69
|
+
-ms-flex-pack: justify
|
70
|
+
-ms-flex-align: stretch
|
71
|
+
-ms-flex-line-pack: stretch
|
55
72
|
overflow: scroll
|
56
73
|
overflow-x: hidden
|
57
74
|
overflow-y: scroll
|
58
75
|
z-index: 1
|
76
|
+
width: 100%
|
77
|
+
max-height: 100vh
|
78
|
+
margin-top: -$modal-header-height
|
79
|
+
padding-top: $modal-header-height
|
80
|
+
margin-bottom: -$modal-footer-height
|
81
|
+
padding-bottom: $modal-footer-height - 1px
|
59
82
|
background-color: $modal-main-bgcolor
|
60
|
-
|
61
|
-
+flex-direction(column)
|
62
|
-
+flex-shrink(1)
|
83
|
+
will-change: overflow
|
63
84
|
|
64
85
|
> footer.cmi-footer
|
86
|
+
+border-bottom-radius(3px)
|
65
87
|
height: $modal-footer-height
|
66
88
|
background-color: $modal-footer-bgcolor
|
67
|
-
+border-bottom-radius(3px)
|
68
89
|
|
69
|
-
.cmi-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
+flex-shrink(0)
|
78
|
-
+align-items(stretch)
|
90
|
+
> main.cmi-main
|
91
|
+
> aside.cmi-aside,
|
92
|
+
> section.cmi-section
|
93
|
+
position: relative
|
94
|
+
overflow: auto
|
95
|
+
height: auto
|
96
|
+
-webkit-overflow-scrolling: touch
|
97
|
+
-ms-overflow-style: none
|
79
98
|
|
80
|
-
|
81
|
-
|
82
|
-
|
99
|
+
> aside.cmi-aside
|
100
|
+
+flex-grow(0)
|
101
|
+
width: $modal-sidebar-width
|
102
|
+
min-width: $modal-sidebar-width
|
103
|
+
background-color: $modal-sidebar-bgcolor
|
83
104
|
|
84
|
-
|
85
|
-
|
86
|
-
min-width: $modal-sidebar-width
|
87
|
-
background-color: $modal-sidebar-bgcolor
|
88
|
-
+flex-grow(0)
|
89
|
-
> .cmi-section
|
90
|
-
+flex-grow(1)
|
105
|
+
> .cmi-section
|
106
|
+
+flex-grow(1)
|
91
107
|
|
92
108
|
// modal additional content styling
|
93
109
|
.cmi-flex-modal-dialog,
|
@@ -153,6 +169,8 @@ body.cmi-flex-modal-open
|
|
153
169
|
background-color: darken($modal-header-bgcolor, 5%)
|
154
170
|
i.cmi-i
|
155
171
|
color: #fff
|
172
|
+
.cmi-btn.cmi-flex-modal-back
|
173
|
+
margin-right: 8px
|
156
174
|
|
157
175
|
.cmi-flex-modal-footer-inside
|
158
176
|
position: relative
|
@@ -178,7 +196,8 @@ ul.cmi-flex-modal-aside-tab-list
|
|
178
196
|
padding: 0
|
179
197
|
list-style: none
|
180
198
|
li.cmi-li
|
181
|
-
|
199
|
+
position: relative
|
200
|
+
overflow: hidden
|
182
201
|
a.cmi-a
|
183
202
|
position: relative
|
184
203
|
display: block
|
@@ -0,0 +1,61 @@
|
|
1
|
+
|
2
|
+
// base
|
3
|
+
.cmi-flex-list-table,
|
4
|
+
.cmi-flex-list-table ul.cmi-ul,
|
5
|
+
.cmi-flex-list-table li.cmi-li
|
6
|
+
+box-sizing(border-box)
|
7
|
+
|
8
|
+
.cmi-flex-list-table
|
9
|
+
position: relative
|
10
|
+
display: block
|
11
|
+
width: auto
|
12
|
+
ul.cmi-ul,
|
13
|
+
li.cmi-li
|
14
|
+
position: relative
|
15
|
+
ul.cmi-ul
|
16
|
+
+clearfix
|
17
|
+
+display(flex)
|
18
|
+
+flex-direction(row)
|
19
|
+
+justify-content(space-between)
|
20
|
+
+align-items(center)
|
21
|
+
+align-content(stretch)
|
22
|
+
+flex-wrap(nowrap)
|
23
|
+
width: auto
|
24
|
+
margin: 0
|
25
|
+
padding: 0
|
26
|
+
list-style: none
|
27
|
+
background-color: transparent
|
28
|
+
li.cmi-li
|
29
|
+
+flex(1)
|
30
|
+
+flex-grow(1)
|
31
|
+
width: auto
|
32
|
+
float: left
|
33
|
+
padding: 5px 15px
|
34
|
+
text-align: left
|
35
|
+
ul.cmi-flex-list-table-headline
|
36
|
+
border-bottom: 1px solid rgb(245, 245, 245)
|
37
|
+
li.cmi-li
|
38
|
+
font-weight: bold
|
39
|
+
|
40
|
+
// striped
|
41
|
+
.cmi-flex-list-table-striped
|
42
|
+
ul.cmi-ul:nth-child(odd):not(.cmi-flex-list-table-headline)
|
43
|
+
background-color: rgba(#000, 0.03)
|
44
|
+
|
45
|
+
// hoverable
|
46
|
+
.cmi-flex-list-table-hoverable
|
47
|
+
ul.cmi-ul:not(.cmi-flex-list-table-headline):hover
|
48
|
+
background-color: rgba(#000, 0.02)
|
49
|
+
|
50
|
+
// active rows
|
51
|
+
.cmi-flex-list-table
|
52
|
+
ul.cmi-flex-list-table-active
|
53
|
+
background-color: $color-table-row-active
|
54
|
+
&.cmi-flex-list-table-striped
|
55
|
+
ul.cmi-flex-list-table-active:nth-child(odd)
|
56
|
+
background-color: darken($color-table-row-active, 5%)
|
57
|
+
&.cmi-flex-list-table-hoverable
|
58
|
+
ul.cmi-flex-list-table-active,
|
59
|
+
ul.cmi-flex-list-table-active:nth-child(odd)
|
60
|
+
&:hover
|
61
|
+
background-color: lighten($color-table-row-active, 5%)
|