material-sass 1.4.1 → 4.0.0.alpha5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +61 -0
- data/app/assets/fonts/{MaterialIcons-Regular.eot → material-icons/MaterialIcons-Regular.eot} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.ijmap → material-icons/MaterialIcons-Regular.ijmap} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.svg → material-icons/MaterialIcons-Regular.svg} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.ttf → material-icons/MaterialIcons-Regular.ttf} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.woff → material-icons/MaterialIcons-Regular.woff} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.woff2 → material-icons/MaterialIcons-Regular.woff2} +0 -0
- data/app/assets/fonts/{README.md → material-icons/README.md} +0 -0
- data/app/assets/fonts/{codepoints → material-icons/codepoints} +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/javascripts/material.js +739 -798
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +139 -0
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +9 -0
- data/app/assets/javascripts/material/addons-materialise/wave.js +12 -0
- data/app/assets/javascripts/material/addons/pickadate.js +7 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +5 -0
- data/app/assets/javascripts/material/{wave.js → addons/wave.js} +0 -10
- data/app/assets/javascripts/material/src/floating-label.js +91 -0
- data/app/assets/javascripts/material/src/navdrawer.js +352 -0
- data/app/assets/javascripts/material/src/tab-switch.js +136 -0
- data/app/assets/javascripts/material/src/util.js +138 -0
- data/app/assets/stylesheets/material.min.css +2 -2
- data/app/assets/stylesheets/material.scss +1 -1
- data/app/assets/stylesheets/material/_mixins.scss +21 -0
- data/app/assets/stylesheets/material/_utilities.scss +15 -0
- data/app/assets/stylesheets/material/_variables.scss +25 -0
- data/app/assets/stylesheets/material/base/_base.scss +482 -0
- data/app/assets/stylesheets/material/base/_grid.scss +28 -40
- data/app/assets/stylesheets/material/base/_typography.scss +208 -0
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +55 -0
- data/app/assets/stylesheets/material/bootstrap/_animation.scss +26 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +39 -0
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +155 -0
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +234 -0
- data/app/assets/stylesheets/material/bootstrap/_close.scss +31 -0
- data/app/assets/stylesheets/material/bootstrap/_code.scss +50 -0
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +69 -0
- data/app/assets/stylesheets/material/bootstrap/_form.scss +116 -0
- data/app/assets/stylesheets/material/bootstrap/_image.scss +25 -0
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +12 -0
- data/app/assets/stylesheets/material/bootstrap/_media.scss +69 -0
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +118 -0
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +68 -0
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +84 -0
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +37 -0
- data/app/assets/stylesheets/material/material.scss +62 -0
- data/app/assets/stylesheets/material/material/_button-flat.scss +53 -0
- data/app/assets/stylesheets/material/material/_button-float.scss +29 -0
- data/app/assets/stylesheets/material/material/_button.scss +241 -0
- data/app/assets/stylesheets/material/material/_card.scss +286 -0
- data/app/assets/stylesheets/material/material/_chip.scss +93 -0
- data/app/assets/stylesheets/material/material/_data-table.scss +138 -0
- data/app/assets/stylesheets/material/material/_dialog.scss +147 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +292 -0
- data/app/assets/stylesheets/material/material/_menu.scss +281 -0
- data/app/assets/stylesheets/material/material/_navdrawer.scss +289 -0
- data/app/assets/stylesheets/material/material/_picker.scss +272 -0
- data/app/assets/stylesheets/material/material/_progress-circular.scss +144 -0
- data/app/assets/stylesheets/material/material/_progress.scss +174 -0
- data/app/assets/stylesheets/material/material/_selection-control.scss +221 -0
- data/app/assets/stylesheets/material/material/_stepper.scss +135 -0
- data/app/assets/stylesheets/material/material/_tab.scss +196 -0
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +51 -0
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +76 -0
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +31 -0
- data/app/assets/stylesheets/material/material/_text-field.scss +179 -0
- data/app/assets/stylesheets/material/material/_toolbar.scss +516 -0
- data/app/assets/stylesheets/material/material/_tooltip.scss +86 -0
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +14 -0
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +34 -0
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +38 -0
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_form.scss +60 -0
- data/app/assets/stylesheets/material/mixins/_grid.scss +149 -0
- data/app/assets/stylesheets/material/mixins/_hex-to-rgba.scss +3 -0
- data/app/assets/stylesheets/material/mixins/_hover.scss +70 -0
- data/app/assets/stylesheets/material/mixins/_image.scss +4 -0
- data/app/assets/stylesheets/material/mixins/_list.scss +4 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +6 -0
- data/app/assets/stylesheets/material/mixins/_pull.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +35 -0
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_strip-unit.scss +3 -0
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +5 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +14 -0
- data/app/assets/stylesheets/material/mixins/_text-hide.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_text-truncate.scss +5 -0
- data/app/assets/stylesheets/material/mixins/_transition.scss +55 -0
- data/app/assets/stylesheets/material/mixins/_typography.scss +69 -0
- data/app/assets/stylesheets/material/utilities/_align.scss +23 -0
- data/app/assets/stylesheets/material/utilities/_background.scss +23 -0
- data/app/assets/stylesheets/material/utilities/_border.scss +27 -0
- data/app/assets/stylesheets/material/utilities/_clearfix.scss +3 -0
- data/app/assets/stylesheets/material/utilities/_display.scss +11 -0
- data/app/assets/stylesheets/material/utilities/_float.scss +15 -0
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +10 -0
- data/app/assets/stylesheets/material/utilities/_screenreader.scss +7 -0
- data/app/assets/stylesheets/material/utilities/_spacing.scss +65 -0
- data/app/assets/stylesheets/material/utilities/_text.scss +95 -0
- data/app/assets/stylesheets/material/utilities/_visibility.scss +50 -0
- data/app/assets/stylesheets/material/utilities/_waves.scss +48 -0
- data/app/assets/stylesheets/material/variables/_animation.scss +22 -0
- data/app/assets/stylesheets/material/variables/_colour.scss +389 -0
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +84 -0
- data/app/assets/stylesheets/material/variables/_grid.scss +32 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +73 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +72 -0
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +129 -0
- data/app/assets/stylesheets/material/variables/_variable-material.scss +434 -0
- data/lib/material-sass/engine.rb +3 -2
- data/lib/material-sass/version.rb +1 -1
- metadata +128 -70
- data/app/assets/javascripts/material.min.js +0 -2
- data/app/assets/javascripts/material/_.js +0 -6
- data/app/assets/javascripts/material/bootstrap.js +0 -6
- data/app/assets/javascripts/material/form-floating-label.js +0 -49
- data/app/assets/javascripts/material/form-textarea.js +0 -13
- data/app/assets/javascripts/material/header.js +0 -12
- data/app/assets/javascripts/material/menu.js +0 -200
- data/app/assets/javascripts/material/modal.js +0 -12
- data/app/assets/javascripts/material/picker.js +0 -141
- data/app/assets/javascripts/material/snackbar.js +0 -116
- data/app/assets/javascripts/material/tab.js +0 -51
- data/app/assets/javascripts/material/tile.js +0 -181
- data/app/assets/stylesheets/material/addons/_material-icons.scss +0 -9
- data/app/assets/stylesheets/material/addons/_waves.scss +0 -44
- data/app/assets/stylesheets/material/addons/material-icons/_core.scss +0 -20
- data/app/assets/stylesheets/material/addons/material-icons/_larger.scss +0 -23
- data/app/assets/stylesheets/material/addons/material-icons/_path.scss +0 -11
- data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +0 -3
- data/app/assets/stylesheets/material/base.scss +0 -50
- data/app/assets/stylesheets/material/base/_reset.scss +0 -421
- data/app/assets/stylesheets/material/components/_avatar.scss +0 -59
- data/app/assets/stylesheets/material/components/_breadcrumb.scss +0 -26
- data/app/assets/stylesheets/material/components/_button-flat.scss +0 -22
- data/app/assets/stylesheets/material/components/_button-float.scss +0 -183
- data/app/assets/stylesheets/material/components/_button.scss +0 -81
- data/app/assets/stylesheets/material/components/_card.scss +0 -175
- data/app/assets/stylesheets/material/components/_code.scss +0 -53
- data/app/assets/stylesheets/material/components/_dropdown.scss +0 -99
- data/app/assets/stylesheets/material/components/_form-checkbox.scss +0 -161
- data/app/assets/stylesheets/material/components/_form-floating-label.scss +0 -64
- data/app/assets/stylesheets/material/components/_form-switch.scss +0 -96
- data/app/assets/stylesheets/material/components/_form-textarea.scss +0 -4
- data/app/assets/stylesheets/material/components/_form.scss +0 -217
- data/app/assets/stylesheets/material/components/_label.scss +0 -23
- data/app/assets/stylesheets/material/components/_modal.scss +0 -164
- data/app/assets/stylesheets/material/components/_nav.scss +0 -53
- data/app/assets/stylesheets/material/components/_picker.scss +0 -298
- data/app/assets/stylesheets/material/components/_progress-circular.scss +0 -169
- data/app/assets/stylesheets/material/components/_progress-loadbar.scss +0 -97
- data/app/assets/stylesheets/material/components/_progress.scss +0 -132
- data/app/assets/stylesheets/material/components/_snackbar.scss +0 -59
- data/app/assets/stylesheets/material/components/_stepper.scss +0 -201
- data/app/assets/stylesheets/material/components/_tab.scss +0 -84
- data/app/assets/stylesheets/material/components/_table.scss +0 -82
- data/app/assets/stylesheets/material/components/_tile.scss +0 -156
- data/app/assets/stylesheets/material/elements/_content.scss +0 -42
- data/app/assets/stylesheets/material/elements/_header.scss +0 -141
- data/app/assets/stylesheets/material/elements/_menu.scss +0 -267
- data/app/assets/stylesheets/material/mixin/_grid.scss +0 -78
- data/app/assets/stylesheets/material/mixin/_responsive.scss +0 -32
- data/app/assets/stylesheets/material/mixin/_utilities.scss +0 -69
- data/app/assets/stylesheets/material/utilities/_print.scss +0 -95
- data/app/assets/stylesheets/material/utilities/_utilities-responsive.scss +0 -97
- data/app/assets/stylesheets/material/utilities/_utilities.scss +0 -393
- data/app/assets/stylesheets/material/var/_colours.scss +0 -336
- data/app/assets/stylesheets/material/var/_variables.scss +0 -78
@@ -0,0 +1,93 @@
|
|
1
|
+
.chip,
|
2
|
+
.tag {
|
3
|
+
background-color: $chip-bg;
|
4
|
+
border-radius: ($chip-height / 2);
|
5
|
+
color: $chip-color;
|
6
|
+
display: inline-block;
|
7
|
+
font-size: $chip-font-size;
|
8
|
+
font-weight: $chip-font-weight;
|
9
|
+
line-height: 1;
|
10
|
+
padding: $chip-padding-y $chip-padding-x;
|
11
|
+
position: relative;
|
12
|
+
vertical-align: middle;
|
13
|
+
white-space: nowrap;
|
14
|
+
|
15
|
+
&:empty {
|
16
|
+
display: none;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
a.chip,
|
21
|
+
a.tag {
|
22
|
+
color: $chip-color;
|
23
|
+
z-index: 1;
|
24
|
+
@include transition-standard(box-shadow);
|
25
|
+
|
26
|
+
&::before {
|
27
|
+
background-color: $chip-active-overlay;
|
28
|
+
border-radius: ($chip-height / 2);
|
29
|
+
content: "";
|
30
|
+
display: block;
|
31
|
+
opacity: 0;
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
right: 0;
|
35
|
+
bottom: 0;
|
36
|
+
left: 0;
|
37
|
+
z-index: -1;
|
38
|
+
@include transition-standard(opacity);
|
39
|
+
}
|
40
|
+
|
41
|
+
// active, focus, hover
|
42
|
+
@include active-focus-hover {
|
43
|
+
color: $chip-color;
|
44
|
+
|
45
|
+
@if ($link-decoration-active != "none") {
|
46
|
+
text-decoration: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
&::before {
|
50
|
+
opacity: 1;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
&:active {
|
55
|
+
box-shadow: map-get($chip-elevation-shadow-active, shadow);
|
56
|
+
z-index: map-get($chip-elevation-shadow-active, elevation);
|
57
|
+
}
|
58
|
+
|
59
|
+
&:focus {
|
60
|
+
outline: 0;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// colour
|
65
|
+
.chip-inverse,
|
66
|
+
.tag-inverse {
|
67
|
+
background-color: $chip-bg-inverse;
|
68
|
+
color: $chip-color-inverse;
|
69
|
+
}
|
70
|
+
|
71
|
+
a.chip-inverse,
|
72
|
+
a.tag-inverse {
|
73
|
+
@include plain-active-focus-hover {
|
74
|
+
color: $chip-color-inverse;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@each $color in $palettes {
|
79
|
+
$i: index($palettes, $color);
|
80
|
+
|
81
|
+
.chip-#{$color},
|
82
|
+
.tag-#{$color} {
|
83
|
+
background-color: nth($palettes-color, $i);
|
84
|
+
color: nth($palettes-text-color, $i);
|
85
|
+
}
|
86
|
+
|
87
|
+
a.chip-#{$color},
|
88
|
+
a.tag-#{$color} {
|
89
|
+
@include plain-active-focus-hover {
|
90
|
+
color: nth($palettes-text-color, $i);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
//
|
2
|
+
// todo: `.table-inverse`, `.table-reflow` and `.table-sm`
|
3
|
+
//
|
4
|
+
|
5
|
+
.table {
|
6
|
+
background-color: $table-bg;
|
7
|
+
border: 0;
|
8
|
+
border-collapse: separate;
|
9
|
+
margin-bottom: $table-margin-bottom;
|
10
|
+
max-width: 100%;
|
11
|
+
width: 100%;
|
12
|
+
|
13
|
+
td,
|
14
|
+
th {
|
15
|
+
border-top: $table-border-width solid $table-border-color;
|
16
|
+
padding-right: $table-cell-padding-x;
|
17
|
+
padding-left: $table-cell-padding-x;
|
18
|
+
vertical-align: top;
|
19
|
+
|
20
|
+
&:first-child {
|
21
|
+
padding-left: $table-cell-padding-x-alt;
|
22
|
+
}
|
23
|
+
|
24
|
+
&:last-child {
|
25
|
+
padding-right: $table-cell-padding-x-alt;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
tbody {
|
30
|
+
td,
|
31
|
+
th {
|
32
|
+
color: $table-tbody-color;
|
33
|
+
font-size: $table-tbody-font-size;
|
34
|
+
font-weight: $table-tbody-font-weight;
|
35
|
+
height: $table-tbody-cell-height;
|
36
|
+
padding-top: $table-tbody-padding-y;
|
37
|
+
padding-bottom: $table-tbody-padding-y;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
tfoot {
|
42
|
+
td,
|
43
|
+
th {
|
44
|
+
color: $table-tfoot-color;
|
45
|
+
font-size: $table-tfoot-font-size;
|
46
|
+
font-weight: $table-tfoot-font-weight;
|
47
|
+
height: $table-tfoot-cell-height;
|
48
|
+
padding-top: $table-tfoot-padding-y;
|
49
|
+
padding-bottom: $table-tfoot-padding-y;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
thead {
|
54
|
+
td,
|
55
|
+
th {
|
56
|
+
color: $table-thead-color;
|
57
|
+
font-size: $table-thead-font-size;
|
58
|
+
font-weight: $table-thead-font-weight;
|
59
|
+
height: $table-thead-cell-height;
|
60
|
+
padding-top: $table-thead-padding-y;
|
61
|
+
padding-bottom: $table-thead-padding-y;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
> tbody:first-child > tr:first-child,
|
66
|
+
> tfoot:first-child > tr:first-child,
|
67
|
+
> thead:first-child > tr:first-child {
|
68
|
+
td,
|
69
|
+
th {
|
70
|
+
border-top: 0;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.table {
|
75
|
+
border-top: $table-border-width solid $table-border-color;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
//
|
80
|
+
// additional versions
|
81
|
+
//
|
82
|
+
.table-bordered {
|
83
|
+
box-shadow: map-get($table-elevation-shadow, shadow);
|
84
|
+
}
|
85
|
+
|
86
|
+
.table-striped {
|
87
|
+
tbody tr:nth-of-type(odd) {
|
88
|
+
background-color: $table-bg-accent;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
//
|
93
|
+
// hover
|
94
|
+
//
|
95
|
+
.table-hover {
|
96
|
+
tbody tr {
|
97
|
+
@include hover {
|
98
|
+
background-color: $table-bg-hover;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
//
|
104
|
+
// table background
|
105
|
+
//
|
106
|
+
@each $color in $palettes {
|
107
|
+
$i: index($palettes, $color);
|
108
|
+
|
109
|
+
.table .table-#{$color} {
|
110
|
+
&,
|
111
|
+
> td,
|
112
|
+
> th {
|
113
|
+
background-color: nth($palettes-color, $i);
|
114
|
+
color: nth($palettes-text-color, $i);
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
.table-hover .table-#{$color} {
|
119
|
+
@include hover {
|
120
|
+
&,
|
121
|
+
> td,
|
122
|
+
> th {
|
123
|
+
background-color: nth($palettes-color-dark, $i);
|
124
|
+
color: nth($palettes-text-color-dark, $i);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
//
|
131
|
+
// table responsive
|
132
|
+
//
|
133
|
+
.table-responsive {
|
134
|
+
display: block;
|
135
|
+
min-height: 0.01%;
|
136
|
+
overflow-x: auto;
|
137
|
+
width: 100%;
|
138
|
+
}
|
@@ -0,0 +1,147 @@
|
|
1
|
+
.dialog,
|
2
|
+
.modal {
|
3
|
+
display: none;
|
4
|
+
overflow: hidden;
|
5
|
+
outline: 0;
|
6
|
+
position: fixed;
|
7
|
+
top: 0;
|
8
|
+
right: 0;
|
9
|
+
bottom: 0;
|
10
|
+
left: 0;
|
11
|
+
text-align: center;
|
12
|
+
white-space: nowrap;
|
13
|
+
-webkit-overflow-scrolling: touch;
|
14
|
+
z-index: map-get($dialog-elevation-shadow, elevation);
|
15
|
+
|
16
|
+
&::before {
|
17
|
+
content: "";
|
18
|
+
display: inline-block;
|
19
|
+
height: 100%;
|
20
|
+
margin-right: -0.25em;
|
21
|
+
vertical-align: middle;
|
22
|
+
width: 1px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.modal-open {
|
27
|
+
overflow: hidden;
|
28
|
+
|
29
|
+
.dialog,
|
30
|
+
.modal {
|
31
|
+
overflow-x: hidden;
|
32
|
+
overflow-y: auto;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
//
|
37
|
+
// backdrop
|
38
|
+
//
|
39
|
+
.modal-backdrop {
|
40
|
+
background-color: $dialog-backdrop-bg;
|
41
|
+
position: fixed;
|
42
|
+
top: 0;
|
43
|
+
right: 0;
|
44
|
+
bottom: 0;
|
45
|
+
left: 0;
|
46
|
+
z-index: (map-get($dialog-elevation-shadow, elevation) - 1);
|
47
|
+
|
48
|
+
&.fade {
|
49
|
+
transform: scale(1);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
//
|
54
|
+
// dialog
|
55
|
+
//
|
56
|
+
.dialog-dialog,
|
57
|
+
.modal-dialog {
|
58
|
+
display: inline-block;
|
59
|
+
margin: $dialog-margin-y $dialog-margin-x;
|
60
|
+
max-width: $dialog-width;
|
61
|
+
position: relative;
|
62
|
+
text-align: left;
|
63
|
+
vertical-align: middle;
|
64
|
+
white-space: normal;
|
65
|
+
width: calc(100% - #{$dialog-margin-x} * 2);
|
66
|
+
}
|
67
|
+
|
68
|
+
// size
|
69
|
+
.dialog-lg,
|
70
|
+
.modal-lg {
|
71
|
+
max-width: $dialog-width-lg;
|
72
|
+
}
|
73
|
+
|
74
|
+
.dialog-sm,
|
75
|
+
.modal-sm {
|
76
|
+
max-width: $dialog-width-sm;
|
77
|
+
}
|
78
|
+
|
79
|
+
//
|
80
|
+
// misc
|
81
|
+
//
|
82
|
+
.dialog-body,
|
83
|
+
.modal-body {
|
84
|
+
padding: $dialog-inner-padding;
|
85
|
+
position: relative;
|
86
|
+
}
|
87
|
+
|
88
|
+
.dialog-content,
|
89
|
+
.modal-content {
|
90
|
+
background-clip: padding-box;
|
91
|
+
background-color: $dialog-content-bg;
|
92
|
+
border: 1px solid transparent;
|
93
|
+
box-shadow: map-get($dialog-elevation-shadow, shadow);
|
94
|
+
outline: 0;
|
95
|
+
position: relative;
|
96
|
+
vertical-align: baseline;
|
97
|
+
@include border-radius($border-radius);
|
98
|
+
}
|
99
|
+
|
100
|
+
.dialog-footer,
|
101
|
+
.modal-footer {
|
102
|
+
padding: $dialog-footer-spacer-y $dialog-footer-spacer-x;
|
103
|
+
padding-left: $dialog-inner-padding;
|
104
|
+
text-align: right;
|
105
|
+
@include clearfix;
|
106
|
+
|
107
|
+
.btn {
|
108
|
+
margin-left: $dialog-footer-spacer-x;
|
109
|
+
min-width: $dialog-footer-btn-min-width;
|
110
|
+
padding-right: $dialog-footer-spacer-x;
|
111
|
+
padding-left: $dialog-footer-spacer-x;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.dialog-header,
|
116
|
+
.modal-header {
|
117
|
+
padding: $dialog-inner-padding;
|
118
|
+
|
119
|
+
+ .dialog-body,
|
120
|
+
+ .modal-body {
|
121
|
+
padding-top: 0;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.dialog-text,
|
126
|
+
.modal-text {
|
127
|
+
&:last-child {
|
128
|
+
margin-bottom: 0;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
.dialog-title,
|
133
|
+
.modal-title {
|
134
|
+
margin: 0;
|
135
|
+
@include typography-title;
|
136
|
+
}
|
137
|
+
|
138
|
+
//
|
139
|
+
// scrollbar measure
|
140
|
+
//
|
141
|
+
.modal-scrollbar-measure {
|
142
|
+
height: 50px;
|
143
|
+
overflow: scroll;
|
144
|
+
position: absolute;
|
145
|
+
top: -99999px;
|
146
|
+
width: 50px;
|
147
|
+
}
|
@@ -0,0 +1,292 @@
|
|
1
|
+
.expansion-panel,
|
2
|
+
.list-group {
|
3
|
+
margin-bottom: $expansion-panel-margin-bottom;
|
4
|
+
padding-left: 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
//
|
8
|
+
// item
|
9
|
+
//
|
10
|
+
.expansion-panel-item,
|
11
|
+
.list-group-item {
|
12
|
+
background-color: $expansion-panel-bg;
|
13
|
+
border: 0;
|
14
|
+
border-top: $expansion-panel-border-width solid $expansion-panel-border-color;
|
15
|
+
box-shadow: map-get($expansion-panel-elevation-shadow, shadow);
|
16
|
+
color: $expansion-panel-color;
|
17
|
+
display: block;
|
18
|
+
font-size: $expansion-panel-font-size;
|
19
|
+
min-height: $expansion-panel-height;
|
20
|
+
padding: $expansion-panel-spacer-y $expansion-panel-spacer-x;
|
21
|
+
position: relative;
|
22
|
+
@include transition-standard(background-color, color);
|
23
|
+
|
24
|
+
&:first-of-type {
|
25
|
+
border-top-color: transparent;
|
26
|
+
@include border-top-radius($border-radius);
|
27
|
+
}
|
28
|
+
|
29
|
+
&:last-of-type {
|
30
|
+
@include border-bottom-radius($border-radius);
|
31
|
+
}
|
32
|
+
|
33
|
+
// active, focus, hover
|
34
|
+
&.active {
|
35
|
+
background-color: $expansion-panel-bg-active;
|
36
|
+
}
|
37
|
+
|
38
|
+
// disabled
|
39
|
+
&.disabled {
|
40
|
+
background-color: $expansion-panel-bg-disabled;
|
41
|
+
color: $expansion-panel-color-disabled;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.expansion-panel-item-action,
|
46
|
+
.list-group-item-action {
|
47
|
+
color: $expansion-panel-color;
|
48
|
+
text-align: inherit;
|
49
|
+
width: 100%;
|
50
|
+
|
51
|
+
// active, focus, hover
|
52
|
+
@include active-focus-hover {
|
53
|
+
background-color: $expansion-panel-bg-active;
|
54
|
+
color: $expansion-panel-color;
|
55
|
+
|
56
|
+
@if ($link-decoration-active != "none") {
|
57
|
+
text-decoration: none;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&:focus {
|
62
|
+
outline: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
// disabled
|
66
|
+
&.disabled {
|
67
|
+
background-color: $expansion-panel-bg-disabled;
|
68
|
+
color: $expansion-panel-color-disabled;
|
69
|
+
cursor: $cursor-disabled;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
// colour
|
74
|
+
@each $color in $palettes {
|
75
|
+
$i: index($palettes, $color);
|
76
|
+
|
77
|
+
.expansion-panel-item-#{$color},
|
78
|
+
.list-group-item-#{$color} {
|
79
|
+
background-color: nth($palettes-color, $i);
|
80
|
+
color: nth($palettes-text-color, $i);
|
81
|
+
|
82
|
+
// active, focus, hover
|
83
|
+
&.active {
|
84
|
+
background-color: nth($palettes-color-dark, $i);
|
85
|
+
color: nth($palettes-text-color-dark, $i);
|
86
|
+
}
|
87
|
+
|
88
|
+
&.expansion-panel-item-action,
|
89
|
+
&.list-group-item-action {
|
90
|
+
// active, focus, hover
|
91
|
+
@include active-focus-hover {
|
92
|
+
background-color: nth($palettes-color-dark, $i);
|
93
|
+
color: nth($palettes-text-color-dark, $i);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
//
|
100
|
+
// expansion
|
101
|
+
//
|
102
|
+
.expansion-panel-collapse {
|
103
|
+
background-color: $expansion-panel-bg;
|
104
|
+
box-shadow: map-get($expansion-panel-elevation-shadow, shadow);
|
105
|
+
position: relative;
|
106
|
+
@include border-bottom-radius($border-radius);
|
107
|
+
|
108
|
+
&.collapsing,
|
109
|
+
&.in {
|
110
|
+
margin-bottom: $expansion-panel-margin-between;
|
111
|
+
|
112
|
+
+ .expansion-panel-item,
|
113
|
+
+ .list-group-item {
|
114
|
+
border-top-color: transparent;
|
115
|
+
@include border-top-radius($border-radius);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
&.collapsing {
|
120
|
+
transition-property: height, margin-bottom;
|
121
|
+
}
|
122
|
+
|
123
|
+
.collapsed + & {
|
124
|
+
&.collapsing {
|
125
|
+
margin-bottom: 0;
|
126
|
+
|
127
|
+
+ .expansion-panel-item,
|
128
|
+
+ .list-group-item {
|
129
|
+
border-top-color: $expansion-panel-border-color;
|
130
|
+
border-top-left-radius: 0;
|
131
|
+
border-top-right-radius: 0;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
}
|
137
|
+
|
138
|
+
.expansion-panel-collapse-body {
|
139
|
+
padding: $expansion-panel-body-spacer-y $expansion-panel-spacer-x;
|
140
|
+
|
141
|
+
> :last-child {
|
142
|
+
margin-bottom: 0;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
.expansion-panel-collapse-footer {
|
147
|
+
border-top: $expansion-panel-border-width solid $expansion-panel-border-color;
|
148
|
+
padding: $expansion-panel-footer-spacer-y $expansion-panel-footer-spacer-x;
|
149
|
+
padding-left: $expansion-panel-spacer-y;
|
150
|
+
text-align: right;
|
151
|
+
|
152
|
+
.btn {
|
153
|
+
min-width: 0;
|
154
|
+
|
155
|
+
+ .btn {
|
156
|
+
margin-left: $expansion-panel-footer-spacer-x;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
.expansion-panel-item,
|
162
|
+
.list-group-item {
|
163
|
+
&[data-toggle="collapse"] {
|
164
|
+
border-top-color: transparent;
|
165
|
+
cursor: pointer;
|
166
|
+
margin-top: $expansion-panel-margin-between;
|
167
|
+
transition-property: background-color, border-radius, border-top-color, color, margin-top;
|
168
|
+
@include border-top-radius($border-radius);
|
169
|
+
|
170
|
+
&::before {
|
171
|
+
background-color: inherit;
|
172
|
+
content: "";
|
173
|
+
display: block;
|
174
|
+
height: 2px;
|
175
|
+
position: absolute;
|
176
|
+
right: 0;
|
177
|
+
bottom: 0;
|
178
|
+
left: 0;
|
179
|
+
z-index: 1;
|
180
|
+
}
|
181
|
+
|
182
|
+
&:first-child {
|
183
|
+
margin-top: 0;
|
184
|
+
}
|
185
|
+
|
186
|
+
// active, focus, hover
|
187
|
+
@include active-focus-hover {
|
188
|
+
background-color: $expansion-panel-bg-active;
|
189
|
+
color: $expansion-panel-color;
|
190
|
+
|
191
|
+
@if ($link-decoration-active != "none") {
|
192
|
+
text-decoration: none;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
&:focus {
|
197
|
+
outline: 0;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
&[data-toggle="collapse"].collapsed {
|
202
|
+
border-radius: 0;
|
203
|
+
border-top-color: $expansion-panel-border-color;
|
204
|
+
margin-top: 0;
|
205
|
+
|
206
|
+
&::before {
|
207
|
+
display: none;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
&[data-toggle="collapse"].disabled {
|
212
|
+
background-color: $expansion-panel-bg-disabled;
|
213
|
+
color: $expansion-panel-color-disabled;
|
214
|
+
cursor: $cursor-disabled;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
// colour
|
219
|
+
@each $color in $palettes {
|
220
|
+
$i: index($palettes, $color);
|
221
|
+
|
222
|
+
.expansion-panel-item-#{$color},
|
223
|
+
.list-group-item-#{$color} {
|
224
|
+
&[data-toggle="collapse"] {
|
225
|
+
// active, focus, hover
|
226
|
+
@include active-focus-hover {
|
227
|
+
background-color: nth($palettes-color-dark, $i);
|
228
|
+
color: nth($palettes-text-color-dark, $i);
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
//
|
235
|
+
// misc
|
236
|
+
//
|
237
|
+
.expansion-panel-item-heading,
|
238
|
+
.list-group-item-heading {
|
239
|
+
color: inherit;
|
240
|
+
font-size: $expansion-panel-font-size;
|
241
|
+
line-height: $line-height-base;
|
242
|
+
margin-top: 0;
|
243
|
+
margin-bottom: 0;
|
244
|
+
}
|
245
|
+
|
246
|
+
.expansion-panel-item-icon {
|
247
|
+
color: $expansion-panel-icon-color;
|
248
|
+
font-size: $font-size-base;
|
249
|
+
line-height: $material-icon-size;
|
250
|
+
height: $material-icon-size;
|
251
|
+
margin-top: ($material-icon-size / -2);
|
252
|
+
position: absolute;
|
253
|
+
top: ($expansion-panel-height / 2);
|
254
|
+
right: $expansion-panel-spacer-x;
|
255
|
+
width: $material-icon-size;
|
256
|
+
@include transition-standard(color);
|
257
|
+
}
|
258
|
+
|
259
|
+
// active, focus, hover
|
260
|
+
.expansion-panel-item,
|
261
|
+
.list-group-item {
|
262
|
+
&[data-toggle="collapse"] {
|
263
|
+
@include active-focus-hover {
|
264
|
+
.expansion-panel-item-icon {
|
265
|
+
color: $expansion-panel-icon-color-active;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
// variation
|
272
|
+
.expansion-panel-item-icon-rotate {
|
273
|
+
transition-property: color, transform;
|
274
|
+
|
275
|
+
.expansion-panel-item[data-toggle="collapse"] &,
|
276
|
+
.list-group-item[data-toggle="collapse"] & {
|
277
|
+
transform: rotate(180deg);
|
278
|
+
}
|
279
|
+
|
280
|
+
.expansion-panel-item.collapsed[data-toggle="collapse"] &,
|
281
|
+
.list-group-item.collapsed[data-toggle="collapse"] & {
|
282
|
+
transform: rotate(0);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
.expansion-panel-item-text,
|
287
|
+
.list-group-item-text {
|
288
|
+
color: inherit;
|
289
|
+
font-size: $expansion-panel-font-size-secondary;
|
290
|
+
line-height: $line-height-base;
|
291
|
+
margin-bottom: 0;
|
292
|
+
}
|