Split large Sass files into focused partials
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
This commit is contained in:
parent
7d2a25c672
commit
fe91d18624
34 changed files with 3642 additions and 3556 deletions
66
website/src/styles/games/_cards.scss
Normal file
66
website/src/styles/games/_cards.scss
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
// Rôle : regroupe les grilles, cartes, couvertures et badges des pages jeux.
|
||||
|
||||
.game-grid {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.game-card .card-cover {
|
||||
display: block;
|
||||
height: 170px;
|
||||
min-height: 170px;
|
||||
}
|
||||
|
||||
.game-card-cover {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background:
|
||||
var(--game-cover),
|
||||
rgba(5, 7, 17, 0.72);
|
||||
}
|
||||
|
||||
.toolbox-card-cover {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background:
|
||||
var(--game-cover),
|
||||
rgba(5, 7, 17, 0.72);
|
||||
}
|
||||
|
||||
.toolbox-icon-cover {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background:
|
||||
radial-gradient(circle at 50% 38%, rgba(246, 196, 83, 0.16), transparent 42%),
|
||||
var(--gradient-nebula);
|
||||
}
|
||||
|
||||
.game-card-cover img,
|
||||
.toolbox-card-cover img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: inherit;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.toolbox-icon-cover img {
|
||||
display: block;
|
||||
width: min(78px, 42%);
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34));
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
min-height: 24px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--color-primary-soft);
|
||||
color: #b69cff;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 700;
|
||||
padding: 3px 9px;
|
||||
}
|
||||
182
website/src/styles/games/_filters.scss
Normal file
182
website/src/styles/games/_filters.scss
Normal file
|
|
@ -0,0 +1,182 @@
|
|||
// Rôle : regroupe le layout, les filtres et les barres de contrôle des pages jeux.
|
||||
@use "../mixins";
|
||||
|
||||
.game-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
|
||||
gap: var(--space-5);
|
||||
margin-top: var(--space-6);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.game-filters {
|
||||
position: sticky;
|
||||
top: 92px;
|
||||
}
|
||||
|
||||
.filter-panel {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(16, 20, 38, 0.58);
|
||||
box-shadow: var(--shadow-sm);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.filter-panel::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
background:
|
||||
radial-gradient(circle at 92% 12%, rgba(246, 196, 83, 0.009), transparent 34%),
|
||||
radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.011), transparent 42%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.filter-panel::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.42), transparent 34%),
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.42), rgba(139, 92, 246, 0.32) 54%, rgba(196, 181, 253, 0.24));
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.filter-panel > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.filter-panel-head,
|
||||
.filter-logic {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.filter-panel-head {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.filter-logic {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.filter-panel-head h2 {
|
||||
margin-bottom: 0;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.filter-reset-button {
|
||||
color: var(--color-text-secondary);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.filter-reset-button:hover {
|
||||
background: rgba(21, 26, 48, 0.96);
|
||||
}
|
||||
|
||||
.field.compact {
|
||||
padding: var(--space-4) 0;
|
||||
}
|
||||
|
||||
.filter-logic {
|
||||
min-height: 42px;
|
||||
margin-bottom: var(--space-4);
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.36);
|
||||
}
|
||||
|
||||
.filter-logic button {
|
||||
min-height: 30px;
|
||||
padding: 0 12px;
|
||||
border-color: rgba(246, 196, 83, 0.24);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(72, 43, 160, 0.72), rgba(45, 52, 146, 0.68)) padding-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.46), rgba(139, 92, 246, 0.28)) border-box;
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.filter-logic button:hover {
|
||||
border-color: rgba(246, 196, 83, 0.52);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(109, 40, 217, 0.86), rgba(67, 56, 202, 0.82)) padding-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.72), rgba(196, 181, 253, 0.42)) border-box;
|
||||
box-shadow:
|
||||
0 0 14px rgba(139, 92, 246, 0.14),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.filter-options {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
max-height: calc(100vh - 360px);
|
||||
overflow: auto;
|
||||
margin-right: -6px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.filter-chip {
|
||||
display: grid;
|
||||
grid-template-columns: 18px 22px 1fr;
|
||||
min-height: 40px;
|
||||
align-items: center;
|
||||
column-gap: 6px;
|
||||
padding: 7px 10px 7px 13px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.32);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.filter-chip:hover,
|
||||
.filter-chip.active {
|
||||
border-color: var(--color-primary-border);
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.filter-chip input {
|
||||
flex: 0 0 18px;
|
||||
width: 18px;
|
||||
min-width: 18px;
|
||||
max-width: 18px;
|
||||
inline-size: 18px;
|
||||
min-inline-size: 18px;
|
||||
max-inline-size: 18px;
|
||||
height: 18px;
|
||||
min-height: 18px;
|
||||
max-height: 18px;
|
||||
block-size: 18px;
|
||||
min-block-size: 18px;
|
||||
max-block-size: 18px;
|
||||
}
|
||||
|
||||
.filter-chip img {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.filter-chip span {
|
||||
overflow: hidden;
|
||||
color: inherit;
|
||||
font-size: var(--font-size-sm);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
49
website/src/styles/games/_heading.scss
Normal file
49
website/src/styles/games/_heading.scss
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
// Rôle : regroupe les titres, breadcrumbs et actions de tête des pages jeux.
|
||||
|
||||
.game-heading p {
|
||||
max-width: 70ch;
|
||||
}
|
||||
|
||||
.game-title-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.game-title-row h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.game-breadcrumb {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
margin-bottom: 8px;
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.game-breadcrumb a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: inherit;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.game-breadcrumb .ui-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--color-accent-gold);
|
||||
filter:
|
||||
drop-shadow(0 0 0 currentColor)
|
||||
drop-shadow(0 0 4px rgba(246, 196, 83, 0.22));
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.game-breadcrumb a:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
78
website/src/styles/games/_home-cards.scss
Normal file
78
website/src/styles/games/_home-cards.scss
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
// Rôle : regroupe les cartes et surfaces d'entrée des pages jeux.
|
||||
|
||||
.game-home-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 380px));
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
|
||||
.game-home-card {
|
||||
overflow: hidden;
|
||||
border-color: transparent;
|
||||
border-radius: var(--radius-md);
|
||||
padding: 0;
|
||||
min-height: 230px;
|
||||
background:
|
||||
linear-gradient(rgba(16, 20, 38, 0.88), rgba(16, 20, 38, 0.88)) padding-box,
|
||||
radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.42), transparent 28%) border-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.62) 0%, rgba(246, 196, 83, 0.42) 72%, rgba(34, 211, 238, 0.24) 100%) border-box;
|
||||
}
|
||||
|
||||
@supports (corner-shape: scoop) {
|
||||
.game-home-card {
|
||||
corner-shape: scoop;
|
||||
}
|
||||
}
|
||||
|
||||
.game-home-card:hover {
|
||||
transform: none;
|
||||
border-color: transparent;
|
||||
background:
|
||||
linear-gradient(rgba(21, 26, 48, 0.96), rgba(21, 26, 48, 0.96)) padding-box,
|
||||
linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(196, 181, 253, 0.72)) border-box;
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
0 0 18px rgba(139, 92, 246, 0.22),
|
||||
0 0 34px rgba(196, 181, 253, 0.12);
|
||||
}
|
||||
|
||||
.game-home-card img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
object-fit: contain;
|
||||
padding: var(--space-4);
|
||||
border-bottom: 1px solid rgba(246, 196, 83, 0.42);
|
||||
background: rgba(5, 7, 17, 0.28);
|
||||
}
|
||||
|
||||
.game-home-card-icon {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
place-items: center;
|
||||
border-bottom: 1px solid rgba(246, 196, 83, 0.42);
|
||||
background: rgba(5, 7, 17, 0.28);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.game-home-card-icon .module-icon-svg {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.36));
|
||||
}
|
||||
|
||||
.game-home-card > strong,
|
||||
.game-home-card > span:not(.game-home-card-icon) {
|
||||
margin-inline: var(--space-5);
|
||||
}
|
||||
|
||||
.game-home-card > strong {
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
.game-home-card > span:not(.game-home-card-icon) {
|
||||
margin-bottom: var(--space-5);
|
||||
}
|
||||
267
website/src/styles/games/_lists.scss
Normal file
267
website/src/styles/games/_lists.scss
Normal file
|
|
@ -0,0 +1,267 @@
|
|||
// Rôle : regroupe les listes, panneaux de sélection et actions des pages jeux.
|
||||
|
||||
.results-count {
|
||||
display: inline-flex;
|
||||
min-height: 28px;
|
||||
align-items: center;
|
||||
padding: 4px 10px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.16);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(5, 7, 17, 0.34);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.results-copy-button {
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
.game-list-help-link {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
min-height: 36px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: var(--space-3);
|
||||
border-color: rgba(165, 180, 252, 0.18);
|
||||
background: rgba(5, 7, 17, 0.24);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
padding: 7px 12px;
|
||||
}
|
||||
|
||||
.game-list-help-link:hover {
|
||||
border-color: rgba(246, 196, 83, 0.44);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.1), rgba(139, 92, 246, 0.08)) padding-box,
|
||||
linear-gradient(135deg, rgba(246, 196, 83, 0.42), rgba(196, 181, 253, 0.22)) border-box;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.game-list-selector {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
|
||||
justify-content: center;
|
||||
gap: var(--space-4);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
|
||||
.game-list-selector-item {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
min-height: 100px;
|
||||
align-items: stretch;
|
||||
gap: 10px;
|
||||
padding: var(--space-4);
|
||||
border: 1px solid rgba(165, 180, 252, 0.14);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(16, 20, 38, 0.58);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.game-list-selector-item:hover,
|
||||
.game-list-selector-item.active {
|
||||
border-color: rgba(246, 196, 83, 0.42);
|
||||
background: rgba(31, 37, 68, 0.72);
|
||||
box-shadow:
|
||||
var(--shadow-sm),
|
||||
0 0 14px rgba(246, 196, 83, 0.1);
|
||||
}
|
||||
|
||||
.game-list-select-button {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: auto 1fr auto;
|
||||
width: 100%;
|
||||
min-height: 68px;
|
||||
align-content: stretch;
|
||||
justify-content: stretch;
|
||||
justify-items: start;
|
||||
gap: 4px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
text-align: left;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.game-list-select-button:hover {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.game-list-selector-item strong {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: calc(var(--font-size-lg) * 2.5);
|
||||
align-self: start;
|
||||
font-size: var(--font-size-lg);
|
||||
line-height: 1.25;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.game-list-selector-item small {
|
||||
display: block;
|
||||
width: 100%;
|
||||
align-self: end;
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 800;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.game-list-selector-item .game-list-create-button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.game-list-panel {
|
||||
margin-top: var(--space-5);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.game-list-panel > header,
|
||||
.game-list-category header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
border-bottom: 1px solid rgba(246, 196, 83, 0.32);
|
||||
}
|
||||
|
||||
.game-list-category header {
|
||||
padding: 0 0 var(--space-3);
|
||||
}
|
||||
|
||||
.game-list-panel h2 {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.game-list-categories {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.game-list-category {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.game-list-category:not(:last-child) {
|
||||
padding-bottom: var(--space-4);
|
||||
border-bottom: 1px solid rgba(165, 180, 252, 0.1);
|
||||
}
|
||||
|
||||
.game-list-category h3 {
|
||||
margin: 0;
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
|
||||
.game-list-symbol {
|
||||
display: inline-block;
|
||||
margin-left: 3px;
|
||||
color: currentColor;
|
||||
font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", sans-serif;
|
||||
font-size: 1.18em;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
text-shadow:
|
||||
0 0 0 currentColor,
|
||||
0 0 4px rgba(246, 196, 83, 0.18);
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.game-list-category ul {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.game-list-category li {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
min-height: 58px;
|
||||
align-content: start;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid rgba(165, 180, 252, 0.07);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(5, 7, 17, 0.14);
|
||||
}
|
||||
|
||||
.game-list-item-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.game-list-category li strong {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.game-list-category li span {
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.game-list-category li em {
|
||||
display: inline-flex;
|
||||
min-height: 20px;
|
||||
align-items: center;
|
||||
padding: 2px 7px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.28);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(246, 196, 83, 0.08);
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-xs);
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.game-list-actions {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.game-list-create-button {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 40px;
|
||||
padding: 0;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.game-list-create-button:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.game-list-create-button .module-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.game-list-create-button .module-icon-svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue