Edit section style

This commit is contained in:
Paul Nicoué 2023-02-15 12:26:30 +01:00
parent 12da502e99
commit a0d337708e
6 changed files with 13 additions and 13 deletions

View file

@ -39,7 +39,7 @@
'app-footer' auto
/ 100%;
place-content: start center;
place-items: center center;
place-items: center;
&__main {
grid-area: app-main;

View file

@ -35,8 +35,9 @@
// Dimensions
--section-max-width: Min(100%, 80rem);
--content-max-width: Min(100%, 60rem);
--large-content-width: Min(100%, 120rem);
--medium-content-width: Min(100%, 80rem);
--small-content-width: Min(100%, 40rem);
--regular-icon-size: 2rem;
--regular-icon-wrapper-size: calc(var(--regular-icon-size) + 1rem);
--small-icon-size: calc(var(--text-font-size) * var(--line-height));
@ -290,7 +291,7 @@ form {
// --------------------------------------------------
section {
max-width: var(--section-max-width);
width: var(--medium-content-width);
padding: 4rem 2rem;
@media screen and (min-width: $tablet-media-query) {
@ -302,9 +303,8 @@ section {
}
}
@mixin hero-section {
max-width: unset;
width: 100%;
@mixin large-section {
width: var(--large-content-width);
}
// --------------------------------------------------

View file

@ -61,10 +61,12 @@
main {
width: 100%;
display: flex;
justify-content: center;
}
.error {
@include hero-section;
@include large-section;
display: grid;
grid:
'title' minmax(var(--h1-font-height), auto)

View file

@ -104,7 +104,6 @@
// --------------------------------------------------
.contact-form {
max-width: var(--content-max-width);
display: grid;
grid:
'name name' auto

View file

@ -41,7 +41,6 @@
// --------------------------------------------------
.contact-header {
max-width: var(--content-max-width);
display: grid;
place-content: start;
place-items: start;

View file

@ -54,7 +54,7 @@
// --------------------------------------------------
.hero {
@include hero-section;
@include large-section;
height: 100vh;
height: 100svh;
display: grid;