.card { position: relative; ~ .card { margin-bottom: var(--spacing-m); } } .card--enable-overflow { overflow: visible; margin-bottom: var(--spacing-m); @media (max-width: $breakpoint-small) { overflow-y: scroll; height: 100%; border-top: 1px solid var(--color-border); // background-color:var(--color-background); .card__main-actions { margin-top: 0px !important; .comment__sort + button { margin: 0px var(--spacing-xxs); } .button + .commentCreate { margin-top: var(--spacing-xxs); } } .comment__sort { margin: 0px !important; display: inline; + .button--alt { padding: var(--spacing-xxs) var(--spacing-s); } button { padding: var(--spacing-xxs); span { font-size: var(--font-xxsmall); } } } } } .card--comments-list { @extend .card--enable-overflow; @media (max-width: $breakpoint-small) { overflow-y: scroll; height: 100%; .card__main-actions { margin-top: 0px !important; } } } .card--disabled { opacity: 0.3; pointer-events: none; } .card--section { position: relative; } .card--reward-total { background-repeat: no-repeat; background-size: cover; color: var(--color-white); font-size: var(--font-large); font-weight: var(--font-weight-bold); } .card--share { .form-field--copyable { border: unset !important; } .button--secondary { background-color: var(--color-primary) !important; box-shadow: 0 0 0 2px transparent inset !important; .icon { stroke: var(--color-primary-contrast) !important; } } .section__actions { margin-top: var(--spacing-m); } @media (max-width: $breakpoint-small) { .section__actions { .share { .icon { margin-right: var(--spacing-xxs); margin-bottom: var(--spacing-xs); } } &:last-child { margin-right: 0 !important; .icon { margin-right: 0 !important; } } } } } .card--inline { border-radius: var(--card-radius); margin-bottom: var(--spacing-m); &:last-of-type { margin-bottom: 0; } .claim-preview__wrapper { background: rgba(var(--color-header-background-base), 0.6); &:hover { background: rgba(var(--color-header-background-base), 0.9); } } } .card-collection-selector { border: 1px solid var(--color-border); border-radius: var(--card-radius); margin-bottom: var(--spacing-s); &:last-of-type { margin-bottom: 0; } } .card--highlighted { background-color: var(--color-card-background-highlighted); } .card--highlightedActive { background-color: var(--color-fire-outside); } .card--claim-preview-wrap { @extend .card; margin: var(--spacing-xl) 0; min-width: 35rem; } .card--data { display: flex; align-items: center; } .card--after-tabs { @extend .card; margin-top: var(--spacing-l); } .card__actions { display: flex; align-items: center; margin-top: var(--spacing-l); &:only-child { margin-top: 0; } > *:not(:last-child) { margin-right: var(--spacing-m); } @media (max-width: $breakpoint-small) { > *:not(:last-child) { margin-right: var(--spacing-s); } flex-flow: wrap; justify-content: space-between; } } .card__title-section { @extend .section__flex; @media (min-width: $breakpoint-small) { padding: var(--spacing-s) 0px; } } .card__title-section--small { padding: var(--spacing-s); padding-left: 0px; } .card__actions--inline { @extend .card__actions; margin-top: 0; @media (max-width: $breakpoint-small) { padding-bottom: 0; &:last-of-type { .button--alt { padding-bottom: 0; margin-top: 6px; } } .button__content { svg + .button__label { display: none; } } } } .card__actions--between { @include between; align-items: center; width: 100%; } .card__actions--center { display: flex; align-items: center; justify-content: center; } .card-stack { .card:not(:last-of-type) { margin-bottom: var(--spacing-xxl); @media (max-width: $breakpoint-small) { margin-bottom: var(--spacing-l); } } } .card-stack--spacing-m { @extend .card-stack; .card:not(:last-of-type) { margin-bottom: var(--spacing-m); } } .main--theater-mode { .card-stack--spacing-m { section { padding-right: var(--spacing-m); } } } .card ~ .card-stack { margin-top: var(--spacing-l); } .card__list { column-count: 2; column-gap: var(--spacing-l); display: block; .card { display: inline-block; margin-bottom: var(--spacing-l); width: 100%; } @media (max-width: $breakpoint-small) { column-count: 1; .card { display: block; } } } .card__message { border-left: 0.5rem solid; padding: var(--spacing-m) var(--spacing-m) var(--spacing-m) var(--spacing-l); background-color: var(--color-secondary); border-color: var(--color-primary); } .card__message--error { background-color: var(--color-error); border-color: var(--color-text-error); } .card__message--failure { background-color: var(--color-error); border-color: var(--color-text-error); } .card__title { display: block; align-items: center; font-size: var(--font-large); font-weight: var(--font-weight-bold); & > *:not(:last-child) { margin-right: var(--spacing-m); } /* .badge rule inherited from file page prices, should be refactored */ .badge { float: right; margin-left: var(--spacing-s); margin-top: 8px; // should be flex'd, but don't blame me! I just moved it down 3px } @media (max-width: $breakpoint-small) { font-size: var(--font-large); } } .card__title--small { font-size: var(--font-body); } .card__title-actions-container { height: 100%; display: flex; flex-direction: column; overflow: hidden; } .card--enable-overflow { @media (max-width: $breakpoint-small) { .card__header--between { margin-bottom: 0; .card__title-section { margin: var(--spacing-s) 0px; h2 { font-size: var(--font-body); } } } .card__title-actions-container { flex-grow: 1; min-height: 47px; .card__title-actions { width: 100%; flex-grow: 1; margin-right: auto; .button--alt { flex-grow: 1; } .button-toggle { padding: 0 var(--spacing-s) 0 var(--spacing-xxxs); } } .comment__sort { .button { float: left; } } .button { float: right; } } } } .card__title-actions { align-self: flex-start; .button--alt { padding-top: 2px; .icon { // margin-top: -2px; } } .comment__sort { .button--alt { padding-top: 0; } } @media (max-width: $breakpoint-small) { .button--close { top: calc(var(--spacing-m) * -1); } } } .card__title-actions--link { margin-top: var(--spacing-xs); } .card__title-actions--small { padding: 0; } .card__title.card__title--deprecated { margin-bottom: var(--spacing-s); } .card__title--between { @extend .card__title; justify-content: space-between; width: 100%; & > *:not(:last-child) { margin-right: 0; } @media (max-width: $breakpoint-small) { align-items: center; } } .card__title--help { display: flex; flex-direction: row; align-items: center; margin-top: 0; } .card__media--nsfw { background-color: black; } .card__header { position: relative; display: flex; align-items: flex-start; .icon__wrapper { margin-right: var(--spacing-l); } } .card__header--slim { @extend .card__header; flex-direction: column; padding: var(--spacing-xxs) var(--spacing-m); .card__title-section { padding-bottom: 0px; } } .card__header--between { @extend .card__header; justify-content: space-between; flex-wrap: wrap; @media (max-width: $breakpoint-small) { // padding: var(--spacing-xxs); padding-bottom: 0; margin: 0; .card__title-section { padding: 0px; } h1 { font-size: 1.2rem; font-weight: var(--font-weight-bold); line-height: 1.25; } h2 { font-size: 1.2rem; line-height: 1.25; } .recommended-content__toggles { button { height: unset; padding: 2px var(--spacing-xxs); .button__content { height: unset; span { font-size: var(--font-small); line-height: 1.25; } } } } } .button--alt { color: var(--color-button-alt-text); background-color: var(--color-button-alt-bg); // color: var(--color-primary-contrast); // background-color: var(--color-primary); &:hover { color: var(--color-primary-contrast); background-color: var(--color-primary); .icon { stroke: var(--color-primary-contrast); } } } } .card__header--bg-color { background-color: var(--color-button-toggle-bg); border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } .card__header--grid { display: grid; grid-template-columns: minmax(auto, 85%) 1fr; .card__title-actions-container { justify-self: flex-end; justify-content: center; .card__title-actions { display: flex; } } } .card__header--nowrap { @extend .card__header--between; flex-wrap: nowrap; @media (max-width: $breakpoint-small) { margin-bottom: var(--spacing-s); .card__title-section { .card__title { // margin-top: calc(var(--spacing-s) - 2px); margin-bottom: calc(var(--spacing-s) * -1); } } .card__title-actions-container { .card__title-actions { .filePrice { padding: 0; .credit-amount { margin-top: var(--spacing-xs); padding: var(--spacing-xxxs); } } } } } } .card__subtitle { color: var(--color-text-subtitle); margin-top: var(--spacing-s); margin-bottom: var(--spacing-s) 0; font-size: var(--font-body); } .card__subtitle--small { @extend .card__subtitle; margin-top: 0px; font-size: var(--font-xsmall); } .card__subtitle--small-no-margin { margin: 0px; font-size: var(--font-xsmall); } .card__body { padding: var(--spacing-m); padding-left: 0px; &:not(.card__body--no-title) { padding-top: 0; } &.card__body--list { padding: 0; border-top: 1px solid var(--color-border); margin-bottom: 0; } @media (max-width: $breakpoint-small) { padding: var(--spacing-l); padding-left: 0px; padding-right: 0px; // margin-bottom: var(--spacing-s) !important; padding: 0 !important; .file__viewdate { .date_time { font-size: var(--font-small); } span { font-size: var(--font-small); margin: 0; } span + .media__subtitle--centered::before { content: '•'; margin: 0 5px; } } } } .card__body-scrollable { overflow-y: auto !important; @media (min-width: $breakpoint-small) { max-height: 30vh; } @media (max-width: $breakpoint-small) { max-height: 75vh; } } .card__main-actions { padding: var(--spacing-m); padding-bottom: 0; margin-bottom: var(--spacing-s); border-top: 1px solid var(--color-border); height: 100%; &:only-child { border-top: none; } .form-field__help { color: var(--color-text); } .help { color: var(--color-text); } } .card__body-actions { padding: var(--spacing-s); padding-left: 0px; padding-right: 0px; h3 { padding-left: var(--spacing-s); } @media (min-width: $breakpoint-small) { padding: var(--spacing-m); padding-left: 0px; padding-right: 0px; } } .card__header-actions { border-top: 1px solid var(--color-border); padding: var(--spacing-l); width: 100%; } .card__body--with-icon, .card__main-actions--with-icon { padding-left: 7.5rem; } .card__data-subtitle { display: flex; align-items: center; :not(:first-child) { margin-left: var(--spacing-s); } } .card__body, .card__main-actions { padding: var(--spacing-m); padding-left: 0; padding-right: 0; padding-bottom: 0; margin: 0; margin-bottom: 0px; @media (max-width: $breakpoint-small) { margin-bottom: 0px; padding-bottom: var(--spacing-xxs); } } @media (max-width: $breakpoint-small) { .card__main-actions:nth-child(1) { margin-top: var(--spacing-l); } } .card__bottom-gutter { @extend .help; display: flex; align-items: center; margin-top: var(--spacing-m); &:only-child, &:first-child { margin-top: 0; } > *:not(:last-child) { margin-right: var(--spacing-m); } } .card__bottom-actions { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-border); @media (max-width: $breakpoint-small) { font-size: var(--font-small); .button--link { font-size: var(--font-xsmall); margin: 0px; } } } .card__bottom-actions--comments { margin-top: var(--spacing-xl); } .card__multi-pane { display: flex; @media (max-width: $breakpoint-small) { flex-direction: column; } .card__main-actions { height: unset; } .card__second-pane { border-left: 1px solid var(--color-border); max-width: 50%; @media (max-width: $breakpoint-small) { border-top: 1px solid var(--color-border); max-width: 100%; } } } @media (max-width: $breakpoint-small) { .ReactModalPortal { .button--close { top: 0; right: 0; } } } .playlist-card { @extend .file-page__recommended-collection; display: flex; flex-direction: column; width: 100%; max-width: 100%; @media (min-width: $breakpoint-small) { max-height: 40rem; } .card__header--slim { padding: var(--spacing-xxs); padding-top: 0; @media (max-width: $breakpoint-small) { padding: 0; } } .card__header--between { .card__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card__title-section { display: unset !important; max-width: 80%; } &:last-child { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); } } .card__body { background-color: rgba(var(--color-header-background-base), 0.9); max-height: 100%; overflow-y: hidden; display: flex; border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); .claim-list { max-height: 100%; width: 100%; overflow-y: hidden; .ul--no-style { max-height: 100%; overflow-y: scroll !important; } } } .claim-preview__wrapper { padding: var(--spacing-xxs) var(--spacing-s) !important; .claim-preview--small { margin-left: 15px; } .claim-preview__title { width: unset !important; } .media__subtitle { width: unset !important; } } .playlist-card-actions { grid-column-start: 1; grid-column-end: end; display: flex; justify-content: space-between; @media (max-width: $breakpoint-small) { width: 100%; section:last-of-type { float: right; } } } .card__subtitle--small { font-size: var(--font-small); margin-bottom: var(--spacing-xxxs); } .button-toggle { border: 2px solid var(--color-border); } section { .button-toggle:nth-child(2) { border-left: 0px solid transparent; } } .card__title-actions { .button-toggle:nth-child(2) { border-left: 0px solid transparent; } } } .playlist-card--drawer-header { @extend .playlist-card; padding-right: 0px; padding-left: 0px; padding-top: var(--spacing-xxs); max-width: 80%; @media (max-width: $breakpoint-small) { max-width: 100%; } }