Created
December 15, 2021 19:52
-
-
Save Wakkos/f9fb0c7e600885983c39bfcaa7c5bfb4 to your computer and use it in GitHub Desktop.
Revisions
-
Wakkos created this gist
Dec 15, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ $small : 48em; $medium : 56.25em; $large : 1600px; @mixin respond-to($breakpoint: $medium) { @media (min-width: $breakpoint) { @content; } } .image-test { background-image: url(../../images/logan-480.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; height: 100vh; width: 100vw; @include respond-to() { background-image: url('../../images/logan-900.jpg') } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ .image-test { background-image: url(../../images/logan-480.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; height: 100vh; width: 100vw; } @media (min-width: 56.25em) { .image-test { background-image: url("../../images/logan-900.jpg"); } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ { "sass": { "compiler": "dart-sass/1.32.12", "extensions": {}, "syntax": "SCSS", "outputStyle": "expanded" }, "autoprefixer": false }