111 lines
1.9 KiB
SCSS
Raw Permalink Normal View History

2024-12-20 18:56:02 +01:00
.rewind-container {
2024-12-13 17:00:17 +01:00
border-radius: var(--d-border-radius);
2024-12-13 17:51:06 +01:00
box-sizing: border-box;
position: relative;
2024-12-20 18:56:02 +01:00
display: flex;
align-items: center;
justify-content: center;
2025-01-02 22:15:10 +01:00
padding: 2em;
2024-12-13 17:51:06 +01:00
2025-01-06 15:04:58 -06:00
h1,
h2 {
font-size: 24px;
}
2024-12-13 17:51:06 +01:00
&.-fullscreen {
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
2024-12-20 18:56:02 +01:00
width: calc(100vw - (100vw - 100%) + 2px);
2024-12-13 17:51:06 +01:00
height: 100vh;
position: fixed;
2025-01-10 14:26:35 -06:00
background: rgba(var(--secondary-rgb), 0.5);
2024-12-20 18:56:02 +01:00
backdrop-filter: blur(4.9px);
-webkit-backdrop-filter: blur(4.9px);
2025-01-10 17:02:27 -06:00
@media (width <= 768px) {
padding: 0;
}
2024-12-13 17:51:06 +01:00
}
}
2024-12-20 18:56:02 +01:00
.rewind {
width: 100vw;
height: 100vh;
max-height: 100%;
2025-01-10 21:08:47 -06:00
max-width: 960px;
2024-12-20 18:56:02 +01:00
background-color: var(--secondary);
2025-01-10 14:26:35 -06:00
border: 1px solid var(--primary);
border-radius: var(--rewind-border-radius);
2024-12-20 18:56:02 +01:00
container-type: size;
position: relative;
2025-01-02 22:15:10 +01:00
overflow: hidden;
2025-01-03 09:35:18 -06:00
background: var(--secondary);
2025-01-10 17:02:27 -06:00
@media (width <= 768px) {
border: none;
2025-01-13 10:55:59 -06:00
border-radius: 0px;
2025-01-10 17:02:27 -06:00
}
2025-01-03 09:35:18 -06:00
}
.background-1 {
2025-01-13 22:17:28 +01:00
background: absolute-image-url(
"/plugins/discourse-rewind/images/blur-bg.png"
);
2025-01-13 11:52:21 -06:00
@if is-dark-color-scheme() {
2025-01-10 08:23:31 -06:00
opacity: 0.15;
}
2025-01-03 10:40:06 -06:00
background-size: contain;
2025-01-03 09:35:18 -06:00
position: absolute;
transform: translateY(0px);
width: 100%;
2025-01-03 10:40:06 -06:00
height: 1000%;
2025-01-03 20:20:20 -06:00
opacity: 0.45;
2025-01-03 09:35:18 -06:00
}
2024-12-20 18:56:02 +01:00
.rewind__scroll-wrapper {
overflow-y: auto;
overflow-x: hidden;
height: 100%;
width: 100%;
position: relative;
2025-01-02 22:15:10 +01:00
display: flex;
flex-direction: column;
2025-01-13 23:51:05 +01:00
padding-bottom: var(--safe-area-inset-bottom);
2024-12-20 18:56:02 +01:00
}
2024-12-13 17:51:06 +01:00
.rewind__exit-fullscreen-btn {
2024-12-20 18:56:02 +01:00
position: absolute;
2025-01-06 11:53:18 -06:00
top: 20px;
2024-12-20 18:56:02 +01:00
right: 20px;
2025-01-10 14:26:35 -06:00
z-index: 2;
2024-12-20 18:56:02 +01:00
}
.rewind__prev-btn {
position: absolute;
bottom: 5px;
left: 5px;
z-index: 1;
}
.rewind__next-btn {
position: absolute;
bottom: 5px;
right: 5px;
z-index: 1;
}
.rewind-loader {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100cqh;
gap: 1em;
box-sizing: border-box;
&__text {
font-weight: 700;
font-size: var(--font-up-2);
}
2024-12-13 17:00:17 +01:00
}