dr-jekylls-materials 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +41 -0
  4. data/_includes/footer.html +36 -0
  5. data/_includes/header.html +21 -0
  6. data/_includes/icon-github.html +1 -0
  7. data/_layouts/default.html +15 -0
  8. data/_layouts/home.html +20 -0
  9. data/_layouts/page.html +5 -0
  10. data/_layouts/post.html +91 -0
  11. data/_sass/components/_buttons.scss +281 -0
  12. data/_sass/components/_cards.scss +187 -0
  13. data/_sass/components/_carousel.scss +85 -0
  14. data/_sass/components/_chips.scss +83 -0
  15. data/_sass/components/_collapsible.scss +90 -0
  16. data/_sass/components/_color.scss +412 -0
  17. data/_sass/components/_dropdown.scss +65 -0
  18. data/_sass/components/_global.scss +800 -0
  19. data/_sass/components/_grid.scss +147 -0
  20. data/_sass/components/_icons-material-design.scss +5 -0
  21. data/_sass/components/_materialbox.scss +42 -0
  22. data/_sass/components/_mixins.scss +5 -0
  23. data/_sass/components/_modal.scss +90 -0
  24. data/_sass/components/_navbar.scss +190 -0
  25. data/_sass/components/_normalize.scss +424 -0
  26. data/_sass/components/_prefixer.scss +384 -0
  27. data/_sass/components/_preloader.scss +334 -0
  28. data/_sass/components/_roboto.scss +49 -0
  29. data/_sass/components/_sideNav.scss +208 -0
  30. data/_sass/components/_slider.scss +92 -0
  31. data/_sass/components/_table_of_contents.scss +33 -0
  32. data/_sass/components/_tabs.scss +99 -0
  33. data/_sass/components/_toast.scss +65 -0
  34. data/_sass/components/_tooltip.scss +32 -0
  35. data/_sass/components/_typography.scss +61 -0
  36. data/_sass/components/_variables.scss +314 -0
  37. data/_sass/components/_waves.scss +177 -0
  38. data/_sass/components/date_picker/_default.date.scss +435 -0
  39. data/_sass/components/date_picker/_default.scss +201 -0
  40. data/_sass/components/date_picker/_default.time.scss +125 -0
  41. data/_sass/components/forms/_checkboxes.scss +220 -0
  42. data/_sass/components/forms/_file-input.scss +38 -0
  43. data/_sass/components/forms/_forms.scss +22 -0
  44. data/_sass/components/forms/_input-fields.scss +286 -0
  45. data/_sass/components/forms/_radio-buttons.scss +117 -0
  46. data/_sass/components/forms/_range.scss +159 -0
  47. data/_sass/components/forms/_select.scss +121 -0
  48. data/_sass/components/forms/_switches.scss +78 -0
  49. metadata +134 -0
