466 lines
No EOL
7.7 KiB
CSS
466 lines
No EOL
7.7 KiB
CSS
/*
|
|
* Documentation Pages Specific Styling
|
|
* Complements u.css without overriding its styles
|
|
*/
|
|
|
|
:root {
|
|
--background-color: #121212;
|
|
--card-gradient-start: #1e1e1e;
|
|
--card-gradient-end: #333;
|
|
--header-background: #262626;
|
|
--text-color: #fff;
|
|
--accent-color: #4285F4;
|
|
--subtext-color: #ccc;
|
|
--code-background: #2c2c2c;
|
|
--border-color: #444;
|
|
--note-background: rgba(33, 150, 243, 0.15);
|
|
--note-border: #2196F3;
|
|
--warning-background: rgba(255, 193, 7, 0.15);
|
|
--warning-border: #FFC107;
|
|
--security-background: rgba(29, 39, 30, 0.7);
|
|
--security-border: #4CAF50;
|
|
--overlay-background: rgba(0, 0, 0, 0.85);
|
|
}
|
|
|
|
/* Reset */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background: var(--background-color);
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Documentation Layout */
|
|
.container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 1rem 2rem;
|
|
padding-top: 0.5rem;
|
|
}
|
|
|
|
/* Documentation Typography */
|
|
h1, h2, h3, h4 {
|
|
color: var(--accent-color);
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
h1 {
|
|
margin-top: 0.5em;
|
|
border-bottom: 2px solid var(--border-color);
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.2rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
h2 {
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.8rem;
|
|
margin-top: 2.5rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.4rem;
|
|
margin-top: 0.7rem;
|
|
margin-bottom: 0.7rem;
|
|
}
|
|
|
|
p, ul, ol {
|
|
margin: 1em 0;
|
|
font-size: 1.05rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
ol {
|
|
padding-left: 2.5rem;
|
|
}
|
|
|
|
ul {
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
ol li {
|
|
padding-left: 0.5rem;
|
|
}
|
|
|
|
ol li ul {
|
|
margin-top: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Code Formatting */
|
|
code {
|
|
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
background-color: var(--code-background);
|
|
padding: 0.2em 0.4em;
|
|
border-radius: 3px;
|
|
font-size: 0.9em;
|
|
text-wrap: nowrap;
|
|
}
|
|
|
|
pre {
|
|
background-color: var(--code-background);
|
|
border-radius: 5px;
|
|
padding: 1.2rem;
|
|
overflow: auto;
|
|
margin: 1.5em 0;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
pre code {
|
|
background-color: transparent;
|
|
padding: 0;
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Diagram/Example Sections */
|
|
.diagram, .example {
|
|
text-align: center;
|
|
margin: 35px 0;
|
|
padding: 25px;
|
|
background-color: rgba(30, 30, 30, 0.5);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.diagram img, .example img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.diagram img:hover, .example img:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.example h3 {
|
|
text-align: left;
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Tables */
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 25px 0;
|
|
background-color: rgba(30, 30, 30, 0.5);
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table-container {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
margin: 25px 0;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--border-color);
|
|
background-color: rgba(30, 30, 30, 0.5);
|
|
}
|
|
|
|
.table-container table {
|
|
margin: 0;
|
|
border: none;
|
|
}
|
|
|
|
th, td {
|
|
border: 1px solid var(--border-color);
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
}
|
|
|
|
th {
|
|
background-color: var(--header-background);
|
|
font-weight: 600;
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
background-color: rgba(40, 40, 40, 0.5);
|
|
}
|
|
|
|
/* Callout Boxes */
|
|
.note, .warning, .security {
|
|
padding: 18px 22px;
|
|
margin: 1.8rem 0;
|
|
border-radius: 5px;
|
|
border-left: 4px solid;
|
|
}
|
|
|
|
.note {
|
|
background-color: var(--note-background);
|
|
border-color: var(--note-border);
|
|
}
|
|
|
|
.warning {
|
|
background-color: var(--warning-background);
|
|
border-color: var(--warning-border);
|
|
}
|
|
|
|
.security {
|
|
background-color: var(--security-background);
|
|
border-color: var(--security-border);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.security h3 {
|
|
color: #6FCF7C;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.security ul {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
border-top: 1px solid var(--border-color);
|
|
color: var(--subtext-color);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Table of Contents */
|
|
.toc {
|
|
background-color: rgba(30, 30, 30, 0.5);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin: 20px 0 30px 0;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.toc h2 {
|
|
margin-top: 0;
|
|
text-align: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding-bottom: 10px;
|
|
margin-bottom: 15px;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.toc ul {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.toc li {
|
|
margin-bottom: 8px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.toc a {
|
|
display: block;
|
|
padding: 5px 15px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s ease;
|
|
background-color: rgba(20, 20, 20, 0.5);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.toc a:hover {
|
|
background-color: rgba(50, 50, 50, 0.5);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Code Examples */
|
|
.code-example {
|
|
position: relative;
|
|
}
|
|
|
|
.code-label {
|
|
position: absolute;
|
|
top: -12px;
|
|
right: 10px;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
font-size: 0.8rem;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Button Group Styles (from lazy-video.html) */
|
|
.lv-btn-group {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 18px;
|
|
margin: 36px 0 10px 0;
|
|
}
|
|
|
|
.lv-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 10px 24px;
|
|
border-radius: 8px;
|
|
font-weight: 700;
|
|
font-size: 1.05rem;
|
|
text-decoration: none;
|
|
transition: background 0.18s, color 0.18s, border 0.18s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lv-btn-primary {
|
|
border: none;
|
|
background: var(--accent-color, #4285F4);
|
|
color: #fff;
|
|
}
|
|
|
|
.lv-btn-primary:hover {
|
|
background: #2563eb; /* Slightly darker blue for hover */
|
|
}
|
|
|
|
.lv-btn-outline {
|
|
background: transparent;
|
|
color: #fff;
|
|
border: 1.5px solid var(--accent-color, #4285F4);
|
|
}
|
|
|
|
.lv-btn-outline:hover {
|
|
background: rgba(66,133,244,0.08); /* Subtle background on hover */
|
|
}
|
|
|
|
.lv-size-info {
|
|
font-size: 1rem;
|
|
color: #888;
|
|
background: rgba(0,0,0,0.05);
|
|
border-radius: 4px;
|
|
padding: 7px 18px;
|
|
}
|
|
|
|
.lv-size-info span {
|
|
color: var(--accent-color, #4285F4);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Feature Cards */
|
|
.feature-card {
|
|
background-color: rgba(40, 40, 40, 0.5);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
border: 1px solid var(--border-color);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.feature-card h3 {
|
|
color: var(--accent-color);
|
|
margin-top: 0;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
/* Section Styling */
|
|
.section {
|
|
scroll-margin-top: 20px;
|
|
}
|
|
|
|
/* Version Note in Footer */
|
|
.doc-version-note {
|
|
text-align: center;
|
|
color: #888;
|
|
font-size: 0.98rem;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Lazy Video Component Styling */
|
|
lazy-video {
|
|
display: block;
|
|
margin: 30px auto;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.url-patterns {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.url-patterns li {
|
|
padding: 3px 0;
|
|
}
|
|
|
|
.url-patterns code {
|
|
background: rgba(0,0,0,0.05);
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
font-size: 0.9em;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.toc ul {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.toc a {
|
|
text-align: center;
|
|
white-space: normal;
|
|
}
|
|
|
|
/* Mobile styles for button group */
|
|
.lv-btn-group {
|
|
flex-direction: column !important;
|
|
gap: 14px;
|
|
margin: 30px 0;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
}
|
|
|
|
.lv-btn {
|
|
justify-content: center;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.lv-size-info {
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
} |