boussole-pluss/frontend/assets/css/main.scss

209 lines
3.0 KiB
SCSS
Raw Permalink Normal View History

2022-10-07 14:15:53 +00:00
$breakpoint: 1024px;
*,
::after,
::before {
box-sizing: border-box;
2022-10-07 14:15:53 +00:00
margin: 0;
padding: 0;
}
body {
2022-10-07 14:15:53 +00:00
scroll-behavior: smooth;
overflow-x: hidden;
color: $gray_4;
font-family: $font-primary;
background: $white; // #ededf0
2022-10-07 14:15:53 +00:00
}
.main-content {
min-height: calc(100vh - $footer_height - $header_height);
max-width: $content_width;
margin: 0 auto;
@media only screen and (max-width: $breakpoint) {
margin: 0 $small;
}
}
a, .button-link {
color: $gray_4;
font-size: 1rem;
font-weight: 500;
text-decoration: underline;
2022-10-07 14:15:53 +00:00
&:hover {
text-decoration: none;
2022-10-07 14:15:53 +00:00
}
}
.button-link {
border: none;
background: none;
cursor: pointer;
}
a, p, .button-link {
font-family: $font-primary;
}
2022-10-07 14:15:53 +00:00
ul, ol {
margin: 0;
2022-10-07 14:15:53 +00:00
}
h1 {
font-size: 1.75rem;
line-height: 2.125rem;
margin: $medium 0;
2022-10-07 14:15:53 +00:00
color: $black;
@media only screen and (max-width: $breakpoint) {
margin: $xx_small 0;
2022-10-07 14:15:53 +00:00
}
}
h2 {
font-weight: bold;
font-size: 2rem;
line-height: 2.75rem;
letter-spacing: -0.02em;
margin: $xx_medium 0 $x_medium 0;
2022-10-07 14:15:53 +00:00
@media only screen and (max-width: $breakpoint) {
margin: $xx_small;
}
}
h3 {
font-style: normal;
font-weight: bold;
font-size: 1.75rem;
line-height: 2rem;
margin: $medium 0;
2022-10-07 14:15:53 +00:00
}
p + p { margin-top: 1.5rem }
hr {
color: $gray_3;
margin: $xxx_small 0;
}
.form {
display: flex;
flex-direction: column;
gap: $xxx_small;
margin-block: $medium;
&__help {
margin-block: $medium $small;
}
}
2022-10-07 14:15:53 +00:00
.bold {
font-weight: bold;
}
.button {
display: flex;
justify-content: center;
2022-10-07 14:15:53 +00:00
align-items: center;
text-decoration: none;
padding: $x_small $small;
2022-10-07 14:15:53 +00:00
color: $white;
border-radius: 100px;
border: none;
font-weight: 700;
font-size: $tertiary-font-size;
font-style: normal;
}
.button:hover {
cursor: pointer;
text-decoration: none;
}
.button-container {
display: flex;
justify-content: center;
gap: $xx_small;
margin: $x_medium 0;
.button {
flex: 1;
}
.button-back {
flex: 0;
}
2022-10-07 14:15:53 +00:00
}
.button.orange:hover:not(:disabled) {
background: $orange_hover;
}
.button.orange {
background: $orange;
}
.button.blue:hover:not(:disabled) {
background: $blue_hover;
}
.button.blue {
background: $blue;
}
.button.gray:hover:not(:disabled) {
background: $gray_3;
color: $gray_1;
}
.button.gray {
background: $gray_1;
color: $gray_3;
}
.button:disabled {
background: $gray_1;
color: $gray_3;
cursor: default;
}
.button-icon {
border: none;
background: none;
cursor: pointer;
padding: $xxx_small;
font-size: 1.5rem;
line-height: 24px;
border-radius: $xxx_small;
&:hover, &:active {
background: $gray_1;
}
}
2022-10-07 14:15:53 +00:00
input[type=text],
input[type=email],
2022-10-07 14:15:53 +00:00
input[type=password] {
background: $gray_1;
border: 1px solid $gray_2;
border-radius: 100px;
line-height: 50px;
padding: 0 $small;
2022-10-07 14:15:53 +00:00
}
input[type=text]::placeholder,
input[type=email]::placeholder,
2022-10-07 14:15:53 +00:00
input[type=password]::placeholder {
color: $gray_3;
}
.center {
display: flex;
justify-content: center;
align-items: center;
height: 70vh;
}
.text-center {
text-align: center;
}