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

392 lines
6.8 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);
}
wip wip wip - everything but publish, autoplay, and styling collection publishing add channel to collection publish cleanup wip bump clear mass add after success move collection item management controls redirect replace to published collection id bump playlist selector on create bump use new collection add ui element bump wip gitignore add content json wip bump context add to playlist basic collections page style pass wip wip: edits, buttons, styles... change fileAuthor to claimAuthor update, pending bugfixes, delete modal progress, collection header, other bugfixes bump cleaning show page bugfix builtin collection headers no playlists, no grid title wip style tweaks use normal looking claim previews for collection tiles add collection changes style library previews collection menulist for delete/view on library delete modal works for unpublished rearrange collection publish tabs clean up collection publishing and items show on odysee begin collectoin edit header and css renaming better thumbnails bump fix collection publish redirect view collection in menu does something copy and thumbs list previews, pending, context menus, list page enter to add collection, lists page empty state playable lists only, delete feature, bump put fileListDownloaded back better collection titles improve collection claim details fix horiz more icon fix up channel page style, copy, bump refactor preview overlay properties, fix reposts showing as floppydisk add watch later toast, small overlay properties on wunderbar results, fix collection actions buttons bump cleanup cleaning, refactoring bump preview thumb styling, cleanup support discover page lists search sync, bump bump, fix sync more enforce builtin order for now new lists page empty state try to indicate unpublished edits in lists bump fix autoplay and linting consts, fix autoplay bugs fixes cleanup fix, bump lists experimental ui, fixes refactor listIndex out hack in collection fallback thumb bump
2021-02-06 08:03:51 +01:00
.section--padded-small {
padding: var(--spacing-s);
}
2019-09-26 18:07:11 +02:00
.section--small {
2020-03-18 22:14:11 +01:00
max-width: 40rem;
}
2021-04-08 17:39:33 +02:00
.section--vertical-compact {
fieldset-section,
fieldset-section.radio,
div.checkbox,
div.section {
margin-top: var(--spacing-s);
}
.channel__selector {
margin-bottom: var(--spacing-s);
}
}
.section--help {
border-radius: var(--border-radius);
background-color: var(--color-primary-alt);
}
.section__header {
2020-06-01 19:03:19 +02:00
margin-bottom: var(--spacing-l);
2019-09-26 18:07:11 +02:00
}
2020-08-21 17:49:13 +02:00
.section__header--actions {
2022-04-14 23:27:16 +02:00
margin-top: var(--spacing-m);
2020-08-21 17:49:13 +02:00
margin-bottom: var(--spacing-m);
display: flex;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
2022-04-14 23:27:16 +02:00
.button--secondary {
background-color: var(--color-secondary);
.button__label {
color: var(--color-menu-icon-active);
}
.icon {
stroke: var(--color-menu-icon-active);
}
}
.section__actions--no-margin {
.help {
color: var(--color-text);
}
}
@media (max-width: $breakpoint-small) {
padding-top: 0;
margin-bottom: var(--spacing-s);
}
2020-08-21 17:49:13 +02:00
}
.section__header-action-stack {
display: flex;
flex-direction: column;
}
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;
2021-07-19 18:47:21 +02:00
font-size: var(--font-large);
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);
.button {
margin-left: var(--spacing-s);
}
&:not(:first-of-type) {
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);
margin-bottom: var(--spacing-l);
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-09-26 18:07:11 +02:00
.section__divider {
display: flex;
align-items: center;
2019-09-26 18:07:11 +02:00
flex-direction: column;
position: relative;
2019-09-26 18:07:11 +02:00
2019-11-22 22:13:00 +01:00
hr {
margin: var(--spacing-xl) 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);
position: absolute;
height: var(--spacing-xl);
top: calc(var(--spacing-xl) / 2 + 10px);
2020-06-01 19:03:19 +02:00
padding: 0 var(--spacing-l);
2019-09-26 18:07:11 +02:00
}
}
.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 {
2020-11-10 06:21:04 +01:00
position: relative;
display: flex;
align-items: center;
2022-04-14 23:27:16 +02:00
margin-top: var(--spacing-s);
~ .section {
2021-04-23 21:59:48 +02:00
margin-top: var(--spacing-m);
}
&:only-child,
&:first-child {
margin-top: 0;
}
> *:not(:last-child) {
2021-04-23 21:59:48 +02:00
margin-right: var(--spacing-s);
}
2021-08-05 10:42:37 +02:00
@media (max-width: $breakpoint-medium) {
flex-wrap: wrap;
> * {
2020-09-01 21:21:01 +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 {
2022-04-14 23:27:16 +02:00
@include linkFocus;
2020-05-11 16:21:00 +02:00
}
}
}
2022-04-14 23:27:16 +02:00
[aria-expanded='true'].button--file-action:last-of-type {
background-color: var(--color-header-background);
}
2020-06-08 20:42:29 +02:00
.button--primary ~ .button--link,
.button--secondary ~ .button--link {
padding: var(--spacing-s) var(--spacing-m);
height: var(--button-height);
}
2022-04-14 23:27:16 +02:00
@media (max-width: $breakpoint-small) {
margin-top: var(--spacing-xxs);
> *:not(:last-child) {
margin-right: var(--spacing-xxs);
}
button {
height: 2rem;
padding: 0px var(--spacing-s);
.button__content {
height: unset;
span {
font-size: var(--font-xxsmall);
}
}
}
.button--link {
padding: 0px !important;
}
}
}
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--between {
@extend .section__actions;
justify-content: space-between;
@media (max-width: $breakpoint-small) {
justify-content: flex-start;
}
}
.section__actions--align-bottom {
align-items: flex-end;
}
.section__actions--no-margin {
2020-09-30 22:46:20 +02:00
@extend .section__actions;
margin-top: 0;
2022-04-14 23:27:16 +02:00
@media (max-width: $breakpoint-small) {
width: 100%;
display: unset;
text-align: right;
.button--link {
margin-bottom: 0;
}
.wunderbar--inline {
width: 100%;
flex: unset;
fieldset-section {
width: 100%;
.wunderbar__input--inline {
width: 100%;
&:focus-visible {
outline: unset !important;
box-shadow: 0 0 0 2px var(--color-primary) inset;
}
}
}
}
.button--secondary {
width: 100%;
}
}
}
2021-06-10 20:23:25 +02:00
.section__checkbox {
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;
}
}
2021-08-05 10:42:37 +02:00
.settings__row {
&:first-child,
&:only-child {
border-top: none;
}
}
2022-04-14 23:27:16 +02:00
.card__main-actions.settings__row {
@media (max-width: $breakpoint-small) {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
}
2021-08-05 10:42:37 +02:00
.settings__row--title {
min-width: 100%;
align-self: flex-start;
@media (min-width: $breakpoint-small) {
min-width: 60%;
max-width: 60%;
}
margin-bottom: var(--spacing-m);
2021-08-05 10:42:37 +02:00
}
2022-01-25 04:12:27 +01:00
.settings__row-section-title {
min-width: 100%;
align-self: flex-start;
font-size: var(--font-medium);
@media (min-width: $breakpoint-small) {
min-width: 60%;
max-width: 60%;
}
}
2021-08-05 10:42:37 +02:00
.settings__row--subtitle {
@extend .section__subtitle;
font-size: var(--font-small);
margin-top: calc(var(--spacing-xxs) / 2);
}
.settings__row--value {
width: 100%;
fieldset-section.radio {
margin-top: var(--spacing-s);
}
fieldset-group {
2022-02-02 07:19:39 +01:00
&:not(.fieldset-group--row) {
margin-top: var(--spacing-m);
}
2021-08-05 10:42:37 +02:00
}
.tags__input-wrapper {
.tag__input {
height: unset;
max-width: unset;
}
}
.form-field--price-amount {
max-width: unset;
}
@media (min-width: $breakpoint-medium) {
width: 40%;
.button,
.checkbox {
&:only-child {
float: right;
}
}
input {
align-self: flex-end;
}
}
}
.settings__row--value--multirow {
@media (min-width: $breakpoint-medium) {
width: 80%;
margin-top: var(--spacing-l);
input {
align-self: flex-start;
}
}
2022-04-14 23:27:16 +02:00
@media (max-width: $breakpoint-small) {
margin-top: var(--spacing-m);
}
2021-08-05 10:42:37 +02:00
}
.settings__row--value--vertical-separator {
@media (min-width: $breakpoint-medium) {
border-left: 1px solid var(--color-border);
}
}