Tweak some mobile styles

This commit is contained in:
Yannik Rödel 2022-03-18 19:11:05 +01:00
parent c7aefe142d
commit 1fb770080d
3 changed files with 26 additions and 8 deletions

View file

@ -6,7 +6,13 @@
%form-item {
@extend %narrow-content-gutter;
display: flex;
align-items: center;
flex-direction: column;
align-items: stretch;
@media screen and (min-width: layout.$breakpoint) {
flex-direction: row;
align-items: center;
}
}
%form-label {
@ -42,14 +48,22 @@
> span {
@extend %form-label;
flex-grow: 1;
text-align: right;
@media screen and (min-width: layout.$breakpoint) {
text-align: right;
}
}
> input,
> textarea {
@extend %form-input;
flex-basis: 60%;
margin-left: layout.$normal-gap;
margin-top: layout.$small-gap;
@media screen and (min-width: layout.$breakpoint) {
margin-top: 0;
margin-left: layout.$normal-gap;
}
}
}
@ -95,7 +109,6 @@
.form-submit {
@extend %form-item;
justify-content: flex-end;
margin: layout.$huge-gap auto;
> input {
@extend %form-input;

View file

@ -9,7 +9,7 @@ body {
}
%title {
@extend %content;
@extend %content-gutter;
margin-top: layout.$huge-gap;
margin-bottom: layout.$large-gap;
font-size: typography.$title-size;
@ -22,7 +22,7 @@ h1 {
}
%heading {
@extend %content;
@extend %content-gutter;
margin-top: layout.$large-gap;
margin-bottom: layout.$large-gap;
font-size: typography.$heading-size;

View file

@ -17,8 +17,13 @@ $wide-content-width: 80rem;
}
%narrow-content-gutter {
margin: $normal-gap auto;
max-width: $narrow-content-width;
margin: $normal-gap $normal-gap;
@media screen and (min-width: $breakpoint) {
margin-left: auto;
margin-right: auto;
max-width: $narrow-content-width;
}
}
%content {