mirror of
git://f0xx.org/android_cast
synced 2026-07-29 05:17:39 +03:00
800 lines
14 KiB
CSS
800 lines
14 KiB
CSS
/* Project hub — matches crash console tokens (app.css) */
|
|
|
|
.hub-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* Logo background is injected on demand into #hub-logo-stage (see index.html). */
|
|
|
|
.hub-shell {
|
|
flex: 1;
|
|
min-height: calc(100vh - 40px);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hub-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: calc(100vh - 40px);
|
|
padding: 32px 28px 48px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.hub-header {
|
|
text-align: center;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
.hub-brand {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.hub-title-with-thunder {
|
|
position: relative;
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.hub-title-with-thunder .hub-title {
|
|
margin: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hub-logo-mark {
|
|
width: 56px;
|
|
height: 42px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.hub-title {
|
|
margin: 0 0 4px;
|
|
font-size: 2.45rem;
|
|
font-weight: 800;
|
|
line-height: 1.02;
|
|
letter-spacing: -0.015em;
|
|
}
|
|
|
|
.hub-thunder {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50px;
|
|
width: 150%;
|
|
height: auto;
|
|
margin: 0;
|
|
transform: translateX(-50%);
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
filter: drop-shadow(0 0 8px rgba(170, 220, 255, 0.35));
|
|
}
|
|
|
|
.hub-subtitle {
|
|
margin: 0 0 16px;
|
|
}
|
|
|
|
.hub-theme {
|
|
justify-content: center;
|
|
}
|
|
|
|
.hub-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(200px, 1fr));
|
|
gap: 24px;
|
|
width: 100%;
|
|
max-width: 1080px;
|
|
margin: 0;
|
|
}
|
|
|
|
.hub-card {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 22px 24px;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hub-card:hover,
|
|
.hub-card:focus-visible {
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
outline: none;
|
|
}
|
|
|
|
.hub-cards .hub-card {
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.hub-cards .hub-card:hover,
|
|
.hub-cards .hub-card:focus-visible {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 20px 48px rgba(0, 0, 0, 0.44);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
[data-theme="light"] .hub-cards .hub-card:hover,
|
|
[data-theme="light"] .hub-cards .hub-card:focus-visible {
|
|
box-shadow: 0 20px 44px rgba(26, 35, 50, 0.28);
|
|
}
|
|
|
|
.hub-card-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.hub-card-icon .nav-icon {
|
|
position: relative;
|
|
}
|
|
|
|
.hub-card-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.25;
|
|
text-align: left;
|
|
}
|
|
|
|
.nav-icon--git {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.nav-icon--git::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 2px;
|
|
width: 7px;
|
|
height: 7px;
|
|
border: 2px solid currentColor;
|
|
border-radius: 50%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.nav-icon--git::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 5px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border: 2px solid currentColor;
|
|
border-left: none;
|
|
border-bottom: none;
|
|
border-radius: 0 6px 0 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.hub-page .bottom-bar {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hub-clock-widget {
|
|
--cw-lcd-x: 24px;
|
|
position: fixed;
|
|
right: 24px;
|
|
top: 24px;
|
|
left: auto;
|
|
width: 567px;
|
|
z-index: 3;
|
|
border: 1px solid rgba(255, 255, 255, 0.72);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.48);
|
|
border-radius: 18px;
|
|
overflow: visible;
|
|
background: rgba(226, 34, 34, 0.5);
|
|
backdrop-filter: blur(1.5px);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
|
|
cursor: move;
|
|
user-select: none;
|
|
touch-action: none;
|
|
padding: 40px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cw-clock-inner {
|
|
flex: 1;
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: linear-gradient(180deg, rgba(18, 24, 34, 0.92), rgba(13, 18, 28, 0.9));
|
|
}
|
|
|
|
.cw-clock-inner > * {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cw-line {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
}
|
|
|
|
.hub-clock-widget:hover {
|
|
transform: scale(1.035);
|
|
box-shadow: 0 16px 42px rgba(0, 0, 0, 0.62), 0 0 26px rgba(155, 205, 255, 0.22);
|
|
filter: saturate(1.04);
|
|
}
|
|
|
|
.cw-primary-block {
|
|
padding: 0;
|
|
display: grid;
|
|
grid-template-rows: auto auto auto;
|
|
align-content: start;
|
|
row-gap: 0;
|
|
overflow: hidden;
|
|
background: rgba(0, 180, 80, 0.35);
|
|
}
|
|
|
|
.cw-row {
|
|
width: 100%;
|
|
min-height: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cw-row-clock {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: end;
|
|
overflow: hidden;
|
|
container-type: inline-size;
|
|
padding: 12px 0 4px;
|
|
}
|
|
|
|
.cw-line-time .cw-time-main {
|
|
font-weight: 800;
|
|
}
|
|
|
|
.cw-row-tz,
|
|
.cw-row-date {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
min-height: 0;
|
|
line-height: 1;
|
|
padding: 0;
|
|
}
|
|
|
|
.cw-time-main {
|
|
display: grid;
|
|
grid-template-columns: auto auto auto auto;
|
|
align-items: end;
|
|
justify-content: center;
|
|
column-gap: 6px;
|
|
line-height: 1;
|
|
font-weight: 700;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(170, 255, 200, 0.95);
|
|
border-radius: 8px;
|
|
padding: 4px 6px;
|
|
}
|
|
|
|
.ot-lcd-line {
|
|
display: inline-flex;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
}
|
|
|
|
#cw-hm-lcd .ot-glyph {
|
|
height: calc(var(--cw-lcd-x) * 2);
|
|
width: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
#cw-colon-lcd .ot-glyph,
|
|
.ot-lcd-sec .ot-glyph,
|
|
.ot-lcd-tz .ot-glyph {
|
|
height: var(--cw-lcd-x);
|
|
width: auto;
|
|
}
|
|
|
|
@container (max-width: 300px) {
|
|
.hub-clock-widget {
|
|
--cw-lcd-x: 20px;
|
|
}
|
|
}
|
|
|
|
.ot-lcd-sec {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.ot-lcd-sec .ot-glyph-wrap:first-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.ot-lcd-tz {
|
|
margin-left: calc(var(--cw-lcd-x) * 2);
|
|
}
|
|
|
|
.ot-lcd-subline {
|
|
display: inline-flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 2px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.cw-line-region.ot-lcd-subline .ot-glyph {
|
|
height: calc(var(--cw-lcd-x) * 0.5);
|
|
width: auto;
|
|
}
|
|
|
|
.cw-line-date.ot-lcd-subline .ot-glyph {
|
|
height: var(--cw-lcd-x);
|
|
width: auto;
|
|
}
|
|
|
|
.ot-glyph-wrap {
|
|
display: inline-block;
|
|
line-height: 0;
|
|
transform-origin: bottom center;
|
|
}
|
|
|
|
.ot-glyph-wrap--bold {
|
|
transform: scale(1.06, 1.1);
|
|
transform-origin: bottom center;
|
|
}
|
|
|
|
.ot-glyph {
|
|
fill: #d8f6b8;
|
|
filter: drop-shadow(0 0 5px rgba(190, 240, 150, 0.38));
|
|
}
|
|
|
|
.ot-fallback-char {
|
|
display: inline-flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
min-width: 0.62em;
|
|
color: #d8f6b8;
|
|
font-family: "Consolas", "Menlo", "Monaco", monospace;
|
|
font-size: 1em;
|
|
line-height: 1;
|
|
letter-spacing: 0.02em;
|
|
text-shadow: 0 0 5px rgba(190, 240, 150, 0.42);
|
|
}
|
|
|
|
.ot-fallback-char--bold {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.ot-glyph .ot-grid rect {
|
|
fill: rgba(20, 30, 24, 0.85);
|
|
filter: drop-shadow(0 0 1.4px rgba(135, 205, 255, 0.5));
|
|
}
|
|
|
|
.ot-glyph .ot-active {
|
|
fill: #d8f6b8;
|
|
}
|
|
|
|
.ot-colon-blink {
|
|
animation: cwBlink 1.25s linear infinite;
|
|
}
|
|
|
|
.cw-line-region {
|
|
color: #b8c2d4;
|
|
font-size: 12px;
|
|
letter-spacing: 0.16em;
|
|
font-weight: 300;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cw-line-date {
|
|
color: #c5d0e2;
|
|
font-size: 24px;
|
|
letter-spacing: 0.12em;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cw-separator {
|
|
margin: 5px 0;
|
|
height: 2px;
|
|
width: 100%;
|
|
border: 0;
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgba(239, 243, 252, 0) 0%,
|
|
rgba(239, 243, 252, 0.5) 50%,
|
|
rgba(239, 243, 252, 0) 100%
|
|
);
|
|
}
|
|
|
|
.cw-world-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
width: 100%;
|
|
max-width: 100%;
|
|
border-top: 0;
|
|
justify-items: center;
|
|
background: rgba(40, 110, 255, 0.35);
|
|
}
|
|
|
|
.cw-world-cell {
|
|
min-width: 0;
|
|
width: 100%;
|
|
min-height: 178px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
padding: 20px 4px;
|
|
background: rgba(20, 28, 40, 0.62);
|
|
border-left: 1px solid rgba(255, 255, 255, 0.22);
|
|
}
|
|
|
|
.cw-world-cell:first-child {
|
|
border-left: 0;
|
|
}
|
|
|
|
.cw-world-label {
|
|
color: #a6b0c2;
|
|
font-size: 9.5px;
|
|
letter-spacing: 0.12em;
|
|
margin-top: 0;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.cw-dial {
|
|
width: 100%;
|
|
max-width: 70px;
|
|
aspect-ratio: 1;
|
|
height: auto;
|
|
margin-inline: auto;
|
|
border-radius: 50%;
|
|
position: relative;
|
|
border: 2px solid rgba(239, 243, 252, 0.8);
|
|
background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 36%), #edf2fb;
|
|
box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.14), inset 6px 7px 9px rgba(255, 255, 255, 0.42);
|
|
}
|
|
|
|
.cw-roman {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 15px;
|
|
height: 15px;
|
|
margin: -7.5px;
|
|
transform: rotate(calc(var(--i) * 30deg)) translateY(-30px) rotate(calc(var(--i) * -30deg));
|
|
font-family: "Times New Roman", serif;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: #223147;
|
|
text-align: center;
|
|
}
|
|
|
|
.cw-roman-major {
|
|
font-size: 11.5px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.cw-roman-minor {
|
|
font-size: 3.2px;
|
|
opacity: 0.25;
|
|
}
|
|
|
|
.cw-resize-handle {
|
|
position: absolute;
|
|
width: 50px;
|
|
height: 50px;
|
|
min-width: 50px;
|
|
min-height: 50px;
|
|
z-index: 6;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: rgba(220, 236, 255, 0.9);
|
|
filter: drop-shadow(0 0 4px rgba(150, 200, 255, 0.35));
|
|
pointer-events: auto;
|
|
background: rgba(226, 34, 34, 0.5);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cw-resize-handle-visual {
|
|
width: 5px;
|
|
height: 5px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cw-resize-handle-visual svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
fill: currentColor;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cw-resize-sw {
|
|
left: 0;
|
|
bottom: 0;
|
|
cursor: nesw-resize;
|
|
}
|
|
|
|
.cw-resize-sw .cw-resize-handle-visual {
|
|
transform: none;
|
|
}
|
|
|
|
.cw-resize-nw {
|
|
left: 0;
|
|
top: 0;
|
|
cursor: nwse-resize;
|
|
}
|
|
|
|
.cw-resize-nw .cw-resize-handle-visual {
|
|
transform: scaleY(-1);
|
|
}
|
|
|
|
.cw-resize-ne {
|
|
right: 0;
|
|
top: 0;
|
|
cursor: nesw-resize;
|
|
}
|
|
|
|
.cw-resize-ne .cw-resize-handle-visual {
|
|
transform: scale(-1, -1);
|
|
}
|
|
|
|
.cw-resize-se {
|
|
right: 0;
|
|
bottom: 0;
|
|
cursor: nwse-resize;
|
|
}
|
|
|
|
.cw-resize-se .cw-resize-handle-visual {
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.cw-hand {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform-origin: 50% 100%;
|
|
transform: translate(-50%, -100%) rotate(0deg);
|
|
border-radius: 99px;
|
|
}
|
|
|
|
.cw-hour { width: 4px; height: 26%; background: #1f2f46; }
|
|
.cw-minute { width: 3px; height: 35%; background: #2e4767; }
|
|
.cw-second { width: 1.5px; height: 39%; background: #b63b3b; }
|
|
|
|
.cw-pin {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 7px;
|
|
height: 7px;
|
|
margin-left: -3.5px;
|
|
margin-top: -3.5px;
|
|
border-radius: 50%;
|
|
background: #101928;
|
|
border: 1px solid #f3f6ff;
|
|
}
|
|
|
|
|
|
@keyframes cwBlink {
|
|
0%, 20% { opacity: 0; }
|
|
20.01%, 60% { opacity: 1; }
|
|
60.01%, 100% { opacity: 0; }
|
|
}
|
|
|
|
.hub-docs-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 20;
|
|
}
|
|
|
|
.hub-docs-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(4, 8, 14, 0.66);
|
|
}
|
|
|
|
.hub-docs-panel {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 90vw;
|
|
height: 90vh;
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.hub-docs-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(220px, 28%) 1fr;
|
|
gap: 0;
|
|
flex: 1;
|
|
min-height: 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.hub-docs-toc {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
border: 0;
|
|
border-right: 1px solid var(--border);
|
|
overflow: auto;
|
|
padding: 10px;
|
|
}
|
|
|
|
.hub-docs-toc-title {
|
|
margin: 0 0 8px;
|
|
font-size: 12px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.hub-docs-toc-group + .hub-docs-toc-group {
|
|
margin-top: 10px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.hub-docs-toc-head,
|
|
.hub-docs-toc-leaf {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
}
|
|
|
|
.hub-docs-toc-head {
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.hub-docs-toc-leaf {
|
|
margin-left: 8px;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.hub-docs-toc-head:hover,
|
|
.hub-docs-toc-leaf:hover,
|
|
.hub-docs-toc-head:focus-visible,
|
|
.hub-docs-toc-leaf:focus-visible {
|
|
background: var(--row-hover);
|
|
outline: none;
|
|
}
|
|
|
|
.hub-docs-panels {
|
|
overflow: auto;
|
|
padding: 10px 12px 14px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.hub-docs-section .detail-tree-body {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hub-docs-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 14px 16px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.hub-docs-header h2 {
|
|
margin: 0;
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hub-docs-close {
|
|
border: 1px solid var(--border);
|
|
background: var(--bg2);
|
|
color: var(--text);
|
|
border-radius: 8px;
|
|
width: 32px;
|
|
height: 32px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hub-docs-body {
|
|
overflow: auto;
|
|
padding: 16px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hub-docs-body h3 {
|
|
margin: 16px 0 8px;
|
|
font-size: 1.03rem;
|
|
}
|
|
|
|
.hub-docs-body h4 {
|
|
margin: 12px 0 6px;
|
|
font-size: 0.96rem;
|
|
}
|
|
|
|
.hub-docs-body table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 10px 0 14px;
|
|
}
|
|
|
|
.hub-docs-body th,
|
|
.hub-docs-body td {
|
|
border: 1px solid var(--border);
|
|
padding: 8px;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.hub-docs-body a[data-doc-link] {
|
|
color: var(--accent);
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.hub-clock-widget {
|
|
left: auto;
|
|
right: 10px;
|
|
top: 10px;
|
|
width: min(94vw, 567px);
|
|
min-width: 0;
|
|
}
|
|
.hub-cards {
|
|
grid-template-columns: 1fr;
|
|
max-width: 420px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.hub-cards .hub-card {
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
.hub-cards .hub-card:hover,
|
|
.hub-cards .hub-card:focus-visible {
|
|
transform: none;
|
|
}
|
|
}
|