mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
100 lines
2.1 KiB
SCSS
100 lines
2.1 KiB
SCSS
@use '../config' as *;
|
|
|
|
.modal-content,
|
|
.modal-header {
|
|
> .btn-close {
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
top: 0;
|
|
z-index: 10;
|
|
width: $modal-header-height;
|
|
height: $modal-header-height;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.modal-body {
|
|
@include scrollbar();
|
|
overscroll-behavior: contain;
|
|
|
|
.modal-title {
|
|
margin-bottom: var(--modal-body-title-margin-bottom);
|
|
}
|
|
|
|
& + & {
|
|
border-top: var(--border-width) var(--border-style) var(--border-color);
|
|
}
|
|
}
|
|
|
|
.modal-status {
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
inset-inline-end: 0;
|
|
top: 0;
|
|
height: $modal-status-size;
|
|
background: var(--secondary);
|
|
@include border-radius($modal-content-border-radius $modal-content-border-radius 0 0);
|
|
}
|
|
|
|
.modal-header {
|
|
align-items: center;
|
|
min-height: $modal-header-height;
|
|
padding-block: 0;
|
|
padding-inline: $modal-inner-padding $modal-header-height;
|
|
background: $modal-header-bg;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: $h3-font-size;
|
|
font-weight: $headings-font-weight;
|
|
line-height: $line-height-base;
|
|
color: var(--heading-color, var(--emphasis-color));
|
|
}
|
|
|
|
.modal-footer {
|
|
@if $modal-footer-border-width == 0 {
|
|
padding-top: 0;
|
|
} @else {
|
|
padding-top: var(--modal-footer-padding-y);
|
|
}
|
|
|
|
padding-bottom: var(--modal-footer-padding-y);
|
|
}
|
|
|
|
.modal-blur {
|
|
backdrop-filter: blur($modal-backdrop-blur);
|
|
}
|
|
|
|
.modal-full-width {
|
|
max-width: none;
|
|
margin: 0 $modal-dialog-margin;
|
|
}
|
|
|
|
.modal {
|
|
--modal-body-title-margin-bottom: #{$modal-body-title-margin-bottom};
|
|
--modal-footer-padding-y: #{$modal-footer-padding-y};
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
@include media-print() {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
//
|
|
// Native dialog
|
|
//
|
|
// Make the backdrop of a native `<dialog>` opened with `showModal()` match the
|
|
// backdrop used by modals and offcanvases.
|
|
//
|
|
// The alpha is part of the color instead of `opacity`, so that `backdrop-filter`
|
|
// blurs the page instead of blending a blurred copy over the sharp one.
|
|
dialog::backdrop {
|
|
background: color-transparent(var(--backdrop-bg), calc(var(--backdrop-opacity) * 100%));
|
|
}
|
|
|
|
dialog.modal-blur::backdrop {
|
|
backdrop-filter: var(--backdrop-filter);
|
|
}
|