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,47 @@
|
|
1
|
+
// Badges
|
2
|
+
span.badge {
|
3
|
+
min-width: 3rem;
|
4
|
+
padding: 0 6px;
|
5
|
+
margin-left: 14px;
|
6
|
+
text-align: center;
|
7
|
+
font-size: 1rem;
|
8
|
+
line-height: $badge-height;
|
9
|
+
height: $badge-height;
|
10
|
+
color: color('grey', 'darken-1');
|
11
|
+
float: right;
|
12
|
+
box-sizing: border-box;
|
13
|
+
|
14
|
+
&.new {
|
15
|
+
font-weight: 300;
|
16
|
+
font-size: 0.8rem;
|
17
|
+
color: #fff;
|
18
|
+
background-color: $badge-bg-color;
|
19
|
+
border-radius: 2px;
|
20
|
+
}
|
21
|
+
&.new:after {
|
22
|
+
content: " new";
|
23
|
+
}
|
24
|
+
|
25
|
+
&[data-badge-caption]::after {
|
26
|
+
content: " " attr(data-badge-caption);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
nav ul a span.badge {
|
30
|
+
display: inline-block;
|
31
|
+
float: none;
|
32
|
+
margin-left: 4px;
|
33
|
+
line-height: $badge-height;
|
34
|
+
height: $badge-height;
|
35
|
+
-webkit-font-smoothing: auto;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Line height centering
|
39
|
+
.collection-item span.badge {
|
40
|
+
margin-top: calc(#{$collection-line-height / 2} - #{$badge-height / 2});
|
41
|
+
}
|
42
|
+
.collapsible span.badge {
|
43
|
+
margin-left: auto;
|
44
|
+
}
|
45
|
+
.side-nav span.badge {
|
46
|
+
margin-top: calc(#{$sidenav-line-height / 2} - #{$badge-height / 2});
|
47
|
+
}
|
@@ -0,0 +1,291 @@
|
|
1
|
+
// shared styles
|
2
|
+
.btn,
|
3
|
+
.btn-flat {
|
4
|
+
border: $button-border;
|
5
|
+
border-radius: $button-radius;
|
6
|
+
display: inline-block;
|
7
|
+
height: $button-height;
|
8
|
+
line-height: $button-height;
|
9
|
+
padding: $button-padding;
|
10
|
+
text-transform: uppercase;
|
11
|
+
vertical-align: middle;
|
12
|
+
// Gets rid of tap active state
|
13
|
+
-webkit-tap-highlight-color: transparent;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Disabled shared style
|
17
|
+
.btn.disabled,
|
18
|
+
.btn-floating.disabled,
|
19
|
+
.btn-large.disabled,
|
20
|
+
.btn-flat.disabled,
|
21
|
+
.btn:disabled,
|
22
|
+
.btn-floating:disabled,
|
23
|
+
.btn-large:disabled,
|
24
|
+
.btn-flat:disabled,
|
25
|
+
.btn[disabled],
|
26
|
+
.btn-floating[disabled],
|
27
|
+
.btn-large[disabled],
|
28
|
+
.btn-flat[disabled] {
|
29
|
+
pointer-events: none;
|
30
|
+
background-color: $button-disabled-background !important;
|
31
|
+
box-shadow: none;
|
32
|
+
color: $button-disabled-color !important;
|
33
|
+
cursor: default;
|
34
|
+
|
35
|
+
&:hover {
|
36
|
+
background-color: $button-disabled-background !important;
|
37
|
+
color: $button-disabled-color !important;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
// Shared icon styles
|
42
|
+
.btn,
|
43
|
+
.btn-floating,
|
44
|
+
.btn-large,
|
45
|
+
.btn-flat {
|
46
|
+
font-size: $button-font-size;
|
47
|
+
outline: 0;
|
48
|
+
|
49
|
+
i {
|
50
|
+
font-size: $button-icon-font-size;
|
51
|
+
line-height: inherit;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
// Shared focus button style
|
56
|
+
.btn,
|
57
|
+
.btn-floating {
|
58
|
+
&:focus {
|
59
|
+
background-color: darken($button-raised-background, 10%);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Raised Button
|
64
|
+
.btn {
|
65
|
+
text-decoration: none;
|
66
|
+
color: $button-raised-color;
|
67
|
+
background-color: $button-raised-background;
|
68
|
+
text-align: center;
|
69
|
+
letter-spacing: .5px;
|
70
|
+
@extend .z-depth-1;
|
71
|
+
transition: .2s ease-out;
|
72
|
+
cursor: pointer;
|
73
|
+
|
74
|
+
&:hover {
|
75
|
+
background-color: $button-raised-background-hover;
|
76
|
+
@extend .z-depth-1-half;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
// Floating button
|
81
|
+
.btn-floating {
|
82
|
+
&:hover {
|
83
|
+
background-color: $button-floating-background-hover;
|
84
|
+
@extend .z-depth-1-half;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:before {
|
88
|
+
border-radius: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
&.btn-large {
|
92
|
+
&.halfway-fab {
|
93
|
+
bottom: -$button-floating-large-size / 2;
|
94
|
+
}
|
95
|
+
|
96
|
+
width: $button-floating-large-size;
|
97
|
+
height: $button-floating-large-size;
|
98
|
+
i {
|
99
|
+
line-height: $button-floating-large-size;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&.halfway-fab {
|
104
|
+
&.left {
|
105
|
+
right: auto;
|
106
|
+
left: 24px;
|
107
|
+
}
|
108
|
+
|
109
|
+
position: absolute;
|
110
|
+
right: 24px;
|
111
|
+
bottom: -$button-floating-size / 2;
|
112
|
+
}
|
113
|
+
|
114
|
+
display: inline-block;
|
115
|
+
color: $button-floating-color;
|
116
|
+
position: relative;
|
117
|
+
overflow: hidden;
|
118
|
+
z-index: 1;
|
119
|
+
width: $button-floating-size;
|
120
|
+
height: $button-floating-size;
|
121
|
+
line-height: $button-floating-size;
|
122
|
+
padding: 0;
|
123
|
+
background-color: $button-floating-background;
|
124
|
+
border-radius: $button-floating-radius;
|
125
|
+
@extend .z-depth-1;
|
126
|
+
transition: .3s;
|
127
|
+
cursor: pointer;
|
128
|
+
vertical-align: middle;
|
129
|
+
|
130
|
+
i {
|
131
|
+
width: inherit;
|
132
|
+
display: inline-block;
|
133
|
+
text-align: center;
|
134
|
+
color: $button-floating-color;
|
135
|
+
font-size: $button-large-icon-font-size;
|
136
|
+
line-height: $button-floating-size;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
// button fix
|
141
|
+
button.btn-floating {
|
142
|
+
border: $button-border;
|
143
|
+
}
|
144
|
+
|
145
|
+
// Fixed Action Button
|
146
|
+
.fixed-action-btn {
|
147
|
+
&.active {
|
148
|
+
ul {
|
149
|
+
visibility: visible;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
&.horizontal {
|
154
|
+
padding: 0 0 0 15px;
|
155
|
+
|
156
|
+
ul {
|
157
|
+
text-align: right;
|
158
|
+
right: 64px;
|
159
|
+
top: 50%;
|
160
|
+
transform: translateY(-50%);
|
161
|
+
height: 100%;
|
162
|
+
left: auto;
|
163
|
+
width: 500px; /*width 100% only goes to width of button container */
|
164
|
+
|
165
|
+
li {
|
166
|
+
display: inline-block;
|
167
|
+
margin: 15px 15px 0 0;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
&.toolbar {
|
173
|
+
&.active {
|
174
|
+
& > a i {
|
175
|
+
opacity: 0;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
padding: 0;
|
180
|
+
height: $button-floating-large-size;
|
181
|
+
|
182
|
+
ul {
|
183
|
+
display: flex;
|
184
|
+
top: 0;
|
185
|
+
bottom: 0;
|
186
|
+
z-index: 1;
|
187
|
+
|
188
|
+
li {
|
189
|
+
flex: 1;
|
190
|
+
display: inline-block;
|
191
|
+
margin: 0;
|
192
|
+
height: 100%;
|
193
|
+
transition: none;
|
194
|
+
|
195
|
+
a {
|
196
|
+
display: block;
|
197
|
+
overflow: hidden;
|
198
|
+
position: relative;
|
199
|
+
width: 100%;
|
200
|
+
height: 100%;
|
201
|
+
background-color: transparent;
|
202
|
+
box-shadow: none;
|
203
|
+
color: #fff;
|
204
|
+
line-height: $button-floating-large-size;
|
205
|
+
z-index: 1;
|
206
|
+
|
207
|
+
i {
|
208
|
+
line-height: inherit;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
position: fixed;
|
216
|
+
right: 23px;
|
217
|
+
bottom: 23px;
|
218
|
+
padding-top: 15px;
|
219
|
+
margin-bottom: 0;
|
220
|
+
z-index: 997;
|
221
|
+
|
222
|
+
ul {
|
223
|
+
left: 0;
|
224
|
+
right: 0;
|
225
|
+
text-align: center;
|
226
|
+
position: absolute;
|
227
|
+
bottom: 64px;
|
228
|
+
margin: 0;
|
229
|
+
visibility: hidden;
|
230
|
+
|
231
|
+
li {
|
232
|
+
margin-bottom: 15px;
|
233
|
+
}
|
234
|
+
|
235
|
+
a.btn-floating {
|
236
|
+
opacity: 0;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
.fab-backdrop {
|
241
|
+
position: absolute;
|
242
|
+
top: 0;
|
243
|
+
left: 0;
|
244
|
+
z-index: -1;
|
245
|
+
width: $button-floating-size;
|
246
|
+
height: $button-floating-size;
|
247
|
+
background-color: $button-floating-background;
|
248
|
+
border-radius: $button-floating-radius;
|
249
|
+
transform: scale(0);
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
// Flat button
|
254
|
+
.btn-flat {
|
255
|
+
box-shadow: none;
|
256
|
+
background-color: transparent;
|
257
|
+
color: $button-flat-color;
|
258
|
+
cursor: pointer;
|
259
|
+
transition: background-color .2s;
|
260
|
+
|
261
|
+
&:focus,
|
262
|
+
&:hover {
|
263
|
+
box-shadow: none;
|
264
|
+
}
|
265
|
+
|
266
|
+
&:focus {
|
267
|
+
background-color: rgba(0,0,0,.1);
|
268
|
+
}
|
269
|
+
|
270
|
+
&.disabled {
|
271
|
+
background-color: transparent !important;
|
272
|
+
color: $button-flat-disabled-color !important;
|
273
|
+
cursor: default;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
|
277
|
+
// Large button
|
278
|
+
.btn-large {
|
279
|
+
@extend .btn;
|
280
|
+
height: $button-large-height;
|
281
|
+
line-height: $button-large-height;
|
282
|
+
|
283
|
+
i {
|
284
|
+
font-size: $button-large-icon-font-size;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
288
|
+
// Block button
|
289
|
+
.btn-block {
|
290
|
+
display: block;
|
291
|
+
}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
.card-panel {
|
4
|
+
transition: box-shadow .25s;
|
5
|
+
padding: $card-padding;
|
6
|
+
margin: $element-top-margin 0 $element-bottom-margin 0;
|
7
|
+
border-radius: 2px;
|
8
|
+
@extend .z-depth-1;
|
9
|
+
background-color: $card-bg-color;
|
10
|
+
}
|
11
|
+
|
12
|
+
.card {
|
13
|
+
position: relative;
|
14
|
+
margin: $element-top-margin 0 $element-bottom-margin 0;
|
15
|
+
background-color: $card-bg-color;
|
16
|
+
transition: box-shadow .25s;
|
17
|
+
border-radius: 2px;
|
18
|
+
@extend .z-depth-1;
|
19
|
+
|
20
|
+
|
21
|
+
.card-title {
|
22
|
+
font-size: 24px;
|
23
|
+
font-weight: 300;
|
24
|
+
&.activator {
|
25
|
+
cursor: pointer;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
// Card Sizes
|
30
|
+
&.small, &.medium, &.large {
|
31
|
+
position: relative;
|
32
|
+
|
33
|
+
.card-image {
|
34
|
+
max-height: 60%;
|
35
|
+
overflow: hidden;
|
36
|
+
}
|
37
|
+
.card-image + .card-content {
|
38
|
+
max-height: 40%;
|
39
|
+
}
|
40
|
+
.card-content {
|
41
|
+
max-height: 100%;
|
42
|
+
overflow: hidden;
|
43
|
+
}
|
44
|
+
.card-action {
|
45
|
+
position: absolute;
|
46
|
+
bottom: 0;
|
47
|
+
left: 0;
|
48
|
+
right: 0;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&.small {
|
53
|
+
height: 300px;
|
54
|
+
}
|
55
|
+
|
56
|
+
&.medium {
|
57
|
+
height: 400px;
|
58
|
+
}
|
59
|
+
|
60
|
+
&.large {
|
61
|
+
height: 500px;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Horizontal Cards
|
65
|
+
&.horizontal {
|
66
|
+
&.small, &.medium, &.large {
|
67
|
+
.card-image {
|
68
|
+
height: 100%;
|
69
|
+
max-height: none;
|
70
|
+
overflow: visible;
|
71
|
+
|
72
|
+
img {
|
73
|
+
height: 100%;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
display: flex;
|
79
|
+
|
80
|
+
.card-image {
|
81
|
+
max-width: 50%;
|
82
|
+
img {
|
83
|
+
border-radius: 2px 0 0 2px;
|
84
|
+
max-width: 100%;
|
85
|
+
width: auto;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.card-stacked {
|
90
|
+
display: flex;
|
91
|
+
flex-direction: column;
|
92
|
+
flex: 1;
|
93
|
+
position: relative;
|
94
|
+
|
95
|
+
.card-content {
|
96
|
+
flex-grow: 1;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// Sticky Action Section
|
102
|
+
&.sticky-action {
|
103
|
+
.card-action {
|
104
|
+
z-index: 2;
|
105
|
+
}
|
106
|
+
|
107
|
+
.card-reveal {
|
108
|
+
z-index: 1;
|
109
|
+
padding-bottom: 64px;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
.card-image {
|
117
|
+
position: relative;
|
118
|
+
|
119
|
+
// Image background for content
|
120
|
+
img {
|
121
|
+
display: block;
|
122
|
+
border-radius: 2px 2px 0 0;
|
123
|
+
position: relative;
|
124
|
+
left: 0;
|
125
|
+
right: 0;
|
126
|
+
top: 0;
|
127
|
+
bottom: 0;
|
128
|
+
width: 100%;
|
129
|
+
}
|
130
|
+
|
131
|
+
.card-title {
|
132
|
+
color: $card-bg-color;
|
133
|
+
position: absolute;
|
134
|
+
bottom: 0;
|
135
|
+
left: 0;
|
136
|
+
max-width: 100%;
|
137
|
+
padding: $card-padding;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.card-content {
|
142
|
+
padding: $card-padding;
|
143
|
+
border-radius: 0 0 2px 2px;
|
144
|
+
|
145
|
+
p {
|
146
|
+
margin: 0;
|
147
|
+
color: inherit;
|
148
|
+
}
|
149
|
+
.card-title {
|
150
|
+
display: block;
|
151
|
+
line-height: 32px;
|
152
|
+
margin-bottom: 8px;
|
153
|
+
|
154
|
+
i {
|
155
|
+
line-height: 32px;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
.card-action {
|
161
|
+
&:last-child {
|
162
|
+
border-radius: 0 0 2px 2px;
|
163
|
+
}
|
164
|
+
position: relative;
|
165
|
+
background-color: inherit;
|
166
|
+
border-top: 1px solid rgba(160,160,160,.2);
|
167
|
+
padding: 16px $card-padding;
|
168
|
+
|
169
|
+
a:not(.btn):not(.btn-large):not(.btn-floating) {
|
170
|
+
color: $card-link-color;
|
171
|
+
margin-right: $card-padding;
|
172
|
+
transition: color .3s ease;
|
173
|
+
text-transform: uppercase;
|
174
|
+
|
175
|
+
&:hover { color: $card-link-color-light; }
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
.card-reveal {
|
180
|
+
padding: $card-padding;
|
181
|
+
position: absolute;
|
182
|
+
background-color: $card-bg-color;
|
183
|
+
width: 100%;
|
184
|
+
overflow-y: auto;
|
185
|
+
left: 0;
|
186
|
+
top: 100%;
|
187
|
+
height: 100%;
|
188
|
+
z-index: 3;
|
189
|
+
display: none;
|
190
|
+
|
191
|
+
.card-title {
|
192
|
+
cursor: pointer;
|
193
|
+
display: block;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|