Skip to content

Commit

Permalink
styling: ensure background gradient always fills page
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Dec 21, 2021
1 parent 1cc7228 commit 2490d4b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/assets/styles/scss/partials/01-Abstract/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
/// 62rem * 16px = 992px; not in use yet
/// 64rem * 16px = 1024px;
/// 80rem * 16px = 1280px;
/// 90rem * 16px = 1440px
$breakpoints: (
"xs": 36em,
"sm": 48em,
"md": 60em,
"lg": 64em,
"xl": 80em,
"xs": 36em,
"sm": 48em,
"md": 60em,
"lg": 64em,
"xl": 80em,
"xxl": 90em,
) !default;

// Palette generated with -->
Expand Down
6 changes: 6 additions & 0 deletions src/assets/styles/scss/partials/02-Generic/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
background-image: url("/assets/images/mesh-gradient-black.webp");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}
}

Expand All @@ -92,4 +95,7 @@
background-image: url("/assets/images/mesh-gradient-black.jpg");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}
6 changes: 6 additions & 0 deletions src/assets/styles/scss/partials/05-Templates/_home-tmpl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@
background-image: url("/assets/images/mesh-gradient-white.webp");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}

/*! purgecss ignore */
.no-webp .gradient-home {
background-image: url("/assets/images/mesh-gradient-white.jpg");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}
12 changes: 12 additions & 0 deletions src/assets/styles/scss/partials/08-MQ/_dark-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@
background-image: url("/assets/images/mesh-gradient-black.webp");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}

/*! purgecss ignore */
.no-webp .gradient-home {
background-image: url("/assets/images/mesh-gradient-black.jpg");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}

.light-theme {
Expand Down Expand Up @@ -92,12 +98,18 @@
background-image: url("/assets/images/mesh-gradient-white.webp");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}

/*! purgecss ignore */
.no-webp .gradient-home.light-theme {
background-image: url("/assets/images/mesh-gradient-white.jpg");
background-repeat: no-repeat;
background-size: contain;
@include media-query(xxl) {
background-size: cover;
}
}
}

0 comments on commit 2490d4b

Please sign in to comment.