lbry-desktop/ui/scss/component/section.scss

156 lines
2.6 KiB
SCSS
Raw Normal View History

2019-09-26 18:07:11 +02:00
.section {
2019-12-13 20:47:50 +01:00
position: relative;
2019-09-26 18:07:11 +02:00
~ .section {
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-l);
2019-09-26 18:07:11 +02:00
}
}
.section--padded {
2020-06-01 19:03:19 +02:00
padding: var(--spacing-m);
}
2019-09-26 18:07:11 +02:00
.section--small {
2020-03-18 22:14:11 +01:00
max-width: 40rem;
}
.section__header {
2020-06-01 19:03:19 +02:00
margin-bottom: var(--spacing-l);
2019-09-26 18:07:11 +02:00
}
.section__flex {
display: flex;
align-items: flex-start;
> .icon__wrapper:first-child {
2020-06-01 19:03:19 +02:00
margin-right: var(--spacing-l);
2019-09-26 18:07:11 +02:00
}
}
.section__title {
text-align: left;
2019-11-22 22:13:00 +01:00
font-size: var(--font-title);
2019-11-07 20:39:22 +01:00
font-weight: var(--font-weight-light);
2019-09-26 18:07:11 +02:00
}
2019-09-30 23:48:30 +02:00
.section__title--small {
@extend .section__title;
font-size: var(--font-body);
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-m);
2019-09-30 23:48:30 +02:00
}
2019-09-26 18:07:11 +02:00
.section__title--large {
@extend .section__title;
2019-09-30 23:48:30 +02:00
display: inline-block;
2020-06-01 19:03:19 +02:00
margin-right: var(--spacing-m);
2019-11-07 20:39:22 +01:00
font-weight: var(--font-weight-bold);
2019-09-26 18:07:11 +02:00
font-size: var(--font-heading);
2019-12-18 06:27:08 +01:00
@media (max-width: $breakpoint-small) {
font-size: var(--font-title);
}
2019-09-26 18:07:11 +02:00
}
.section__subtitle {
color: var(--color-text-subtitle);
2020-06-01 19:03:19 +02:00
margin: var(--spacing-s) 0;
font-size: var(--font-body);
}
2019-11-22 22:13:00 +01:00
.section__subtitle--status {
@extend .section__subtitle;
2020-06-01 19:03:19 +02:00
padding: var(--spacing-s);
2019-11-22 22:13:00 +01:00
background-color: var(--color-text-warning);
2019-09-26 18:07:11 +02:00
}
.section__divider {
display: flex;
flex-direction: column;
2019-11-22 22:13:00 +01:00
hr {
2020-06-01 19:03:19 +02:00
margin: var(--spacing-l) 0;
2019-11-22 22:13:00 +01:00
}
2019-09-26 18:07:11 +02:00
p {
2019-11-22 22:13:00 +01:00
color: var(--color-subtitle);
2019-09-26 18:07:11 +02:00
text-align: center;
2019-11-22 22:13:00 +01:00
font-size: var(--font-large);
2019-11-07 20:39:22 +01:00
font-weight: var(--font-weight-base);
2019-09-26 18:07:11 +02:00
background-color: var(--color-background);
2019-11-22 22:13:00 +01:00
transform: translateY(-150%);
2020-06-01 19:03:19 +02:00
padding: 0 var(--spacing-l);
2019-09-26 18:07:11 +02:00
display: inline-block;
margin: auto;
}
}
.section__body {
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-m);
2019-09-26 18:07:11 +02:00
}
2019-12-18 06:27:08 +01:00
.section__actions {
display: flex;
align-items: center;
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-l);
~ .section {
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-l);
}
&:only-child,
&:first-child {
margin-top: 0;
}
> *:not(:last-child) {
2020-06-01 19:03:19 +02:00
margin-right: var(--spacing-m);
}
@media (max-width: $breakpoint-small) {
flex-wrap: wrap;
> * {
2020-06-01 19:03:19 +02:00
margin-bottom: var(--spacing-s);
}
}
.button--primary,
.button ~ .button--link {
2020-05-11 16:21:00 +02:00
@media (min-width: $breakpoint-small) {
&:focus {
@include focus;
}
}
}
.button--primary ~ .button--link {
2020-06-01 19:03:19 +02:00
margin-left: var(--spacing-s);
padding: var(--spacing-xs);
}
}
2020-01-27 19:52:25 +01:00
.section__actions--centered {
@extend .section__actions;
justify-content: center;
2020-01-27 21:02:58 +01:00
@media (max-width: $breakpoint-small) {
justify-content: flex-start;
}
2020-01-27 19:52:25 +01:00
}
.section__actions--no-margin {
margin-top: 0;
}
.section__start-at {
display: flex;
2020-05-07 21:41:20 +02:00
align-items: center;
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-l);
fieldset-section {
width: 6em;
margin-top: 0;
}
.checkbox {
margin-right: 10px;
}
}