changes made
This commit is contained in:
@@ -232,6 +232,7 @@ a {
|
||||
|
||||
/* ── Service Cards ── */
|
||||
.service-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -405,6 +406,248 @@ a {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* ── Card Status Dots ── */
|
||||
.card-status-dot {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--text-muted);
|
||||
opacity: 0.3;
|
||||
transition: background 0.3s, opacity 0.3s, box-shadow 0.3s;
|
||||
}
|
||||
|
||||
.card-status-dot.loading {
|
||||
background: var(--yellow);
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 6px var(--yellow);
|
||||
animation: pulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.card-status-dot.ok {
|
||||
background: var(--green);
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 6px var(--green);
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.card-status-dot.error {
|
||||
background: var(--red);
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 6px var(--red);
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.card-status-dot.unknown {
|
||||
background: var(--text-muted);
|
||||
opacity: 0.3;
|
||||
box-shadow: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
/* ── Search Overlay ── */
|
||||
.search-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 200;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: 15vh;
|
||||
}
|
||||
|
||||
.search-overlay.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.search-input-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.search-input-wrap > i {
|
||||
font-size: 20px;
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-input-wrap input {
|
||||
flex: 1;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-size: 16px;
|
||||
font-family: inherit;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.search-input-wrap input::placeholder {
|
||||
color: var(--text-muted);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.search-input-wrap kbd {
|
||||
padding: 2px 8px;
|
||||
font-size: 12px;
|
||||
font-family: inherit;
|
||||
color: var(--text-muted);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-results {
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.search-result-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 20px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.search-result-item:hover,
|
||||
.search-result-item.active {
|
||||
background: rgba(255, 196, 81, 0.08);
|
||||
}
|
||||
|
||||
.search-result-item i {
|
||||
font-size: 18px;
|
||||
color: var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.search-result-item span {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.search-result-empty {
|
||||
padding: 24px 20px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ── Search Card Visibility ── */
|
||||
.search-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.search-highlight {
|
||||
border-color: var(--accent) !important;
|
||||
box-shadow: 0 0 12px var(--accent-glow) !important;
|
||||
}
|
||||
|
||||
/* ── Nav Search Button ── */
|
||||
.nav-search-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 6px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 16px;
|
||||
color: var(--text-muted);
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s, background 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.nav-search-btn:hover {
|
||||
color: var(--text);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
/* ── Hero Widget ── */
|
||||
.hero-greeting {
|
||||
font-size: clamp(16px, 2.5vw, 20px);
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.hero-clock {
|
||||
font-size: clamp(36px, 6vw, 64px);
|
||||
font-weight: 700;
|
||||
color: var(--text-heading);
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 2px;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.hero-date {
|
||||
font-size: clamp(14px, 2vw, 16px);
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.hero-weather {
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.hero-weather i {
|
||||
font-size: 16px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ── Spin animation for loading icon ── */
|
||||
.ri-spin {
|
||||
display: inline-block;
|
||||
animation: riSpin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes riSpin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* ── Mobile Adjustments ── */
|
||||
@media (max-width: 768px) {
|
||||
.search-overlay {
|
||||
padding: 8vh 16px 0;
|
||||
}
|
||||
|
||||
.search-input-wrap kbd {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-search-btn {
|
||||
padding: 14px 16px;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Reduced Motion ── */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
|
||||
Reference in New Issue
Block a user