refactor(header): created mixin for media queries

This commit is contained in:
Henrique Santos Santana 2022-12-30 20:33:07 -03:00
parent 09295f127d
commit 95be3fe2ed
3 changed files with 18 additions and 0 deletions

View File

@ -1,4 +1,5 @@
@import './resources/colors';
@import './resources/fonts';
@import './resources/breakpoints';
@import './helpers/mixin';
@import './helpers/functions';

View File

@ -3,3 +3,14 @@
height: #{$size};
}
@mixin mq($point, $type, $custom) {
@if map-has-key($breakpoints, $point) {
@media screen and (#{$type}-width: #{map-get($breakpoints, $point)}) {
@content;
}
} @else if map-has-key($breakpoints, $point) == false && $custom == true {
@media screen and (#{$type}-width: #{$custom}) {
@content;
}
}
} ;

View File

@ -0,0 +1,6 @@
// desenvolvimento focado em mobile-first
$breakpoints: (
'md': 1025px,
'lg': 2500px,
) !default;