SiteWebAstrolabe/src/scss/components/_intro.scss

123 lines
1.8 KiB
SCSS
Raw Normal View History

2020-06-19 23:47:44 +02:00
.intro {
margin-top: 8rem;
2020-07-16 15:52:40 +02:00
.wrapper {
display: flex;
flex-wrap: wrap;
}
2020-06-19 23:47:44 +02:00
&__summary {
--flow-space: #{get-size(500)};
font-size: get-size(500);
a {
color: currentColor;
&:hover {
text-decoration: none;
}
}
}
&__heading {
max-width: 44rem;
color: var(--color-text);
font-size: 2.5rem;
2020-07-06 13:35:38 +02:00
display: inline-block;
2020-06-19 23:47:44 +02:00
2020-07-06 13:35:38 +02:00
+ svg {
2020-07-16 15:52:40 +02:00
margin-left: auto;
margin-right: 8rem;
2020-07-06 13:35:38 +02:00
vertical-align: middle;
2020-07-17 13:33:39 +02:00
max-width: 8rem;
2020-07-06 13:35:38 +02:00
}
2020-06-19 23:47:44 +02:00
}
2020-07-16 15:52:40 +02:00
.btn-grp {
margin-top: -3.5rem;
}
2020-06-19 23:47:44 +02:00
}
2020-07-17 13:33:39 +02:00
2020-07-17 18:35:06 +02:00
@media (min-width: 768px) and (max-width: 1199.98px) {
.intro {
margin-top: 4rem;
&__heading {
width: 100%;
max-width: none;
+ svg {
order: 1;
margin-right: auto;
}
}
.btn-grp {
margin-top: auto;
margin-right: auto;
margin-bottom: 4rem;
}
}
}
@media (min-width: 576px) and (max-width: 767.98px) {
2020-07-17 13:33:39 +02:00
.intro {
margin-top: 3rem;
&__heading {
font-size: 1.75rem;
+ svg {
margin: 2rem auto 0;
max-width: 7rem;
2020-07-17 18:35:06 +02:00
order: 0;
}
}
.btn-grp {
display: flex;
width: auto;
flex-direction: column;
align-items: center;
margin-top: auto;
margin-bottom: auto;
margin-right: auto;
.btn + .btn {
margin-left: 0;
margin-top: 1.5rem;
}
}
}
}
@media (max-width: 575.98px) {
.intro {
margin-top: 3rem;
&__heading {
font-size: 1.75rem;
+ svg {
margin: 2rem auto 0;
max-width: 7rem;
order: 0;
2020-07-17 13:33:39 +02:00
}
}
.btn-grp {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 2rem;
2020-07-17 18:35:06 +02:00
margin-bottom: 0;
width: 100%;
2020-07-17 13:33:39 +02:00
.btn + .btn {
margin-left: 0;
margin-top: 1.5rem;
}
}
}
}