mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 17:25:40 +00:00
Added mixin for breakpoints
This commit is contained in:
parent
42460463c5
commit
5b14472dbb
25
styles/mixins.module.scss
Normal file
25
styles/mixins.module.scss
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
@import "variables.module";
|
||||||
|
|
||||||
|
@mixin sm {
|
||||||
|
@media (min-width: #{$screen-sm-min}) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin md {
|
||||||
|
@media (min-width: #{$screen-md-min}) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin lg {
|
||||||
|
@media (min-width: #{$screen-lg-min}) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin xl {
|
||||||
|
@media (min-width: #{$screen-xl-min}) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
4
styles/variables.module.scss
Normal file
4
styles/variables.module.scss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
$screen-sm-min: 640px;
|
||||||
|
$screen-md-min: 768px;
|
||||||
|
$screen-lg-min: 1024px;
|
||||||
|
$screen-xl-min: 1280px;
|
Loading…
Reference in New Issue
Block a user