anc 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_sass/anc.scss +9 -0
- data/_sass/anc/_base.scss +144 -0
- data/_sass/anc/_layout.scss +0 -0
- data/_sass/anc/_materialize.scss +42 -0
- data/_sass/anc/_syntax-highlighting.scss +78 -0
- data/_sass/anc/components/_variables.scss +343 -0
- data/_sass/materialize/components/_badges.scss +47 -0
- data/_sass/materialize/components/_buttons.scss +291 -0
- data/_sass/materialize/components/_cards.scss +196 -0
- data/_sass/materialize/components/_carousel.scss +90 -0
- data/_sass/materialize/components/_chips.scss +89 -0
- data/_sass/materialize/components/_collapsible.scss +84 -0
- data/_sass/materialize/components/_color.scss +412 -0
- data/_sass/materialize/components/_dropdown.scss +68 -0
- data/_sass/materialize/components/_global.scss +734 -0
- data/_sass/materialize/components/_grid.scss +156 -0
- data/_sass/materialize/components/_icons-material-design.scss +5 -0
- data/_sass/materialize/components/_materialbox.scss +43 -0
- data/_sass/materialize/components/_modal.scss +90 -0
- data/_sass/materialize/components/_navbar.scss +208 -0
- data/_sass/materialize/components/_normalize.scss +424 -0
- data/_sass/materialize/components/_preloader.scss +334 -0
- data/_sass/materialize/components/_pulse.scss +34 -0
- data/_sass/materialize/components/_roboto.scss +39 -0
- data/_sass/materialize/components/_sideNav.scss +214 -0
- data/_sass/materialize/components/_slider.scss +92 -0
- data/_sass/materialize/components/_table_of_contents.scss +33 -0
- data/_sass/materialize/components/_tabs.scss +93 -0
- data/_sass/materialize/components/_tapTarget.scss +103 -0
- data/_sass/materialize/components/_toast.scss +59 -0
- data/_sass/materialize/components/_tooltip.scss +31 -0
- data/_sass/materialize/components/_transitions.scss +13 -0
- data/_sass/materialize/components/_typography.scss +61 -0
- data/_sass/materialize/components/_variables.scss +343 -0
- data/_sass/materialize/components/_waves.scss +114 -0
- data/_sass/materialize/components/date_picker/_default.date.scss +456 -0
- data/_sass/materialize/components/date_picker/_default.scss +212 -0
- data/_sass/materialize/components/date_picker/_default.time.scss +267 -0
- data/_sass/materialize/components/forms/_checkboxes.scss +210 -0
- data/_sass/materialize/components/forms/_file-input.scss +44 -0
- data/_sass/materialize/components/forms/_forms.scss +22 -0
- data/_sass/materialize/components/forms/_input-fields.scss +333 -0
- data/_sass/materialize/components/forms/_radio-buttons.scss +115 -0
- data/_sass/materialize/components/forms/_range.scss +160 -0
- data/_sass/materialize/components/forms/_select.scss +182 -0
- data/_sass/materialize/components/forms/_switches.scss +89 -0
- data/_sass/materialize/materialize.scss +42 -0
- metadata +48 -1
@@ -0,0 +1,212 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
$BASE-PICKER
|
3
|
+
========================================================================== */
|
4
|
+
/**
|
5
|
+
* Note: the root picker element should *NOT* be styled more than what's here.
|
6
|
+
*/
|
7
|
+
.picker {
|
8
|
+
font-size: 16px;
|
9
|
+
text-align: left;
|
10
|
+
line-height: 1.2;
|
11
|
+
color: #000000;
|
12
|
+
position: absolute;
|
13
|
+
z-index: 10000;
|
14
|
+
-webkit-user-select: none;
|
15
|
+
-moz-user-select: none;
|
16
|
+
-ms-user-select: none;
|
17
|
+
user-select: none;
|
18
|
+
outline: none;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* The picker input element.
|
22
|
+
*/
|
23
|
+
.picker__input {
|
24
|
+
cursor: default;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* When the picker is opened, the input element is "activated".
|
28
|
+
*/
|
29
|
+
.picker__input.picker__input--active {
|
30
|
+
border-color: #0089ec;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* The holder is the only "scrollable" top-level container element.
|
34
|
+
*/
|
35
|
+
.picker__holder {
|
36
|
+
width: 100%;
|
37
|
+
overflow-y: auto;
|
38
|
+
-webkit-overflow-scrolling: touch;
|
39
|
+
}
|
40
|
+
|
41
|
+
/*!
|
42
|
+
* Default mobile-first, responsive styling for pickadate.js
|
43
|
+
* Demo: http://amsul.github.io/pickadate.js
|
44
|
+
*/
|
45
|
+
/**
|
46
|
+
* Note: the root picker element should *NOT* be styled more than what's here.
|
47
|
+
*/
|
48
|
+
/**
|
49
|
+
* Make the holder and frame fullscreen.
|
50
|
+
*/
|
51
|
+
.picker__holder,
|
52
|
+
.picker__frame {
|
53
|
+
bottom: 0;
|
54
|
+
left: 0;
|
55
|
+
right: 0;
|
56
|
+
top: 100%;
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* The holder should overlay the entire screen.
|
60
|
+
*/
|
61
|
+
.picker__holder {
|
62
|
+
position: fixed;
|
63
|
+
-webkit-transition: background 0.15s ease-out, top 0s 0.15s;
|
64
|
+
-moz-transition: background 0.15s ease-out, top 0s 0.15s;
|
65
|
+
transition: background 0.15s ease-out, top 0s 0.15s;
|
66
|
+
-webkit-backface-visibility: hidden;
|
67
|
+
}
|
68
|
+
/**
|
69
|
+
* The frame that bounds the box contents of the picker.
|
70
|
+
*/
|
71
|
+
.picker__frame {
|
72
|
+
position: absolute;
|
73
|
+
margin: 0 auto;
|
74
|
+
min-width: 256px;
|
75
|
+
|
76
|
+
// picker width
|
77
|
+
width: 300px;
|
78
|
+
max-height: 350px;
|
79
|
+
|
80
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
81
|
+
filter: alpha(opacity=0);
|
82
|
+
-moz-opacity: 0;
|
83
|
+
opacity: 0;
|
84
|
+
-webkit-transition: all 0.15s ease-out;
|
85
|
+
-moz-transition: all 0.15s ease-out;
|
86
|
+
transition: all 0.15s ease-out;
|
87
|
+
}
|
88
|
+
@media (min-height: 28.875em) {
|
89
|
+
.picker__frame {
|
90
|
+
overflow: visible;
|
91
|
+
top: auto;
|
92
|
+
bottom: -100%;
|
93
|
+
max-height: 80%;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
@media (min-height: 40.125em) {
|
97
|
+
.picker__frame {
|
98
|
+
margin-bottom: 7.5%;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
/**
|
102
|
+
* The wrapper sets the stage to vertically align the box contents.
|
103
|
+
*/
|
104
|
+
.picker__wrap {
|
105
|
+
display: table;
|
106
|
+
width: 100%;
|
107
|
+
height: 100%;
|
108
|
+
}
|
109
|
+
@media (min-height: 28.875em) {
|
110
|
+
.picker__wrap {
|
111
|
+
display: block;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
/**
|
115
|
+
* The box contains all the picker contents.
|
116
|
+
*/
|
117
|
+
.picker__box {
|
118
|
+
background: #ffffff;
|
119
|
+
display: table-cell;
|
120
|
+
vertical-align: middle;
|
121
|
+
}
|
122
|
+
//@media (min-height: 26.5em) {
|
123
|
+
// .picker__box {
|
124
|
+
//// font-size: 1.25em;
|
125
|
+
// }
|
126
|
+
//}
|
127
|
+
@media (min-height: 28.875em) {
|
128
|
+
.picker__box {
|
129
|
+
display: block;
|
130
|
+
|
131
|
+
// picker header font-size
|
132
|
+
// font-size: 1rem;
|
133
|
+
|
134
|
+
border: 1px solid #777777;
|
135
|
+
border-top-color: #898989;
|
136
|
+
border-bottom-width: 0;
|
137
|
+
-webkit-border-radius: 5px 5px 0 0;
|
138
|
+
-moz-border-radius: 5px 5px 0 0;
|
139
|
+
border-radius: 5px 5px 0 0;
|
140
|
+
-webkit-box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
|
141
|
+
-moz-box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
|
142
|
+
box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
//@media (min-height: 40.125em) {
|
146
|
+
// .picker__box {
|
147
|
+
// font-size: 1.1rem;
|
148
|
+
// border-bottom-width: 1px;
|
149
|
+
// -webkit-border-radius: 5px;
|
150
|
+
// -moz-border-radius: 5px;
|
151
|
+
// border-radius: 5px;
|
152
|
+
// }
|
153
|
+
//}
|
154
|
+
/**
|
155
|
+
* When the picker opens...
|
156
|
+
*/
|
157
|
+
.picker--opened .picker__holder {
|
158
|
+
top: 0;
|
159
|
+
background: transparent;
|
160
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#1E000000,endColorstr=#1E000000)";
|
161
|
+
zoom: 1;
|
162
|
+
background: rgba(0, 0, 0, 0.32);
|
163
|
+
-webkit-transition: background 0.15s ease-out;
|
164
|
+
-moz-transition: background 0.15s ease-out;
|
165
|
+
transition: background 0.15s ease-out;
|
166
|
+
}
|
167
|
+
.picker--opened .picker__frame {
|
168
|
+
top: 0;
|
169
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
170
|
+
filter: alpha(opacity=100);
|
171
|
+
-moz-opacity: 1;
|
172
|
+
opacity: 1;
|
173
|
+
}
|
174
|
+
@media (min-height: 35.875em) {
|
175
|
+
.picker--opened .picker__frame {
|
176
|
+
top: 10%;
|
177
|
+
bottom: auto;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
/**
|
181
|
+
* For `large` screens, transform into an inline picker.
|
182
|
+
*/
|
183
|
+
|
184
|
+
/* ==========================================================================
|
185
|
+
CUSTOM MATERIALIZE STYLES
|
186
|
+
========================================================================== */
|
187
|
+
|
188
|
+
.picker__input.picker__input--active {
|
189
|
+
border-color: color("blue", "lighten-5");
|
190
|
+
}
|
191
|
+
|
192
|
+
.picker__frame {
|
193
|
+
margin: 0 auto;
|
194
|
+
max-width: 325px;
|
195
|
+
}
|
196
|
+
|
197
|
+
@media (min-height: 38.875em) {
|
198
|
+
.picker--opened .picker__frame {
|
199
|
+
top: 10%;
|
200
|
+
bottom: auto;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
@media only screen and (min-width: 601px) {
|
205
|
+
.picker__box {
|
206
|
+
display:flex;
|
207
|
+
}
|
208
|
+
.picker__frame {
|
209
|
+
width: 80%;
|
210
|
+
max-width:600px;
|
211
|
+
}
|
212
|
+
}
|
@@ -0,0 +1,267 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
$BASE-TIME-PICKER
|
3
|
+
========================================================================== */
|
4
|
+
/**
|
5
|
+
* The list of times.
|
6
|
+
*/
|
7
|
+
.picker__list {
|
8
|
+
list-style: none;
|
9
|
+
padding: 0.75em 0 4.2em;
|
10
|
+
margin: 0;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* The times on the clock.
|
14
|
+
*/
|
15
|
+
.picker__list-item {
|
16
|
+
border-bottom: 1px solid #ddd;
|
17
|
+
border-top: 1px solid #ddd;
|
18
|
+
margin-bottom: -1px;
|
19
|
+
position: relative;
|
20
|
+
background: #fff;
|
21
|
+
padding: .75em 1.25em;
|
22
|
+
}
|
23
|
+
@media (min-height: 46.75em) {
|
24
|
+
.picker__list-item {
|
25
|
+
padding: .5em 1em;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
/* Hovered time */
|
29
|
+
.picker__list-item:hover {
|
30
|
+
cursor: pointer;
|
31
|
+
color: #000;
|
32
|
+
background: #b1dcfb;
|
33
|
+
border-color: #0089ec;
|
34
|
+
z-index: 10;
|
35
|
+
}
|
36
|
+
/* Highlighted and hovered/focused time */
|
37
|
+
.picker__list-item--highlighted {
|
38
|
+
border-color: #0089ec;
|
39
|
+
z-index: 10;
|
40
|
+
}
|
41
|
+
.picker__list-item--highlighted:hover,
|
42
|
+
.picker--focused .picker__list-item--highlighted {
|
43
|
+
cursor: pointer;
|
44
|
+
color: #000;
|
45
|
+
background: #b1dcfb;
|
46
|
+
}
|
47
|
+
/* Selected and hovered/focused time */
|
48
|
+
.picker__list-item--selected,
|
49
|
+
.picker__list-item--selected:hover,
|
50
|
+
.picker--focused .picker__list-item--selected {
|
51
|
+
background: #0089ec;
|
52
|
+
color: #fff;
|
53
|
+
z-index: 10;
|
54
|
+
}
|
55
|
+
/* Disabled time */
|
56
|
+
.picker__list-item--disabled,
|
57
|
+
.picker__list-item--disabled:hover,
|
58
|
+
.picker--focused .picker__list-item--disabled {
|
59
|
+
background: #f5f5f5;
|
60
|
+
border-color: #f5f5f5;
|
61
|
+
color: #ddd;
|
62
|
+
cursor: default;
|
63
|
+
border-color: #ddd;
|
64
|
+
z-index: auto;
|
65
|
+
}
|
66
|
+
/**
|
67
|
+
* The clear button
|
68
|
+
*/
|
69
|
+
.picker--time .picker__button--clear {
|
70
|
+
display: block;
|
71
|
+
width: 80%;
|
72
|
+
margin: 1em auto 0;
|
73
|
+
padding: 1em 1.25em;
|
74
|
+
background: none;
|
75
|
+
border: 0;
|
76
|
+
font-weight: 500;
|
77
|
+
font-size: .67em;
|
78
|
+
text-align: center;
|
79
|
+
text-transform: uppercase;
|
80
|
+
color: $timepicker-clock-color;
|
81
|
+
}
|
82
|
+
.picker--time .picker__button--clear:hover,
|
83
|
+
.picker--time .picker__button--clear:focus {
|
84
|
+
color: #000;
|
85
|
+
background: #b1dcfb;
|
86
|
+
background: #ee2200;
|
87
|
+
border-color: #ee2200;
|
88
|
+
cursor: pointer;
|
89
|
+
color: #fff;
|
90
|
+
outline: none;
|
91
|
+
}
|
92
|
+
.picker--time .picker__button--clear:before {
|
93
|
+
top: -0.25em;
|
94
|
+
color: $timepicker-clock-color;
|
95
|
+
font-size: 1.25em;
|
96
|
+
font-weight: bold;
|
97
|
+
}
|
98
|
+
.picker--time .picker__button--clear:hover:before,
|
99
|
+
.picker--time .picker__button--clear:focus:before {
|
100
|
+
color: #fff;
|
101
|
+
}
|
102
|
+
|
103
|
+
/* ==========================================================================
|
104
|
+
$DEFAULT-TIME-PICKER
|
105
|
+
========================================================================== */
|
106
|
+
/**
|
107
|
+
* The frame the bounds the time picker.
|
108
|
+
*/
|
109
|
+
.picker--time .picker__frame {
|
110
|
+
min-width: 256px;
|
111
|
+
max-width: 320px;
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* The picker box.
|
115
|
+
*/
|
116
|
+
.picker--time .picker__box {
|
117
|
+
font-size: 1em;
|
118
|
+
background: #f2f2f2;
|
119
|
+
padding: 0;
|
120
|
+
}
|
121
|
+
@media (min-height: 40.125em) {
|
122
|
+
.picker--time .picker__box {
|
123
|
+
margin-bottom: 5em;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
/* ==========================================================================
|
128
|
+
$DEFAULT-TIME-PICKER
|
129
|
+
========================================================================== */
|
130
|
+
.clockpicker-display {
|
131
|
+
font-size: 4rem;
|
132
|
+
font-weight: bold;
|
133
|
+
text-align: center;
|
134
|
+
color: rgba(255, 255, 255, 0.6);
|
135
|
+
font-weight: 400;
|
136
|
+
clear: both;
|
137
|
+
position: relative;
|
138
|
+
}
|
139
|
+
|
140
|
+
.clockpicker-span-am-pm {
|
141
|
+
font-size: 1.3rem;
|
142
|
+
position: absolute;
|
143
|
+
right: 1rem;
|
144
|
+
bottom: 0.3rem;
|
145
|
+
line-height: 2rem;
|
146
|
+
font-weight: 500;
|
147
|
+
}
|
148
|
+
@media only screen and (min-width: 601px) {
|
149
|
+
.clockpicker-display {
|
150
|
+
top: 32%;
|
151
|
+
}
|
152
|
+
.clockpicker-span-am-pm {
|
153
|
+
position: relative;
|
154
|
+
right: auto;
|
155
|
+
bottom: auto;
|
156
|
+
text-align: center;
|
157
|
+
margin-top: 1.2rem;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
.text-primary{
|
163
|
+
color: rgba(255, 255, 255, 1)
|
164
|
+
}
|
165
|
+
.clockpicker-span-hours {
|
166
|
+
margin-right: 3px;
|
167
|
+
}
|
168
|
+
.clockpicker-span-minutes {
|
169
|
+
margin-left: 3px;
|
170
|
+
}
|
171
|
+
|
172
|
+
.clockpicker-span-hours,
|
173
|
+
.clockpicker-span-minutes,
|
174
|
+
.clockpicker-span-am-pm div {
|
175
|
+
cursor: pointer;
|
176
|
+
}
|
177
|
+
.clockpicker-moving {
|
178
|
+
cursor: move;
|
179
|
+
}
|
180
|
+
.clockpicker-plate {
|
181
|
+
background-color: $timepicker-clock-plate-bg;
|
182
|
+
border-radius: 50%;
|
183
|
+
width: 270px;
|
184
|
+
height: 270px;
|
185
|
+
overflow: visible;
|
186
|
+
position: relative;
|
187
|
+
margin: auto;
|
188
|
+
margin-top: 25px;
|
189
|
+
margin-bottom: 5px;
|
190
|
+
user-select: none;
|
191
|
+
}
|
192
|
+
.clockpicker-canvas,
|
193
|
+
.clockpicker-dial {
|
194
|
+
width: 270px;
|
195
|
+
height: 270px;
|
196
|
+
position: absolute;
|
197
|
+
left: -1px;
|
198
|
+
top: -1px;
|
199
|
+
}
|
200
|
+
.clockpicker-minutes {
|
201
|
+
visibility: hidden;
|
202
|
+
}
|
203
|
+
.clockpicker-tick {
|
204
|
+
border-radius: 50%;
|
205
|
+
color: $timepicker-clock-color;
|
206
|
+
line-height: 40px;
|
207
|
+
text-align: center;
|
208
|
+
width: 40px;
|
209
|
+
height: 40px;
|
210
|
+
position: absolute;
|
211
|
+
cursor: pointer;
|
212
|
+
}
|
213
|
+
.clockpicker-tick.active,
|
214
|
+
.clockpicker-tick:hover {
|
215
|
+
background-color: transparentize($secondary-color, .75);
|
216
|
+
}
|
217
|
+
.clockpicker-dial {
|
218
|
+
-webkit-transition: -webkit-transform 350ms, opacity 350ms;
|
219
|
+
-moz-transition: -moz-transform 350ms, opacity 350ms;
|
220
|
+
-ms-transition: -ms-transform 350ms, opacity 350ms;
|
221
|
+
-o-transition: -o-transform 350ms, opacity 350ms;
|
222
|
+
transition: transform 350ms, opacity 350ms;
|
223
|
+
}
|
224
|
+
.clockpicker-dial-out {
|
225
|
+
opacity: 0;
|
226
|
+
}
|
227
|
+
.clockpicker-hours.clockpicker-dial-out {
|
228
|
+
-webkit-transform: scale(1.2, 1.2);
|
229
|
+
-moz-transform: scale(1.2, 1.2);
|
230
|
+
-ms-transform: scale(1.2, 1.2);
|
231
|
+
-o-transform: scale(1.2, 1.2);
|
232
|
+
transform: scale(1.2, 1.2);
|
233
|
+
}
|
234
|
+
.clockpicker-minutes.clockpicker-dial-out {
|
235
|
+
-webkit-transform: scale(.8, .8);
|
236
|
+
-moz-transform: scale(.8, .8);
|
237
|
+
-ms-transform: scale(.8, .8);
|
238
|
+
-o-transform: scale(.8, .8);
|
239
|
+
transform: scale(.8, .8);
|
240
|
+
}
|
241
|
+
.clockpicker-canvas {
|
242
|
+
-webkit-transition: opacity 175ms;
|
243
|
+
-moz-transition: opacity 175ms;
|
244
|
+
-ms-transition: opacity 175ms;
|
245
|
+
-o-transition: opacity 175ms;
|
246
|
+
transition: opacity 175ms;
|
247
|
+
}
|
248
|
+
.clockpicker-canvas-out {
|
249
|
+
opacity: 0.25;
|
250
|
+
}
|
251
|
+
.clockpicker-canvas-bearing {
|
252
|
+
stroke: none;
|
253
|
+
fill: $secondary-color;
|
254
|
+
}
|
255
|
+
.clockpicker-canvas-bg {
|
256
|
+
stroke: none;
|
257
|
+
fill: $secondary-color;
|
258
|
+
}
|
259
|
+
.clockpicker-canvas-bg-trans {
|
260
|
+
fill: $secondary-color;
|
261
|
+
}
|
262
|
+
.clockpicker-canvas line {
|
263
|
+
stroke: $secondary-color;
|
264
|
+
stroke-width: 4;
|
265
|
+
stroke-linecap: round;
|
266
|
+
/*shape-rendering: crispEdges;*/
|
267
|
+
}
|