Skip to content

Commit

Permalink
Criação de arquivo breakpoints para adaptação da aplicação em diferen…
Browse files Browse the repository at this point in the history
…tes telas (devhatt#74)

* create breakpoints.scss

* Update prepare-commit-msg

---------

Co-authored-by: Alexandre Gomes <[email protected]>
  • Loading branch information
JonasGz and Alecell committed Feb 29, 2024
1 parent e573ffd commit 2c6e39c
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions src/styles/breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
$from1024SizeMin: 1024px;
$extraSmallDeviceSizeMin: 20em;
$smallDeviceSizeMin: 22.5em;
$mediumDeviceSizeMin: 41.6875em;
$largeDeviceSizeMin: 64em;
$largestDeviceSizeMin: 80em;

@mixin from1024() {
@media (min-width: #{$from1024SizeMin}) {
@mixin from320 {
@media (min-width: $extraSmallDeviceSizeMin) {
@content;
}
}

@mixin from360 {
@media (min-width: $smallDeviceSizeMin) {
@content;
}
}

@mixin from667 {
@media (min-width: $mediumDeviceSizeMin) {
@content;
}
}

@mixin from1024 {
@media (min-width: $largeDeviceSizeMin) {
@content;
}
}

@mixin from1280 {
@media (min-width: $largestDeviceSizeMin) {
@content;
}
}

0 comments on commit 2c6e39c

Please sign in to comment.