dae-material 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/material-design-icons/LICENSE.txt +428 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +751 -0
- 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-sprockets.js +27 -0
- data/app/assets/javascripts/materialize.js +6023 -0
- data/app/assets/javascripts/materialize/animation.js +9 -0
- data/app/assets/javascripts/materialize/buttons.js +35 -0
- data/app/assets/javascripts/materialize/cards.js +27 -0
- data/app/assets/javascripts/materialize/character_counter.js +59 -0
- data/app/assets/javascripts/materialize/collapsible.js +139 -0
- data/app/assets/javascripts/materialize/date_picker/picker.date.js +1430 -0
- data/app/assets/javascripts/materialize/date_picker/picker.js +1123 -0
- data/app/assets/javascripts/materialize/dropdown.js +176 -0
- data/app/assets/javascripts/materialize/forms.js +397 -0
- data/app/assets/javascripts/materialize/global.js +31 -0
- data/app/assets/javascripts/materialize/hammer.min.js +1 -0
- data/app/assets/javascripts/materialize/init.js +137 -0
- data/app/assets/javascripts/materialize/jquery.easing.1.3.js +205 -0
- data/app/assets/javascripts/materialize/jquery.hammer.js +33 -0
- data/app/assets/javascripts/materialize/jquery.timeago.min.js +1 -0
- data/app/assets/javascripts/materialize/leanModal.js +139 -0
- data/app/assets/javascripts/materialize/materialbox.js +249 -0
- data/app/assets/javascripts/materialize/parallax.js +58 -0
- data/app/assets/javascripts/materialize/prism.js +8 -0
- data/app/assets/javascripts/materialize/pushpin.js +62 -0
- data/app/assets/javascripts/materialize/scrollFire.js +69 -0
- data/app/assets/javascripts/materialize/scrollspy.js +284 -0
- data/app/assets/javascripts/materialize/sideNav.js +335 -0
- data/app/assets/javascripts/materialize/slider.js +263 -0
- data/app/assets/javascripts/materialize/tabs.js +129 -0
- data/app/assets/javascripts/materialize/toasts.js +121 -0
- data/app/assets/javascripts/materialize/tooltip.js +166 -0
- data/app/assets/javascripts/materialize/transitions.js +145 -0
- data/app/assets/javascripts/materialize/velocity.min.js +4 -0
- data/app/assets/javascripts/materialize/waves.js +338 -0
- data/app/assets/stylesheets/materialize.scss +38 -0
- data/app/assets/stylesheets/materialize/components/_buttons.scss +151 -0
- data/app/assets/stylesheets/materialize/components/_cards.scss +150 -0
- data/app/assets/stylesheets/materialize/components/_collapsible.scss +88 -0
- data/app/assets/stylesheets/materialize/components/_color.scss +412 -0
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +38 -0
- data/app/assets/stylesheets/materialize/components/_form.scss +850 -0
- data/app/assets/stylesheets/materialize/components/_global.scss +682 -0
- data/app/assets/stylesheets/materialize/components/_grid.scss +118 -0
- data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +783 -0
- data/app/assets/stylesheets/materialize/components/_materialbox.scss +41 -0
- data/app/assets/stylesheets/materialize/components/_mixins.scss +5 -0
- data/app/assets/stylesheets/materialize/components/_modal.scss +89 -0
- data/app/assets/stylesheets/materialize/components/_navbar.scss +143 -0
- data/app/assets/stylesheets/materialize/components/_normalize.scss +427 -0
- data/app/assets/stylesheets/materialize/components/_prefixer.scss +376 -0
- data/app/assets/stylesheets/materialize/components/_preloader.scss +332 -0
- data/app/assets/stylesheets/materialize/components/_roboto.scss +38 -0
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +111 -0
- data/app/assets/stylesheets/materialize/components/_slider.scss +92 -0
- data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +33 -0
- data/app/assets/stylesheets/materialize/components/_tabs.scss +42 -0
- data/app/assets/stylesheets/materialize/components/_toast.scss +63 -0
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +34 -0
- data/app/assets/stylesheets/materialize/components/_typography.scss +56 -0
- data/app/assets/stylesheets/materialize/components/_variables.scss +143 -0
- data/app/assets/stylesheets/materialize/components/_waves.scss +167 -0
- data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +435 -0
- data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +201 -0
- data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +125 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/dae-material.gemspec +23 -0
- data/lib/dae/material.rb +7 -0
- data/lib/dae/material/version.rb +8 -0
- metadata +166 -0
@@ -0,0 +1,143 @@
|
|
1
|
+
/*** Colors ***/
|
2
|
+
$primary-color: color("materialize-red", "lighten-2") !default;
|
3
|
+
$primary-color-light: lighten($primary-color, 15%) !default;
|
4
|
+
$primary-color-dark: darken($primary-color, 15%) !default;
|
5
|
+
|
6
|
+
$secondary-color: color("teal", "lighten-1") !default;
|
7
|
+
$success-color: color("green", "base") !default;
|
8
|
+
$error-color: color("red", "base") !default;
|
9
|
+
$link-color: color("light-blue", "darken-1") !default;
|
10
|
+
|
11
|
+
/*** Badges ***/
|
12
|
+
$badge-bg-color: $secondary-color !default;
|
13
|
+
|
14
|
+
/*** Buttons ***/
|
15
|
+
$button-bg-color-disabled: #DFDFDF !default;
|
16
|
+
$button-color: $secondary-color !default;
|
17
|
+
$button-color-disabled: #9F9F9F !default;
|
18
|
+
$button-color-flat: #343434 !default;
|
19
|
+
$button-color-raised: #FFF !default;
|
20
|
+
$button-floating-size: 37px !default;
|
21
|
+
$button-height: 36px !default;
|
22
|
+
$button-font-size-shared: 1.3rem !default;
|
23
|
+
$button-line-height: 36px !default;
|
24
|
+
|
25
|
+
|
26
|
+
/*** Cards ***/
|
27
|
+
$card-padding: 20px !default;
|
28
|
+
$card-bg-color: #fff !default;
|
29
|
+
|
30
|
+
/*** Collapsible ***/
|
31
|
+
$collapsible-height: 3rem !default;
|
32
|
+
$collapsible-header-color: #fff !default;
|
33
|
+
$collapsible-border-color: #ddd !default;
|
34
|
+
|
35
|
+
|
36
|
+
/*** Dropdown ***/
|
37
|
+
$dropdown-color: $secondary-color !default;
|
38
|
+
|
39
|
+
/*** Fonts ***/
|
40
|
+
$roboto-font-path: "roboto/" !default;
|
41
|
+
$icons-font-path: "material-design-icons/" !default;
|
42
|
+
|
43
|
+
/*** Forms ***/
|
44
|
+
// Text Inputs + Textarea
|
45
|
+
$input-border-color: color("grey", "base") !default;
|
46
|
+
$input-error-color: $error-color !default;
|
47
|
+
$input-success-color: $success-color !default;
|
48
|
+
$input-focus-color: $secondary-color !default;
|
49
|
+
$label-font-size: .8rem !default;
|
50
|
+
$input-disabled-color: rgba(0,0,0, .26) !default;
|
51
|
+
$input-disabled-solid-color: #BDBDBD !default;
|
52
|
+
|
53
|
+
|
54
|
+
// Radio Buttons
|
55
|
+
$radio-fill-color: $secondary-color !default;
|
56
|
+
$radio-empty-color: #5a5a5a !default;
|
57
|
+
|
58
|
+
// Switches
|
59
|
+
$switch-bg-color: $secondary-color !default;
|
60
|
+
$switch-checked-lever-bg: desaturate(lighten($secondary-color, 25%), 25%) !default;
|
61
|
+
$switch-unchecked-bg: #F1F1F1 !default;
|
62
|
+
$switch-unchecked-lever-bg: #818181 !default;
|
63
|
+
|
64
|
+
// Date Picker
|
65
|
+
$datepicker-weekday-bg: darken($secondary_color, 7%) !default;
|
66
|
+
$datepicker-date-bg: $secondary_color !default;
|
67
|
+
$datepicker-year: rgba(255, 255, 255, .4) !default;
|
68
|
+
$datepicker-focus: rgba(0,0,0, .05) !default;
|
69
|
+
$datepicker-selected: $secondary-color !default;
|
70
|
+
$datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%) !default;
|
71
|
+
|
72
|
+
|
73
|
+
/*** Global ***/
|
74
|
+
// Media Query Ranges
|
75
|
+
$small-screen-up: 601px !default;
|
76
|
+
$medium-screen-up: 993px !default;
|
77
|
+
$large-screen-up: 1201px !default;
|
78
|
+
$small-screen: 600px !default;
|
79
|
+
$medium-screen: 992px !default;
|
80
|
+
$large-screen: 1200px !default;
|
81
|
+
|
82
|
+
$medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
|
83
|
+
$large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
|
84
|
+
$small-and-down: "only screen and (max-width : #{$small-screen})" !default;
|
85
|
+
$medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
|
86
|
+
$medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
|
87
|
+
|
88
|
+
// Grid Variables
|
89
|
+
$num-cols: 12 !default;
|
90
|
+
$gutter-width: 1.5rem !default;
|
91
|
+
$element-top-margin: $gutter-width/3 !default;
|
92
|
+
$element-bottom-margin: ($gutter-width*2)/3 !default;
|
93
|
+
|
94
|
+
/*** Navbar ***/
|
95
|
+
$navbar-height: 64px !default;
|
96
|
+
$navbar-height-mobile: 56px !default;
|
97
|
+
|
98
|
+
|
99
|
+
/*** SideNav ***/
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
/*** Tabs ***/
|
104
|
+
$tabs-underline-color: $primary-color-light !default;
|
105
|
+
$tabs-text-color: $primary-color !default;
|
106
|
+
$tabs-bg-color: #fff !default;
|
107
|
+
|
108
|
+
/*** Tables ***/
|
109
|
+
$table-border-color: #d0d0d0 !default;
|
110
|
+
$table-striped-color: #f2f2f2 !default;
|
111
|
+
|
112
|
+
/*** Toasts ***/
|
113
|
+
$toast-height: 48px !default;
|
114
|
+
$toast-color: #323232 !default;
|
115
|
+
$toast-text-color: #fff !default;
|
116
|
+
|
117
|
+
/*** Typography ***/
|
118
|
+
$off-black: rgba(0, 0, 0, 0.87) !default;
|
119
|
+
// Header Styles
|
120
|
+
$h1-fontsize: 4.2rem !default;
|
121
|
+
$h2-fontsize: 3.56rem !default;
|
122
|
+
$h3-fontsize: 2.92rem !default;
|
123
|
+
$h4-fontsize: 2.28rem !default;
|
124
|
+
$h5-fontsize: 1.64rem !default;
|
125
|
+
$h6-fontsize: 1rem !default;
|
126
|
+
|
127
|
+
// Footer
|
128
|
+
$footer-bg-color: $primary-color !default;
|
129
|
+
|
130
|
+
// Flowtext
|
131
|
+
$range : $large-screen - $small-screen !default;
|
132
|
+
$intervals: 20 !default;
|
133
|
+
$interval-size: $range / $intervals !default;
|
134
|
+
|
135
|
+
/*** Collections ***/
|
136
|
+
$collection-border-color: #e0e0e0 !default;
|
137
|
+
$collection-bg-color: #fff !default;
|
138
|
+
$collection-active-bg-color: $secondary-color !default;
|
139
|
+
$collection-active-color: lighten($secondary-color, 55%) !default;
|
140
|
+
$collection-hover-bg-color: #ddd !default;
|
141
|
+
|
142
|
+
/* Progress Bar */
|
143
|
+
$progress-bar-color: $secondary-color !default;
|
@@ -0,0 +1,167 @@
|
|
1
|
+
|
2
|
+
/*!
|
3
|
+
* Waves v0.6.0
|
4
|
+
* http://fian.my.id/Waves
|
5
|
+
*
|
6
|
+
* Copyright 2014 Alfiana E. Sibuea and other contributors
|
7
|
+
* Released under the MIT license
|
8
|
+
* https://github.com/fians/Waves/blob/master/LICENSE
|
9
|
+
*/
|
10
|
+
|
11
|
+
|
12
|
+
.waves-effect {
|
13
|
+
position: relative;
|
14
|
+
cursor: pointer;
|
15
|
+
display: inline-block;
|
16
|
+
overflow: hidden;
|
17
|
+
-webkit-user-select: none;
|
18
|
+
-moz-user-select: none;
|
19
|
+
-ms-user-select: none;
|
20
|
+
user-select: none;
|
21
|
+
-webkit-tap-highlight-color: transparent;
|
22
|
+
// white-space: nowrap;
|
23
|
+
// outline: 0;
|
24
|
+
|
25
|
+
vertical-align: middle;
|
26
|
+
// cursor: pointer;
|
27
|
+
// border: none;
|
28
|
+
// outline: none;
|
29
|
+
// color: inherit;
|
30
|
+
// background-color: rgba(0, 0, 0, 0);
|
31
|
+
// font-size: 1em;
|
32
|
+
// line-height:1em;
|
33
|
+
// text-align: center;
|
34
|
+
// text-decoration: none;
|
35
|
+
z-index: 1;
|
36
|
+
will-change: opacity, transform;
|
37
|
+
@include transition(all .3s ease-out);
|
38
|
+
|
39
|
+
.waves-ripple {
|
40
|
+
position: absolute;
|
41
|
+
border-radius: 50%;
|
42
|
+
width: 20px;
|
43
|
+
height: 20px;
|
44
|
+
margin-top:-10px;
|
45
|
+
margin-left:-10px;
|
46
|
+
opacity: 0;
|
47
|
+
|
48
|
+
background: rgba(0,0,0,0.2);
|
49
|
+
// $gradient: rgba(0,0,0,0.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%;
|
50
|
+
// background: -webkit-radial-gradient($gradient);
|
51
|
+
// background: -o-radial-gradient($gradient);
|
52
|
+
// background: -moz-radial-gradient($gradient);
|
53
|
+
// background: radial-gradient($gradient);
|
54
|
+
@include transition(all 0.7s ease-out);
|
55
|
+
-webkit-transition-property: -webkit-transform, opacity;
|
56
|
+
-moz-transition-property: -moz-transform, opacity;
|
57
|
+
-o-transition-property: -o-transform, opacity;
|
58
|
+
transition-property: transform, opacity;
|
59
|
+
@include transform(scale(0));
|
60
|
+
pointer-events: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
// Waves Colors
|
64
|
+
&.waves-light .waves-ripple {
|
65
|
+
background-color: rgba(255, 255, 255, 0.45);
|
66
|
+
}
|
67
|
+
|
68
|
+
&.waves-red .waves-ripple {
|
69
|
+
background-color: rgba(244, 67, 54, .70);
|
70
|
+
}
|
71
|
+
&.waves-yellow .waves-ripple {
|
72
|
+
background-color: rgba(255, 235, 59, .70);
|
73
|
+
}
|
74
|
+
&.waves-orange .waves-ripple {
|
75
|
+
background-color: rgba(255, 152, 0, .70);
|
76
|
+
}
|
77
|
+
&.waves-purple .waves-ripple {
|
78
|
+
background-color: rgba(156, 39, 176, 0.70);
|
79
|
+
}
|
80
|
+
&.waves-green .waves-ripple {
|
81
|
+
background-color: rgba(76, 175, 80, 0.70);
|
82
|
+
}
|
83
|
+
&.waves-teal .waves-ripple {
|
84
|
+
background-color: rgba(0, 150, 136, 0.70);
|
85
|
+
}
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
.waves-notransition {
|
90
|
+
@include transition(none #{"!important"});
|
91
|
+
}
|
92
|
+
|
93
|
+
.waves-circle {
|
94
|
+
@include transform(translateZ(0));
|
95
|
+
-webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
|
96
|
+
}
|
97
|
+
|
98
|
+
// .waves-button,
|
99
|
+
// .waves-button:hover,
|
100
|
+
// .waves-button:visited,
|
101
|
+
// .waves-button-input {
|
102
|
+
// white-space: nowrap;
|
103
|
+
// vertical-align: middle;
|
104
|
+
// cursor: pointer;
|
105
|
+
// border: none;
|
106
|
+
// outline: none;
|
107
|
+
// color: inherit;
|
108
|
+
// background-color: rgba(0, 0, 0, 0);
|
109
|
+
// font-size: 1em;
|
110
|
+
// line-height:1em;
|
111
|
+
// text-align: center;
|
112
|
+
// text-decoration: none;
|
113
|
+
// z-index: 1;
|
114
|
+
// }
|
115
|
+
|
116
|
+
// .waves-button {
|
117
|
+
// padding: 0.85em 1.1em;
|
118
|
+
// border-radius: 0.2em;
|
119
|
+
// }
|
120
|
+
|
121
|
+
// .waves-button-input {
|
122
|
+
// margin: 0;
|
123
|
+
// padding: 0.85em 1.1em;
|
124
|
+
// }
|
125
|
+
|
126
|
+
.waves-input-wrapper {
|
127
|
+
border-radius: 0.2em;
|
128
|
+
vertical-align: bottom;
|
129
|
+
|
130
|
+
// &.waves-button {
|
131
|
+
// padding: 0;
|
132
|
+
// }
|
133
|
+
|
134
|
+
.waves-button-input {
|
135
|
+
position: relative;
|
136
|
+
top: 0;
|
137
|
+
left: 0;
|
138
|
+
z-index: 1;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.waves-circle {
|
143
|
+
text-align: center;
|
144
|
+
width: 2.5em;
|
145
|
+
height: 2.5em;
|
146
|
+
line-height: 2.5em;
|
147
|
+
border-radius: 50%;
|
148
|
+
-webkit-mask-image: none;
|
149
|
+
}
|
150
|
+
|
151
|
+
// .waves-float {
|
152
|
+
// -webkit-mask-image: none;
|
153
|
+
// @include box-shadow(0px 1px 1.5px 1px rgba(0, 0, 0, 0.12));
|
154
|
+
|
155
|
+
// &:active {
|
156
|
+
// @include box-shadow(0px 8px 20px 1px rgba(0, 0, 0, 0.30));
|
157
|
+
// }
|
158
|
+
// }
|
159
|
+
|
160
|
+
.waves-block {
|
161
|
+
display: block;
|
162
|
+
}
|
163
|
+
|
164
|
+
/* Firefox Bug: link not triggered */
|
165
|
+
a.waves-effect .waves-ripple {
|
166
|
+
z-index: -1;
|
167
|
+
}
|
@@ -0,0 +1,435 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
$BASE-DATE-PICKER
|
3
|
+
========================================================================== */
|
4
|
+
/**
|
5
|
+
* The picker box.
|
6
|
+
*/
|
7
|
+
.picker__box {
|
8
|
+
padding: 0 1em;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* The header containing the month and year stuff.
|
12
|
+
*/
|
13
|
+
.picker__header {
|
14
|
+
text-align: center;
|
15
|
+
position: relative;
|
16
|
+
margin-top: .75em;
|
17
|
+
}
|
18
|
+
/**
|
19
|
+
* The month and year labels.
|
20
|
+
*/
|
21
|
+
.picker__month,
|
22
|
+
.picker__year {
|
23
|
+
// font-weight: 500;
|
24
|
+
display: inline-block;
|
25
|
+
margin-left: .25em;
|
26
|
+
margin-right: .25em;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* The month and year selectors.
|
30
|
+
*/
|
31
|
+
.picker__select--month,
|
32
|
+
.picker__select--year {
|
33
|
+
|
34
|
+
height: 2em;
|
35
|
+
padding: 0;
|
36
|
+
margin-left: .25em;
|
37
|
+
margin-right: .25em;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Modified
|
41
|
+
.picker__select--month.browser-default {
|
42
|
+
display: inline;
|
43
|
+
background-color: #FFFFFF;
|
44
|
+
width: 40%;
|
45
|
+
}
|
46
|
+
.picker__select--year.browser-default {
|
47
|
+
display: inline;
|
48
|
+
background-color: #FFFFFF;
|
49
|
+
width: 25%;
|
50
|
+
}
|
51
|
+
.picker__select--month:focus,
|
52
|
+
.picker__select--year:focus {
|
53
|
+
border-color: $datepicker-focus;
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* The month navigation buttons.
|
57
|
+
*/
|
58
|
+
.picker__nav--prev,
|
59
|
+
.picker__nav--next {
|
60
|
+
position: absolute;
|
61
|
+
padding: .5em 1.25em;
|
62
|
+
width: 1em;
|
63
|
+
height: 1em;
|
64
|
+
box-sizing: content-box;
|
65
|
+
top: -0.25em;
|
66
|
+
}
|
67
|
+
//@media (min-width: 24.5em) {
|
68
|
+
// .picker__nav--prev,
|
69
|
+
// .picker__nav--next {
|
70
|
+
// top: -0.33em;
|
71
|
+
// }
|
72
|
+
//}
|
73
|
+
.picker__nav--prev {
|
74
|
+
left: -1em;
|
75
|
+
padding-right: 1.25em;
|
76
|
+
}
|
77
|
+
//@media (min-width: 24.5em) {
|
78
|
+
// .picker__nav--prev {
|
79
|
+
// padding-right: 1.5em;
|
80
|
+
// }
|
81
|
+
//}
|
82
|
+
.picker__nav--next {
|
83
|
+
right: -1em;
|
84
|
+
padding-left: 1.25em;
|
85
|
+
}
|
86
|
+
//@media (min-width: 24.5em) {
|
87
|
+
// .picker__nav--next {
|
88
|
+
// padding-left: 1.5em;
|
89
|
+
// }
|
90
|
+
//}
|
91
|
+
|
92
|
+
.picker__nav--disabled,
|
93
|
+
.picker__nav--disabled:hover,
|
94
|
+
.picker__nav--disabled:before,
|
95
|
+
.picker__nav--disabled:before:hover {
|
96
|
+
cursor: default;
|
97
|
+
background: none;
|
98
|
+
border-right-color: #f5f5f5;
|
99
|
+
border-left-color: #f5f5f5;
|
100
|
+
}
|
101
|
+
/**
|
102
|
+
* The calendar table of dates
|
103
|
+
*/
|
104
|
+
.picker__table {
|
105
|
+
text-align: center;
|
106
|
+
border-collapse: collapse;
|
107
|
+
border-spacing: 0;
|
108
|
+
table-layout: fixed;
|
109
|
+
font-size: 1rem;
|
110
|
+
width: 100%;
|
111
|
+
margin-top: .75em;
|
112
|
+
margin-bottom: .5em;
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
.picker__table th, .picker__table td {
|
118
|
+
text-align: center;
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
.picker__table td {
|
127
|
+
margin: 0;
|
128
|
+
padding: 0;
|
129
|
+
}
|
130
|
+
/**
|
131
|
+
* The weekday labels
|
132
|
+
*/
|
133
|
+
.picker__weekday {
|
134
|
+
width: 14.285714286%;
|
135
|
+
font-size: .75em;
|
136
|
+
padding-bottom: .25em;
|
137
|
+
color: #999999;
|
138
|
+
font-weight: 500;
|
139
|
+
/* Increase the spacing a tad */
|
140
|
+
}
|
141
|
+
@media (min-height: 33.875em) {
|
142
|
+
.picker__weekday {
|
143
|
+
padding-bottom: .5em;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
/**
|
147
|
+
* The days on the calendar
|
148
|
+
*/
|
149
|
+
|
150
|
+
.picker__day--today {
|
151
|
+
position: relative;
|
152
|
+
color: #595959;
|
153
|
+
letter-spacing: -.3;
|
154
|
+
padding: .75rem 0;
|
155
|
+
font-weight: 400;
|
156
|
+
border: 1px solid transparent;
|
157
|
+
|
158
|
+
}
|
159
|
+
|
160
|
+
//.picker__day--today:before {
|
161
|
+
// content: " ";
|
162
|
+
// position: absolute;
|
163
|
+
// top: 2px;
|
164
|
+
// right: 2px;
|
165
|
+
// width: 0;
|
166
|
+
// height: 0;
|
167
|
+
// border-top: 0.5em solid #0059bc;
|
168
|
+
// border-left: .5em solid transparent;
|
169
|
+
//}
|
170
|
+
.picker__day--disabled:before {
|
171
|
+
border-top-color: #aaaaaa;
|
172
|
+
}
|
173
|
+
|
174
|
+
|
175
|
+
.picker__day--infocus:hover{
|
176
|
+
cursor: pointer;
|
177
|
+
color: #000;
|
178
|
+
font-weight: 500;
|
179
|
+
}
|
180
|
+
|
181
|
+
.picker__day--outfocus {
|
182
|
+
display: none;
|
183
|
+
padding: .75rem 0;
|
184
|
+
color: #fff;
|
185
|
+
|
186
|
+
}
|
187
|
+
.picker__day--outfocus:hover {
|
188
|
+
cursor: pointer;
|
189
|
+
color: #dddddd;
|
190
|
+
// background: #b1dcfb;
|
191
|
+
font-weight: 500;
|
192
|
+
}
|
193
|
+
|
194
|
+
|
195
|
+
.picker__day--highlighted {
|
196
|
+
// border-color: #0089ec;
|
197
|
+
}
|
198
|
+
.picker__day--highlighted:hover,
|
199
|
+
.picker--focused .picker__day--highlighted {
|
200
|
+
cursor: pointer;
|
201
|
+
// color: #000000;
|
202
|
+
// background: #b1dcfb;
|
203
|
+
// font-weight: 500;
|
204
|
+
}
|
205
|
+
.picker__day--selected,
|
206
|
+
.picker__day--selected:hover,
|
207
|
+
.picker--focused .picker__day--selected {
|
208
|
+
|
209
|
+
|
210
|
+
// Circle background
|
211
|
+
border-radius: 50%;
|
212
|
+
@include transform(scale(.75));
|
213
|
+
background: #0089ec;
|
214
|
+
color: #ffffff;
|
215
|
+
}
|
216
|
+
.picker__day--disabled,
|
217
|
+
.picker__day--disabled:hover,
|
218
|
+
.picker--focused .picker__day--disabled {
|
219
|
+
background: #f5f5f5;
|
220
|
+
border-color: #f5f5f5;
|
221
|
+
color: #dddddd;
|
222
|
+
cursor: default;
|
223
|
+
}
|
224
|
+
.picker__day--highlighted.picker__day--disabled,
|
225
|
+
.picker__day--highlighted.picker__day--disabled:hover {
|
226
|
+
background: #bbbbbb;
|
227
|
+
}
|
228
|
+
/**
|
229
|
+
* The footer containing the "today", "clear", and "close" buttons.
|
230
|
+
*/
|
231
|
+
.picker__footer {
|
232
|
+
text-align: center;
|
233
|
+
display: flex;
|
234
|
+
align-items: center;
|
235
|
+
justify-content: space-between;
|
236
|
+
}
|
237
|
+
.picker__button--today,
|
238
|
+
.picker__button--clear,
|
239
|
+
.picker__button--close {
|
240
|
+
border: 1px solid #ffffff;
|
241
|
+
background: #ffffff;
|
242
|
+
font-size: .8em;
|
243
|
+
padding: .66em 0;
|
244
|
+
font-weight: bold;
|
245
|
+
width: 33%;
|
246
|
+
display: inline-block;
|
247
|
+
vertical-align: bottom;
|
248
|
+
}
|
249
|
+
.picker__button--today:hover,
|
250
|
+
.picker__button--clear:hover,
|
251
|
+
.picker__button--close:hover {
|
252
|
+
cursor: pointer;
|
253
|
+
color: #000000;
|
254
|
+
background: #b1dcfb;
|
255
|
+
border-bottom-color: #b1dcfb;
|
256
|
+
}
|
257
|
+
.picker__button--today:focus,
|
258
|
+
.picker__button--clear:focus,
|
259
|
+
.picker__button--close:focus {
|
260
|
+
background: #b1dcfb;
|
261
|
+
border-color: $datepicker-focus;
|
262
|
+
outline: none;
|
263
|
+
}
|
264
|
+
.picker__button--today:before,
|
265
|
+
.picker__button--clear:before,
|
266
|
+
.picker__button--close:before {
|
267
|
+
position: relative;
|
268
|
+
display: inline-block;
|
269
|
+
height: 0;
|
270
|
+
}
|
271
|
+
.picker__button--today:before,
|
272
|
+
.picker__button--clear:before {
|
273
|
+
content: " ";
|
274
|
+
margin-right: .45em;
|
275
|
+
}
|
276
|
+
.picker__button--today:before {
|
277
|
+
top: -0.05em;
|
278
|
+
width: 0;
|
279
|
+
border-top: 0.66em solid #0059bc;
|
280
|
+
border-left: .66em solid transparent;
|
281
|
+
}
|
282
|
+
.picker__button--clear:before {
|
283
|
+
top: -0.25em;
|
284
|
+
width: .66em;
|
285
|
+
border-top: 3px solid #ee2200;
|
286
|
+
}
|
287
|
+
.picker__button--close:before {
|
288
|
+
content: "\D7";
|
289
|
+
top: -0.1em;
|
290
|
+
vertical-align: top;
|
291
|
+
font-size: 1.1em;
|
292
|
+
margin-right: .35em;
|
293
|
+
color: #777777;
|
294
|
+
}
|
295
|
+
.picker__button--today[disabled],
|
296
|
+
.picker__button--today[disabled]:hover {
|
297
|
+
background: #f5f5f5;
|
298
|
+
border-color: #f5f5f5;
|
299
|
+
color: #dddddd;
|
300
|
+
cursor: default;
|
301
|
+
}
|
302
|
+
.picker__button--today[disabled]:before {
|
303
|
+
border-top-color: #aaaaaa;
|
304
|
+
}
|
305
|
+
|
306
|
+
/* ==========================================================================
|
307
|
+
CUSTOM MATERIALIZE STYLES
|
308
|
+
========================================================================== */
|
309
|
+
.picker__box {
|
310
|
+
border-radius: 2px;
|
311
|
+
overflow: hidden;
|
312
|
+
}
|
313
|
+
|
314
|
+
.picker__date-display {
|
315
|
+
text-align: center;
|
316
|
+
background-color: $datepicker-date-bg;
|
317
|
+
color: #fff;
|
318
|
+
padding-bottom: 15px;
|
319
|
+
font-weight: 300;
|
320
|
+
}
|
321
|
+
|
322
|
+
.picker__nav--prev:hover,
|
323
|
+
.picker__nav--next:hover {
|
324
|
+
cursor: pointer;
|
325
|
+
color: #000000;
|
326
|
+
background: $datepicker-selected-outfocus;
|
327
|
+
}
|
328
|
+
|
329
|
+
.picker__weekday-display {
|
330
|
+
background-color: $datepicker-weekday-bg;
|
331
|
+
padding: 10px;
|
332
|
+
font-weight: 200;
|
333
|
+
letter-spacing: .5;
|
334
|
+
font-size: 1rem;
|
335
|
+
margin-bottom: 15px;
|
336
|
+
}
|
337
|
+
|
338
|
+
.picker__month-display {
|
339
|
+
text-transform: uppercase;
|
340
|
+
font-size: 2rem;
|
341
|
+
}
|
342
|
+
.picker__day-display {
|
343
|
+
|
344
|
+
font-size: 4.5rem;
|
345
|
+
font-weight: 400;
|
346
|
+
}
|
347
|
+
.picker__year-display {
|
348
|
+
font-size: 1.8rem;
|
349
|
+
color: $datepicker-year;
|
350
|
+
}
|
351
|
+
|
352
|
+
.picker__box {
|
353
|
+
padding: 0;
|
354
|
+
}
|
355
|
+
.picker__calendar-container {
|
356
|
+
padding: 0 1rem;
|
357
|
+
|
358
|
+
thead {
|
359
|
+
border: none;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
|
363
|
+
// Calendar
|
364
|
+
.picker__table {
|
365
|
+
margin-top: 0;
|
366
|
+
margin-bottom: .5em;
|
367
|
+
}
|
368
|
+
|
369
|
+
.picker__day--infocus {
|
370
|
+
color: #595959;
|
371
|
+
letter-spacing: -.3;
|
372
|
+
padding: .75rem 0;
|
373
|
+
font-weight: 400;
|
374
|
+
border: 1px solid transparent;
|
375
|
+
}
|
376
|
+
|
377
|
+
//Today style
|
378
|
+
.picker__day.picker__day--today {
|
379
|
+
color: $datepicker-selected;
|
380
|
+
}
|
381
|
+
|
382
|
+
.picker__day.picker__day--today.picker__day--selected {
|
383
|
+
color: #fff;
|
384
|
+
}
|
385
|
+
|
386
|
+
// Table Header
|
387
|
+
.picker__weekday {
|
388
|
+
font-size: .9rem;
|
389
|
+
}
|
390
|
+
|
391
|
+
|
392
|
+
.picker__day--selected,
|
393
|
+
.picker__day--selected:hover,
|
394
|
+
.picker--focused .picker__day--selected {
|
395
|
+
// Circle background
|
396
|
+
border-radius: 50%;
|
397
|
+
@include transform(scale(.9));
|
398
|
+
background-color: $datepicker-selected;
|
399
|
+
&.picker__day--outfocus {
|
400
|
+
background-color: $datepicker-selected-outfocus;
|
401
|
+
}
|
402
|
+
color: #ffffff;
|
403
|
+
}
|
404
|
+
|
405
|
+
.picker__footer {
|
406
|
+
text-align: right;
|
407
|
+
padding: 5px 10px;
|
408
|
+
}
|
409
|
+
|
410
|
+
// Materialize modified
|
411
|
+
.picker__close, .picker__today {
|
412
|
+
font-size: 1.1rem;
|
413
|
+
padding: 0 1rem;
|
414
|
+
color: $datepicker-selected;
|
415
|
+
}
|
416
|
+
|
417
|
+
//month nav buttons
|
418
|
+
.picker__nav--prev:before,
|
419
|
+
.picker__nav--next:before {
|
420
|
+
content: " ";
|
421
|
+
border-top: .5em solid transparent;
|
422
|
+
border-bottom: .5em solid transparent;
|
423
|
+
border-right: 0.75em solid #676767;
|
424
|
+
width: 0;
|
425
|
+
height: 0;
|
426
|
+
display: block;
|
427
|
+
margin: 0 auto;
|
428
|
+
}
|
429
|
+
.picker__nav--next:before {
|
430
|
+
border-right: 0;
|
431
|
+
border-left: 0.75em solid #676767;
|
432
|
+
}
|
433
|
+
button.picker__today:focus, button.picker__clear:focus, button.picker__close:focus {
|
434
|
+
background-color: $datepicker-selected-outfocus;
|
435
|
+
}
|