138 lines
3.7 KiB
CSS
138 lines
3.7 KiB
CSS
/* ========================================================= */
|
|
/* Patterns: Overlay Card */
|
|
/* ========================================================= */
|
|
|
|
.sg-delete-confirmation-pattern {
|
|
width: 100%;
|
|
max-width: var(--layout-delete-confirmation-target-max-width);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__stage {
|
|
position: relative;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__host {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__host > .sg-delete-confirmation-pattern__target {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__target {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__target::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--surface-delete-confirmation-target-dim-overlay);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__stage[data-dialog-open="true"] .sg-delete-confirmation-pattern__target::after {
|
|
opacity: var(--layout-delete-confirmation-target-dim-opacity);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__floating-card {
|
|
position: absolute;
|
|
top: var(--layout-delete-confirmation-overlay-offset-block-start);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: calc(100% * var(--layout-delete-confirmation-overlay-width-factor));
|
|
box-sizing: border-box;
|
|
max-width: calc(100% * var(--layout-delete-confirmation-overlay-width-factor));
|
|
min-height: calc(100% - var(--layout-delete-confirmation-overlay-offset-block-start));
|
|
max-height: var(--layout-delete-confirmation-overlay-max-height);
|
|
overflow: auto;
|
|
z-index: var(--layer-delete-confirmation-overlay);
|
|
box-shadow: var(--shadow-overlay);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__floating-card[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--layout-delete-confirmation-content-gap);
|
|
background: var(--surface-delete-confirmation-overlay);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list {
|
|
display: grid;
|
|
gap: var(--spacing-small);
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-item {
|
|
margin: 0;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-button {
|
|
display: inline-flex;
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
gap: var(--spacing-small);
|
|
font-weight: var(--font-weight-regular);
|
|
color: var(--text-delete-confirmation-overlay);
|
|
background: var(--surface-control-inactive);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-button[data-selected="true"] {
|
|
background: var(--surface-control-active);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-button[data-selected="false"] {
|
|
background: var(--surface-control-inactive);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-icon {
|
|
display: block;
|
|
flex: 0 0 auto;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
background: center / contain no-repeat;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-button[data-selected="true"] .sg-delete-confirmation-pattern__list-icon {
|
|
background-image: url("../assets/icons/star-filled.svg");
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__list-button[data-selected="false"] .sg-delete-confirmation-pattern__list-icon {
|
|
background-image: url("../assets/icons/star-outline.svg");
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__text {
|
|
margin: 0;
|
|
color: var(--text-delete-confirmation-overlay);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__code {
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__input-row {
|
|
margin: var(--spacing-large) 0 0 0;
|
|
}
|
|
|
|
.sg-delete-confirmation-pattern__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--layout-delete-confirmation-actions-gap);
|
|
margin-top: var(--layout-delete-confirmation-actions-offset-block-start);
|
|
}
|
|
|
|
@media (max-width: 48rem) {
|
|
.sg-delete-confirmation-pattern__actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|