mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2025-09-18 21:07:48 +02:00
120 lines
2.1 KiB
SCSS
120 lines
2.1 KiB
SCSS
@use "sass:math";
|
|
@import "./../abstracts/index";
|
|
|
|
.welcome {
|
|
position: relative;
|
|
z-index: 0;
|
|
background: $color-primary;
|
|
@include gradient-primary();
|
|
|
|
.container {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
height: $welcome-height;
|
|
min-height: $welcome-min-height;
|
|
color: $color-neutral-light;
|
|
}
|
|
|
|
.mini_container {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
min-height: $welcome-min-height;
|
|
color: $color-neutral-light;
|
|
width: 100%;
|
|
max-width: $desktop-width;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding-left: $gap-md;
|
|
padding-right: $gap-md;
|
|
}
|
|
|
|
&__title {
|
|
font-size: 2.6em;
|
|
margin-bottom: $gap-sm;
|
|
|
|
@include up-to-mobile {
|
|
word-break: break-all;
|
|
}
|
|
|
|
@include desktop {
|
|
width: 85%;
|
|
font-size: 3.6em;
|
|
}
|
|
}
|
|
|
|
&__description {
|
|
font-size: 18px;
|
|
width: 100%;
|
|
@include desktop {
|
|
width: 80%;
|
|
}
|
|
}
|
|
|
|
&__actions {
|
|
display: flex;
|
|
margin-top: math.div($gap-lg * 3, 2);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
&__action {
|
|
padding: 12px 16px;
|
|
border-radius: 50px;
|
|
text-decoration: none;
|
|
color: $welcome-action-color;
|
|
border: 1px solid $welcome-action-color;
|
|
margin-right: $gap-md;
|
|
margin-bottom: $gap-md;
|
|
transition: background-color .3s ease, color .3s ease;
|
|
min-width: fit-content;
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $welcome-action-color;
|
|
color: get-color-accessible-for-background($welcome-action-color)
|
|
}
|
|
}
|
|
|
|
&__image {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@include up-to-mobile{
|
|
.welcome{
|
|
padding-top: 7rem;
|
|
}
|
|
}
|
|
|
|
@include desktop {
|
|
.welcome__image {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: -1;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
height: 70%;
|
|
width: 24%;
|
|
overflow: hidden;
|
|
transform: translate(0, -50%);
|
|
|
|
img {
|
|
display: block;
|
|
margin: auto;
|
|
max-width: 200px;
|
|
max-height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|