Skip to content

Commit

Permalink
Update breakpoints / test
Browse files Browse the repository at this point in the history
  • Loading branch information
ramono committed Aug 18, 2022
1 parent d0d76e0 commit beb29da
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
10 changes: 5 additions & 5 deletions css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
// */
@mixin respond($bp) {
@if $bp == 'sm' {
@media (max-width: global.$bp-m) {
@media (max-width: global.$bp-s) {
@content;
}
}
@else if $bp == 'md' {
@media (min-width: global.$bp-m) and (max-width: (global.$bp-l - 1)) {
@media (min-width: global.$bp-s) and (max-width: (global.$bp-m - 1)) {
@content;
}
}
@else if $bp == 'md-up' {
@media (min-width: global.$bp-m) {
@media (min-width: global.$bp-s) {
@content;
}
}
@else if $bp == 'md-dn' {
@media (max-width: (global.$bp-l - 1)) {
@media (max-width: (global.$bp-m - 1)) {
@content;
}
}
Expand Down
4 changes: 2 additions & 2 deletions scss/variables/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ $fonts: '../fonts/';
// Breakpoints
$bp-xl: 1480px;
$bp-l: 1180px;
$bp-m: 720px;
$bp-s: 120px;
$bp-m: 980px;
$bp-s: 640px;

0 comments on commit beb29da

Please sign in to comment.