185 lines
3.3 KiB
SCSS
185 lines
3.3 KiB
SCSS
.section {
|
|
position: relative;
|
|
|
|
~ .section {
|
|
margin-top: var(--spacing-l);
|
|
}
|
|
}
|
|
|
|
.section--padded {
|
|
padding: var(--spacing-m);
|
|
}
|
|
|
|
.section--small {
|
|
max-width: 40rem;
|
|
}
|
|
|
|
.section--help {
|
|
border-radius: var(--border-radius);
|
|
background-color: var(--color-primary-alt);
|
|
}
|
|
|
|
.section__header {
|
|
margin-bottom: var(--spacing-l);
|
|
}
|
|
|
|
.section__header--actions {
|
|
margin-bottom: var(--spacing-m);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.section__flex {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
> .icon__wrapper:first-child {
|
|
margin-right: var(--spacing-l);
|
|
}
|
|
}
|
|
|
|
.section__title {
|
|
text-align: left;
|
|
font-size: var(--font-title);
|
|
font-weight: var(--font-weight-light);
|
|
}
|
|
|
|
.section__title--small {
|
|
@extend .section__title;
|
|
font-size: var(--font-body);
|
|
margin-top: var(--spacing-m);
|
|
}
|
|
|
|
.section__title--large {
|
|
@extend .section__title;
|
|
display: inline-block;
|
|
margin-right: var(--spacing-m);
|
|
font-weight: var(--font-weight-bold);
|
|
font-size: var(--font-heading);
|
|
margin-bottom: var(--spacing-l);
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
font-size: var(--font-title);
|
|
}
|
|
}
|
|
|
|
.section__subtitle {
|
|
color: var(--color-text-subtitle);
|
|
margin: var(--spacing-s) 0;
|
|
font-size: var(--font-body);
|
|
}
|
|
|
|
.section__subtitle--status {
|
|
@extend .section__subtitle;
|
|
padding: var(--spacing-s);
|
|
background-color: var(--color-text-warning);
|
|
}
|
|
|
|
.section__divider {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
position: relative;
|
|
|
|
hr {
|
|
margin: var(--spacing-xl) 0;
|
|
}
|
|
|
|
p {
|
|
color: var(--color-subtitle);
|
|
text-align: center;
|
|
font-size: var(--font-large);
|
|
font-weight: var(--font-weight-base);
|
|
background-color: var(--color-background);
|
|
position: absolute;
|
|
height: var(--spacing-xl);
|
|
top: calc(var(--spacing-xl) / 2 + 10px);
|
|
padding: 0 var(--spacing-l);
|
|
}
|
|
}
|
|
|
|
.section__body {
|
|
margin-top: var(--spacing-m);
|
|
}
|
|
|
|
.section__actions {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: var(--spacing-l);
|
|
margin-right: var(--spacing-s);
|
|
|
|
~ .section {
|
|
margin-top: var(--spacing-l);
|
|
}
|
|
|
|
&:only-child,
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
> *:not(:last-child) {
|
|
margin-right: var(--spacing-m);
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
flex-wrap: wrap;
|
|
|
|
> * {
|
|
margin-bottom: var(--spacing-s);
|
|
}
|
|
}
|
|
|
|
.button--primary,
|
|
.button ~ .button--link {
|
|
@media (min-width: $breakpoint-small) {
|
|
&:focus {
|
|
@include focus;
|
|
}
|
|
}
|
|
}
|
|
|
|
.button--primary ~ .button--link,
|
|
.button--secondary ~ .button--link {
|
|
margin-left: var(--spacing-s);
|
|
padding: var(--spacing-s) var(--spacing-m);
|
|
height: var(--button-height);
|
|
}
|
|
}
|
|
|
|
.section__actions--centered {
|
|
@extend .section__actions;
|
|
justify-content: center;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
.section__actions--between {
|
|
@extend .section__actions;
|
|
justify-content: space-between;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
.section__actions--no-margin {
|
|
@extend .section__actions;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.section__start-at {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: var(--spacing-l);
|
|
fieldset-section {
|
|
width: 6em;
|
|
margin-top: 0;
|
|
}
|
|
.checkbox {
|
|
margin-right: 10px;
|
|
}
|
|
}
|