Blurred layer
This commit is contained in:
@@ -5,14 +5,24 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
/* Blur and opacity settings - tweak these values */
|
||||
:root {
|
||||
--blur-intensity: 4px; /* Blur amount (0px = no blur) */
|
||||
--blur-overlay-opacity: 0.5; /* White overlay opacity (0 = transparent, 1 = solid white) */
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
font-family:
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
|
||||
sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
background: #fff;
|
||||
color: #333;
|
||||
overflow-x: hidden;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
@@ -27,10 +37,17 @@ html, body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 16px;
|
||||
padding: 0 12px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.nav-left,
|
||||
.nav-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
@@ -42,6 +59,7 @@ html, body {
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
transition: background 0.2s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav-btn:hover {
|
||||
@@ -53,15 +71,25 @@ html, body {
|
||||
}
|
||||
|
||||
.nav-btn svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
stroke: #555;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
.nav-btn svg polygon {
|
||||
fill: #555;
|
||||
stroke: none;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
font-family: monospace;
|
||||
padding: 0 8px;
|
||||
min-width: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Main content area */
|
||||
@@ -77,10 +105,14 @@ html, body {
|
||||
|
||||
/* Individual line */
|
||||
.line {
|
||||
position: relative;
|
||||
padding: 10px 16px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
.line:hover {
|
||||
@@ -91,10 +123,50 @@ html, body {
|
||||
background: #e3f2fd;
|
||||
}
|
||||
|
||||
/* Blur overlay */
|
||||
.blur-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
backdrop-filter: blur(var(--blur-intensity));
|
||||
-webkit-backdrop-filter: blur(var(--blur-intensity));
|
||||
background: rgba(255, 255, 255, var(--blur-overlay-opacity));
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition:
|
||||
opacity 0.3s ease,
|
||||
visibility 0.3s ease,
|
||||
transform 0.3s ease;
|
||||
z-index: 5;
|
||||
pointer-events: none;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
/* Blurred state */
|
||||
.line.blurred .blur-overlay {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* Clear state */
|
||||
.line.clear .blur-overlay {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.line.clear .english {
|
||||
filter: none;
|
||||
-webkit-filter: none;
|
||||
}
|
||||
|
||||
.english {
|
||||
position: relative;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
color: inherit;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Translation card (expanded state) */
|
||||
@@ -105,6 +177,8 @@ html, body {
|
||||
border-radius: 8px;
|
||||
border-left: 3px solid #ffc107;
|
||||
animation: slideDown 0.2s ease-out;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.meta-info {
|
||||
@@ -163,7 +237,9 @@ html, body {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.3s, visibility 0.3s;
|
||||
transition:
|
||||
opacity 0.3s,
|
||||
visibility 0.3s;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
@@ -226,6 +302,7 @@ html, body {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
stroke: #555;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
.episode-list {
|
||||
@@ -268,14 +345,28 @@ html, body {
|
||||
.line {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
|
||||
.english {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
|
||||
.chinese {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.nav-btn svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide scrollbar but keep functionality */
|
||||
|
||||
Reference in New Issue
Block a user