Files
discourse-rewind/assets/stylesheets/common/rewind.scss
T
2025-01-03 16:52:21 +01:00

104 lines
1.9 KiB
SCSS

.rewind-container {
border-radius: var(--d-border-radius);
box-sizing: border-box;
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 2em;
&.-fullscreen {
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
width: calc(100vw - (100vw - 100%) + 2px);
height: 100vh;
position: fixed;
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(4.9px);
-webkit-backdrop-filter: blur(4.9px);
}
}
.rewind {
width: 100vw;
height: 100vh;
max-height: 100%;
max-width: 100%;
background-color: var(--secondary);
border: 1px solid var(--primary-300);
border-radius: calc(var(--d-border-radius) / 2);
container-type: size;
position: relative;
overflow: hidden;
max-width: 960px;
background: var(--secondary);
}
.background-1 {
background: url(/plugins/discourse-rewind/images/bg-1.png);
background-size: cover;
position: absolute;
transform: translateY(0px);
width: 100%;
height: 100%;
}
.background-2 {
position: absolute;
width: 100%;
height: 100%;
background: url(/plugins/discourse-rewind/images/bg-2.png);
background-size: cover;
transform: translateY(0px);
}
.rewind__scroll-wrapper {
overflow-y: auto;
overflow-x: hidden;
height: 100%;
width: 100%;
position: relative;
display: flex;
flex-direction: column;
gap: 2em;
}
.rewind__exit-fullscreen-btn {
position: absolute;
top: 5px;
right: 20px;
z-index: 1;
}
.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);
}
}