mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-05-02 13:02:04 -04:00
Initial changes
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
/*
|
||||
Font definitions
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'Satoshi';
|
||||
src:
|
||||
url('../assets/fonts/Satoshi.ttf') format('ttf'),
|
||||
src: url('../assets/fonts/Satoshi.ttf') format('ttf'),
|
||||
url('../assets/fonts/Roboto.ttf') format('ttf'),
|
||||
url('../assets/fonts/WorkSans.ttf') format('ttf');
|
||||
font-weight: 400;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@use './variables' as *;
|
||||
@use './mixins' as *;
|
||||
|
||||
/*
|
||||
Layout styles
|
||||
Main layout structure for the application
|
||||
*/
|
||||
.app-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -21,67 +22,18 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image:
|
||||
radial-gradient(circle at 20% 30%, rgba(var(--primary-color), 0.05) 0%, transparent 70%),
|
||||
background-image: radial-gradient(
|
||||
circle at 20% 30%,
|
||||
rgba(var(--primary-color), 0.05) 0%,
|
||||
transparent 70%
|
||||
),
|
||||
radial-gradient(circle at 80% 70%, rgba(var(--cream-color), 0.05) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
z-index: var(--z-bg);
|
||||
}
|
||||
}
|
||||
|
||||
// Header
|
||||
.app-header {
|
||||
@include flex-between;
|
||||
padding: 1rem 2rem;
|
||||
background-color: var(--tertiary-bg);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||||
position: relative;
|
||||
z-index: var(--z-header);
|
||||
height: var(--header-height);
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: 0.5px;
|
||||
@include text-shadow;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--cream-color),
|
||||
var(--primary-color),
|
||||
var(--smoke-color)
|
||||
);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.header-controls {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
// Main content
|
||||
// Main content area
|
||||
.main-content {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
@@ -91,171 +43,109 @@
|
||||
z-index: var(--z-elevate);
|
||||
}
|
||||
|
||||
// Sidebar
|
||||
.sidebar {
|
||||
width: var(--sidebar-width);
|
||||
min-width: var(--sidebar-width);
|
||||
background-color: var(--secondary-bg);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
||||
box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.2);
|
||||
padding: 1.5rem 1rem;
|
||||
@include flex-column;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
z-index: var(--z-elevate) + 1;
|
||||
// Error message container
|
||||
.error-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem;
|
||||
margin: 2rem auto;
|
||||
max-width: 600px;
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: rgba(var(--danger), 0.05);
|
||||
border: 1px solid rgb(var(--danger), 0.2);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(5px);
|
||||
text-align: center;
|
||||
|
||||
h2 {
|
||||
color: var(--text-primary);
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
letter-spacing: 0.5px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@include custom-scrollbar;
|
||||
}
|
||||
details {
|
||||
margin: 1rem 0;
|
||||
width: 100%;
|
||||
|
||||
// Game list container
|
||||
.game-list {
|
||||
padding: 1.5rem;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
@include custom-scrollbar;
|
||||
position: relative;
|
||||
summary {
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--text-primary);
|
||||
p {
|
||||
padding: 1rem;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-secondary);
|
||||
font-family: monospace;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-heavy);
|
||||
border: none;
|
||||
padding: 0.7rem 1.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding-bottom: 0.5rem;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--primary-color), transparent);
|
||||
border-radius: 3px;
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px rgba(var(--primary-color), 0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Game grid
|
||||
.game-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.5rem 2rem 0.5rem;
|
||||
scroll-behavior: smooth;
|
||||
align-items: stretch;
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
animation: fadeIn 0.5s forwards;
|
||||
}
|
||||
|
||||
// Loading and empty state
|
||||
.loading-indicator,
|
||||
.no-games-message {
|
||||
@include flex-center;
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
// Error message styling in the game list
|
||||
.error-message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem;
|
||||
margin: 2rem auto;
|
||||
max-width: 600px;
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
|
||||
background-color: rgba(var(--danger), 0.05);
|
||||
border: 1px solid rgb(var(--danger), 0.2);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
text-align: center;
|
||||
|
||||
.loading-indicator {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
h3 {
|
||||
color: var(--danger);
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
|
||||
animation: loading-shimmer 2s infinite;
|
||||
}
|
||||
}
|
||||
|
||||
// Responsive adjustments
|
||||
@include media-sm {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-lg {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-xl {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll to top button
|
||||
.scroll-top-button {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
right: 30px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
@include gradient-bg($primary-color, color-mix(in srgb, black 10%, var(--primary-color)));
|
||||
color: var(--text-primary);
|
||||
@include flex-center;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
@include transition-standard;
|
||||
z-index: var(--z-header);
|
||||
|
||||
&.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 20px rgba(var(--primary-color), 0.4);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Animation keyframes
|
||||
@keyframes fadeIn {
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loading-shimmer {
|
||||
to {
|
||||
left: 100%;
|
||||
p {
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--text-secondary);
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-primary);
|
||||
border: none;
|
||||
padding: 0.7rem 1.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px rgba(var(--primary-color), 0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
@use './variables' as *;
|
||||
/*
|
||||
Mixins for reusable style patterns
|
||||
*/
|
||||
|
||||
// Basic flex helpers
|
||||
@mixin flex-center {
|
||||
@@ -83,7 +85,7 @@
|
||||
@mixin card {
|
||||
background-color: var(--secondary-bg);
|
||||
border-radius: var(--radius-sm);
|
||||
@include shadow;
|
||||
@include shadow-standard;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@use './variables' as *;
|
||||
@use './mixins' as *;
|
||||
@use './fonts' as *;
|
||||
/*
|
||||
CSS Reset and base styles
|
||||
*/
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -1,54 +1,8 @@
|
||||
@use './fonts' as *;
|
||||
/*
|
||||
Variables for consistent styling
|
||||
*/
|
||||
|
||||
// Color palette
|
||||
:root {
|
||||
// Primary colors
|
||||
--primary-color: #ffc896;
|
||||
--secondary-color: #ffb278;
|
||||
|
||||
// Background
|
||||
--primary-bg: #0f0f0f;
|
||||
--secondary-bg: #151515;
|
||||
--tertiary-bg: #121212;
|
||||
--elevated-bg: #1a1a1a;
|
||||
--disabled: #5e5e5e;
|
||||
|
||||
// Text
|
||||
--text-primary: #f0f0f0;
|
||||
--text-secondary: #c8c8c8;
|
||||
--text-soft: #afafaf;
|
||||
--text-heavy: #1a1a1a;
|
||||
--text-muted: #4b4b4b;
|
||||
|
||||
// Borders
|
||||
--border-dark: #1a1a1a;
|
||||
--border-soft: #282828;
|
||||
--border: #323232;
|
||||
|
||||
// Status colors
|
||||
--success: #8cc893;
|
||||
--warning: #ffc896;
|
||||
--danger: #d96b6b;
|
||||
--info: #80b4ff;
|
||||
|
||||
--success-light: #b0e0a9;
|
||||
--warning-light: #ffdcb9;
|
||||
--danger-light: #e69691;
|
||||
--info-light: #a8d2ff;
|
||||
|
||||
--success-soft: rgba(176, 224, 169, 0.15);
|
||||
--warning-soft: rgba(247, 200, 111, 0.15);
|
||||
--danger-soft: rgba(230, 150, 145, 0.15);
|
||||
--info-soft: rgba(168, 210, 255, 0.15);
|
||||
|
||||
// Feature colors
|
||||
--native: #8cc893;
|
||||
--proton: #ffc896;
|
||||
--cream: #80b4ff;
|
||||
--smoke: #fff096;
|
||||
|
||||
--modal-backdrop: rgba(30, 30, 30, 0.95);
|
||||
|
||||
// Animation durations
|
||||
--duration-fast: 100ms;
|
||||
--duration-normal: 200ms;
|
||||
@@ -99,6 +53,7 @@
|
||||
--z-tooltip: 1500;
|
||||
}
|
||||
|
||||
// Color variables for SCSS usage
|
||||
$success-color: #55e07a;
|
||||
$danger-color: #ff5252;
|
||||
$primary-color: #4a76c4;
|
||||
|
||||
@@ -1,258 +0,0 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
|
||||
// Progress Dialog
|
||||
.progress-dialog-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: var(--modal-backdrop);
|
||||
backdrop-filter: blur(5px);
|
||||
@include flex-center;
|
||||
z-index: var(--z-modal);
|
||||
opacity: 0;
|
||||
animation: modal-appear 0.2s ease-out;
|
||||
cursor: pointer;
|
||||
|
||||
&.visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@keyframes modal-appear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.progress-dialog {
|
||||
background-color: var(--elevated-bg);
|
||||
border-radius: 8px;
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3); // shadow-glow
|
||||
width: 450px;
|
||||
max-width: 90vw;
|
||||
border: 1px solid var(--border-soft);
|
||||
opacity: 0;
|
||||
cursor: default;
|
||||
|
||||
&.dialog-visible {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&.with-instructions {
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
// Progress bar
|
||||
.progress-bar-container {
|
||||
height: 8px;
|
||||
background-color: var(--border-soft);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
background-color: var(--primary-color);
|
||||
border-radius: 4px;
|
||||
transition: width 0.3s ease;
|
||||
background: var(--primary-color);
|
||||
box-shadow: 0px 0px 6px rgba(245, 150, 130, 0.3);
|
||||
}
|
||||
|
||||
.progress-percentage {
|
||||
text-align: right;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
// Instruction container in progress dialog
|
||||
.instruction-container {
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
|
||||
h4 {
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.instruction-text {
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.dlc-count {
|
||||
display: inline-block;
|
||||
margin-bottom: 0.75rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
background-color: var(--info-soft);
|
||||
color: var(--info);
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--info);
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.command-box {
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1.2rem;
|
||||
font-family: monospace;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&.command-box-smoke {
|
||||
font-size: 0.9rem;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
white-space: pre-wrap;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.selectable-text {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
user-select: text;
|
||||
-webkit-user-select: text;
|
||||
-moz-user-select: text;
|
||||
-ms-user-select: text;
|
||||
cursor: text;
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
word-break: break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.copy-button,
|
||||
.close-button {
|
||||
padding: 0.6rem 1.2rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
@include transition-standard;
|
||||
border: none;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary-color);
|
||||
transform: translateY(-2px) scale(1.02); // hover-lift
|
||||
box-shadow: 0 6px 14px var(--info-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.close-button {
|
||||
background-color: var(--border-soft);
|
||||
color: var(--text-primary);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--border);
|
||||
transform: translateY(-2px) scale(1.02); // hover-lift
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
// Error message styling
|
||||
.error-message {
|
||||
@include flex-column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem;
|
||||
margin: 2rem auto;
|
||||
max-width: 600px;
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: rgba(var(--danger), 0.05);
|
||||
border: 1px solid rgb(var(--danger), 0.2);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(5px);
|
||||
text-align: center;
|
||||
|
||||
h3 {
|
||||
color: var(--danger);
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--text-secondary);
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-primary);
|
||||
border: none;
|
||||
padding: 0.7rem 1.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
@include transition-standard;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px rgba(var(--primary-color), 0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Animation for progress bar
|
||||
@keyframes progress-shimmer {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
@@ -1,331 +0,0 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
|
||||
.dlc-dialog-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: var(--modal-backdrop);
|
||||
backdrop-filter: blur(5px);
|
||||
@include flex-center;
|
||||
z-index: var(--z-modal);
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
|
||||
&.visible {
|
||||
opacity: 1;
|
||||
animation: modal-appear 0.2s ease-out;
|
||||
}
|
||||
}
|
||||
|
||||
.dlc-selection-dialog {
|
||||
background-color: var(--elevated-bg);
|
||||
border-radius: 8px;
|
||||
width: 650px;
|
||||
max-width: 90vw;
|
||||
max-height: 80vh;
|
||||
border: 1px solid var(--border-soft);
|
||||
box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
cursor: default;
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
|
||||
&.dialog-visible {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
transition:
|
||||
transform 0.2s var(--easing-bounce),
|
||||
opacity 0.2s ease-out;
|
||||
}
|
||||
}
|
||||
|
||||
.dlc-dialog-header {
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
|
||||
h3 {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
||||
.dlc-dialog-search {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.dlc-search-input {
|
||||
flex: 1;
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
@include transition-standard;
|
||||
|
||||
&: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 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 100px;
|
||||
|
||||
// Custom styling for the select all checkbox
|
||||
:global(.animated-checkbox) {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
:global(.checkbox-label) {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.dlc-loading-progress {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
|
||||
.progress-bar-container {
|
||||
height: 6px;
|
||||
background-color: var(--border-soft);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
background-color: var(--primary-color);
|
||||
border-radius: 3px;
|
||||
transition: width 0.3s ease;
|
||||
background: var(--primary-color);
|
||||
box-shadow: 0px 0px 6px rgba(128, 181, 255, 0.3);
|
||||
}
|
||||
|
||||
.loading-details {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
|
||||
.time-left {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dlc-list-container {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 200px;
|
||||
@include custom-scrollbar;
|
||||
}
|
||||
|
||||
.dlc-list {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.dlc-item {
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
@include transition-standard;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&.dlc-item-loading {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.loading-pulse {
|
||||
width: 70%;
|
||||
height: 20px;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
// Styling for the checkbox component inside dlc-item
|
||||
:global(.animated-checkbox) {
|
||||
width: 100%;
|
||||
|
||||
.checkbox-label {
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.checkbox-sublabel {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
// Optional hover effect
|
||||
&:hover {
|
||||
.checkbox-label {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.checkbox-custom {
|
||||
border-color: var(--primary-color, #ffc896);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dlc-loading {
|
||||
height: 200px;
|
||||
@include flex-center;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
.loading-spinner {
|
||||
width: 40px;
|
||||
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 {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.no-dlcs-message {
|
||||
height: 200px;
|
||||
@include flex-center;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.dlc-dialog-actions {
|
||||
padding: 1rem 1.5rem;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.cancel-button,
|
||||
.confirm-button {
|
||||
padding: 0.6rem 1.2rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
@include transition-standard;
|
||||
border: none;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.cancel-button {
|
||||
background-color: var(--border-soft);
|
||||
color: var(--text-primary);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--border);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.confirm-button {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px var(--info-soft);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes modal-appear {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loading-pulse {
|
||||
0% {
|
||||
background-position: 200% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
|
||||
.app-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: var(--primary-bg);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
// Header
|
||||
.app-header {
|
||||
@include flex-between;
|
||||
padding: 1rem 2rem;
|
||||
background-color: var(--tertiary-bg);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||||
position: relative;
|
||||
z-index: var(--z-header);
|
||||
height: var(--header-height);
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: 0.5px;
|
||||
@include text-shadow;
|
||||
}
|
||||
}
|
||||
|
||||
.header-controls {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.refresh-button {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-primary);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 0.6rem 1.2rem;
|
||||
font-weight: var(--bold);
|
||||
letter-spacing: 0.5px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.refresh-button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px rgba(245, 150, 130, 0.3);
|
||||
background-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.refresh-button:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.search-input {
|
||||
padding: 0.5rem 1rem;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
min-width: 200px;
|
||||
background-color: var(--border-dark);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
border-color: var(--primary-color);
|
||||
outline: none;
|
||||
box-shadow: 0px 0px 6px rgba(245, 150, 130, 0.2);
|
||||
}
|
||||
@@ -1,208 +0,0 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
|
||||
.filter-list {
|
||||
list-style: none;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
li {
|
||||
@include transition-standard;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 0.7rem 1rem;
|
||||
margin-bottom: 0.3rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
&.active {
|
||||
@include gradient-bg($primary-color, color-mix(in srgb, black 10%, var(--primary-color)));
|
||||
box-shadow: 0 4px 10px rgba(var(--primary-color), 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Custom select dropdown styling
|
||||
.custom-select {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
.select-selected {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
@include transition-standard;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
min-width: 150px;
|
||||
|
||||
&:after {
|
||||
content: '⯆';
|
||||
font-size: 0.7rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.select-items {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: var(--secondary-bg);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: var(--radius-sm);
|
||||
margin-top: 5px;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||||
z-index: 10;
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.3s ease;
|
||||
|
||||
&.show {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.select-item {
|
||||
padding: 0.5rem 1rem;
|
||||
cursor: pointer;
|
||||
@include transition-standard;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// App logo styles
|
||||
.app-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
|
||||
svg {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
fill: var(--text-primary);
|
||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
}
|
||||
|
||||
// Tooltip styles
|
||||
.tooltip {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
&:hover .tooltip-content {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.tooltip-content {
|
||||
visibility: hidden;
|
||||
width: 200px;
|
||||
background-color: var(--secondary-bg);
|
||||
color: var(--text-primary);
|
||||
text-align: center;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 8px;
|
||||
position: absolute;
|
||||
z-index: var(--z-tooltip);
|
||||
bottom: 125%;
|
||||
left: 50%;
|
||||
margin-left: -100px;
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
transition:
|
||||
opacity 0.3s,
|
||||
transform 0.3s;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
font-size: 0.8rem;
|
||||
pointer-events: none;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
border-width: 5px;
|
||||
border-style: solid;
|
||||
border-color: var(--secondary-bg) transparent transparent transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Header controls
|
||||
.refresh-button {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-heavy);
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 0.6rem 1.2rem;
|
||||
font-weight: var(--bold);
|
||||
letter-spacing: 0.5px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
@include transition-standard;
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 14px rgba(245, 150, 130, 0.3);
|
||||
background-color: var(--primary-color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
border-color: var(--primary-color);
|
||||
outline: none;
|
||||
box-shadow: 0px 0px 6px rgba(245, 150, 130, 0.2);
|
||||
}
|
||||
|
||||
.search-input {
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
@include transition-standard;
|
||||
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
min-width: 200px;
|
||||
|
||||
&:focus {
|
||||
border-color: var(--primary-color);
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
outline: none;
|
||||
box-shadow:
|
||||
0 0 0 2px rgba(var(--primary-color), 0.3),
|
||||
inset 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
}
|
||||
103
src/styles/components/buttons/_action_button.scss
Normal file
103
src/styles/components/buttons/_action_button.scss
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
Action button styles
|
||||
Used specifically for game installation/uninstallation
|
||||
*/
|
||||
.action-button {
|
||||
flex: 1;
|
||||
padding: 0.5rem;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-weight: var(--bold);
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
text-rendering: geometricPrecision;
|
||||
color: var(--text-heavy);
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
|
||||
&.install {
|
||||
background-color: var(--success);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--success-light);
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
box-shadow: 0px 0px 12px rgba(140, 200, 147, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.uninstall {
|
||||
background-color: var(--danger);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--danger-light);
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
box-shadow: 0px 0px 12px rgba(217, 107, 107, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.97);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
background-color: var(--disabled);
|
||||
transform: none;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
|
||||
animation: button-loading 1.5s infinite;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Edit button appearing on game cards
|
||||
.edit-button {
|
||||
padding: 0 0.7rem;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
font-weight: var(--bold);
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
text-rendering: geometricPrecision;
|
||||
color: var(--text-primary);
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
letter-spacing: 1px;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Animation for loading state
|
||||
@keyframes button-loading {
|
||||
to {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
|
||||
/*
|
||||
Animated checkbox component styles
|
||||
*/
|
||||
.animated-checkbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
159
src/styles/components/buttons/_button.scss
Normal file
159
src/styles/components/buttons/_button.scss
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
Button component styles
|
||||
Core styling for buttons throughout the application
|
||||
*/
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
font-weight: var(--semibold);
|
||||
white-space: nowrap;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
|
||||
// Default states
|
||||
&:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-standard);
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
transform: none !important;
|
||||
box-shadow: var(--shadow-standard) !important;
|
||||
}
|
||||
|
||||
// Sizing
|
||||
&.btn-sm {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
&.btn-md {
|
||||
font-size: 0.875rem;
|
||||
padding: 0.6rem 1.2rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
&.btn-lg {
|
||||
font-size: 1rem;
|
||||
padding: 0.8rem 1.5rem;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
// Variants
|
||||
&.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-heavy);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary-color);
|
||||
box-shadow: 0 6px 14px rgba(var(--primary-color), 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-secondary {
|
||||
background-color: var(--border-soft);
|
||||
color: var(--text-primary);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--border);
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-success {
|
||||
background-color: var(--success);
|
||||
color: var(--text-heavy);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--success-light);
|
||||
box-shadow: 0 6px 14px rgba(var(--success), 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-danger {
|
||||
background-color: var(--danger);
|
||||
color: var(--text-heavy);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--danger-light);
|
||||
box-shadow: 0 6px 14px rgba(var(--danger), 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-warning {
|
||||
background-color: var(--warning);
|
||||
color: var(--text-heavy);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--warning-light);
|
||||
box-shadow: 0 6px 14px rgba(var(--warning), 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
// Loading state
|
||||
&.btn-loading {
|
||||
position: relative;
|
||||
|
||||
.btn-spinner {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
position: relative;
|
||||
margin-right: 0.5rem;
|
||||
|
||||
.spinner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
border-top-color: currentColor;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
// Icons
|
||||
.btn-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.btn-icon-left {
|
||||
margin-right: 0.1rem;
|
||||
}
|
||||
|
||||
&.btn-icon-right {
|
||||
margin-left: 0.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Full width
|
||||
&.btn-full {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Animation for spinner
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
167
src/styles/components/common/_loading.scss
Normal file
167
src/styles/components/common/_loading.scss
Normal file
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
Loading indicator component styles
|
||||
*/
|
||||
.loading-indicator {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
|
||||
// Size variations
|
||||
&.loading-small {
|
||||
.loading-spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.loading-dots {
|
||||
.dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.loading-message {
|
||||
font-size: 0.8rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar-container {
|
||||
height: 6px;
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
&.loading-medium {
|
||||
.loading-spinner {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
.loading-dots {
|
||||
.dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.loading-message {
|
||||
font-size: 0.9rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.progress-bar-container {
|
||||
height: 8px;
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
&.loading-large {
|
||||
.loading-spinner {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-width: 4px;
|
||||
}
|
||||
|
||||
.loading-dots {
|
||||
.dot {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.loading-message {
|
||||
font-size: 1.1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.progress-bar-container {
|
||||
height: 10px;
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Spinner styles
|
||||
.loading-spinner {
|
||||
border-radius: 50%;
|
||||
border: 3px solid rgba(255, 255, 255, 0.1);
|
||||
border-top-color: var(--primary-color);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
// Loading dots animation
|
||||
.loading-dots {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
|
||||
.dot {
|
||||
background-color: var(--primary-color);
|
||||
border-radius: 50%;
|
||||
animation: bounce 1.4s infinite ease-in-out both;
|
||||
|
||||
&.dot-1 {
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
|
||||
&.dot-2 {
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Progress bar styles
|
||||
.loading-progress {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.progress-bar-container {
|
||||
background-color: var(--border-soft);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
background-color: var(--primary-color);
|
||||
border-radius: 4px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.progress-percentage {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.loading-message {
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
// Animations
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
80%,
|
||||
100% {
|
||||
transform: scale(0);
|
||||
}
|
||||
40% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
192
src/styles/components/dialogs/_dialog.scss
Normal file
192
src/styles/components/dialogs/_dialog.scss
Normal file
@@ -0,0 +1,192 @@
|
||||
@use '../../variables' as *;
|
||||
@use '../../mixins' as *;
|
||||
|
||||
/*
|
||||
DLC Selection Dialog styles
|
||||
For managing game DLCs
|
||||
*/
|
||||
|
||||
// DLC dialog search bar
|
||||
.dlc-dialog-search {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.dlc-search-input {
|
||||
flex: 1;
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
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;
|
||||
align-items: center;
|
||||
min-width: 100px;
|
||||
|
||||
.animated-checkbox {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
// Loading progress indicator
|
||||
.dlc-loading-progress {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
|
||||
.loading-details {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
|
||||
.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 {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&.dlc-item-loading {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.loading-pulse {
|
||||
width: 70%;
|
||||
height: 20px;
|
||||
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
|
||||
.dlc-loading {
|
||||
height: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
.loading-spinner {
|
||||
width: 40px;
|
||||
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 {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.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%;
|
||||
}
|
||||
}
|
||||
192
src/styles/components/dialogs/_dlc_dialog.scss
Normal file
192
src/styles/components/dialogs/_dlc_dialog.scss
Normal file
@@ -0,0 +1,192 @@
|
||||
@use '../../variables' as *;
|
||||
@use '../../mixins' as *;
|
||||
|
||||
/*
|
||||
DLC Selection Dialog styles
|
||||
For managing game DLCs
|
||||
*/
|
||||
|
||||
// DLC dialog search bar
|
||||
.dlc-dialog-search {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.dlc-search-input {
|
||||
flex: 1;
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
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;
|
||||
align-items: center;
|
||||
min-width: 100px;
|
||||
|
||||
.animated-checkbox {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
// Loading progress indicator
|
||||
.dlc-loading-progress {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
|
||||
.loading-details {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
|
||||
.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 {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&.dlc-item-loading {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.loading-pulse {
|
||||
width: 70%;
|
||||
height: 20px;
|
||||
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
|
||||
.dlc-loading {
|
||||
height: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
.loading-spinner {
|
||||
width: 40px;
|
||||
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 {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
.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%;
|
||||
}
|
||||
}
|
||||
114
src/styles/components/dialogs/_progress_dialog.scss
Normal file
114
src/styles/components/dialogs/_progress_dialog.scss
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
Progress dialog styles
|
||||
For installation/uninstallation progress display
|
||||
*/
|
||||
|
||||
// Progress bar
|
||||
.progress-bar-container {
|
||||
height: 8px;
|
||||
background-color: var(--border-soft);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
background-color: var(--primary-color);
|
||||
border-radius: 4px;
|
||||
transition: width 0.3s ease;
|
||||
background: var(--primary-color);
|
||||
box-shadow: 0px 0px 6px rgba(245, 150, 130, 0.3);
|
||||
}
|
||||
|
||||
.progress-percentage {
|
||||
text-align: right;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
// Instruction container
|
||||
.instruction-container {
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
|
||||
h4 {
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.instruction-text {
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.dlc-count {
|
||||
display: inline-block;
|
||||
margin-bottom: 0.75rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
background-color: var(--info-soft);
|
||||
color: var(--info);
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--info);
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
// Command box
|
||||
.command-box {
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1.2rem;
|
||||
font-family: monospace;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&.command-box-smoke {
|
||||
font-size: 0.9rem;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
white-space: pre-wrap;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Selectable text
|
||||
.selectable-text {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
user-select: text;
|
||||
-webkit-user-select: text;
|
||||
-moz-user-select: text;
|
||||
-ms-user-select: text;
|
||||
cursor: text;
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
word-break: break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
// Animation for progress bar
|
||||
@keyframes progress-shimmer {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,15 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
|
||||
/*
|
||||
Game card styles
|
||||
For game items displayed in the grid
|
||||
*/
|
||||
.game-item-card {
|
||||
position: relative;
|
||||
height: var(--card-height);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
will-change: opacity, transform;
|
||||
@include shadow-standard;
|
||||
@include transition-standard;
|
||||
box-shadow: var(--shadow-standard);
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
transform-origin: center;
|
||||
|
||||
// Simple image loading animation
|
||||
@@ -19,7 +20,7 @@
|
||||
// Hover effects for the card
|
||||
.game-item-card:hover {
|
||||
transform: translateY(-8px) scale(1.02);
|
||||
@include shadow-hover;
|
||||
box-shadow: var(--shadow-hover);
|
||||
z-index: 5;
|
||||
|
||||
.status-badge.native {
|
||||
@@ -41,18 +42,14 @@
|
||||
|
||||
// Special styling for cards with different statuses
|
||||
.game-item-card:has(.status-badge.cream) {
|
||||
box-shadow:
|
||||
var(--shadow-standard),
|
||||
0 0 15px rgba(128, 181, 255, 0.15);
|
||||
box-shadow: var(--shadow-standard), 0 0 15px rgba(128, 181, 255, 0.15);
|
||||
}
|
||||
|
||||
.game-item-card:has(.status-badge.smoke) {
|
||||
box-shadow:
|
||||
var(--shadow-standard),
|
||||
0 0 15px rgba(255, 239, 150, 0.15);
|
||||
box-shadow: var(--shadow-standard), 0 0 15px rgba(255, 239, 150, 0.15);
|
||||
}
|
||||
|
||||
// Simple clean overlay
|
||||
// Game item overlay
|
||||
.game-item-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -65,7 +62,8 @@
|
||||
rgba(0, 0, 0, 0.6) 50%,
|
||||
rgba(0, 0, 0, 0.8) 100%
|
||||
);
|
||||
@include flex-column;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 1rem;
|
||||
box-sizing: border-box;
|
||||
@@ -77,6 +75,7 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
// Game badges
|
||||
.game-badges {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
@@ -97,7 +96,7 @@
|
||||
text-rendering: geometricPrecision;
|
||||
color: var(--text-heavy);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
@include transition-standard;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
@@ -120,6 +119,7 @@
|
||||
color: var(--text-heavy);
|
||||
}
|
||||
|
||||
// Game title
|
||||
.game-title {
|
||||
padding: 0;
|
||||
position: relative;
|
||||
@@ -140,6 +140,7 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Game actions
|
||||
.game-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
@@ -147,91 +148,7 @@
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.action-button {
|
||||
flex: 1;
|
||||
padding: 0.5rem;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-weight: var(--bold);
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
text-rendering: geometricPrecision;
|
||||
color: var(--text-heavy);
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
@include transition-standard;
|
||||
}
|
||||
|
||||
.action-button.install {
|
||||
background-color: var(--success);
|
||||
}
|
||||
|
||||
.action-button.install:hover {
|
||||
background-color: var(--success-light);
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
box-shadow: 0px 0px 12px rgba(140, 200, 147, 0.3);
|
||||
}
|
||||
|
||||
.action-button.uninstall {
|
||||
background-color: var(--danger);
|
||||
}
|
||||
|
||||
.action-button.uninstall:hover {
|
||||
background-color: var(--danger-light);
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
box-shadow: 0px 0px 12px rgba(217, 107, 107, 0.3);
|
||||
}
|
||||
|
||||
.action-button:active {
|
||||
transform: scale(0.97);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.action-button:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
background-color: var(--disabled);
|
||||
transform: none;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.action-button:disabled::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
|
||||
animation: button-loading 1.5s infinite;
|
||||
}
|
||||
|
||||
.edit-button {
|
||||
padding: 0 0.7rem;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
font-weight: var(--bold);
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
text-rendering: geometricPrecision;
|
||||
color: var(--text-primary);
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
letter-spacing: 1px;
|
||||
@include transition-standard;
|
||||
}
|
||||
|
||||
.edit-button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.edit-button:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
// API not found message
|
||||
.api-not-found-message {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -288,9 +205,3 @@
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes button-loading {
|
||||
to {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
150
src/styles/components/games/_gamelist.scss
Normal file
150
src/styles/components/games/_gamelist.scss
Normal file
@@ -0,0 +1,150 @@
|
||||
@use '../../variables' as *;
|
||||
@use '../../mixins' as *;
|
||||
|
||||
/*
|
||||
Game list styles
|
||||
For game list container and grid
|
||||
*/
|
||||
.game-list {
|
||||
padding: 1.5rem;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
@include custom-scrollbar;
|
||||
position: relative;
|
||||
|
||||
h2 {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: 0.5px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding-bottom: 0.5rem;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--primary-color), transparent);
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Game grid
|
||||
.game-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.5rem 2rem 0.5rem;
|
||||
scroll-behavior: smooth;
|
||||
align-items: stretch;
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
animation: fadeIn 0.5s forwards;
|
||||
}
|
||||
|
||||
// Loading and empty state
|
||||
.loading-indicator,
|
||||
.no-games-message {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
text-align: center;
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
.loading-indicator {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
|
||||
animation: loading-shimmer 2s infinite;
|
||||
}
|
||||
}
|
||||
|
||||
// Responsive adjustments
|
||||
@include media-sm {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-lg {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-xl {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll to top button
|
||||
.scroll-top-button {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
right: 30px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--primary-color),
|
||||
color-mix(in srgb, black 10%, var(--primary-color))
|
||||
);
|
||||
color: var(--text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
z-index: var(--z-header);
|
||||
|
||||
&.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 20px rgba(var(--primary-color), 0.4);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Loading shimmer animation
|
||||
@keyframes loading-shimmer {
|
||||
to {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
@use '../variables' as *;
|
||||
@use '../mixins' as *;
|
||||
@use 'sass:color';
|
||||
|
||||
/*
|
||||
Animated background styles
|
||||
*/
|
||||
.animated-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
78
src/styles/components/layout/_header.scss
Normal file
78
src/styles/components/layout/_header.scss
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
Header component styles
|
||||
*/
|
||||
.app-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1rem 2rem;
|
||||
background-color: var(--tertiary-bg);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
||||
position: relative;
|
||||
z-index: var(--z-header);
|
||||
height: var(--header-height);
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: 0.5px;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--cream-color),
|
||||
var(--primary-color),
|
||||
var(--smoke-color)
|
||||
);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.header-controls {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
background-color: var(--border-dark);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
min-width: 200px;
|
||||
|
||||
&:focus {
|
||||
border-color: var(--primary-color);
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px rgba(var(--primary-color), 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
/*
|
||||
Initial loading screen styles
|
||||
*/
|
||||
.initial-loading-screen {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
137
src/styles/components/layout/_sidebar.scss
Normal file
137
src/styles/components/layout/_sidebar.scss
Normal file
@@ -0,0 +1,137 @@
|
||||
@use '../../variables' as *;
|
||||
@use '../../mixins' as *;
|
||||
|
||||
/*
|
||||
Sidebar component styles
|
||||
*/
|
||||
.sidebar {
|
||||
width: var(--sidebar-width);
|
||||
min-width: var(--sidebar-width);
|
||||
background-color: var(--secondary-bg);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
||||
box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.2);
|
||||
padding: 1.5rem 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
z-index: var(--z-elevate) + 1;
|
||||
@include custom-scrollbar;
|
||||
|
||||
h2 {
|
||||
color: var(--text-primary);
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 1rem;
|
||||
letter-spacing: 0.5px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-list {
|
||||
list-style: none;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
li {
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 0.7rem 1rem;
|
||||
margin-bottom: 0.3rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--primary-color),
|
||||
color-mix(in srgb, black 10%, var(--primary-color))
|
||||
);
|
||||
box-shadow: 0 4px 10px rgba(var(--primary-color), 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Custom select dropdown styling
|
||||
.custom-select {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
.select-selected {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-primary);
|
||||
padding: 0.6rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
min-width: 150px;
|
||||
|
||||
&:after {
|
||||
content: '⯆';
|
||||
font-size: 0.7rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.select-items {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: var(--secondary-bg);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: var(--radius-sm);
|
||||
margin-top: 5px;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||||
z-index: 10;
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.3s ease;
|
||||
|
||||
&.show {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.select-item {
|
||||
padding: 0.5rem 1rem;
|
||||
cursor: pointer;
|
||||
transition: all var(--duration-normal) var(--easing-ease-out);
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background-color: var(--primary-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// App logo styles
|
||||
.app-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
|
||||
svg {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
fill: var(--text-primary);
|
||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
}
|
||||
171
src/styles/components/notifications/_toast.scss
Normal file
171
src/styles/components/notifications/_toast.scss
Normal file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
Toast notification styles
|
||||
*/
|
||||
|
||||
// Toast container positioning
|
||||
.toast-container {
|
||||
position: fixed;
|
||||
z-index: var(--z-tooltip);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem;
|
||||
max-width: 380px;
|
||||
|
||||
// Position variations
|
||||
&.top-right {
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
&.top-left {
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
&.bottom-right {
|
||||
bottom: 1rem;
|
||||
right: 1rem;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
&.bottom-left {
|
||||
bottom: 1rem;
|
||||
left: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
&.top-center {
|
||||
top: 1rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&.bottom-center {
|
||||
bottom: 1rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
// Individual toast styling
|
||||
.toast {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
background-color: var(--elevated-bg);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: 0.75rem 1rem;
|
||||
max-width: 100%;
|
||||
min-width: 280px;
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
transition: all 0.3s var(--easing-ease-out);
|
||||
border-left: 4px solid;
|
||||
position: relative;
|
||||
cursor: default;
|
||||
|
||||
&.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
// Type-specific styling
|
||||
&.toast-success {
|
||||
border-color: var(--success);
|
||||
.toast-icon {
|
||||
color: var(--success);
|
||||
}
|
||||
}
|
||||
|
||||
&.toast-error {
|
||||
border-color: var(--danger);
|
||||
.toast-icon {
|
||||
color: var(--danger);
|
||||
}
|
||||
}
|
||||
|
||||
&.toast-warning {
|
||||
border-color: var(--warning);
|
||||
.toast-icon {
|
||||
color: var(--warning);
|
||||
}
|
||||
}
|
||||
|
||||
&.toast-info {
|
||||
border-color: var(--info);
|
||||
.toast-icon {
|
||||
color: var(--info);
|
||||
}
|
||||
}
|
||||
|
||||
// Toast elements
|
||||
.toast-icon {
|
||||
flex-shrink: 0;
|
||||
font-size: 1.25rem;
|
||||
margin-right: 0.75rem;
|
||||
margin-top: 0.125rem;
|
||||
}
|
||||
|
||||
.toast-content {
|
||||
flex: 1;
|
||||
min-width: 0; // Required for proper overflow handling
|
||||
}
|
||||
|
||||
.toast-title {
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
margin-bottom: 0.25rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.toast-message {
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary);
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.toast-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
font-size: 1.25rem;
|
||||
line-height: 1;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
margin-left: 0.5rem;
|
||||
transition: color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Animations for toast
|
||||
@keyframes toast-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes toast-out {
|
||||
from {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,45 @@
|
||||
// Import variables and mixins first
|
||||
/*
|
||||
Main SCSS entry point
|
||||
Import all partials in the correct order
|
||||
*/
|
||||
|
||||
/* Basic variables and mixins */
|
||||
@use './variables' as *;
|
||||
@use './mixins' as *;
|
||||
@use './fonts' as *;
|
||||
|
||||
// Reset
|
||||
/* Reset & global styles */
|
||||
@use './reset';
|
||||
|
||||
// Layout
|
||||
@use './layout';
|
||||
|
||||
// Components
|
||||
@use './components/gamecard';
|
||||
@use './components/dialog';
|
||||
@use './components/background';
|
||||
@use './components/sidebar';
|
||||
@use './components/dlc_dialog';
|
||||
@use './components/loading_screen';
|
||||
@use './components/animated_checkbox';
|
||||
/* Layout components */
|
||||
@use 'components/layout/header';
|
||||
@use 'components/layout/sidebar';
|
||||
@use 'components/layout/background';
|
||||
@use 'components/layout/loading_screen';
|
||||
|
||||
/* Game components */
|
||||
@use 'components/games/gamecard';
|
||||
@use 'components/games/gamelist';
|
||||
|
||||
/* Button components */
|
||||
@use 'components/buttons/button';
|
||||
@use 'components/buttons/action_button';
|
||||
@use 'components/buttons/animated_checkbox';
|
||||
|
||||
/* Dialog components */
|
||||
@use 'components/dialogs/dialog';
|
||||
@use 'components/dialogs/progress_dialog';
|
||||
@use 'components/dialogs/dlc_dialog';
|
||||
|
||||
/* Notification components */
|
||||
@use 'components/notifications/toast';
|
||||
|
||||
/* Common components */
|
||||
@use 'components/common/loading';
|
||||
|
||||
/* Page-specific styles */
|
||||
//@use 'pages/home';
|
||||
|
||||
/* Theme */
|
||||
@use 'themes/dark';
|
||||
|
||||
27
src/styles/pages/_home.scss
Normal file
27
src/styles/pages/_home.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Home page specific styles
|
||||
*/
|
||||
|
||||
// Currently empty since most styles are component-based
|
||||
// Will be used for any specific home page layouts or adjustments
|
||||
|
||||
.home-page {
|
||||
// Page-specific styles can be added here
|
||||
}
|
||||
|
||||
// Page-specific media queries
|
||||
@include media-sm {
|
||||
// Small screen adjustments
|
||||
}
|
||||
|
||||
@include media-md {
|
||||
// Medium screen adjustments
|
||||
}
|
||||
|
||||
@include media-lg {
|
||||
// Large screen adjustments
|
||||
}
|
||||
|
||||
@include media-xl {
|
||||
// Extra large screen adjustments
|
||||
}
|
||||
53
src/styles/themes/_dark.scss
Normal file
53
src/styles/themes/_dark.scss
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
Dark theme styles
|
||||
Contains variables specific to dark theme
|
||||
*/
|
||||
|
||||
:root {
|
||||
// Primary colors
|
||||
--primary-color: #ffc896;
|
||||
--secondary-color: #ffb278;
|
||||
|
||||
// Background
|
||||
--primary-bg: #0f0f0f;
|
||||
--secondary-bg: #151515;
|
||||
--tertiary-bg: #121212;
|
||||
--elevated-bg: #1a1a1a;
|
||||
--disabled: #5e5e5e;
|
||||
|
||||
// Text
|
||||
--text-primary: #f0f0f0;
|
||||
--text-secondary: #c8c8c8;
|
||||
--text-soft: #afafaf;
|
||||
--text-heavy: #1a1a1a;
|
||||
--text-muted: #4b4b4b;
|
||||
|
||||
// Borders
|
||||
--border-dark: #1a1a1a;
|
||||
--border-soft: #282828;
|
||||
--border: #323232;
|
||||
|
||||
// Status colors
|
||||
--success: #8cc893;
|
||||
--warning: #ffc896;
|
||||
--danger: #d96b6b;
|
||||
--info: #80b4ff;
|
||||
|
||||
--success-light: #b0e0a9;
|
||||
--warning-light: #ffdcb9;
|
||||
--danger-light: #e69691;
|
||||
--info-light: #a8d2ff;
|
||||
|
||||
--success-soft: rgba(176, 224, 169, 0.15);
|
||||
--warning-soft: rgba(247, 200, 111, 0.15);
|
||||
--danger-soft: rgba(230, 150, 145, 0.15);
|
||||
--info-soft: rgba(168, 210, 255, 0.15);
|
||||
|
||||
// Feature colors
|
||||
--native: #8cc893;
|
||||
--proton: #ffc896;
|
||||
--cream: #80b4ff;
|
||||
--smoke: #fff096;
|
||||
|
||||
--modal-backdrop: rgba(30, 30, 30, 0.95);
|
||||
}
|
||||
Reference in New Issue
Block a user