fixed overlay filling entire screen

This commit is contained in:
Tickbase
2025-05-18 10:06:17 +02:00
parent accbd1e058
commit 39b34c6620

View File

@@ -2,191 +2,132 @@
@use '../../mixins' as *; @use '../../mixins' as *;
/* /*
DLC Selection Dialog styles Base dialog styles
For managing game DLCs Used for all dialog components
*/ */
// DLC dialog search bar // Dialog overlay
.dlc-dialog-search { .dialog-overlay {
padding: 0.75rem 1.5rem; position: fixed;
background-color: rgba(0, 0, 0, 0.1); top: 0;
border-bottom: 1px solid var(--border-soft); left: 0;
width: 100vw;
height: 100vh;
background-color: var(--modal-backdrop);
backdrop-filter: blur(5px);
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
gap: 1rem; justify-content: center;
z-index: var(--z-modal);
opacity: 0;
cursor: pointer;
transition: opacity 0.2s ease-out;
&.visible {
opacity: 1;
}
} }
.dlc-search-input { // Dialog container
flex: 1; .dialog {
background-color: var(--border-dark); background-color: var(--elevated-bg);
border-radius: var(--radius-md);
box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
border: 1px solid var(--border-soft); border: 1px solid var(--border-soft);
border-radius: 4px; opacity: 0;
color: var(--text-primary); transform: scale(0.95);
padding: 0.6rem 1rem; transition: transform 0.2s var(--easing-bounce), opacity 0.2s ease-out;
font-size: 0.9rem; cursor: default;
transition: all var(--duration-normal) var(--easing-ease-out);
&:focus {
border-color: var(--primary-color);
outline: none;
box-shadow: 0px 0px 6px rgba(245, 150, 130, 0.2);
}
&::placeholder {
color: var(--text-muted);
}
}
// Select all container
.select-all-container {
display: flex; display: flex;
align-items: center; flex-direction: column;
min-width: 100px; max-height: 90vh;
overflow: hidden;
.animated-checkbox { &.dialog-visible {
margin-left: auto; transform: scale(1);
opacity: 1;
} }
.checkbox-label { // Sizing variants
font-size: 0.9rem; &.dialog-small {
color: var(--text-secondary); width: 450px;
max-width: 90vw;
}
&.dialog-medium {
width: 550px;
max-width: 90vw;
}
&.dialog-large {
width: 700px;
max-width: 90vw;
} }
} }
// Loading progress indicator // Dialog header
.dlc-loading-progress { .dialog-header {
padding: 0.75rem 1.5rem; padding: 1.5rem;
background-color: rgba(0, 0, 0, 0.05);
border-bottom: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
position: relative;
.loading-details { h3 {
display: flex; font-size: 1.2rem;
justify-content: space-between; font-weight: 700;
font-size: 0.8rem; margin-bottom: 0.5rem;
color: var(--text-secondary); color: var(--text-primary);
.time-left {
color: var(--text-muted);
}
}
}
// DLC list container
.dlc-list-container {
flex: 1;
overflow-y: auto;
min-height: 200px;
@include custom-scrollbar;
}
.dlc-list {
padding: 0.5rem 0;
}
// DLC item
.dlc-item {
padding: 0.75rem 1.5rem;
border-bottom: 1px solid var(--border-soft);
transition: all var(--duration-normal) var(--easing-ease-out);
&:hover {
background-color: rgba(255, 255, 255, 0.03);
} }
&:last-child { // Close button
border-bottom: none; .dialog-close-button {
} position: absolute;
top: 1rem;
&.dlc-item-loading { right: 1rem;
height: 30px; width: 32px;
height: 32px;
background: var(--border-soft);
border-radius: 50%;
color: var(--text-primary);
font-size: 1.5rem;
line-height: 1;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
.loading-pulse { &:hover {
width: 70%; background: var(--border);
height: 20px; transform: rotate(90deg);
background: linear-gradient(
90deg,
var(--border-soft) 0%,
var(--border) 50%,
var(--border-soft) 100%
);
background-size: 200% 100%;
border-radius: 4px;
animation: loading-pulse 1.5s infinite;
} }
} }
} }
// DLC loading state // Dialog body
.dlc-loading { .dialog-body {
height: 200px; padding: 1rem 1.5rem;
overflow-y: auto;
flex: 1;
@include custom-scrollbar;
}
// Dialog footer
.dialog-footer {
padding: 1rem 1.5rem;
border-top: 1px solid var(--border-soft);
}
// Dialog actions
.dialog-actions {
display: flex; display: flex;
align-items: center; justify-content: flex-end;
justify-content: center; gap: 0.75rem;
flex-direction: column;
gap: 1rem;
.loading-spinner { &.justify-start {
width: 40px; justify-content: flex-start;
height: 40px;
border: 3px solid rgba(255, 255, 255, 0.1);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
} }
p { &.justify-center {
color: var(--text-secondary); justify-content: center;
}
}
.no-dlcs-message {
height: 200px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
}
// Game information in DLC dialog
.dlc-game-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0.5rem;
.game-title {
font-weight: 500;
color: var(--text-secondary);
}
.dlc-count {
font-size: 0.9rem;
padding: 0.3rem 0.6rem;
background-color: var(--info-soft);
color: var(--info);
border-radius: 4px;
}
}
// Loading animations
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes loading-pulse {
0% {
background-position: 200% 50%;
}
100% {
background-position: 0% 50%;
} }
} }