Skip to content

Commit 0eebfde

Browse files
committed
updated demo
1 parent 31fe1a8 commit 0eebfde

37 files changed

+3152
-356
lines changed

demo/demo.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/demo.scss

+61-13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import '../src/scss/mixins/color';
44
@import '../src/scss/mixins/grid';
55
@import '../src/scss/mixins/utils';
6+
@import '../src/scss/mixins/responsive';
67

78
#sidebar {
89
position: fixed;
@@ -13,13 +14,13 @@
1314
padding: 50px 35px;
1415
z-index: 2;
1516
background: $dark;
16-
@include transition();
17-
@media(max-width: 992px) {
17+
@include transition;
18+
@include max(md) {
1819
width: 270px;
1920
padding: 30px 20px;
2021
@include translate(-270px, 0);
2122
&.show {
22-
@include translate();
23+
@include translate;
2324
}
2425
}
2526
h1 {
@@ -67,7 +68,7 @@
6768
font-size: 18px;
6869
display: block;
6970
color: $dark80;
70-
@include transition();
71+
@include transition;
7172
&:hover {
7273
color: $dark60;
7374
}
@@ -84,7 +85,7 @@
8485

8586
#content {
8687
padding: 50px 30px 0 330px;
87-
@media(max-width: 992px) {
88+
@include max(md) {
8889
padding: 30px 0 0 0;
8990
}
9091
.container-fluid {
@@ -94,7 +95,7 @@
9495
margin: 0 0 48px 0;
9596
position: relative;
9697
border-bottom: 1px solid $border;
97-
@media(max-width: 992px) {
98+
@include max(md) {
9899
padding-right: 59px;
99100
}
100101
h1 {
@@ -141,7 +142,7 @@
141142
z-index: 2;
142143
border-radius: 50%;
143144
@include shadow('sm');
144-
@media(max-width: 992px) {
145+
@include max(md) {
145146
display: block;
146147
}
147148
i {
@@ -156,12 +157,12 @@
156157
}
157158
section {
158159
margin: 0 0 48px 0;
159-
@media(max-width: 992px) {
160+
@include max(md) {
160161
margin: 0 0 32px 0;
161162
}
162163
.box {
163164
margin: 0 0 32px 0;
164-
@media(max-width: 992px) {
165+
@include max(md) {
165166
margin: 0 0 24px 0;
166167
}
167168
}
@@ -178,7 +179,7 @@
178179
}
179180

180181
#overlay {
181-
@media(max-width: 992px) {
182+
@include max(md) {
182183
position: fixed;
183184
left: 0;
184185
top: 0;
@@ -194,7 +195,7 @@
194195
.color {
195196
height: 116px;
196197
border-radius: 4px;
197-
@media(max-width: 992px) {
198+
@include max(md) {
198199
height: 92px;
199200
}
200201
&.primary {
@@ -209,7 +210,7 @@
209210
&.small {
210211
height: 52px;
211212
margin: 0 0 12px 0;
212-
@media(max-width: 1200px) {
213+
@include max(lg) {
213214
height: 40px;
214215
}
215216
}
@@ -246,6 +247,9 @@
246247
&.error {
247248
background: $error;
248249
}
250+
&.warning {
251+
background: $warning;
252+
}
249253
&.info {
250254
background: $info;
251255
}
@@ -309,7 +313,7 @@
309313
padding: 24px;
310314
border-radius: 4px;
311315
@include shadow();
312-
@media(max-width: 992px) {
316+
@include max(md) {
313317
height: 92px;
314318
}
315319
&.sm {
@@ -329,6 +333,50 @@
329333
}
330334
}
331335

336+
#icons {
337+
section {
338+
@include clear-after;
339+
.preview {
340+
width: 20%;
341+
float: left;
342+
margin: 5px 0;
343+
white-space: nowrap;
344+
overflow: hidden;
345+
text-overflow: ellipsis;
346+
@include max(lg) {
347+
width: 25%;
348+
}
349+
@include max(md) {
350+
width: 33.3333%;
351+
}
352+
@include max(sm) {
353+
width: 50%;
354+
}
355+
.inner {
356+
i {
357+
color: $dark;
358+
&:before {
359+
line-height: 36px;
360+
font-size: 18px;
361+
}
362+
}
363+
display: inline-block;
364+
vertical-align: top;
365+
margin: 0 8px 0 0;
366+
}
367+
br {
368+
display: none;
369+
}
370+
.label {
371+
color: $dark40;
372+
line-height: 36px;
373+
font-size: 14px;
374+
font-weight: 500;
375+
}
376+
}
377+
}
378+
}
379+
332380
.caption {
333381
text-transform: uppercase;
334382
display: block;

0 commit comments

Comments
 (0)