soapbox/app/styles/introduction.scss

152 wiersze
2.6 KiB
SCSS
Czysty Zwykły widok Historia

2020-03-27 20:59:38 +00:00
.introduction {
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
align-items: center !important;
@media screen and (max-width: 920px) {
2020-06-02 22:42:09 +00:00
background: var(--background-color);
2020-03-27 20:59:38 +00:00
display: block !important;
}
&__pager {
2020-06-02 22:42:09 +00:00
background: var(--background-color);
2020-03-27 20:59:38 +00:00
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
overflow: hidden;
}
&__pager,
&__frame {
border-radius: 10px;
width: 50vw;
min-width: 920px;
@media screen and (max-width: 920px) {
min-width: 0;
width: 100%;
border-radius: 0;
box-shadow: none;
}
}
&__frame-wrapper {
opacity: 0;
transition: opacity 500ms linear;
&.active {
opacity: 1;
transition: opacity 50ms linear;
}
}
&__frame {
overflow: hidden;
}
&__illustration {
height: 50vh;
@media screen and (max-width: 630px) {
height: auto;
}
img {
object-fit: cover;
display: block;
margin: 0;
width: 100%;
height: 100%;
}
}
&__text {
&--columnized {
display: flex;
& > div {
flex: 1 1 33.33%;
text-align: center;
padding: 25px;
padding-bottom: 30px;
}
@media screen and (max-width: 630px) {
display: block;
padding: 15px 0;
padding-bottom: 20px;
& > div {
padding: 10px 25px;
}
}
}
h3 {
font-size: 24px;
line-height: 1.5;
font-weight: 700;
margin-bottom: 10px;
}
p {
font-size: 16px;
line-height: 24px;
font-weight: 400;
2020-06-07 03:55:00 +00:00
color: var(--primary-text-color--faint);
2020-03-27 20:59:38 +00:00
code {
display: inline-block;
2020-06-02 22:42:09 +00:00
background: var(--background-color);
2020-03-27 20:59:38 +00:00
font-size: 15px;
2020-06-07 03:55:00 +00:00
border: 1px solid var(--brand-color--med);
2020-03-27 20:59:38 +00:00
border-radius: 2px;
padding: 1px 3px;
}
}
&--centered {
padding: 25px;
padding-bottom: 30px;
text-align: center;
}
}
&__dots {
display: flex;
align-items: center;
justify-content: center;
padding: 25px;
@media screen and (max-width: 630px) {
display: none;
}
}
&__dot {
width: 14px;
height: 14px;
border-radius: 14px;
2020-05-31 22:34:33 +00:00
border: 1px solid var(--brand-color);
2020-03-27 20:59:38 +00:00
background: transparent;
margin: 0 3px;
cursor: pointer;
&:hover {
2020-06-07 03:55:00 +00:00
background: var(--brand-color--med);
2020-03-27 20:59:38 +00:00
}
&.active {
cursor: default;
2020-05-31 22:34:33 +00:00
background: var(--brand-color);
2020-03-27 20:59:38 +00:00
}
}
&__action {
padding: 25px;
padding-top: 0;
display: flex;
align-items: center;
justify-content: center;
}
}