@@ -0,0 +1,286 @@
1
+ /* Text Inputs + Textarea
2
+ ========================================================================== */
3
+
4
+ /* Style Placeholders */
5
+
6
+ ::-webkit-input-placeholder {
7
+ color: $placeholder-text-color;
8
+ }
9
+
10
+ :-moz-placeholder { /* Firefox 18- */
11
+ color: $placeholder-text-color;
12
+ }
13
+
14
+ ::-moz-placeholder { /* Firefox 19+ */
15
+ color: $placeholder-text-color;
16
+ }
17
+
18
+ :-ms-input-placeholder {
19
+ color: $placeholder-text-color;
20
+ }
21
+
22
+ /* Text inputs */
23
+
24
+ input:not([type]),
25
+ input[type=text],
26
+ input[type=password],
27
+ input[type=email],
28
+ input[type=url],
29
+ input[type=time],
30
+ input[type=date],
31
+ input[type=datetime],
32
+ input[type=datetime-local],
33
+ input[type=tel],
34
+ input[type=number],
35
+ input[type=search],
36
+ textarea.materialize-textarea {
37
+
38
+ // General Styles
39
+ background-color: transparent;
40
+ border: none;
41
+ border-bottom: $input-border;
42
+ border-radius: 0;
43
+ outline: none;
44
+ height: $input-height;
45
+ width: 100%;
46
+ font-size: $input-font-size;
47
+ margin: $input-margin;
48
+ padding: $input-padding;
49
+ box-shadow: none;
50
+ box-sizing: content-box;
51
+ transition: $input-transition;
52
+
53
+ // Disabled input style
54
+ &:disabled,
55
+ &[readonly="readonly"] {
56
+ color: $input-disabled-color;
57
+ border-bottom: $input-disabled-border;
58
+ }
59
+
60
+ // Disabled label style
61
+ &:disabled+label,
62
+ &[readonly="readonly"]+label {
63
+ color: $input-disabled-color;
64
+ }
65
+
66
+ // Focused input style
67
+ &:focus:not([readonly]) {
68
+ border-bottom: 1px solid $input-focus-color;
69
+ box-shadow: 0 1px 0 0 $input-focus-color;
70
+ }
71
+
72
+ // Focused label style
73
+ &:focus:not([readonly])+label {
74
+ color: $input-focus-color;
75
+ }
76
+
77
+ // Valid Input Style
78
+ &.valid,
79
+ &:focus.valid {
80
+ border-bottom: 1px solid $input-success-color;
81
+ box-shadow: 0 1px 0 0 $input-success-color;
82
+ }
83
+
84
+ // Custom Success Message
85
+ &.valid + label:after,
86
+ &:focus.valid + label:after {
87
+ content: attr(data-success);
88
+ color: $input-success-color;
89
+ opacity: 1;
90
+ }
91
+
92
+ // Invalid Input Style
93
+ &.invalid,
94
+ &:focus.invalid {
95
+ border-bottom: $input-invalid-border;
96
+ box-shadow: 0 1px 0 0 $input-error-color;
97
+ }
98
+
99
+ // Custom Error message
100
+ &.invalid + label:after,
101
+ &:focus.invalid + label:after {
102
+ content: attr(data-error);
103
+ color: $input-error-color;
104
+ opacity: 1;
105
+ }
106
+
107
+ // Full width label when using validate for error messages
108
+ &.validate + label {
109
+ width: 100%;
110
+ pointer-events: none;
111
+ }
112
+
113
+ // Form Message Shared Styles
114
+ & + label:after {
115
+ display: block;
116
+ content: "";
117
+ position: absolute;
118
+ top: 60px;
119
+ opacity: 0;
120
+ transition: .2s opacity ease-out, .2s color ease-out;
121
+ }
122
+ }
123
+
124
+ // Styling for input field wrapper
125
+ .input-field {
126
+ // Inline styles
127
+ &.inline {
128
+ display: inline-block;
129
+ vertical-align: middle;
130
+ margin-left: 5px;
131
+
132
+ input,
133
+ .select-dropdown {
134
+ margin-bottom: 1rem;
135
+ }
136
+ }
137
+
138
+ // Gutter spacing
139
+ &.col {
140
+ label {
141
+ left: $gutter-width / 2;
142
+ }
143
+
144
+ .prefix ~ label,
145
+ .prefix ~ .validate ~ label {
146
+ width: calc(100% - 3rem - #{$gutter-width});
147
+ }
148
+ }
149
+
150
+ position: relative;
151
+ margin-top: 1rem;
152
+
153
+ label {
154
+ color: $input-border-color;
155
+ position: absolute;
156
+ top: 0.8rem;
157
+ left: 0;
158
+ font-size: 1rem;
159
+ cursor: text;
160
+ transition: .2s ease-out;
161
+ }
162
+
163
+ label.active {
164
+ font-size: $label-font-size;
165
+ transform: translateY(-140%);
166
+ }
167
+
168
+ // Prefix Icons
169
+ .prefix {
170
+ position: absolute;
171
+ width: $input-height;
172
+ font-size: 2rem;
173
+ transition: color .2s;
174
+
175
+ &.active { color: $input-focus-color; }
176
+ }
177
+
178
+ .prefix ~ input,
179
+ .prefix ~ textarea,
180
+ .prefix ~ label,
181
+ .prefix ~ .validate ~ label,
182
+ .prefix ~ .autocomplete-content {
183
+ margin-left: 3rem;
184
+ width: 92%;
185
+ width: calc(100% - 3rem);
186
+ }
187
+
188
+ .prefix ~ label { margin-left: 3rem; }
189
+
190
+ @media #{$medium-and-down} {
191
+ .prefix ~ input {
192
+ width: 86%;
193
+ width: calc(100% - 3rem);
194
+ }
195
+ }
196
+
197
+ @media #{$small-and-down} {
198
+ .prefix ~ input {
199
+ width: 80%;
200
+ width: calc(100% - 3rem);
201
+ }
202
+ }
203
+ }
204
+
205
+
206
+ /* Search Field */
207
+
208
+ .input-field input[type=search] {
209
+ display: block;
210
+ line-height: inherit;
211
+ padding-left: 4rem;
212
+ width: calc(100% - 4rem);
213
+
214
+ &:focus {
215
+ background-color: $input-background;
216
+ border: 0;
217
+ box-shadow: none;
218
+ color: #444;
219
+
220
+ & + label i,
221
+ & ~ .mdi-navigation-close,
222
+ & ~ .material-icons {
223
+ color: #444;
224
+ }
225
+ }
226
+
227
+ & + label {
228
+ left: 1rem;
229
+ }
230
+
231
+ & ~ .mdi-navigation-close,
232
+ & ~ .material-icons {
233
+ position: absolute;
234
+ top: 0;
235
+ right: 1rem;
236
+ color: transparent;
237
+ cursor: pointer;
238
+ font-size: 2rem;
239
+ transition: .3s color;
240
+ }
241
+ }
242
+
243
+
244
+ /* Textarea */
245
+
246
+ // Default textarea
247
+ textarea {
248
+ width: 100%;
249
+ height: $input-height;
250
+ background-color: transparent;
251
+
252
+ &.materialize-textarea {
253
+ overflow-y: hidden; /* prevents scroll bar flash */
254
+ padding: .8rem 0 1.6rem 0; /* prevents text jump on Enter keypress */
255
+ resize: none;
256
+ min-height: $input-height;
257
+ }
258
+ }
259
+
260
+ // For textarea autoresize
261
+ .hiddendiv {
262
+ display: none;
263
+ white-space: pre-wrap;
264
+ word-wrap: break-word;
265
+ overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
266
+ padding-top: 1.2rem; /* prevents text jump on Enter keypress */
267
+ }
268
+
269
+
270
+ /* Autocomplete */
271
+ .autocomplete-content {
272
+ margin-top: -15px;
273
+ display: block;
274
+ opacity: 1;
275
+ position: static;
276
+
277
+ li {
278
+ .highlight { color: #444; }
279
+
280
+ img {
281
+ height: $dropdown-item-height - 10;
282
+ width: $dropdown-item-height - 10;
283
+ margin: 5px 15px;
284
+ }
285
+ }
286
+ }
@@ -0,0 +1,117 @@
1
+ /* Radio Buttons
2
+ ========================================================================== */
3
+
4
+ // Remove default Radio Buttons
5
+ [type="radio"]:not(:checked),
6
+ [type="radio"]:checked {
7
+ position: absolute;
8
+ left: -9999px;
9
+ opacity: 0;
10
+ }
11
+
12
+ [type="radio"]:not(:checked) + label,
13
+ [type="radio"]:checked + label {
14
+ position: relative;
15
+ padding-left: 35px;
16
+ cursor: pointer;
17
+ display: inline-block;
18
+ height: 25px;
19
+ line-height: 25px;
20
+ font-size: 1rem;
21
+ transition: .28s ease;
22
+
23
+ -khtml-user-select: none; /* webkit (konqueror) browsers */
24
+ user-select: none;
25
+ }
26
+
27
+ [type="radio"] + label:before,
28
+ [type="radio"] + label:after {
29
+ content: '';
30
+ position: absolute;
31
+ left: 0;
32
+ top: 0;
33
+ margin: 4px;
34
+ width: 16px;
35
+ height: 16px;
36
+ z-index: 0;
37
+ transition: .28s ease;
38
+ }
39
+
40
+ /* Unchecked styles */
41
+ [type="radio"]:not(:checked) + label:before,
42
+ [type="radio"]:not(:checked) + label:after,
43
+ [type="radio"]:checked + label:before,
44
+ [type="radio"]:checked + label:after,
45
+ [type="radio"].with-gap:checked + label:before,
46
+ [type="radio"].with-gap:checked + label:after {
47
+ border-radius: 50%;
48
+ }
49
+
50
+ [type="radio"]:not(:checked) + label:before,
51
+ [type="radio"]:not(:checked) + label:after {
52
+ border: 2px solid $radio-empty-color;
53
+ }
54
+
55
+ [type="radio"]:not(:checked) + label:after {
56
+ transform: scale(0);
57
+ }
58
+
59
+ /* Checked styles */
60
+ [type="radio"]:checked + label:before {
61
+ border: 2px solid transparent;
62
+ }
63
+
64
+ [type="radio"]:checked + label:after,
65
+ [type="radio"].with-gap:checked + label:before,
66
+ [type="radio"].with-gap:checked + label:after {
67
+ border: $radio-border;
68
+ }
69
+
70
+ [type="radio"]:checked + label:after,
71
+ [type="radio"].with-gap:checked + label:after {
72
+ background-color: $radio-fill-color;
73
+ }
74
+
75
+ [type="radio"]:checked + label:after {
76
+ transform: scale(1.02);
77
+ }
78
+
79
+ /* Radio With gap */
80
+ [type="radio"].with-gap:checked + label:after {
81
+ transform: scale(.5);
82
+ }
83
+
84
+ /* Focused styles */
85
+ [type="radio"].tabbed:focus + label:before {
86
+ box-shadow: 0 0 0 10px rgba(0,0,0,.1);
87
+ }
88
+
89
+ /* Disabled Radio With gap */
90
+ [type="radio"].with-gap:disabled:checked + label:before {
91
+ border: 2px solid $input-disabled-color;
92
+ }
93
+
94
+ [type="radio"].with-gap:disabled:checked + label:after {
95
+ border: none;
96
+ background-color: $input-disabled-color;
97
+ }
98
+
99
+ /* Disabled style */
100
+ [type="radio"]:disabled:not(:checked) + label:before,
101
+ [type="radio"]:disabled:checked + label:before {
102
+ background-color: transparent;
103
+ border-color: $input-disabled-color;
104
+ }
105
+
106
+ [type="radio"]:disabled + label {
107
+ color: $input-disabled-color;
108
+ }
109
+
110
+ [type="radio"]:disabled:not(:checked) + label:before {
111
+ border-color: $input-disabled-color;
112
+ }
113
+
114
+ [type="radio"]:disabled:checked + label:after {
115
+ background-color: $input-disabled-color;
116
+ border-color: $input-disabled-solid-color;
117
+ }
@@ -0,0 +1,159 @@
1
+ /* Range
2
+ ========================================================================== */
3
+
4
+ .range-field {
5
+ position: relative;
6
+ }
7
+
8
+ input[type=range],
9
+ input[type=range] + .thumb {
10
+ @extend .no-select;
11
+ cursor: pointer;
12
+ }
13
+
14
+ input[type=range] {
15
+ position: relative;
16
+ background-color: transparent;
17
+ border: none;
18
+ outline: none;
19
+ width: 100%;
20
+ margin: 15px 0;
21
+ padding: 0;
22
+
23
+ &:focus {
24
+ outline: none;
25
+ }
26
+ }
27
+
28
+ input[type=range] + .thumb {
29
+ position: absolute;
30
+ border: none;
31
+ height: 0;
32
+ width: 0;
33
+ border-radius: 50%;
34
+ background-color: $radio-fill-color;
35
+ top: 10px;
36
+ margin-left: -6px;
37
+
38
+ transform-origin: 50% 50%;
39
+ transform: rotate(-45deg);
40
+
41
+ .value {
42
+ display: block;
43
+ width: 30px;
44
+ text-align: center;
45
+ color: $radio-fill-color;
46
+ font-size: 0;
47
+ transform: rotate(45deg);
48
+ }
49
+
50
+ &.active {
51
+ border-radius: 50% 50% 50% 0;
52
+
53
+ .value {
54
+ color: $input-background;
55
+ margin-left: -1px;
56
+ margin-top: 8px;
57
+ font-size: 10px;
58
+ }
59
+ }
60
+ }
61
+
62
+ // WebKit
63
+ input[type=range] {
64
+ -webkit-appearance: none;
65
+ }
66
+
67
+ input[type=range]::-webkit-slider-runnable-track {
68
+ height: $track-height;
69
+ background: #c2c0c2;
70
+ border: none;
71
+ }
72
+
73
+ input[type=range]::-webkit-slider-thumb {
74
+ -webkit-appearance: none;
75
+ border: none;
76
+ height: $range-height;
77
+ width: $range-width;
78
+ border-radius: 50%;
79
+ background-color: $radio-fill-color;
80
+ transform-origin: 50% 50%;
81
+ margin: -5px 0 0 0;
82
+ transition: .3s;
83
+ }
84
+
85
+ input[type=range]:focus::-webkit-slider-runnable-track {
86
+ background: #ccc;
87
+ }
88
+
89
+ // FireFox
90
+ input[type=range] {
91
+ /* fix for FF unable to apply focus style bug */
92
+ border: 1px solid white;
93
+
94
+ /*required for proper track sizing in FF*/
95
+ }
96
+
97
+ input[type=range]::-moz-range-track {
98
+ height: $track-height;
99
+ background: #ddd;
100
+ border: none;
101
+ }
102
+
103
+ input[type=range]::-moz-range-thumb {
104
+ border: none;
105
+ height: $range-height;
106
+ width: $range-width;
107
+ border-radius: 50%;
108
+ background: $radio-fill-color;
109
+ margin-top: -5px;
110
+ }
111
+
112
+ // hide the outline behind the border
113
+ input[type=range]:-moz-focusring {
114
+ outline: 1px solid #fff;
115
+ outline-offset: -1px;
116
+ }
117
+
118
+ input[type=range]:focus::-moz-range-track {
119
+ background: #ccc;
120
+ }
121
+
122
+ // IE 10+
123
+ input[type=range]::-ms-track {
124
+ height: $track-height;
125
+
126
+ // remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead
127
+ background: transparent;
128
+
129
+ // leave room for the larger thumb to overflow with a transparent border */
130
+ border-color: transparent;
131
+ border-width: 6px 0;
132
+
133
+ /*remove default tick marks*/
134
+ color: transparent;
135
+ }
136
+
137
+ input[type=range]::-ms-fill-lower {
138
+ background: #777;
139
+ }
140
+
141
+ input[type=range]::-ms-fill-upper {
142
+ background: #ddd;
143
+ }
144
+
145
+ input[type=range]::-ms-thumb {
146
+ border: none;
147
+ height: $range-height;
148
+ width: $range-width;
149
+ border-radius: 50%;
150
+ background: $radio-fill-color;
151
+ }
152
+
153
+ input[type=range]:focus::-ms-fill-lower {
154
+ background: #888;
155
+ }
156
+
157
+ input[type=range]:focus::-ms-fill-upper {
158
+ background: #ccc;
159
+ }
@@ -0,0 +1,121 @@
1
+ /* Select Field
2
+ ========================================================================== */
3
+
4
+ select { display: none; }
5
+ select.browser-default { display: block; }
6
+
7
+ select {
8
+ background-color: $select-background;
9
+ width: 100%;
10
+ padding: $select-padding;
11
+ border: $select-border;
12
+ border-radius: $select-radius;
13
+ height: $input-height;
14
+ }
15
+
16
+ .select-label {
17
+ position: absolute;
18
+ }
19
+
20
+ .select-wrapper {
21
+ position: relative;
22
+
23
+ input.select-dropdown {
24
+ position: relative;
25
+ cursor: pointer;
26
+ background-color: transparent;
27
+ border: none;
28
+ border-bottom: $input-border;
29
+ outline: none;
30
+ height: $input-height;
31
+ line-height: $input-height;
32
+ width: 100%;
33
+ font-size: $input-font-size;
34
+ margin: $input-margin;
35
+ padding: 0;
36
+ display: block;
37
+ }
38
+
39
+ span.caret {
40
+ color: initial;
41
+ position: absolute;
42
+ right: 0;
43
+ top: 0;
44
+ bottom: 0;
45
+ height: 10px;
46
+ margin: auto 0;
47
+ font-size: 10px;
48
+ line-height: 10px;
49
+
50
+ &.disabled {
51
+ color: $input-disabled-color;
52
+ }
53
+ }
54
+
55
+ & + label {
56
+ position: absolute;
57
+ top: -14px;
58
+ font-size: $label-font-size;
59
+ }
60
+ }
61
+
62
+ // Disabled styles
63
+ select:disabled {
64
+ color: rgba(0,0,0,.3);
65
+ }
66
+
67
+ .select-wrapper input.select-dropdown:disabled {
68
+ color: rgba(0,0,0,.3);
69
+ cursor: default;
70
+ -webkit-user-select: none; /* webkit (safari, chrome) browsers */
71
+ -moz-user-select: none; /* mozilla browsers */
72
+ -ms-user-select: none; /* IE10+ */
73
+ border-bottom: 1px solid rgba(0,0,0,.3);
74
+ }
75
+
76
+ .select-wrapper i {
77
+ color: $select-disabled-color;
78
+ }
79
+
80
+ .select-dropdown li.disabled,
81
+ .select-dropdown li.disabled > span,
82
+ .select-dropdown li.optgroup {
83
+ color: $select-disabled-color;
84
+ background-color: transparent;
85
+ }
86
+
87
+ // Prefix Icons
88
+ .prefix ~ .select-wrapper {
89
+ margin-left: 3rem;
90
+ width: 92%;
91
+ width: calc(100% - 3rem);
92
+ }
93
+
94
+ .prefix ~ label { margin-left: 3rem; }
95
+
96
+ // Icons
97
+ .select-dropdown li {
98
+ img {
99
+ height: $dropdown-item-height - 10;
100
+ width: $dropdown-item-height - 10;
101
+ margin: 5px 15px;
102
+ float: right;
103
+ }
104
+ }
105
+
106
+ // Optgroup styles
107
+ .select-dropdown li.optgroup {
108
+ border-top: 1px solid $dropdown-hover-bg-color;
109
+
110
+ &.selected > span {
111
+ color: rgba(0, 0, 0, .7);
112
+ }
113
+
114
+ & > span {
115
+ color: rgba(0, 0, 0, .4);
116
+ }
117
+
118
+ & ~ li.optgroup-option {
119
+ padding-left: 1rem;
120
+ }
121
+ }