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

186 lines
3.3 KiB
SCSS
Raw Normal View History

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