Skip to content

Commit 75ed53d

Browse files
committed
Adiciona mixin de media queries
1 parent 48452f5 commit 75ed53d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

css/scss/_variables.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,22 @@ $dark-blue: #005499;
1414
font-family: $font;
1515
font-size: em($size);
1616
font-weight: $weight;
17+
}
18+
19+
@mixin device($size) {
20+
@if $size == medium {
21+
@media only screen and (max-width: 768px) {
22+
@content;
23+
}
24+
}
25+
@else if $size == small {
26+
@media only screen and (max-width: 550px) {
27+
@content;
28+
}
29+
}
30+
@else {
31+
@media only screen and (max-width: $size) {
32+
@content;
33+
}
34+
}
1735
}

0 commit comments

Comments
 (0)