@use '../scss/_variables.scss' as *; // Stage 1: inactive (grey). Stage 2: hovered or around/next to the selection. Stage 3: the selected entity. .adpresso-modal-sections .adpresso-modal-section .adpresso-modal-section-fields .adpresso-assignment__section-header .adpresso-input { width: 100%; } .adpresso-assignment__section + span { margin-bottom: 1em; display: inline-block; font-size: $font-size; } // Sections (containers) ------------------------------------------------ .adpresso-assignment__section { border-radius: 0.5em; border: calc(0.12em * $font-size-rate) solid $color-icon; padding: 2em; margin-bottom: 2em; display: flex; flex-direction: column; overflow: hidden; gap: 2em; transition: background-color .15s ease, border-color .15s ease; // Stage 2: a card inside is hovered or selected. &:has(.adpresso-card--context:hover), &:has(.adpresso-card--context.is-active) { border-color: $color-primary; background-color: $color-primary-superlight; } .adpresso-assignment__section-header { flex: 0 0 auto; } .adpresso-assignment__section-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; max-height: 50vh; } &:last-of-type { margin-bottom: 0; } } // The placement column only has content once something on the left is selected: always stage 2 then. .adpresso-assignment__column--target .adpresso-assignment__section { border-color: $color-primary; background-color: $color-primary-superlight; } // Context cards (singular ad, groups) ---------------------------------- .adpresso-card { transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; &.adpresso-card--context { cursor: pointer; // Stage 1 background-color: $color-divider; border-color: $color-icon; .adpresso-card__title, .adpresso-card__meta, .adpresso-card__chevron { color: $color-icon; } // Stage 2: hovered, or a sibling of the selected card. &:hover:not(.is-active):not(.is-disabled), .adpresso-assignment__section:has(.is-active) &:not(.is-active) { background-color: $color-white; border-color: $color-accent; .adpresso-card__title, .adpresso-card__meta, .adpresso-card__chevron { color: $color-text; } } // Stage 3 &.is-active, &.is-active:hover { background-color: $color-accent; border-color: $color-accent; .adpresso-card__title, .adpresso-card__meta, .adpresso-card__chevron { color: $color-white; } } } } // Stage 1 also greys out the type icon and the checkbox (RZ8a). .adpresso-assignment__section:not(:has(.adpresso-card--context.is-active)) .adpresso-card--context:not(:hover) { .adpresso-card__type-image, .adpresso-card__checkbox { opacity: .45; transition: opacity .15s ease; } } // Placement cards: always white with the accent border, checked ones tinted. .adpresso-assignment-field .adpresso-card--placement { background-color: $color-white; border-color: $color-accent; .adpresso-card__title, .adpresso-card__meta { color: $color-text; } &.is-assigned { background-color: $color-accent-superlight; } // Taken by another item: stays readable, only the checkbox is locked until "Replace" is used. &.is-disabled { background-color: $color-white; border-color: $color-accent; color: $color-text; cursor: default; } } .adpresso-card__checkbox { input:disabled + * { opacity: .4; } } .adpresso-assignment__placeholder, .adpresso-assignment__loading { color: var(--adpresso-muted-text); }