Merge pull request #293 from EdouardVanbelle/refactor/css-color
This commit is contained in:
@@ -59,8 +59,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 25
|
node-version: 25
|
||||||
|
|
||||||
|
# because we are not using package.json
|
||||||
|
- name: Install Stylelint and plugins
|
||||||
|
run: |
|
||||||
|
npm install --global \
|
||||||
|
stylelint@17 \
|
||||||
|
postcss@8 \
|
||||||
|
stylelint-value-no-unknown-custom-properties@6
|
||||||
|
|
||||||
- name: Run Stylelint
|
- name: Run Stylelint
|
||||||
run: npx stylelint "**/*.{css,scss}"
|
run: npx stylelint "static/css/**/*.{css,scss}"
|
||||||
|
|
||||||
rust-fmt:
|
rust-fmt:
|
||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
|
|||||||
+12
-3
@@ -1,13 +1,22 @@
|
|||||||
{
|
{
|
||||||
|
"files": ["statc/css/**/*.css"],
|
||||||
|
"plugins": [
|
||||||
|
"stylelint-value-no-unknown-custom-properties"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"color-no-hex": true,
|
"color-no-hex": true,
|
||||||
"color-named": "never",
|
"color-named": "never",
|
||||||
"function-disallowed-list": ["rgb", "rgba", "hsl", "hsla", "hwb", "oklch", "oklab"],
|
"function-disallowed-list": ["rgb", "rgba", "hsl", "hsla", "hwb", "oklch", "oklab"],
|
||||||
"selector-disallowed-list": ["/\\[data-theme/"]
|
"selector-disallowed-list": ["/\\[data-theme/"],
|
||||||
|
"csstools/value-no-unknown-custom-properties": [true, {
|
||||||
|
"importFrom": [
|
||||||
|
"static/css/base/variables.css"
|
||||||
|
]
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": ["**/variables.css"],
|
"files": ["static/css/base/variables.css"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"color-no-hex": null,
|
"color-no-hex": null,
|
||||||
"color-named": null,
|
"color-named": null,
|
||||||
@@ -15,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": ["**/themes/dark.css"],
|
"files": ["static/css/themes/*"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"color-no-hex": null,
|
"color-no-hex": null,
|
||||||
"color-named": null,
|
"color-named": null,
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
"bracketSameLine": false,
|
"bracketSameLine": false,
|
||||||
"bracketSpacing": true,
|
"bracketSpacing": true,
|
||||||
"operatorLinebreak": "after"
|
"operatorLinebreak": "after"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"css": {
|
"css": {
|
||||||
|
|||||||
@@ -55,3 +55,7 @@ front-fmt:
|
|||||||
|
|
||||||
front-lint:
|
front-lint:
|
||||||
biome lint static/
|
biome lint static/
|
||||||
|
|
||||||
|
# check CSS rules
|
||||||
|
front-rules:
|
||||||
|
stylelint static/css/
|
||||||
|
|||||||
@@ -56,5 +56,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.danger:hover {
|
.danger:hover {
|
||||||
background-color: var(--color-danger-hover);
|
background-color: var(--color-danger-bg-hover);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,6 +118,9 @@
|
|||||||
--color-overlay-darkest: rgba(0, 0, 0, 0.92);
|
--color-overlay-darkest: rgba(0, 0, 0, 0.92);
|
||||||
|
|
||||||
/* Items */
|
/* Items */
|
||||||
|
--color-item: var(--color-bg-surface);
|
||||||
|
--color-item-hover: var(--color-bg-hover);
|
||||||
|
--color-item-active: #f8d2ae;
|
||||||
--color-item-selected: #fff8f6;
|
--color-item-selected: #fff8f6;
|
||||||
--color-item-hover-accent: #fff0ec;
|
--color-item-hover-accent: #fff0ec;
|
||||||
--color-item-hover-blue: #f0f8ff;
|
--color-item-hover-blue: #f0f8ff;
|
||||||
@@ -418,4 +421,7 @@
|
|||||||
--color-bg-off-white: #fafbfd;
|
--color-bg-off-white: #fafbfd;
|
||||||
--color-danger-shadow: rgba(220, 38, 38, 0.2);
|
--color-danger-shadow: rgba(220, 38, 38, 0.2);
|
||||||
--color-danger-shadow-lg: rgba(220, 38, 38, 0.3);
|
--color-danger-shadow-lg: rgba(220, 38, 38, 0.3);
|
||||||
|
|
||||||
|
--color-music-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
--color-music-background: var(--color-bg-surface);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -501,7 +501,7 @@
|
|||||||
.playlist-track-count {
|
.playlist-track-count {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #718096;
|
color: var(--color-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Custom confirm dialog */
|
/* Custom confirm dialog */
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.file-item {
|
.file-item {
|
||||||
background-color: var(--color-bg-surface);
|
background-color: var(--color-item);
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-item.selected {
|
.file-item.selected {
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.file-item:hover {
|
.file-item:hover {
|
||||||
background-color: var(--color-bg-hover);
|
background-color: var(--color-item-hover);
|
||||||
border-color: var(--color-border-medium);
|
border-color: var(--color-border-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: var(--color-bg-surface);
|
background-color: var(--color-item);
|
||||||
box-shadow: 0 1px 3px var(--color-shadow-xs);
|
box-shadow: 0 1px 3px var(--color-shadow-xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,7 +269,7 @@
|
|||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: var(--color-bg-surface);
|
background: var(--color-item);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -426,7 +426,7 @@
|
|||||||
grid-template-columns: var(--dragged-files-list-columns);
|
grid-template-columns: var(--dragged-files-list-columns);
|
||||||
column-gap: 12px;
|
column-gap: 12px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--color-bg-surface);
|
background-color: var(--color-item);
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
width: 360px;
|
width: 360px;
|
||||||
@@ -447,8 +447,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dragged-items div.fading {
|
.dragged-items div.fading {
|
||||||
-webkit-mask-image: linear-gradient(to bottom, var(--color-bg-surface) 10%, transparent);
|
-webkit-mask-image: linear-gradient(to bottom, var(--color-item) 10%, transparent);
|
||||||
mask-image: linear-gradient(to bottom, var(--color-bg-surface) 10%, transparent);
|
mask-image: linear-gradient(to bottom, var(--color-item) 10%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dragged-items-badge {
|
.dragged-items-badge {
|
||||||
|
|||||||
@@ -79,8 +79,9 @@
|
|||||||
--color-sidebar-bg-to: #0c1322;
|
--color-sidebar-bg-to: #0c1322;
|
||||||
|
|
||||||
/* Items */
|
/* Items */
|
||||||
--color-item-selected: #1a1520;
|
--color-item-active: #5a5047;
|
||||||
--color-item-hover-accent: #21262d;
|
--color-item-selected: #39281a;
|
||||||
|
--color-item-hover-accent: #3d342c;
|
||||||
|
|
||||||
/* Primary */
|
/* Primary */
|
||||||
/* TODO: rename into primary-blue ? */
|
/* TODO: rename into primary-blue ? */
|
||||||
|
|||||||
+136
-246
File diff suppressed because it is too large
Load Diff
@@ -94,12 +94,15 @@ p.subtitle {
|
|||||||
border-color: var(--color-primary);
|
border-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
.error-text {
|
.error-text {
|
||||||
color: var(--color-error, #e53935);
|
color: var(--color-error-text);
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
margin-bottom: 0.75rem;
|
margin-bottom: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Primary button */
|
/* Primary button
|
||||||
|
FIXME: use components/buttons.css ?
|
||||||
|
*/
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user