materialize-sass 0.97.0 → 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitattributes +1 -0
- data/.gitignore +3 -0
- data/README.md +48 -10
- data/Rakefile +129 -1
- data/assets/javascripts/materialize/anime.min.js +417 -0
- data/assets/javascripts/materialize/autocomplete.js +504 -0
- data/assets/javascripts/materialize/buttons.js +409 -0
- data/assets/javascripts/materialize/cards.js +34 -0
- data/assets/javascripts/materialize/carousel.js +797 -0
- data/assets/javascripts/materialize/cash.js +990 -0
- data/assets/javascripts/materialize/characterCounter.js +180 -0
- data/assets/javascripts/materialize/chips.js +564 -0
- data/assets/javascripts/materialize/collapsible.js +337 -0
- data/assets/javascripts/materialize/component.js +57 -0
- data/assets/javascripts/materialize/datepicker.js +935 -0
- data/assets/javascripts/materialize/dropdown.js +659 -0
- data/assets/javascripts/materialize/extras/nouislider.js +2147 -0
- data/assets/javascripts/materialize/extras/nouislider.min.js +1 -0
- data/assets/javascripts/materialize/forms.js +244 -0
- data/assets/javascripts/materialize/global.js +408 -0
- data/assets/javascripts/materialize/materialbox.js +513 -0
- data/assets/javascripts/materialize/modal.js +449 -0
- data/assets/javascripts/materialize/parallax.js +173 -0
- data/assets/javascripts/materialize/pushpin.js +179 -0
- data/assets/javascripts/materialize/range.js +310 -0
- data/assets/javascripts/materialize/scrollspy.js +328 -0
- data/assets/javascripts/materialize/select.js +497 -0
- data/assets/javascripts/materialize/sidenav.js +655 -0
- data/assets/javascripts/materialize/slider.js +424 -0
- data/assets/javascripts/materialize/tabs.js +476 -0
- data/assets/javascripts/materialize/tapTarget.js +364 -0
- data/assets/javascripts/materialize/timepicker.js +647 -0
- data/assets/javascripts/materialize/toasts.js +355 -0
- data/assets/javascripts/materialize/tooltip.js +351 -0
- data/{app/assets → assets}/javascripts/materialize/waves.js +42 -47
- data/assets/javascripts/materialize-sprockets.js +29 -0
- data/assets/javascripts/materialize.js +12374 -0
- data/assets/stylesheets/materialize/components/_badges.scss +55 -0
- data/assets/stylesheets/materialize/components/_buttons.scss +322 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_cards.scss +72 -29
- data/assets/stylesheets/materialize/components/_carousel.scss +90 -0
- data/assets/stylesheets/materialize/components/_chips.scss +90 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_collapsible.scss +23 -17
- data/assets/stylesheets/materialize/components/_color-classes.scss +32 -0
- data/{app/assets/stylesheets/materialize/components/_color.scss → assets/stylesheets/materialize/components/_color-variables.scss} +22 -64
- data/assets/stylesheets/materialize/components/_datepicker.scss +191 -0
- data/assets/stylesheets/materialize/components/_dropdown.scss +85 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_global.scss +197 -144
- data/{app/assets → assets}/stylesheets/materialize/components/_grid.scss +57 -18
- data/assets/stylesheets/materialize/components/_icons-material-design.scss +5 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_materialbox.scss +15 -13
- data/{app/assets → assets}/stylesheets/materialize/components/_modal.scss +18 -14
- data/{app/assets → assets}/stylesheets/materialize/components/_navbar.scss +89 -25
- data/assets/stylesheets/materialize/components/_normalize.scss +447 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_preloader.scss +5 -3
- data/assets/stylesheets/materialize/components/_pulse.scss +34 -0
- data/assets/stylesheets/materialize/components/_sidenav.scss +208 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_slider.scss +2 -2
- data/{app/assets → assets}/stylesheets/materialize/components/_table_of_contents.scss +5 -5
- data/assets/stylesheets/materialize/components/_tabs.scss +99 -0
- data/assets/stylesheets/materialize/components/_tapTarget.scss +103 -0
- data/assets/stylesheets/materialize/components/_timepicker.scss +183 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_toast.scss +17 -22
- data/assets/stylesheets/materialize/components/_tooltip.scss +32 -0
- data/assets/stylesheets/materialize/components/_transitions.scss +13 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_typography.scss +11 -9
- data/assets/stylesheets/materialize/components/_variables.scss +349 -0
- data/assets/stylesheets/materialize/components/_waves.scss +114 -0
- data/assets/stylesheets/materialize/components/forms/_checkboxes.scss +200 -0
- data/assets/stylesheets/materialize/components/forms/_file-input.scss +44 -0
- data/assets/stylesheets/materialize/components/forms/_forms.scss +22 -0
- data/assets/stylesheets/materialize/components/forms/_input-fields.scss +354 -0
- data/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +115 -0
- data/assets/stylesheets/materialize/components/forms/_range.scss +161 -0
- data/assets/stylesheets/materialize/components/forms/_select.scss +190 -0
- data/assets/stylesheets/materialize/components/forms/_switches.scss +89 -0
- data/assets/stylesheets/materialize/extras/nouislider.css +406 -0
- data/{app/assets → assets}/stylesheets/materialize.scss +13 -10
- data/lib/materialize-sass/engine.rb +11 -6
- data/lib/materialize-sass/helpers.rb +38 -0
- data/lib/materialize-sass/version.rb +1 -1
- data/lib/materialize-sass.rb +13 -28
- data/materialize-sass.gemspec +5 -5
- metadata +97 -105
- data/app/assets/fonts/material-design-icons/LICENSE.txt +0 -428
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +0 -769
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +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.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.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.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.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/materialize/animation.js +0 -9
- data/app/assets/javascripts/materialize/buttons.js +0 -61
- data/app/assets/javascripts/materialize/cards.js +0 -27
- data/app/assets/javascripts/materialize/character_counter.js +0 -59
- data/app/assets/javascripts/materialize/collapsible.js +0 -139
- data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -1430
- data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1123
- data/app/assets/javascripts/materialize/dropdown.js +0 -178
- data/app/assets/javascripts/materialize/forms.js +0 -456
- data/app/assets/javascripts/materialize/global.js +0 -36
- data/app/assets/javascripts/materialize/hammer.min.js +0 -1
- data/app/assets/javascripts/materialize/init.js +0 -136
- data/app/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
- data/app/assets/javascripts/materialize/jquery.hammer.js +0 -33
- data/app/assets/javascripts/materialize/jquery.timeago.min.js +0 -1
- data/app/assets/javascripts/materialize/leanModal.js +0 -178
- data/app/assets/javascripts/materialize/materialbox.js +0 -249
- data/app/assets/javascripts/materialize/parallax.js +0 -58
- data/app/assets/javascripts/materialize/prism.js +0 -8
- data/app/assets/javascripts/materialize/pushpin.js +0 -62
- data/app/assets/javascripts/materialize/scrollFire.js +0 -44
- data/app/assets/javascripts/materialize/scrollspy.js +0 -284
- data/app/assets/javascripts/materialize/sideNav.js +0 -312
- data/app/assets/javascripts/materialize/slider.js +0 -301
- data/app/assets/javascripts/materialize/tabs.js +0 -136
- data/app/assets/javascripts/materialize/toasts.js +0 -125
- data/app/assets/javascripts/materialize/tooltip.js +0 -166
- data/app/assets/javascripts/materialize/transitions.js +0 -154
- data/app/assets/javascripts/materialize/velocity.min.js +0 -4
- data/app/assets/javascripts/materialize-sprockets.js +0 -27
- data/app/assets/javascripts/materialize.js +0 -6159
- data/app/assets/stylesheets/materialize/components/_buttons.scss +0 -157
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +0 -40
- data/app/assets/stylesheets/materialize/components/_form.scss +0 -886
- data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +0 -3257
- data/app/assets/stylesheets/materialize/components/_mixins.scss +0 -5
- data/app/assets/stylesheets/materialize/components/_normalize.scss +0 -427
- data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -376
- data/app/assets/stylesheets/materialize/components/_roboto.scss +0 -38
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +0 -111
- data/app/assets/stylesheets/materialize/components/_tabs.scss +0 -47
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +0 -34
- data/app/assets/stylesheets/materialize/components/_variables.scss +0 -152
- data/app/assets/stylesheets/materialize/components/_waves.scss +0 -167
- data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -435
- data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -201
- data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -125
@@ -0,0 +1,90 @@
|
|
1
|
+
.chip {
|
2
|
+
&:focus {
|
3
|
+
outline: none;
|
4
|
+
background-color: $chip-selected-color;
|
5
|
+
color: #fff;
|
6
|
+
}
|
7
|
+
|
8
|
+
display: inline-block;
|
9
|
+
height: 32px;
|
10
|
+
font-size: 13px;
|
11
|
+
font-weight: 500;
|
12
|
+
color: rgba(0,0,0,.6);
|
13
|
+
line-height: 32px;
|
14
|
+
padding: 0 12px;
|
15
|
+
border-radius: 16px;
|
16
|
+
background-color: $chip-bg-color;
|
17
|
+
margin-bottom: $chip-margin;
|
18
|
+
margin-right: $chip-margin;
|
19
|
+
|
20
|
+
> img {
|
21
|
+
float: left;
|
22
|
+
margin: 0 8px 0 -12px;
|
23
|
+
height: 32px;
|
24
|
+
width: 32px;
|
25
|
+
border-radius: 50%;
|
26
|
+
}
|
27
|
+
|
28
|
+
.close {
|
29
|
+
cursor: pointer;
|
30
|
+
float: right;
|
31
|
+
font-size: 16px;
|
32
|
+
line-height: 32px;
|
33
|
+
padding-left: 8px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.chips {
|
38
|
+
border: none;
|
39
|
+
border-bottom: 1px solid $chip-border-color;
|
40
|
+
box-shadow: none;
|
41
|
+
margin: $input-margin;
|
42
|
+
min-height: 45px;
|
43
|
+
outline: none;
|
44
|
+
transition: all .3s;
|
45
|
+
|
46
|
+
&.focus {
|
47
|
+
border-bottom: 1px solid $chip-selected-color;
|
48
|
+
box-shadow: 0 1px 0 0 $chip-selected-color;
|
49
|
+
}
|
50
|
+
|
51
|
+
&:hover {
|
52
|
+
cursor: text;
|
53
|
+
}
|
54
|
+
|
55
|
+
.input {
|
56
|
+
background: none;
|
57
|
+
border: 0;
|
58
|
+
color: rgba(0,0,0,.6);
|
59
|
+
display: inline-block;
|
60
|
+
font-size: $input-font-size;
|
61
|
+
height: $input-height;
|
62
|
+
line-height: 32px;
|
63
|
+
outline: 0;
|
64
|
+
margin: 0;
|
65
|
+
padding: 0 !important;
|
66
|
+
width: 120px !important;
|
67
|
+
}
|
68
|
+
|
69
|
+
.input:focus {
|
70
|
+
border: 0 !important;
|
71
|
+
box-shadow: none !important;
|
72
|
+
}
|
73
|
+
|
74
|
+
// Autocomplete
|
75
|
+
.autocomplete-content {
|
76
|
+
margin-top: 0;
|
77
|
+
margin-bottom: 0;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
// Form prefix
|
82
|
+
.prefix ~ .chips {
|
83
|
+
margin-left: 3rem;
|
84
|
+
width: 92%;
|
85
|
+
width: calc(100% - 3rem);
|
86
|
+
}
|
87
|
+
.chips:empty ~ label {
|
88
|
+
font-size: 0.8rem;
|
89
|
+
transform: translateY(-140%);
|
90
|
+
}
|
@@ -7,38 +7,40 @@
|
|
7
7
|
}
|
8
8
|
|
9
9
|
.collapsible-header {
|
10
|
-
|
10
|
+
&:focus {
|
11
|
+
outline: 0
|
12
|
+
}
|
13
|
+
|
14
|
+
display: flex;
|
11
15
|
cursor: pointer;
|
12
|
-
|
13
|
-
line-height:
|
14
|
-
padding:
|
16
|
+
-webkit-tap-highlight-color: transparent;
|
17
|
+
line-height: 1.5;
|
18
|
+
padding: 1rem;
|
15
19
|
background-color: $collapsible-header-color;
|
16
20
|
border-bottom: 1px solid $collapsible-border-color;
|
17
21
|
|
18
22
|
i {
|
19
23
|
width: 2rem;
|
20
24
|
font-size: 1.6rem;
|
21
|
-
|
22
|
-
display: block;
|
23
|
-
float: left;
|
25
|
+
display: inline-block;
|
24
26
|
text-align: center;
|
25
27
|
margin-right: 1rem;
|
26
28
|
}
|
27
29
|
}
|
30
|
+
.keyboard-focused .collapsible-header:focus {
|
31
|
+
background-color: #eee;
|
32
|
+
}
|
28
33
|
|
29
34
|
.collapsible-body {
|
30
35
|
display: none;
|
31
36
|
border-bottom: 1px solid $collapsible-border-color;
|
32
|
-
|
33
|
-
|
34
|
-
p {
|
35
|
-
margin: 0;
|
36
|
-
padding: 2rem;
|
37
|
-
}
|
37
|
+
box-sizing: border-box;
|
38
|
+
padding: 2rem;
|
38
39
|
}
|
39
40
|
|
40
|
-
//
|
41
|
-
.
|
41
|
+
// Sidenav collapsible styling
|
42
|
+
.sidenav,
|
43
|
+
.sidenav.sidenav-fixed {
|
42
44
|
|
43
45
|
.collapsible {
|
44
46
|
border: none;
|
@@ -52,8 +54,9 @@
|
|
52
54
|
border: none;
|
53
55
|
line-height: inherit;
|
54
56
|
height: inherit;
|
55
|
-
|
57
|
+
padding: 0 $sidenav-padding;
|
56
58
|
|
59
|
+
&:hover { background-color: rgba(0,0,0,.05); }
|
57
60
|
i { line-height: inherit; }
|
58
61
|
}
|
59
62
|
|
@@ -61,7 +64,10 @@
|
|
61
64
|
border: 0;
|
62
65
|
background-color: $collapsible-header-color;
|
63
66
|
|
64
|
-
li a {
|
67
|
+
li a {
|
68
|
+
padding: 0 (7.5px + $sidenav-padding)
|
69
|
+
0 (15px + $sidenav-padding);
|
70
|
+
}
|
65
71
|
}
|
66
72
|
|
67
73
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// Color Classes
|
2
|
+
|
3
|
+
@each $color_name, $color in $colors {
|
4
|
+
@each $color_type, $color_value in $color {
|
5
|
+
@if $color_type == "base" {
|
6
|
+
.#{$color_name} {
|
7
|
+
background-color: $color_value !important;
|
8
|
+
}
|
9
|
+
.#{$color_name}-text {
|
10
|
+
color: $color_value !important;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@else if $color_name != "shades" {
|
14
|
+
.#{$color_name}.#{$color_type} {
|
15
|
+
background-color: $color_value !important;
|
16
|
+
}
|
17
|
+
.#{$color_name}-text.text-#{$color_type} {
|
18
|
+
color: $color_value !important;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Shade classes
|
25
|
+
@each $color, $color_value in $shades {
|
26
|
+
.#{$color} {
|
27
|
+
background-color: $color_value !important;
|
28
|
+
}
|
29
|
+
.#{$color}-text {
|
30
|
+
color: $color_value !important;
|
31
|
+
}
|
32
|
+
}
|
@@ -1,19 +1,12 @@
|
|
1
|
-
// Utility Color Classes
|
2
|
-
|
3
|
-
//.success {
|
4
|
-
//
|
5
|
-
//}
|
6
|
-
|
7
1
|
// Google Color Palette defined: http://www.google.com/design/spec/style/color.html
|
8
2
|
|
9
|
-
|
10
3
|
$materialize-red: (
|
4
|
+
"base": #e51c23,
|
11
5
|
"lighten-5": #fdeaeb,
|
12
6
|
"lighten-4": #f8c1c3,
|
13
7
|
"lighten-3": #f3989b,
|
14
8
|
"lighten-2": #ee6e73,
|
15
9
|
"lighten-1": #ea454b,
|
16
|
-
"base": #e51c23,
|
17
10
|
"darken-1": #d0181e,
|
18
11
|
"darken-2": #b9151b,
|
19
12
|
"darken-3": #a21318,
|
@@ -21,12 +14,12 @@ $materialize-red: (
|
|
21
14
|
);
|
22
15
|
|
23
16
|
$red: (
|
17
|
+
"base": #F44336,
|
24
18
|
"lighten-5": #FFEBEE,
|
25
19
|
"lighten-4": #FFCDD2,
|
26
20
|
"lighten-3": #EF9A9A,
|
27
21
|
"lighten-2": #E57373,
|
28
22
|
"lighten-1": #EF5350,
|
29
|
-
"base": #F44336,
|
30
23
|
"darken-1": #E53935,
|
31
24
|
"darken-2": #D32F2F,
|
32
25
|
"darken-3": #C62828,
|
@@ -38,12 +31,12 @@ $red: (
|
|
38
31
|
);
|
39
32
|
|
40
33
|
$pink: (
|
34
|
+
"base": #e91e63,
|
41
35
|
"lighten-5": #fce4ec,
|
42
36
|
"lighten-4": #f8bbd0,
|
43
37
|
"lighten-3": #f48fb1,
|
44
38
|
"lighten-2": #f06292,
|
45
39
|
"lighten-1": #ec407a,
|
46
|
-
"base": #e91e63,
|
47
40
|
"darken-1": #d81b60,
|
48
41
|
"darken-2": #c2185b,
|
49
42
|
"darken-3": #ad1457,
|
@@ -55,12 +48,12 @@ $pink: (
|
|
55
48
|
);
|
56
49
|
|
57
50
|
$purple: (
|
51
|
+
"base": #9c27b0,
|
58
52
|
"lighten-5": #f3e5f5,
|
59
53
|
"lighten-4": #e1bee7,
|
60
54
|
"lighten-3": #ce93d8,
|
61
55
|
"lighten-2": #ba68c8,
|
62
56
|
"lighten-1": #ab47bc,
|
63
|
-
"base": #9c27b0,
|
64
57
|
"darken-1": #8e24aa,
|
65
58
|
"darken-2": #7b1fa2,
|
66
59
|
"darken-3": #6a1b9a,
|
@@ -72,12 +65,12 @@ $purple: (
|
|
72
65
|
);
|
73
66
|
|
74
67
|
$deep-purple: (
|
68
|
+
"base": #673ab7,
|
75
69
|
"lighten-5": #ede7f6,
|
76
70
|
"lighten-4": #d1c4e9,
|
77
71
|
"lighten-3": #b39ddb,
|
78
72
|
"lighten-2": #9575cd,
|
79
73
|
"lighten-1": #7e57c2,
|
80
|
-
"base": #673ab7,
|
81
74
|
"darken-1": #5e35b1,
|
82
75
|
"darken-2": #512da8,
|
83
76
|
"darken-3": #4527a0,
|
@@ -89,12 +82,12 @@ $deep-purple: (
|
|
89
82
|
);
|
90
83
|
|
91
84
|
$indigo: (
|
85
|
+
"base": #3f51b5,
|
92
86
|
"lighten-5": #e8eaf6,
|
93
87
|
"lighten-4": #c5cae9,
|
94
88
|
"lighten-3": #9fa8da,
|
95
89
|
"lighten-2": #7986cb,
|
96
90
|
"lighten-1": #5c6bc0,
|
97
|
-
"base": #3f51b5,
|
98
91
|
"darken-1": #3949ab,
|
99
92
|
"darken-2": #303f9f,
|
100
93
|
"darken-3": #283593,
|
@@ -106,12 +99,12 @@ $indigo: (
|
|
106
99
|
);
|
107
100
|
|
108
101
|
$blue: (
|
102
|
+
"base": #2196F3,
|
109
103
|
"lighten-5": #E3F2FD,
|
110
104
|
"lighten-4": #BBDEFB,
|
111
105
|
"lighten-3": #90CAF9,
|
112
106
|
"lighten-2": #64B5F6,
|
113
107
|
"lighten-1": #42A5F5,
|
114
|
-
"base": #2196F3,
|
115
108
|
"darken-1": #1E88E5,
|
116
109
|
"darken-2": #1976D2,
|
117
110
|
"darken-3": #1565C0,
|
@@ -123,12 +116,12 @@ $blue: (
|
|
123
116
|
);
|
124
117
|
|
125
118
|
$light-blue: (
|
119
|
+
"base": #03a9f4,
|
126
120
|
"lighten-5": #e1f5fe,
|
127
121
|
"lighten-4": #b3e5fc,
|
128
122
|
"lighten-3": #81d4fa,
|
129
123
|
"lighten-2": #4fc3f7,
|
130
124
|
"lighten-1": #29b6f6,
|
131
|
-
"base": #03a9f4,
|
132
125
|
"darken-1": #039be5,
|
133
126
|
"darken-2": #0288d1,
|
134
127
|
"darken-3": #0277bd,
|
@@ -140,12 +133,12 @@ $light-blue: (
|
|
140
133
|
);
|
141
134
|
|
142
135
|
$cyan: (
|
136
|
+
"base": #00bcd4,
|
143
137
|
"lighten-5": #e0f7fa,
|
144
138
|
"lighten-4": #b2ebf2,
|
145
139
|
"lighten-3": #80deea,
|
146
140
|
"lighten-2": #4dd0e1,
|
147
141
|
"lighten-1": #26c6da,
|
148
|
-
"base": #00bcd4,
|
149
142
|
"darken-1": #00acc1,
|
150
143
|
"darken-2": #0097a7,
|
151
144
|
"darken-3": #00838f,
|
@@ -157,12 +150,12 @@ $cyan: (
|
|
157
150
|
);
|
158
151
|
|
159
152
|
$teal: (
|
153
|
+
"base": #009688,
|
160
154
|
"lighten-5": #e0f2f1,
|
161
155
|
"lighten-4": #b2dfdb,
|
162
156
|
"lighten-3": #80cbc4,
|
163
157
|
"lighten-2": #4db6ac,
|
164
158
|
"lighten-1": #26a69a,
|
165
|
-
"base": #009688,
|
166
159
|
"darken-1": #00897b,
|
167
160
|
"darken-2": #00796b,
|
168
161
|
"darken-3": #00695c,
|
@@ -174,12 +167,12 @@ $teal: (
|
|
174
167
|
);
|
175
168
|
|
176
169
|
$green: (
|
170
|
+
"base": #4CAF50,
|
177
171
|
"lighten-5": #E8F5E9,
|
178
172
|
"lighten-4": #C8E6C9,
|
179
173
|
"lighten-3": #A5D6A7,
|
180
174
|
"lighten-2": #81C784,
|
181
175
|
"lighten-1": #66BB6A,
|
182
|
-
"base": #4CAF50,
|
183
176
|
"darken-1": #43A047,
|
184
177
|
"darken-2": #388E3C,
|
185
178
|
"darken-3": #2E7D32,
|
@@ -191,12 +184,12 @@ $green: (
|
|
191
184
|
);
|
192
185
|
|
193
186
|
$light-green: (
|
187
|
+
"base": #8bc34a,
|
194
188
|
"lighten-5": #f1f8e9,
|
195
189
|
"lighten-4": #dcedc8,
|
196
190
|
"lighten-3": #c5e1a5,
|
197
191
|
"lighten-2": #aed581,
|
198
192
|
"lighten-1": #9ccc65,
|
199
|
-
"base": #8bc34a,
|
200
193
|
"darken-1": #7cb342,
|
201
194
|
"darken-2": #689f38,
|
202
195
|
"darken-3": #558b2f,
|
@@ -208,12 +201,12 @@ $light-green: (
|
|
208
201
|
);
|
209
202
|
|
210
203
|
$lime: (
|
204
|
+
"base": #cddc39,
|
211
205
|
"lighten-5": #f9fbe7,
|
212
206
|
"lighten-4": #f0f4c3,
|
213
207
|
"lighten-3": #e6ee9c,
|
214
208
|
"lighten-2": #dce775,
|
215
209
|
"lighten-1": #d4e157,
|
216
|
-
"base": #cddc39,
|
217
210
|
"darken-1": #c0ca33,
|
218
211
|
"darken-2": #afb42b,
|
219
212
|
"darken-3": #9e9d24,
|
@@ -225,12 +218,12 @@ $lime: (
|
|
225
218
|
);
|
226
219
|
|
227
220
|
$yellow: (
|
221
|
+
"base": #ffeb3b,
|
228
222
|
"lighten-5": #fffde7,
|
229
223
|
"lighten-4": #fff9c4,
|
230
224
|
"lighten-3": #fff59d,
|
231
225
|
"lighten-2": #fff176,
|
232
226
|
"lighten-1": #ffee58,
|
233
|
-
"base": #ffeb3b,
|
234
227
|
"darken-1": #fdd835,
|
235
228
|
"darken-2": #fbc02d,
|
236
229
|
"darken-3": #f9a825,
|
@@ -242,12 +235,12 @@ $yellow: (
|
|
242
235
|
);
|
243
236
|
|
244
237
|
$amber: (
|
238
|
+
"base": #ffc107,
|
245
239
|
"lighten-5": #fff8e1,
|
246
240
|
"lighten-4": #ffecb3,
|
247
241
|
"lighten-3": #ffe082,
|
248
242
|
"lighten-2": #ffd54f,
|
249
243
|
"lighten-1": #ffca28,
|
250
|
-
"base": #ffc107,
|
251
244
|
"darken-1": #ffb300,
|
252
245
|
"darken-2": #ffa000,
|
253
246
|
"darken-3": #ff8f00,
|
@@ -259,12 +252,12 @@ $amber: (
|
|
259
252
|
);
|
260
253
|
|
261
254
|
$orange: (
|
255
|
+
"base": #ff9800,
|
262
256
|
"lighten-5": #fff3e0,
|
263
257
|
"lighten-4": #ffe0b2,
|
264
258
|
"lighten-3": #ffcc80,
|
265
259
|
"lighten-2": #ffb74d,
|
266
260
|
"lighten-1": #ffa726,
|
267
|
-
"base": #ff9800,
|
268
261
|
"darken-1": #fb8c00,
|
269
262
|
"darken-2": #f57c00,
|
270
263
|
"darken-3": #ef6c00,
|
@@ -276,12 +269,12 @@ $orange: (
|
|
276
269
|
);
|
277
270
|
|
278
271
|
$deep-orange: (
|
272
|
+
"base": #ff5722,
|
279
273
|
"lighten-5": #fbe9e7,
|
280
274
|
"lighten-4": #ffccbc,
|
281
275
|
"lighten-3": #ffab91,
|
282
276
|
"lighten-2": #ff8a65,
|
283
277
|
"lighten-1": #ff7043,
|
284
|
-
"base": #ff5722,
|
285
278
|
"darken-1": #f4511e,
|
286
279
|
"darken-2": #e64a19,
|
287
280
|
"darken-3": #d84315,
|
@@ -293,12 +286,12 @@ $deep-orange: (
|
|
293
286
|
);
|
294
287
|
|
295
288
|
$brown: (
|
289
|
+
"base": #795548,
|
296
290
|
"lighten-5": #efebe9,
|
297
291
|
"lighten-4": #d7ccc8,
|
298
292
|
"lighten-3": #bcaaa4,
|
299
293
|
"lighten-2": #a1887f,
|
300
294
|
"lighten-1": #8d6e63,
|
301
|
-
"base": #795548,
|
302
295
|
"darken-1": #6d4c41,
|
303
296
|
"darken-2": #5d4037,
|
304
297
|
"darken-3": #4e342e,
|
@@ -306,12 +299,12 @@ $brown: (
|
|
306
299
|
);
|
307
300
|
|
308
301
|
$blue-grey: (
|
302
|
+
"base": #607d8b,
|
309
303
|
"lighten-5": #eceff1,
|
310
304
|
"lighten-4": #cfd8dc,
|
311
305
|
"lighten-3": #b0bec5,
|
312
306
|
"lighten-2": #90a4ae,
|
313
307
|
"lighten-1": #78909c,
|
314
|
-
"base": #607d8b,
|
315
308
|
"darken-1": #546e7a,
|
316
309
|
"darken-2": #455a64,
|
317
310
|
"darken-3": #37474f,
|
@@ -319,12 +312,12 @@ $blue-grey: (
|
|
319
312
|
);
|
320
313
|
|
321
314
|
$grey: (
|
315
|
+
"base": #9e9e9e,
|
322
316
|
"lighten-5": #fafafa,
|
323
317
|
"lighten-4": #f5f5f5,
|
324
318
|
"lighten-3": #eeeeee,
|
325
319
|
"lighten-2": #e0e0e0,
|
326
320
|
"lighten-1": #bdbdbd,
|
327
|
-
"base": #9e9e9e,
|
328
321
|
"darken-1": #757575,
|
329
322
|
"darken-2": #616161,
|
330
323
|
"darken-3": #424242,
|
@@ -359,41 +352,7 @@ $colors: (
|
|
359
352
|
"blue-grey": $blue-grey,
|
360
353
|
"grey": $grey,
|
361
354
|
"shades": $shades
|
362
|
-
);
|
363
|
-
|
364
|
-
|
365
|
-
// Color Classes
|
366
|
-
|
367
|
-
@each $color_name, $color in $colors {
|
368
|
-
@each $color_type, $color_value in $color {
|
369
|
-
@if $color_type == "base" {
|
370
|
-
.#{$color_name} {
|
371
|
-
background-color: $color_value !important;
|
372
|
-
}
|
373
|
-
.#{$color_name}-text {
|
374
|
-
color: $color_value !important;
|
375
|
-
}
|
376
|
-
}
|
377
|
-
@else {
|
378
|
-
.#{$color_name}.#{$color_type} {
|
379
|
-
background-color: $color_value !important;
|
380
|
-
}
|
381
|
-
.#{$color_name}-text.text-#{$color_type} {
|
382
|
-
color: $color_value !important;
|
383
|
-
}
|
384
|
-
}
|
385
|
-
}
|
386
|
-
}
|
387
|
-
|
388
|
-
// Shade classes
|
389
|
-
@each $color, $color_value in $shades {
|
390
|
-
.#{$color} {
|
391
|
-
background-color: $color_value !important;
|
392
|
-
}
|
393
|
-
.#{$color}-text {
|
394
|
-
color: $color_value !important;
|
395
|
-
}
|
396
|
-
}
|
355
|
+
) !default;
|
397
356
|
|
398
357
|
|
399
358
|
// usage: color("name_of_color", "type_of_color")
|
@@ -406,7 +365,6 @@ $colors: (
|
|
406
365
|
@return map-get($curr_color, $type);
|
407
366
|
}
|
408
367
|
}
|
409
|
-
@warn "Unknown `#{$color}
|
368
|
+
@warn "Unknown `#{$color}` - `#{$type}` in $colors.";
|
410
369
|
@return null;
|
411
370
|
}
|
412
|
-
|
@@ -0,0 +1,191 @@
|
|
1
|
+
/* Modal */
|
2
|
+
.datepicker-modal {
|
3
|
+
max-width: 325px;
|
4
|
+
min-width: 300px;
|
5
|
+
max-height: none;
|
6
|
+
}
|
7
|
+
|
8
|
+
.datepicker-container.modal-content {
|
9
|
+
display: flex;
|
10
|
+
flex-direction: column;
|
11
|
+
padding: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.datepicker-controls {
|
15
|
+
display: flex;
|
16
|
+
justify-content: space-between;
|
17
|
+
width: 280px;
|
18
|
+
margin: 0 auto;
|
19
|
+
|
20
|
+
.selects-container {
|
21
|
+
display: flex;
|
22
|
+
}
|
23
|
+
|
24
|
+
.select-wrapper {
|
25
|
+
input {
|
26
|
+
&:focus {
|
27
|
+
border-bottom: none;
|
28
|
+
}
|
29
|
+
border-bottom: none;
|
30
|
+
text-align: center;
|
31
|
+
margin: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.caret {
|
35
|
+
display: none;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.select-year input {
|
40
|
+
width: 50px;
|
41
|
+
}
|
42
|
+
|
43
|
+
.select-month input {
|
44
|
+
width: 80px;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.month-prev, .month-next {
|
49
|
+
margin-top: 4px;
|
50
|
+
cursor: pointer;
|
51
|
+
background-color: transparent;
|
52
|
+
border: none;
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
/* Date Display */
|
57
|
+
.datepicker-date-display {
|
58
|
+
flex: 1 auto;
|
59
|
+
background-color: $secondary-color;
|
60
|
+
color: #fff;
|
61
|
+
padding: 20px 22px;
|
62
|
+
font-weight: 500;
|
63
|
+
|
64
|
+
.year-text {
|
65
|
+
display: block;
|
66
|
+
font-size: 1.5rem;
|
67
|
+
line-height: 25px;
|
68
|
+
color: $datepicker-year;
|
69
|
+
}
|
70
|
+
|
71
|
+
.date-text {
|
72
|
+
display: block;
|
73
|
+
font-size: 2.8rem;
|
74
|
+
line-height: 47px;
|
75
|
+
font-weight: 500;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
/* Calendar */
|
81
|
+
.datepicker-calendar-container {
|
82
|
+
flex: 2.5 auto;
|
83
|
+
}
|
84
|
+
|
85
|
+
.datepicker-table {
|
86
|
+
width: 280px;
|
87
|
+
font-size: 1rem;
|
88
|
+
margin: 0 auto;
|
89
|
+
|
90
|
+
thead {
|
91
|
+
border-bottom: none;
|
92
|
+
}
|
93
|
+
|
94
|
+
th {
|
95
|
+
padding: 10px 5px;
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
|
99
|
+
tr {
|
100
|
+
border: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
abbr {
|
104
|
+
text-decoration: none;
|
105
|
+
color: $datepicker-calendar-header-color;
|
106
|
+
}
|
107
|
+
|
108
|
+
td {
|
109
|
+
&.is-today {
|
110
|
+
color: $secondary-color;
|
111
|
+
}
|
112
|
+
|
113
|
+
&.is-selected {
|
114
|
+
background-color: $secondary-color;
|
115
|
+
color: #fff;
|
116
|
+
}
|
117
|
+
|
118
|
+
&.is-outside-current-month,
|
119
|
+
&.is-disabled {
|
120
|
+
color: $datepicker-disabled-day-color;
|
121
|
+
pointer-events: none;
|
122
|
+
}
|
123
|
+
|
124
|
+
border-radius: 50%;
|
125
|
+
padding: 0;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
.datepicker-day-button {
|
130
|
+
&:focus {
|
131
|
+
background-color: $datepicker-day-focus;
|
132
|
+
}
|
133
|
+
|
134
|
+
background-color: transparent;
|
135
|
+
border: none;
|
136
|
+
line-height: 38px;
|
137
|
+
display: block;
|
138
|
+
width: 100%;
|
139
|
+
border-radius: 50%;
|
140
|
+
padding: 0 5px;
|
141
|
+
cursor: pointer;
|
142
|
+
color: inherit;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/* Footer */
|
147
|
+
.datepicker-footer {
|
148
|
+
width: 280px;
|
149
|
+
margin: 0 auto;
|
150
|
+
padding-bottom: 5px;
|
151
|
+
display: flex;
|
152
|
+
justify-content: space-between;
|
153
|
+
}
|
154
|
+
|
155
|
+
.datepicker-cancel,
|
156
|
+
.datepicker-clear,
|
157
|
+
.datepicker-today,
|
158
|
+
.datepicker-done {
|
159
|
+
color: $secondary-color;
|
160
|
+
padding: 0 1rem;
|
161
|
+
}
|
162
|
+
|
163
|
+
.datepicker-clear {
|
164
|
+
color: $error-color;
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
/* Media Queries */
|
169
|
+
@media #{$medium-and-up} {
|
170
|
+
.datepicker-modal {
|
171
|
+
max-width: 625px;
|
172
|
+
}
|
173
|
+
|
174
|
+
.datepicker-container.modal-content {
|
175
|
+
flex-direction: row;
|
176
|
+
}
|
177
|
+
|
178
|
+
.datepicker-date-display {
|
179
|
+
flex: 0 1 270px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.datepicker-controls,
|
183
|
+
.datepicker-table,
|
184
|
+
.datepicker-footer {
|
185
|
+
width: 320px;
|
186
|
+
}
|
187
|
+
|
188
|
+
.datepicker-day-button {
|
189
|
+
line-height: 44px;
|
190
|
+
}
|
191
|
+
}
|