Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,25 @@
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
@keyframes showUp {
from {
opacity: 0;
visibility: hidden;
}
to {
opacity: 1;
visibility: visible;
}
}
[data-rsbs-backdrop] {
top: -60px;
bottom: -60px;
background-color: var(--rsbs-backdrop-bg);
will-change: opacity;
cursor: pointer;
opacity: 1;
opacity: 0;
visibility: hidden;
animation: showUp 0.4s forwards ease;
}
[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {
cursor: ns-resize;
Expand Down Expand Up @@ -123,17 +135,22 @@
}

[data-rsbs-is-dismissable='true'],
[data-rsbs-is-dismissable='false']:matches([data-rsbs-state='opening'], [data-rsbs-state='closing']) {
[data-rsbs-is-dismissable='false']:matches(
[data-rsbs-state='opening'],
[data-rsbs-state='closing']
) {
& :matches([data-rsbs-header], [data-rsbs-scroll], [data-rsbs-footer]) > * {
opacity: var(--rsbs-content-opacity);
}
& [data-rsbs-backdrop] {
opacity: var(--rsbs-backdrop-opacity);
}
}

[data-rsbs-state='closed'],
[data-rsbs-state='closing'] {
/* Allows interactions on the rest of the page before the close transition is finished */
pointer-events: none;
}

[data-rsbs-state='closed'] [data-rsbs-backdrop],
[data-rsbs-state='closing'] [data-rsbs-backdrop] {
animation: showUp 1s forwards ease reverse !important;
}