style(frontend): enforce color-function-notation in scss

- Stylelint:
  - re-enable `color-function-notation` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions unchanged
- SCSS:
  - normalize comma-based `rgb(...)` color syntax to modern space-and-slash notation across frontend stylesheets without changing color values
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:43 -04:00
committed by Zach Yale
parent 130463bc4b
commit ddcbb5b666
121 changed files with 790 additions and 791 deletions
@@ -6,11 +6,11 @@ $bg-secondary: #1a1a2e;
$bg-tertiary: #252542;
$bg-darker: #0a0a12;
$text-primary: #ffffff;
$text-secondary: rgb(255, 255, 255, 80%);
$text-tertiary: rgb(255, 255, 255, 50%);
$text-secondary: rgb(255 255 255 / 80%);
$text-tertiary: rgb(255 255 255 / 50%);
$accent-secondary: #ec4899;
$accent-tertiary: #06b6d4;
$border-color: rgb(255, 255, 255, 10%);
$border-color: rgb(255 255 255 / 10%);
// CSS variable for primary color from theme
:host {
@@ -80,7 +80,7 @@ $border-color: rgb(255, 255, 255, 10%);
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
background: rgb(0, 0, 0, 40%);
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(20px);
border-bottom: 1px solid $border-color;
z-index: 10;
@@ -155,8 +155,8 @@ $border-color: rgb(255, 255, 255, 10%);
border-radius: 16px;
overflow: hidden;
box-shadow:
0 25px 60px -12px rgb(0, 0, 0, 60%),
0 0 0 1px rgb(255, 255, 255, 10%),
0 25px 60px -12px rgb(0 0 0 / 60%),
0 0 0 1px rgb(255 255 255 / 10%),
0 0 60px color-mix(in srgb, var(--accent-color) 20%, transparent),
0 0 100px rgb($accent-secondary, 10%);
transition: transform 0.3s ease, box-shadow 0.3s ease;
@@ -164,8 +164,8 @@ $border-color: rgb(255, 255, 255, 10%);
&:hover {
transform: scale(1.02);
box-shadow:
0 30px 70px -12px rgb(0, 0, 0, 70%),
0 0 0 1px rgb(255, 255, 255, 15%),
0 30px 70px -12px rgb(0 0 0 / 70%),
0 0 0 1px rgb(255 255 255 / 15%),
0 0 80px color-mix(in srgb, var(--accent-color) 30%, transparent),
0 0 120px rgb($accent-secondary, 15%);
}
@@ -182,7 +182,7 @@ $border-color: rgb(255, 255, 255, 10%);
display: flex;
align-items: center;
justify-content: center;
background: rgb(0, 0, 0, 70%);
background: rgb(0 0 0 / 70%);
backdrop-filter: blur(4px);
}
@@ -197,8 +197,8 @@ $border-color: rgb(255, 255, 255, 10%);
i {
font-size: 5rem;
color: rgb(255, 255, 255, 90%);
text-shadow: 0 0 30px rgb(255, 255, 255, 50%);
color: rgb(255 255 255 / 90%);
text-shadow: 0 0 30px rgb(255 255 255 / 50%);
}
}
}
@@ -242,7 +242,7 @@ $border-color: rgb(255, 255, 255, 10%);
.progress-bar-wrapper {
position: relative;
height: 8px;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border-radius: 4px;
overflow: visible;
@@ -251,7 +251,7 @@ $border-color: rgb(255, 255, 255, 10%);
top: 0;
left: 0;
height: 100%;
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 4px;
transition: width 0.3s ease;
}
@@ -278,13 +278,13 @@ $border-color: rgb(255, 255, 255, 10%);
height: 18px;
background: $text-primary;
border: 3px solid var(--accent-color);
box-shadow: 0 2px 10px rgb(0, 0, 0, 40%),
box-shadow: 0 2px 10px rgb(0 0 0 / 40%),
0 0 15px color-mix(in srgb, var(--accent-color) 40%, transparent);
transition: transform 0.15s ease, box-shadow 0.15s ease;
&:hover {
transform: scale(1.2);
box-shadow: 0 2px 15px rgb(0, 0, 0, 50%),
box-shadow: 0 2px 15px rgb(0 0 0 / 50%),
0 0 25px color-mix(in srgb, var(--accent-color) 60%, transparent);
}
}
@@ -381,7 +381,7 @@ $border-color: rgb(255, 255, 255, 10%);
width: 100px;
.p-slider {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
height: 5px;
border-radius: 3px;
@@ -395,7 +395,7 @@ $border-color: rgb(255, 255, 255, 10%);
height: 14px;
background: $text-primary;
border: 2px solid $accent-tertiary;
box-shadow: 0 2px 8px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}
}
}
@@ -407,15 +407,15 @@ $border-color: rgb(255, 255, 255, 10%);
padding: 0.5rem 0.75rem;
font-size: 0.8rem;
font-weight: 600;
background: rgb(255, 255, 255, 8%);
border: 1px solid rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 8%);
border: 1px solid rgb(255 255 255 / 10%);
color: $text-secondary;
transition: all 0.2s ease;
&:hover {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
color: $text-primary;
border-color: rgb(255, 255, 255, 20%);
border-color: rgb(255 255 255 / 20%);
}
&.p-highlight {
@@ -438,7 +438,7 @@ $border-color: rgb(255, 255, 255, 10%);
padding: 1rem;
color: $text-tertiary;
font-size: 0.8rem;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border-radius: 12px;
margin-top: 0.5rem;
@@ -447,7 +447,7 @@ $border-color: rgb(255, 255, 255, 10%);
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
border-radius: 8px;
white-space: nowrap;
@@ -485,7 +485,7 @@ $border-color: rgb(255, 255, 255, 10%);
color: #fbbf24 !important;
&:hover {
background: rgb(251, 191, 36, 15%) !important;
background: rgb(251 191 36 / 15%) !important;
}
}
}
@@ -553,7 +553,7 @@ $border-color: rgb(255, 255, 255, 10%);
display: flex;
flex-direction: column;
animation: slideIn 0.25s ease-out;
box-shadow: -10px 0 40px rgb(0, 0, 0, 50%);
box-shadow: -10px 0 40px rgb(0 0 0 / 50%);
@keyframes slideIn {
from {
@@ -572,7 +572,7 @@ $border-color: rgb(255, 255, 255, 10%);
justify-content: space-between;
padding: 1.25rem 1.5rem;
border-bottom: 1px solid $border-color;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
h2 {
margin: 0;
@@ -56,8 +56,8 @@
left: 0;
display: none;
border-radius: 50%;
border: 3px solid rgb(255, 255, 255, 80%);
box-shadow: 0 0 0 1px rgb(0, 0, 0, 30%), 0 8px 32px rgb(0, 0, 0, 50%);
border: 3px solid rgb(255 255 255 / 80%);
box-shadow: 0 0 0 1px rgb(0 0 0 / 30%), 0 8px 32px rgb(0 0 0 / 50%);
pointer-events: none;
z-index: 1000;
background-repeat: no-repeat;
@@ -69,7 +69,7 @@
right: 24px;
z-index: 10;
pointer-events: none;
filter: drop-shadow(0 2px 4px rgb(0, 0, 0, 30%));
filter: drop-shadow(0 2px 4px rgb(0 0 0 / 30%));
svg {
display: block;
@@ -168,7 +168,7 @@
.page-image {
object-fit: contain;
box-shadow: 0 8px 32px rgb(0, 0, 0, 60%);
box-shadow: 0 8px 32px rgb(0 0 0 / 60%);
border-radius: 4px;
transition: transform 0.2s ease;
@@ -327,7 +327,7 @@
}
.page-image {
box-shadow: 0 8px 32px rgb(0, 0, 0, 60%);
box-shadow: 0 8px 32px rgb(0 0 0 / 60%);
border-radius: 4px;
transition: none;
@@ -516,12 +516,12 @@
color: #ffffff;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgb(74, 144, 226, 30%);
box-shadow: 0 4px 20px rgb(74 144 226 / 30%);
min-width: 280px;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgb(74, 144, 226, 50%);
box-shadow: 0 8px 30px rgb(74 144 226 / 50%);
background: linear-gradient(135deg, #357abd 0%, #2a6399 100%);
}
@@ -582,7 +582,7 @@
.loader-overlay {
position: fixed;
inset: 0 0 0 0;
background-color: rgb(0, 0, 0, 80%);
background-color: rgb(0 0 0 / 80%);
display: flex;
align-items: center;
justify-content: center;
@@ -599,7 +599,7 @@
.spinner {
width: 48px;
height: 48px;
border: 4px solid rgb(255, 255, 255, 20%);
border: 4px solid rgb(255 255 255 / 20%);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
@@ -1,19 +1,19 @@
// Variables matching reader styling
$dialog-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #4a90e2;
$active-bg: rgb(74, 144, 226, 15%);
$active-bg: rgb(74 144 226 / 15%);
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
.dialog-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 50%);
background: rgb(0 0 0 / 50%);
backdrop-filter: blur(4px);
z-index: 13000;
display: flex;
@@ -37,7 +37,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0, 0, 0, 50%);
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@@ -58,7 +58,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(180deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
h2 {
margin: 0;
@@ -107,11 +107,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -130,7 +130,7 @@ $transition-normal: 200ms ease;
.page-info {
margin: 0;
padding: 12px 16px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border-left: 3px solid $active-color;
border-radius: 0 8px 8px 0;
color: $text-secondary;
@@ -149,7 +149,7 @@ $transition-normal: 200ms ease;
flex: 1;
min-height: 120px;
padding: 12px 16px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border: 1px solid $border-color;
border-radius: 8px;
color: $text-primary;
@@ -166,7 +166,7 @@ $transition-normal: 200ms ease;
&:focus {
outline: none;
border-color: $active-color;
box-shadow: 0 0 0 3px rgb(74, 144, 226, 15%);
box-shadow: 0 0 0 3px rgb(74 144 226 / 15%);
}
}
@@ -193,7 +193,7 @@ $transition-normal: 200ms ease;
&.selected {
border-color: $text-primary;
box-shadow: 0 0 0 3px rgb(255, 255, 255, 20%);
box-shadow: 0 0 0 3px rgb(255 255 255 / 20%);
&::after {
content: '\2713';
@@ -205,7 +205,7 @@ $transition-normal: 200ms ease;
color: white;
font-size: 14px;
font-weight: bold;
text-shadow: 0 1px 2px rgb(0, 0, 0, 50%);
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}
}
}
@@ -216,7 +216,7 @@ $transition-normal: 200ms ease;
display: flex;
justify-content: flex-end;
gap: 12px;
background: linear-gradient(0deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(0deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
}
.btn {
@@ -244,7 +244,7 @@ $transition-normal: 200ms ease;
color: $text-primary;
&:hover:not(:disabled) {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
}
}
@@ -1,9 +1,9 @@
$dialog-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #4a90e2;
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -11,7 +11,7 @@ $transition-normal: 200ms ease;
.dialog-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 50%);
background: rgb(0 0 0 / 50%);
backdrop-filter: blur(4px);
z-index: 13000;
display: flex;
@@ -35,7 +35,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0, 0, 0, 50%);
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@@ -56,7 +56,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(180deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
h2 {
margin: 0;
@@ -105,11 +105,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -137,12 +137,12 @@ $transition-normal: 200ms ease;
justify-content: space-between;
gap: 16px;
padding: 8px 12px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border-radius: 8px;
transition: background $transition-fast;
&:hover {
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
}
}
@@ -160,14 +160,14 @@ $transition-normal: 200ms ease;
min-width: 28px;
height: 26px;
padding: 0 8px;
background: rgb(255, 255, 255, 10%);
border: 1px solid rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 10%);
border: 1px solid rgb(255 255 255 / 15%);
border-radius: 5px;
font-family: inherit;
font-size: 12px;
font-weight: 500;
color: $text-primary;
box-shadow: 0 2px 0 rgb(0, 0, 0, 20%);
box-shadow: 0 2px 0 rgb(0 0 0 / 20%);
}
.key-separator {
@@ -200,7 +200,7 @@ $transition-normal: 200ms ease;
border-top: 1px solid $border-color;
display: flex;
justify-content: flex-end;
background: linear-gradient(0deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(0deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
}
.btn {
@@ -2,11 +2,11 @@
// Variables
$footer-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #4a90e2;
$transition-fast: 150ms ease;
@@ -24,7 +24,7 @@ $transition-fast: 150ms ease;
z-index: 1000;
background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
border-top: 1px solid #404040;
box-shadow: 0 -2px 8px rgb(0, 0, 0, 30%);
box-shadow: 0 -2px 8px rgb(0 0 0 / 30%);
color: $text-primary;
transform: translateY(100%);
opacity: 0;
@@ -59,7 +59,7 @@ $transition-fast: 150ms ease;
}
.nav-btn {
background: rgb(51, 51, 51, 90%);
background: rgb(51 51 51 / 90%);
border: 1px solid #555;
color: $text-primary;
padding: 6px 10px;
@@ -110,7 +110,7 @@ $transition-fast: 150ms ease;
.page-info {
padding: 4px 12px;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border-radius: 4px;
font-size: 13px;
font-weight: 500;
@@ -160,7 +160,7 @@ $transition-fast: 150ms ease;
&::-webkit-slider-runnable-track {
width: 100%;
height: 6px;
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
border-radius: 3px;
cursor: pointer;
}
@@ -168,14 +168,14 @@ $transition-fast: 150ms ease;
&::-moz-range-track {
width: 100%;
height: 6px;
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
border-radius: 3px;
cursor: pointer;
}
&::-ms-fill-lower,
&::-ms-fill-upper {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
border-radius: 3px;
}
@@ -188,7 +188,7 @@ $transition-fast: 150ms ease;
border-radius: 50%;
background: $active-color;
cursor: pointer;
box-shadow: 0 2px 6px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
transition: transform $transition-fast, box-shadow $transition-fast;
margin-top: calc((6px - 18px) / 2); /* center thumb on track */
}
@@ -200,7 +200,7 @@ $transition-fast: 150ms ease;
background: $active-color;
cursor: pointer;
border: none;
box-shadow: 0 2px 6px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
transition: transform $transition-fast, box-shadow $transition-fast;
margin-top: calc((6px - 18px) / 2);
}
@@ -212,7 +212,7 @@ $transition-fast: 150ms ease;
background: $active-color;
cursor: pointer;
border: none;
box-shadow: 0 2px 6px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
}
}
@@ -241,7 +241,7 @@ $transition-fast: 150ms ease;
transform: translateX(-50%);
width: 2px;
height: 10px;
background: rgb(255, 255, 255, 50%);
background: rgb(255 255 255 / 50%);
top: 0;
}
}
@@ -252,7 +252,7 @@ $transition-fast: 150ms ease;
display: flex;
align-items: center;
gap: 4px;
background: rgb(51, 51, 51, 90%);
background: rgb(51 51 51 / 90%);
border-radius: 4px;
padding: 2px;
border: 1px solid #555;
@@ -271,7 +271,7 @@ $transition-fast: 150ms ease;
&:focus {
outline: none;
background: #4a4a4a;
box-shadow: 0 0 0 1px rgb(74, 144, 226, 50%);
box-shadow: 0 0 0 1px rgb(74 144 226 / 50%);
}
&::placeholder {
@@ -12,7 +12,7 @@
z-index: 1000;
background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
border-bottom: 1px solid #404040;
box-shadow: 0 2px 8px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
color: #ffffff;
opacity: 1;
pointer-events: auto;
@@ -51,7 +51,7 @@
}
&:hover {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
}
&:last-child {
@@ -65,13 +65,13 @@
}
&:hover {
background: rgb(239, 68, 68, 20%);
background: rgb(239 68 68 / 20%);
}
}
&.active {
color: #ef4444;
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
}
&.has-notes {
@@ -128,7 +128,7 @@
background: #2d2d2d;
border: 1px solid #404040;
border-radius: 8px;
box-shadow: 0 4px 12px rgb(0, 0, 0, 40%);
box-shadow: 0 4px 12px rgb(0 0 0 / 40%);
z-index: 1000;
min-width: 180px;
padding: 4px;
@@ -149,12 +149,12 @@
white-space: nowrap;
&:hover {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
}
&.active {
color: #ef4444;
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
}
}
}
@@ -2,13 +2,13 @@
// Variables
$panel-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #4a90e2;
$active-bg: rgb(74, 144, 226, 15%);
$active-bg: rgb(74 144 226 / 15%);
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -16,7 +16,7 @@ $transition-normal: 200ms ease;
position: fixed;
inset: 0;
z-index: 12000;
background: rgb(0, 0, 0, 30%);
background: rgb(0 0 0 / 30%);
animation: fadeIn $transition-normal;
cursor: pointer;
}
@@ -34,7 +34,7 @@ $transition-normal: 200ms ease;
background: $panel-bg;
border: 1px solid $border-color;
border-radius: 12px;
box-shadow: 0 12px 40px rgb(0, 0, 0, 50%);
box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
animation: slideDown 200ms cubic-bezier(0.4, 0, 0.2, 1);
overflow: visible;
cursor: default;
@@ -105,7 +105,7 @@ $transition-normal: 200ms ease;
position: relative;
width: 40px;
height: 22px;
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border: none;
border-radius: 11px;
cursor: pointer;
@@ -129,11 +129,11 @@ $transition-normal: 200ms ease;
background: #ffffff;
border-radius: 50%;
transition: transform 300ms ease;
box-shadow: 0 2px 4px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}
&:hover {
background: rgb(255, 255, 255, 20%);
background: rgb(255 255 255 / 20%);
&.active {
background: color.adjust($active-color, $lightness: 5%);
@@ -145,7 +145,7 @@ $transition-normal: 200ms ease;
.button-group {
display: flex;
gap: 4px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
padding: 3px;
border-radius: 6px;
border: 1px solid $border-color;
@@ -200,7 +200,7 @@ $transition-normal: 200ms ease;
width: 20px;
height: 20px;
border-radius: 50%;
border: 1px solid rgb(255, 255, 255, 30%);
border: 1px solid rgb(255 255 255 / 30%);
}
}
@@ -1,12 +1,12 @@
// Variables
$sidebar-width: 300px;
$sidebar-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 6%);
$active-bg: rgb(74, 144, 226, 15%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 6%);
$active-bg: rgb(74 144 226 / 15%);
$active-color: #4a90e2;
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -15,7 +15,7 @@ $transition-normal: 200ms ease;
.sidebar-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 40%);
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(2px);
z-index: 12000;
animation: fadeIn $transition-normal;
@@ -36,7 +36,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
color: $text-primary;
box-shadow: 4px 0 24px rgb(0, 0, 0, 30%);
box-shadow: 4px 0 24px rgb(0 0 0 / 30%);
animation: slideIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 12001;
@@ -51,7 +51,7 @@ $transition-normal: 200ms ease;
gap: 14px;
padding: 20px 16px;
border-bottom: 1px solid $border-color;
background: linear-gradient(180deg, rgb(255, 255, 255, 3%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 3%) 0%, transparent 100%);
}
.book-cover {
@@ -59,7 +59,7 @@ $transition-normal: 200ms ease;
height: 90px;
object-fit: cover;
border-radius: 4px;
box-shadow: 0 4px 12px rgb(0, 0, 0, 30%);
box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
flex-shrink: 0;
}
@@ -96,7 +96,7 @@ $transition-normal: 200ms ease;
.tabs {
display: flex;
border-bottom: 1px solid $border-color;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
}
.tab {
@@ -173,11 +173,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -288,7 +288,7 @@ $transition-normal: 200ms ease;
border-radius: 4px;
&:hover {
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
color: $text-primary;
}
@@ -426,12 +426,12 @@ $transition-normal: 200ms ease;
}
.edit-btn:hover {
background: rgb(74, 144, 226, 15%);
background: rgb(74 144 226 / 15%);
color: $active-color;
}
.delete-btn:hover {
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
color: #ef4444;
}
@@ -447,7 +447,7 @@ $transition-normal: 200ms ease;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
border-bottom: 1px solid $border-color;
.search-icon {
@@ -475,7 +475,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border: none;
border-radius: 50%;
color: $text-secondary;
@@ -484,7 +484,7 @@ $transition-normal: 200ms ease;
flex-shrink: 0;
&:hover {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
color: $text-primary;
}
}
@@ -1,19 +1,19 @@
// Variables matching sidebar styling
$dialog-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #818cf8;
$active-bg: rgb(129, 140, 248, 15%);
$active-bg: rgb(129 140 248 / 15%);
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
.dialog-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 50%);
background: rgb(0 0 0 / 50%);
backdrop-filter: blur(4px);
z-index: 12000;
display: flex;
@@ -37,7 +37,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0, 0, 0, 50%);
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
@media (max-width: 768px) {
@@ -64,7 +64,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(180deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
h2 {
margin: 0;
@@ -121,11 +121,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -155,7 +155,7 @@ $transition-normal: 200ms ease;
width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 8px 24px rgb(0, 0, 0, 40%);
box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
max-height: 300px;
object-fit: cover;
@@ -167,8 +167,8 @@ $transition-normal: 200ms ease;
.cover-placeholder {
width: 100%;
aspect-ratio: 2/3;
background: linear-gradient(135deg, rgb(255, 255, 255, 4%) 0%, rgb(255, 255, 255, 1%) 100%);
border: 2px dashed rgb(255, 255, 255, 12%);
background: linear-gradient(135deg, rgb(255 255 255 / 4%) 0%, rgb(255 255 255 / 1%) 100%);
border: 2px dashed rgb(255 255 255 / 12%);
border-radius: 8px;
display: flex;
align-items: center;
@@ -247,7 +247,7 @@ $transition-normal: 200ms ease;
font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
font-size: 12px;
color: $text-secondary;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
padding: 4px 8px;
border-radius: 4px;
}
@@ -272,11 +272,11 @@ $transition-normal: 200ms ease;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
border: 1px solid rgb(129, 140, 248, 20%);
border: 1px solid rgb(129 140 248 / 20%);
transition: background $transition-fast;
&:hover {
background: rgb(129, 140, 248, 25%);
background: rgb(129 140 248 / 25%);
}
}
@@ -1,19 +1,19 @@
// Variables matching reader styling
$dialog-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #818cf8;
$active-bg: rgb(129, 140, 248, 15%);
$active-bg: rgb(129 140 248 / 15%);
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
.dialog-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 50%);
background: rgb(0 0 0 / 50%);
backdrop-filter: blur(4px);
z-index: 13000;
display: flex;
@@ -37,7 +37,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0, 0, 0, 50%);
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@@ -58,7 +58,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(180deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
h2 {
margin: 0;
@@ -107,11 +107,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -130,7 +130,7 @@ $transition-normal: 200ms ease;
.selected-text {
margin: 0;
padding: 12px 16px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border-left: 3px solid $active-color;
border-radius: 0 8px 8px 0;
color: $text-secondary;
@@ -152,7 +152,7 @@ $transition-normal: 200ms ease;
flex: 1;
min-height: 120px;
padding: 12px 16px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border: 1px solid $border-color;
border-radius: 8px;
color: $text-primary;
@@ -169,7 +169,7 @@ $transition-normal: 200ms ease;
&:focus {
outline: none;
border-color: $active-color;
box-shadow: 0 0 0 3px rgb(129, 140, 248, 15%);
box-shadow: 0 0 0 3px rgb(129 140 248 / 15%);
}
}
@@ -196,7 +196,7 @@ $transition-normal: 200ms ease;
&.selected {
border-color: $text-primary;
box-shadow: 0 0 0 3px rgb(255, 255, 255, 20%);
box-shadow: 0 0 0 3px rgb(255 255 255 / 20%);
&::after {
content: '✓';
@@ -208,7 +208,7 @@ $transition-normal: 200ms ease;
color: white;
font-size: 14px;
font-weight: bold;
text-shadow: 0 1px 2px rgb(0, 0, 0, 50%);
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}
}
}
@@ -219,7 +219,7 @@ $transition-normal: 200ms ease;
display: flex;
justify-content: flex-end;
gap: 12px;
background: linear-gradient(0deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(0deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
}
.btn {
@@ -247,7 +247,7 @@ $transition-normal: 200ms ease;
color: $text-primary;
&:hover:not(:disabled) {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
}
}
@@ -1,19 +1,19 @@
// Variables matching sidebar styling
$dialog-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #818cf8;
$active-bg: rgb(129, 140, 248, 15%);
$active-bg: rgb(129 140 248 / 15%);
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
.dialog-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 25%);
background: rgb(0 0 0 / 25%);
z-index: 12000;
display: flex;
align-items: center;
@@ -35,7 +35,7 @@ $transition-normal: 200ms ease;
height: 600px;
max-height: 85vh;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0, 0, 0, 50%);
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
@@ -56,7 +56,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
border-bottom: 1px solid $border-color;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
padding: 0 20px;
justify-content: center;
position: relative;
@@ -147,11 +147,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -239,7 +239,7 @@ $transition-normal: 200ms ease;
position: relative;
width: 44px;
height: 24px;
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border: none;
border-radius: 12px;
cursor: pointer;
@@ -263,11 +263,11 @@ $transition-normal: 200ms ease;
background: #ffffff;
border-radius: 50%;
transition: transform 300ms ease;
box-shadow: 0 2px 4px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}
&:hover {
background: rgb(255, 255, 255, 20%);
background: rgb(255 255 255 / 20%);
&.active {
background: #9aa3fa;
@@ -301,7 +301,7 @@ $transition-normal: 200ms ease;
}
.theme-card {
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border: 2px solid $border-color;
border-radius: 8px;
padding: 10px;
@@ -312,7 +312,7 @@ $transition-normal: 200ms ease;
&:hover {
background: $hover-bg;
border-color: rgb(255, 255, 255, 15%);
border-color: rgb(255 255 255 / 15%);
}
}
@@ -330,7 +330,7 @@ $transition-normal: 200ms ease;
.color-swatch {
flex: 1;
border-radius: 4px;
border: 1px solid rgb(0, 0, 0, 20%);
border: 1px solid rgb(0 0 0 / 20%);
}
.theme-name {
@@ -349,7 +349,7 @@ $transition-normal: 200ms ease;
}
.font-option {
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border: 2px solid $border-color;
border-radius: 8px;
padding: 12px;
@@ -362,7 +362,7 @@ $transition-normal: 200ms ease;
&:hover {
background: $hover-bg;
border-color: rgb(255, 255, 255, 15%);
border-color: rgb(255 255 255 / 15%);
}
&.active {
@@ -406,7 +406,7 @@ $transition-normal: 200ms ease;
flex: 1;
margin: 0 10px;
height: 5px;
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
border-radius: 3px;
outline: none;
cursor: pointer;
@@ -419,12 +419,12 @@ $transition-normal: 200ms ease;
border-radius: 50%;
background: $active-color;
cursor: pointer;
box-shadow: 0 2px 4px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 4px rgb(0 0 0 / 30%);
transition: all $transition-fast;
&:hover {
transform: scale(1.1);
box-shadow: 0 2px 8px rgb(129, 140, 248, 50%);
box-shadow: 0 2px 8px rgb(129 140 248 / 50%);
}
}
@@ -435,7 +435,7 @@ $transition-normal: 200ms ease;
background: $active-color;
border: none;
cursor: pointer;
box-shadow: 0 2px 4px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}
}
@@ -473,7 +473,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
gap: 4px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
padding: 3px;
border-radius: 6px;
border: 1px solid $border-color;
@@ -481,7 +481,7 @@ $transition-normal: 200ms ease;
button {
width: 28px;
height: 28px;
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
color: $text-secondary;
border: none;
border-radius: 4px;
@@ -534,14 +534,14 @@ $transition-normal: 200ms ease;
height: 18px;
border: 2px solid $active-color;
border-radius: 50%;
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
margin: 0 6px 0 0;
outline: none;
transition: border-color $transition-fast, box-shadow $transition-fast;
&:checked {
background: $active-color;
box-shadow: 0 0 0 2px rgb(129, 140, 248, 15%);
box-shadow: 0 0 0 2px rgb(129 140 248 / 15%);
border-color: $active-color;
}
@@ -564,19 +564,19 @@ $transition-normal: 200ms ease;
width: 44px;
height: 44px;
border-radius: 50%;
border: 3px solid rgb(255, 255, 255, 15%);
border: 3px solid rgb(255 255 255 / 15%);
cursor: pointer;
transition: all $transition-fast;
position: relative;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
&:hover {
transform: scale(1.08);
border-color: rgb(255, 255, 255, 30%);
box-shadow: 0 4px 12px rgb(0, 0, 0, 30%);
border-color: rgb(255 255 255 / 30%);
box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}
&:active {
@@ -586,13 +586,13 @@ $transition-normal: 200ms ease;
&.active {
border-color: $active-color;
border-width: 3px;
box-shadow: 0 0 0 3px rgb(129, 140, 248, 25%), 0 4px 12px rgb(0, 0, 0, 30%);
box-shadow: 0 0 0 3px rgb(129 140 248 / 25%), 0 4px 12px rgb(0 0 0 / 30%);
.check-icon {
color: rgb(0, 0, 0, 70%);
color: rgb(0 0 0 / 70%);
font-size: 18px;
font-weight: bold;
text-shadow: 0 1px 2px rgb(255, 255, 255, 50%);
text-shadow: 0 1px 2px rgb(255 255 255 / 50%);
}
}
@@ -1,9 +1,9 @@
$dialog-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #818cf8;
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -11,7 +11,7 @@ $transition-normal: 200ms ease;
.dialog-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 50%);
background: rgb(0 0 0 / 50%);
backdrop-filter: blur(4px);
z-index: 13000;
display: flex;
@@ -35,7 +35,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0, 0, 0, 50%);
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@@ -56,7 +56,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(180deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
h2 {
margin: 0;
@@ -105,11 +105,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -137,12 +137,12 @@ $transition-normal: 200ms ease;
justify-content: space-between;
gap: 16px;
padding: 8px 12px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
border-radius: 8px;
transition: background $transition-fast;
&:hover {
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
}
}
@@ -160,14 +160,14 @@ $transition-normal: 200ms ease;
min-width: 28px;
height: 26px;
padding: 0 8px;
background: rgb(255, 255, 255, 10%);
border: 1px solid rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 10%);
border: 1px solid rgb(255 255 255 / 15%);
border-radius: 5px;
font-family: inherit;
font-size: 12px;
font-weight: 500;
color: $text-primary;
box-shadow: 0 2px 0 rgb(0, 0, 0, 20%);
box-shadow: 0 2px 0 rgb(0 0 0 / 20%);
}
.key-separator {
@@ -200,7 +200,7 @@ $transition-normal: 200ms ease;
border-top: 1px solid $border-color;
display: flex;
justify-content: flex-end;
background: linear-gradient(0deg, rgb(255, 255, 255, 2%) 0%, transparent 100%);
background: linear-gradient(0deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
}
.btn {
@@ -87,7 +87,7 @@
.loader-overlay {
position: fixed;
inset: 0 0 0 0;
background-color: rgb(0, 0, 0, 80%);
background-color: rgb(0 0 0 / 80%);
display: flex;
align-items: center;
justify-content: center;
@@ -104,7 +104,7 @@
.spinner {
width: 48px;
height: 48px;
border: 4px solid rgb(255, 255, 255, 20%);
border: 4px solid rgb(255 255 255 / 20%);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
@@ -1,10 +1,10 @@
// Variables matching sidebar styling
$navbar-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #818cf8;
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -24,7 +24,7 @@ $transition-normal: 200ms ease;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-top: 1px solid $border-color;
box-shadow: 0 -2px 12px rgb(0, 0, 0, 30%);
box-shadow: 0 -2px 12px rgb(0 0 0 / 30%);
color: $text-primary;
opacity: 0;
pointer-events: none;
@@ -79,7 +79,7 @@ $transition-normal: 200ms ease;
gap: 12px;
.location-btn {
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
border: 1px solid $border-color;
color: $text-primary;
padding: 6px 14px;
@@ -92,7 +92,7 @@ $transition-normal: 200ms ease;
&:hover {
background: $hover-bg;
border-color: rgb(255, 255, 255, 15%);
border-color: rgb(255 255 255 / 15%);
}
&:focus-visible {
@@ -113,7 +113,7 @@ $transition-normal: 200ms ease;
border-radius: 3px;
outline: none;
-webkit-appearance: none;
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
position: relative;
z-index: 1;
cursor: pointer;
@@ -125,12 +125,12 @@ $transition-normal: 200ms ease;
border-radius: 50%;
background: $active-color;
cursor: pointer;
box-shadow: 0 2px 6px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
transition: transform $transition-fast, box-shadow $transition-fast;
&:hover {
transform: scale(1.1);
box-shadow: 0 2px 8px rgb(129, 140, 248, 40%);
box-shadow: 0 2px 8px rgb(129 140 248 / 40%);
}
}
@@ -141,7 +141,7 @@ $transition-normal: 200ms ease;
background: $active-color;
cursor: pointer;
border: none;
box-shadow: 0 2px 6px rgb(0, 0, 0, 30%);
box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
}
&:focus-visible {
@@ -166,7 +166,7 @@ $transition-normal: 200ms ease;
top: 0;
width: 1.5px;
height: 10px;
background: rgb(255, 255, 255, 40%);
background: rgb(255 255 255 / 40%);
border-radius: 2px;
}
}
@@ -182,7 +182,7 @@ $transition-normal: 200ms ease;
-webkit-backdrop-filter: blur(8px);
border: 1px solid $border-color;
border-radius: 12px;
box-shadow: 0 8px 32px rgb(0, 0, 0, 50%);
box-shadow: 0 8px 32px rgb(0 0 0 / 50%);
z-index: 1001;
min-width: 380px;
animation: popoverSlideIn 200ms cubic-bezier(0.4, 0, 0.2, 1);
@@ -326,7 +326,7 @@ $transition-normal: 200ms ease;
input {
width: 65px;
padding: 6px 10px;
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
border: 1px solid $border-color;
border-radius: 6px;
color: $text-primary;
@@ -11,8 +11,8 @@
font-size: 14px;
z-index: 1000;
background: inherit;
border-bottom: 1px solid rgb(0,0,0,13%);
box-shadow: 0 2px 8px 0 rgb(0,0,0,13%);
border-bottom: 1px solid rgb(0 0 0 / 13%);
box-shadow: 0 2px 8px 0 rgb(0 0 0 / 13%);
opacity: 0;
pointer-events: none;
transform: translateY(-100%);
@@ -98,9 +98,9 @@
top: 100%;
right: 0;
margin-top: 4px;
border: 1px solid rgb(0, 0, 0, 15%);
border: 1px solid rgb(0 0 0 / 15%);
border-radius: 8px;
box-shadow: 0 4px 12px rgb(0, 0, 0, 25%);
box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
z-index: 1000;
min-width: 180px;
padding: 4px;
@@ -121,7 +121,7 @@
white-space: nowrap;
&:hover {
background: rgb(128, 128, 128, 15%);
background: rgb(128 128 128 / 15%);
}
}
}
@@ -1,12 +1,12 @@
// Variables matching sidebar/dialog styling
$panel-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 8%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 8%);
$active-color: #818cf8;
$active-bg: rgb(129, 140, 248, 15%);
$active-bg: rgb(129 140 248 / 15%);
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -14,7 +14,7 @@ $transition-normal: 200ms ease;
position: fixed;
inset: 0;
z-index: 12000;
background: rgb(0, 0, 0, 30%);
background: rgb(0 0 0 / 30%);
animation: fadeIn $transition-normal;
cursor: pointer;
}
@@ -32,7 +32,7 @@ $transition-normal: 200ms ease;
background: $panel-bg;
border: 1px solid $border-color;
border-radius: 12px;
box-shadow: 0 12px 40px rgb(0, 0, 0, 50%);
box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
animation: slideDown 200ms cubic-bezier(0.4, 0, 0.2, 1);
overflow: visible;
cursor: default;
@@ -125,7 +125,7 @@ $transition-normal: 200ms ease;
position: relative;
width: 40px;
height: 22px;
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border: none;
border-radius: 11px;
cursor: pointer;
@@ -149,11 +149,11 @@ $transition-normal: 200ms ease;
background: #ffffff;
border-radius: 50%;
transition: transform 300ms ease;
box-shadow: 0 2px 4px rgb(0, 0, 0, 20%);
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}
&:hover {
background: rgb(255, 255, 255, 20%);
background: rgb(255 255 255 / 20%);
&.active {
background: #9aa3fa;
@@ -166,7 +166,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
gap: 2px;
background: rgb(255, 255, 255, 3%);
background: rgb(255 255 255 / 3%);
padding: 2px;
border-radius: 6px;
border: 1px solid $border-color;
@@ -174,7 +174,7 @@ $transition-normal: 200ms ease;
button {
width: 26px;
height: 26px;
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
color: $text-secondary;
border: none;
border-radius: 4px;
@@ -209,7 +209,7 @@ $transition-normal: 200ms ease;
.panel-footer {
padding: 12px 16px;
border-top: 1px solid $border-color;
background: rgb(0, 0, 0, 15%);
background: rgb(0 0 0 / 15%);
border-radius: 0 0 12px 12px;
}
@@ -220,7 +220,7 @@ $transition-normal: 200ms ease;
gap: 8px;
width: 100%;
padding: 10px 16px;
background: rgb(255, 255, 255, 5%);
background: rgb(255 255 255 / 5%);
border: 1px solid $border-color;
border-radius: 8px;
color: $text-primary;
@@ -231,7 +231,7 @@ $transition-normal: 200ms ease;
&:hover {
background: $hover-bg;
border-color: rgb(255, 255, 255, 15%);
border-color: rgb(255 255 255 / 15%);
}
&:active {
@@ -1,12 +1,12 @@
// Variables
$sidebar-width: 320px;
$sidebar-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 6%);
$active-bg: rgb(99, 102, 241, 15%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 6%);
$active-bg: rgb(99 102 241 / 15%);
$active-color: #818cf8;
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -15,7 +15,7 @@ $transition-normal: 200ms ease;
.sidebar-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 40%);
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(1px);
z-index: 12000;
animation: fadeIn $transition-normal;
@@ -36,7 +36,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
color: $text-primary;
box-shadow: -4px 0 24px rgb(0, 0, 0, 30%);
box-shadow: -4px 0 24px rgb(0 0 0 / 30%);
animation: slideInRight 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 12001;
@@ -51,7 +51,7 @@ $transition-normal: 200ms ease;
align-items: center;
padding: 20px 16px;
border-bottom: 1px solid $border-color;
background: linear-gradient(180deg, rgb(255, 255, 255, 3%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 3%) 0%, transparent 100%);
}
.sidebar-title {
@@ -65,7 +65,7 @@ $transition-normal: 200ms ease;
.tabs {
display: flex;
border-bottom: 1px solid $border-color;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
}
.tab {
@@ -142,11 +142,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -195,7 +195,7 @@ $transition-normal: 200ms ease;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
border-bottom: 1px solid $border-color;
.search-icon {
@@ -223,7 +223,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border: none;
border-radius: 50%;
color: $text-secondary;
@@ -232,7 +232,7 @@ $transition-normal: 200ms ease;
flex-shrink: 0;
&:hover {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
color: $text-primary;
}
}
@@ -303,7 +303,7 @@ $transition-normal: 200ms ease;
}
&:hover {
background: rgb(99, 102, 241, 15%);
background: rgb(99 102 241 / 15%);
color: $active-color;
}
}
@@ -343,7 +343,7 @@ $transition-normal: 200ms ease;
}
&:hover {
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
color: #ef4444;
}
}
@@ -389,7 +389,7 @@ $transition-normal: 200ms ease;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
border-bottom: 1px solid $border-color;
.search-icon {
@@ -417,7 +417,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border: none;
border-radius: 50%;
color: $text-secondary;
@@ -426,7 +426,7 @@ $transition-normal: 200ms ease;
flex-shrink: 0;
&:hover {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
color: $text-primary;
}
}
@@ -440,7 +440,7 @@ $transition-normal: 200ms ease;
.progress-bar {
height: 3px;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border-radius: 2px;
overflow: hidden;
@@ -470,7 +470,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
background: rgb(255, 255, 255, 8%);
background: rgb(255 255 255 / 8%);
border: none;
border-radius: 50%;
color: $text-muted;
@@ -479,7 +479,7 @@ $transition-normal: 200ms ease;
flex-shrink: 0;
&:hover {
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
color: #ef4444;
}
}
@@ -520,7 +520,7 @@ $transition-normal: 200ms ease;
}
.excerpt-match {
background: rgb(255, 255, 0, 25%);
background: rgb(255 255 0 / 25%);
color: $text-primary;
font-weight: 500;
padding: 1px 2px;
@@ -1,12 +1,12 @@
// Variables
$sidebar-width: 300px;
$sidebar-bg: #1a1a1a;
$text-primary: rgb(255, 255, 255, 95%);
$text-secondary: rgb(255, 255, 255, 60%);
$text-muted: rgb(255, 255, 255, 40%);
$border-color: rgb(255, 255, 255, 8%);
$hover-bg: rgb(255, 255, 255, 6%);
$active-bg: rgb(99, 102, 241, 15%);
$text-primary: rgb(255 255 255 / 95%);
$text-secondary: rgb(255 255 255 / 60%);
$text-muted: rgb(255 255 255 / 40%);
$border-color: rgb(255 255 255 / 8%);
$hover-bg: rgb(255 255 255 / 6%);
$active-bg: rgb(99 102 241 / 15%);
$active-color: #818cf8;
$transition-fast: 150ms ease;
$transition-normal: 200ms ease;
@@ -15,7 +15,7 @@ $transition-normal: 200ms ease;
.sidebar-overlay {
position: fixed;
inset: 0;
background: rgb(0, 0, 0, 40%);
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(2px);
z-index: 12000;
animation: fadeIn $transition-normal;
@@ -36,7 +36,7 @@ $transition-normal: 200ms ease;
display: flex;
flex-direction: column;
color: $text-primary;
box-shadow: 4px 0 24px rgb(0, 0, 0, 30%);
box-shadow: 4px 0 24px rgb(0 0 0 / 30%);
animation: slideIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 12001;
@@ -51,7 +51,7 @@ $transition-normal: 200ms ease;
gap: 14px;
padding: 20px 16px;
border-bottom: 1px solid $border-color;
background: linear-gradient(180deg, rgb(255, 255, 255, 3%) 0%, transparent 100%);
background: linear-gradient(180deg, rgb(255 255 255 / 3%) 0%, transparent 100%);
}
.book-cover {
@@ -59,14 +59,14 @@ $transition-normal: 200ms ease;
height: 90px;
object-fit: cover;
border-radius: 4px;
box-shadow: 0 4px 12px rgb(0, 0, 0, 30%);
box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
flex-shrink: 0;
cursor: pointer;
transition: transform $transition-fast, box-shadow $transition-fast;
&:hover {
transform: scale(1.03);
box-shadow: 0 6px 16px rgb(0, 0, 0, 40%);
box-shadow: 0 6px 16px rgb(0 0 0 / 40%);
}
&:focus-visible {
@@ -108,7 +108,7 @@ $transition-normal: 200ms ease;
.tabs {
display: flex;
border-bottom: 1px solid $border-color;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
}
.tab {
@@ -185,11 +185,11 @@ $transition-normal: 200ms ease;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
border-radius: 3px;
&:hover {
background: rgb(255, 255, 255, 25%);
background: rgb(255 255 255 / 25%);
}
}
}
@@ -367,12 +367,12 @@ $transition-normal: 200ms ease;
}
.edit-btn:hover {
background: rgb(99, 102, 241, 15%);
background: rgb(99 102 241 / 15%);
color: $active-color;
}
.delete-btn:hover {
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
color: #ef4444;
}
@@ -417,7 +417,7 @@ $transition-normal: 200ms ease;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: rgb(0, 0, 0, 20%);
background: rgb(0 0 0 / 20%);
border-bottom: 1px solid $border-color;
.search-icon {
@@ -445,7 +445,7 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border: none;
border-radius: 50%;
color: $text-secondary;
@@ -454,7 +454,7 @@ $transition-normal: 200ms ease;
flex-shrink: 0;
&:hover {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
color: $text-primary;
}
}
@@ -468,7 +468,7 @@ $transition-normal: 200ms ease;
.progress-bar {
height: 3px;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
border-radius: 2px;
overflow: hidden;
@@ -522,7 +522,7 @@ $transition-normal: 200ms ease;
}
.excerpt-match {
background: rgb(255, 255, 0, 25%);
background: rgb(255 255 0 / 25%);
color: $text-primary;
font-weight: 500;
padding: 1px 2px;
@@ -12,9 +12,9 @@
gap: 4px;
padding: 6px 8px;
background: linear-gradient(180deg, #2d3139 0%, #252830 100%);
border: 1px solid rgb(255, 255, 255, 8%);
border: 1px solid rgb(255 255 255 / 8%);
border-radius: 8px;
box-shadow: 0 4px 16px rgb(0, 0, 0, 30%), 0 0 1px rgb(0, 0, 0, 20%);
box-shadow: 0 4px 16px rgb(0 0 0 / 30%), 0 0 1px rgb(0 0 0 / 20%);
z-index: 99999;
transform: translateX(-50%);
animation: popupFadeIn 0.15s ease-out;
@@ -57,17 +57,17 @@
border: none;
border-radius: 6px;
background: transparent;
color: rgb(255, 255, 255, 80%);
color: rgb(255 255 255 / 80%);
cursor: pointer;
transition: all 0.15s ease;
&:hover {
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
color: #fff;
}
&.active {
background: rgb(255, 255, 255, 12%);
background: rgb(255 255 255 / 12%);
color: #fff;
}
@@ -87,7 +87,7 @@
.delete-btn {
&:hover {
background: rgb(239, 68, 68, 15%);
background: rgb(239 68 68 / 15%);
color: #ef4444;
}
}
@@ -95,7 +95,7 @@
.divider {
width: 1px;
height: 20px;
background: rgb(255, 255, 255, 10%);
background: rgb(255 255 255 / 10%);
margin: 0 2px;
}
@@ -109,9 +109,9 @@
transform: translateX(-50%);
padding: 8px;
background: linear-gradient(180deg, #2d3139 0%, #252830 100%);
border: 1px solid rgb(255, 255, 255, 8%);
border: 1px solid rgb(255 255 255 / 8%);
border-radius: 8px;
box-shadow: 0 8px 24px rgb(0, 0, 0, 35%);
box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
z-index: 100000;
display: flex;
flex-direction: column;
@@ -159,10 +159,10 @@
width: 32px;
height: 28px;
padding: 0;
border: 1px solid rgb(255, 255, 255, 10%);
border: 1px solid rgb(255 255 255 / 10%);
border-radius: 4px;
background: rgb(255, 255, 255, 3%);
color: rgb(255, 255, 255, 70%);
background: rgb(255 255 255 / 3%);
color: rgb(255 255 255 / 70%);
font-size: 13px;
font-weight: 600;
cursor: pointer;
@@ -173,7 +173,7 @@
}
&.highlight-style .style-text {
background: linear-gradient(180deg, rgb(255, 255, 0, 40%) 60%, transparent 60%);
background: linear-gradient(180deg, rgb(255 255 0 / 40%) 60%, transparent 60%);
}
&.underline-style .style-text {
@@ -190,14 +190,14 @@
}
&:hover {
border-color: rgb(255, 255, 255, 20%);
background: rgb(255, 255, 255, 8%);
border-color: rgb(255 255 255 / 20%);
background: rgb(255 255 255 / 8%);
color: #fff;
}
&.selected {
border-color: #3b82f6;
background: rgb(59, 130, 246, 15%);
background: rgb(59 130 246 / 15%);
color: #fff;
}
}
@@ -224,7 +224,7 @@
&.selected {
border-color: #fff;
box-shadow: 0 0 0 2px rgb(59, 130, 246, 50%);
box-shadow: 0 0 0 2px rgb(59 130 246 / 50%);
}
}
@@ -24,7 +24,7 @@
transition: background-color 0.2s ease, color 0.2s ease;
&:hover {
background: rgb(0, 0, 0, 10%);
background: rgb(0 0 0 / 10%);
}
svg {
@@ -37,7 +37,7 @@
color: #e8e8e8;
&:hover {
background: rgb(255, 255, 255, 15%);
background: rgb(255 255 255 / 15%);
}
}