lbry-desktop/ui/scss/component/section.scss
2019-11-13 19:09:30 -05:00

99 lines
1.7 KiB
SCSS

.section {
margin-top: var(--spacing-large);
&:first-of-type {
margin-top: 0;
}
}
.section--padded {
padding: var(--spacing-medium);
}
.section--small {
max-width: 35rem;
}
.section__header {
margin-bottom: var(--spacing-large);
}
.section__flex {
display: flex;
align-items: flex-start;
& > :first-child {
margin-right: var(--spacing-large);
}
}
.section__flex-wrap {
@extend .section__flex;
flex-wrap: wrap;
margin-bottom: var(--spacing-large);
& > * {
margin-bottom: var(--spacing-large);
}
}
.section__title {
text-align: left;
font-size: var(--font-section-title);
font-weight: var(--font-weight-light);
}
.section__title--small {
@extend .section__title;
font-size: var(--font-body);
margin-top: var(--spacing-small);
}
.section__title--large {
@extend .section__title;
margin-right: var(--spacing-medium);
display: inline-block;
font-weight: var(--font-weight-bold);
font-size: var(--font-heading);
}
.section__subtitle {
font-size: var(--font-body);
color: $lbry-gray-5;
}
.section__divider {
padding: var(--spacing-large) 0;
display: flex;
flex-direction: column;
p {
color: $lbry-gray-4;
text-align: center;
font-size: var(--font-title);
font-weight: var(--font-weight-base);
background-color: var(--color-background);
transform: translateY(-50%);
padding: 0 var(--spacing-large);
display: inline-block;
margin: auto;
}
}
.section__actions {
display: flex;
align-items: center;
margin-top: var(--spacing-medium);
font-size: var(--font-body);
&:only-child {
margin-top: 0;
}
> *:not(:last-child) {
margin-right: var(--spacing-medium);
}
}
.section__body {
margin-top: var(--spacing-large);
}