670 lines
16 KiB
CSS
670 lines
16 KiB
CSS
:root {
|
|
/* Dark Theme (Default) - Slightly lighter */
|
|
--color-bg-primary: #0a0b10; /* Much darker primary background */
|
|
--color-bg-secondary: #13141a; /* Darker secondary background */
|
|
--color-bg-tertiary: #181a22; /* Darker tertiary */
|
|
--color-bg-header: #090a0f; /* Darker header */
|
|
--color-bg-code: #10121a; /* Almost black code block background */
|
|
--color-bg-note: rgba(30, 32, 40, 0.85); /* Slightly darker note background */
|
|
--color-bg-hover: rgba(120, 140, 255, 0.12); /* More visible hover */
|
|
--color-bg-inline-lua: #181a22; /* Match code block background */
|
|
--color-bg-note-dark: rgba(40, 35, 30, 0.85); /* Slightly darker note box */
|
|
|
|
--color-text-primary: #f6f8fa; /* Brighter text */
|
|
--color-text-secondary: #bfc8d8; /* Lighter secondary text */
|
|
--color-text-accent: #7ecbff; /* Brighter accent */
|
|
--color-text-light: #ffffff;
|
|
|
|
--color-border-primary: #23263a; /* Stronger border for contrast */
|
|
--color-border-accent: #3a7bd5; /* Brighter accent border */
|
|
|
|
--color-link: #7ecbff;
|
|
--color-link-hover: #ffffff;
|
|
|
|
/* Lua syntax highlighting colors with high contrast */
|
|
--color-lua-variable: #4fc3f7;
|
|
--color-lua-comment: #b0b8d0; /* Lighter, more visible comment */
|
|
--color-lua-operator: #ffffff;
|
|
--color-lua-keyword: #ffd166; /* Orange for keywords */
|
|
--color-lua-string: #7fffde; /* Aqua for strings */
|
|
--color-lua-function: #ffe066; /* Gold for functions */
|
|
|
|
/* Shadow and transparency values - unchanged */
|
|
--shadow-small: 0 2px 5px rgba(0, 0, 0, 0.3);
|
|
--shadow-medium: 0 3px 8px rgba(0, 0, 0, 0.5);
|
|
--shadow-large: 0 4px 12px rgba(0, 0, 0, 0.6);
|
|
|
|
/* Common opacity values */
|
|
--opacity-sidenav: 0.85; /* Increased opacity for better contrast */
|
|
|
|
/* Responsive margins - unchanged */
|
|
--margin-left: 20%;
|
|
--margin-xlarge: 10%;
|
|
--margin-large: 8%;
|
|
--margin-medium: 8%;
|
|
--margin-small: 5%;
|
|
|
|
/* Scrollbar colors */
|
|
--color-scrollbar-track: rgba(20, 22, 28, 0.8);
|
|
--color-scrollbar-thumb-start: #4c5260;
|
|
--color-scrollbar-thumb-end: #323642;
|
|
--color-scrollbar-thumb-hover-start: #5a606e;
|
|
--color-scrollbar-thumb-hover-end: #4c5260;
|
|
--color-scrollbar-shadow: rgba(90, 96, 110, 0.3);
|
|
--color-scrollbar-shadow-hover: rgba(90, 96, 110, 0.5);
|
|
|
|
/* New variables for gradients, shadows, and navigation accent */
|
|
--gradient-header: linear-gradient(135deg, var(--color-bg-header) 0%, var(--color-bg-secondary) 70%, var(--color-bg-header-accent) 100%);
|
|
--color-bg-header-accent: #2a2620;
|
|
--color-logo-gradient: linear-gradient(120deg, #5caaff, #a0e8ff, #ffffff);
|
|
--color-nav-underline: #b0a890;
|
|
--color-nav-underline-glow: rgba(176, 168, 144, 0.6);
|
|
--color-nav-hover-bg: var(--color-bg-hover);
|
|
--color-nav-hover-text: #ffffff;
|
|
--color-nav-hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--color-bg-primary: #f5f7ff;
|
|
--color-bg-secondary: #e8ecf7;
|
|
--color-bg-tertiary: #dce2f0;
|
|
--color-bg-header: #f0f2fa;
|
|
--color-bg-code: #e3e6eb; /* Medium-light gray for code block background */
|
|
--color-bg-note: rgba(215, 228, 245, 0.75);
|
|
--color-bg-hover: rgba(100, 120, 200, 0.1);
|
|
--color-bg-inline-lua: #e3e6eb;
|
|
--color-bg-note-dark: rgba(235, 240, 250, 0.7);
|
|
|
|
--color-text-primary: #151720;
|
|
--color-text-secondary: #2a2e40;
|
|
--color-text-accent: #3050b0;
|
|
--color-text-light: #2a2e40;
|
|
|
|
--color-border-primary: #a0a8b8;
|
|
--color-border-accent: #5c75d9;
|
|
|
|
--color-link: #3050b0;
|
|
--color-link-hover: #4060c0;
|
|
|
|
/* Lua syntax highlighting colors for light theme */
|
|
--color-lua-variable: #1a237e;
|
|
--color-lua-comment: #374151;
|
|
--color-lua-operator: #23272e;
|
|
--color-lua-keyword: #b45309;
|
|
--color-lua-string: #065f46;
|
|
--color-lua-function: #6d28d9;
|
|
|
|
|
|
/* Shadow values adjusted for light theme */
|
|
--shadow-small: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
--shadow-medium: 0 3px 8px rgba(0, 0, 0, 0.2);
|
|
--shadow-large: 0 4px 12px rgba(0, 0, 0, 0.25);
|
|
|
|
/* Common opacity values */
|
|
--opacity-sidenav: 0.92;
|
|
|
|
/* Scrollbar colors */
|
|
--color-scrollbar-track: rgba(220, 225, 240, 0.8);
|
|
--color-scrollbar-thumb-start: #5c75d9;
|
|
--color-scrollbar-thumb-end: #a0b0e0;
|
|
--color-scrollbar-thumb-hover-start: #3050b0;
|
|
--color-scrollbar-thumb-hover-end: #5c75d9;
|
|
--color-scrollbar-shadow: rgba(48, 80, 176, 0.2);
|
|
--color-scrollbar-shadow-hover: rgba(48, 80, 176, 0.4);
|
|
|
|
/* New variables for gradients, shadows, and navigation accent */
|
|
--gradient-header: linear-gradient(135deg, var(--color-bg-header) 0%, var(--color-bg-secondary) 70%, var(--color-bg-header-accent) 100%);
|
|
--color-bg-header-accent: #f5e9d2;
|
|
--color-logo-gradient: linear-gradient(120deg, #225a9e, #3578c7, #70aaff);
|
|
--color-nav-underline: #e0cfa0;
|
|
--color-nav-underline-glow: rgba(224, 207, 160, 0.4);
|
|
--color-nav-hover-bg: var(--color-bg-hover);
|
|
--color-nav-hover-text: var(--color-text-primary);
|
|
--color-nav-hover-shadow: 0 4px 8px rgba(48, 80, 176, 0.15);
|
|
}
|
|
|
|
html {
|
|
background-color: var(--color-bg-primary);
|
|
height: 100%;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
color: var(--color-text-primary);
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--color-link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
header {
|
|
background: var(--gradient-header);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.header-box {
|
|
padding: 1em;
|
|
margin-left: var(--margin-left);
|
|
min-height: 5em;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: start;
|
|
align-items: center;
|
|
margin-bottom: 0%;
|
|
position: relative;
|
|
padding: 0 0;
|
|
}
|
|
|
|
.header-right {
|
|
width: 50%;
|
|
margin-left: 10em;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 2.5em;
|
|
font-weight: 600;
|
|
background: var(--color-logo-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
text-shadow: var(--shadow-small);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.logo:hover {
|
|
transform: scale(1.03);
|
|
filter: brightness(1.1);
|
|
text-decoration: none;
|
|
}
|
|
|
|
header nav {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 1.2rem;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
header nav a {
|
|
position: relative;
|
|
color: var(--color-text-primary);
|
|
font-weight: 500;
|
|
padding: 0.6em 1em;
|
|
border-radius: 6px;
|
|
transition: all 0.25s ease-in-out;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
header nav a:hover {
|
|
color: var(--color-nav-hover-text);
|
|
background-color: var(--color-nav-hover-bg);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--color-nav-hover-shadow);
|
|
text-decoration: none;
|
|
}
|
|
|
|
header nav a::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 2px;
|
|
background-color: var(--color-nav-underline);
|
|
transition: width 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s, background-color 0.3s;
|
|
transform: translateX(-50%);
|
|
box-shadow: 0 0 6px var(--color-nav-underline-glow);
|
|
pointer-events: none;
|
|
}
|
|
|
|
header nav a:hover::after {
|
|
width: 80%;
|
|
}
|
|
|
|
header.collapsible {
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
header.collapsible::after {
|
|
content: '\25BC'; /* Downward arrow */
|
|
position: absolute;
|
|
right: 0;
|
|
font-size: 0.8em;
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
header.collapsible.collapsed::after {
|
|
content: '\25B6'; /* Rightward arrow */
|
|
}
|
|
|
|
h2.collapsible, h3.collapsible {
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
h2.collapsible::before, h3.collapsible::before {
|
|
content: '';
|
|
margin-right: 0;
|
|
width: 0;
|
|
display: none;
|
|
}
|
|
|
|
h2.collapsible.collapsed::before, h3.collapsible.collapsed::before {
|
|
content: '';
|
|
display: none;
|
|
}
|
|
|
|
footer {
|
|
padding-left: var(--margin-left);
|
|
background-color: var(--color-bg-header);
|
|
color: var(--color-text-primary);
|
|
padding-top: 1em;
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
/* Side navigation styles */
|
|
.reference-container {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-top: 2em;
|
|
margin-left: var(--margin-left);
|
|
flex-direction: row;
|
|
gap: 2em;
|
|
position: relative;
|
|
}
|
|
|
|
.side-nav {
|
|
width: 200px;
|
|
min-width: 200px;
|
|
padding-left: 0;
|
|
overflow-y: auto;
|
|
border-right: none;
|
|
position: sticky;
|
|
top: 2em;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.side-nav h4 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.side-nav ul {
|
|
list-style-type: none;
|
|
padding-left: 0.5em;
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
.side-nav li {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.side-nav a {
|
|
color: var(--color-text-primary);
|
|
text-decoration: none;
|
|
padding: 0.5em 1em;;
|
|
}
|
|
|
|
.side-nav a:hover, .side-nav a.active {
|
|
background: linear-gradient(90deg, var(--color-border-accent) 0 6px, var(--color-bg-hover) 6px 100%);
|
|
font-weight: bold;
|
|
border-radius: 4px;
|
|
color: var(--color-link-hover);
|
|
text-decoration: none;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.side-nav a.active {
|
|
background: linear-gradient(90deg, var(--color-border-accent) 0 6px, var(--color-bg-hover) 6px 100%);
|
|
font-weight: bold;
|
|
border-radius: 4px;
|
|
color: var(--color-link-hover);
|
|
text-decoration: none;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.side-nav-h2 {
|
|
color: var(--color-text-primary);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.side-nav-h3 {
|
|
|
|
color: var(--color-text-primary);
|
|
padding-left: 1em;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.content-wrapper {
|
|
flex: 1;
|
|
max-width: 70%;
|
|
margin-left: 0;
|
|
border-left: 2px solid var(--color-border-accent);
|
|
padding-left: 1.5em;
|
|
padding-bottom: 20vh; /* Allow last section to scroll to top */
|
|
}
|
|
|
|
/* Heading styles */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
margin-top: 1.5em;
|
|
margin-bottom: 0.8em;
|
|
color: var(--color-text-secondary);
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.2em;
|
|
color: #8fc6ff;
|
|
font-weight: 700;
|
|
text-shadow: 0 1px 4px rgba(143,198,255,0.08);
|
|
letter-spacing: 0.01em;
|
|
border-bottom: 1.5px solid #8fc6ff;
|
|
padding-bottom: 0.3em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.8em;
|
|
color: #b3e0ff;
|
|
font-weight: 600;
|
|
text-shadow: 0 1px 2px rgba(179,224,255,0.07);
|
|
letter-spacing: 0.005em;
|
|
border-bottom: 1px solid #b3e0ff;
|
|
padding-bottom: 0.2em;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.4em;
|
|
color: #c9e6ff;
|
|
font-weight: 600;
|
|
text-shadow: 0 1px 1px rgba(201,230,255,0.06);
|
|
letter-spacing: 0.005em;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 1.2em;
|
|
}
|
|
|
|
/* List styling for better readability */
|
|
ul, ol {
|
|
margin: 1em 0 1.5em 0;
|
|
padding-left: 2em;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
/* Add better spacing between sections */
|
|
main > section {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
/* Improve table styling if tables are used */
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 1.5em 0;
|
|
overflow-x: auto;
|
|
display: block;
|
|
}
|
|
|
|
th, td {
|
|
padding: 0.75em 1em;
|
|
border: 1px solid var(--color-border-primary);
|
|
}
|
|
|
|
th {
|
|
background-color: var(--color-bg-secondary);
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Code and syntax highlighting with improved contrast */
|
|
.inline-lua {
|
|
background-color: var(--color-bg-inline-lua);
|
|
border-radius: 3px;
|
|
font-family: 'Courier New', monospace;
|
|
white-space: nowrap;
|
|
padding: 0.1em 0.3em;
|
|
color: #23272e;
|
|
}
|
|
|
|
/* Code block styling with improved contrast */
|
|
pre {
|
|
background-color: var(--color-bg-code);
|
|
border: 1px solid var(--color-border-primary);
|
|
border-radius: 8px;
|
|
padding: 1.2em;
|
|
margin: 1.5em 0;
|
|
overflow-x: auto;
|
|
font-family: 'Courier New', monospace;
|
|
line-height: 1.4;
|
|
box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.08);
|
|
color: #23272e;
|
|
}
|
|
|
|
.lua-variable {
|
|
color: var(--color-lua-variable); /* Brighter variable color */
|
|
}
|
|
|
|
.lua-comment {
|
|
color: var(--color-lua-comment); /* Brighter comment color */
|
|
font-style: italic;
|
|
}
|
|
|
|
.lua-operator {
|
|
color: var(--color-lua-operator); /* Bright white for better contrast */
|
|
}
|
|
|
|
.lua-keyword {
|
|
color: var(--color-lua-keyword); /* Brighter keyword color */
|
|
font-weight: bold;
|
|
}
|
|
|
|
.lua-string {
|
|
color: var(--color-lua-string); /* Brighter string color */
|
|
}
|
|
|
|
.lua-function {
|
|
color: var(--color-lua-function); /* Brighter function color */
|
|
font-weight: bold;
|
|
}
|
|
|
|
.inline-ref {
|
|
color: var(--color-text-accent);
|
|
font-weight: bold;
|
|
padding: 0 2px;
|
|
}
|
|
|
|
/* Note boxes */
|
|
.note {
|
|
background: linear-gradient(to right, rgba(60, 50, 40, 0.7), rgba(50, 45, 40, 0.55));
|
|
border-left: 4px solid var(--color-border-accent);
|
|
padding: 1em 1.2em;
|
|
margin: 1.8em 0;
|
|
border-radius: 0 8px 8px 0;
|
|
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.note p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Image styling */
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Custom Scrollbar - Enhanced version */
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--color-scrollbar-track);
|
|
border-radius: 10px;
|
|
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(to bottom, var(--color-scrollbar-thumb-start), var(--color-scrollbar-thumb-end));
|
|
border-radius: 10px;
|
|
border: 2px solid var(--color-scrollbar-track);
|
|
box-shadow: 0 0 3px var(--color-scrollbar-shadow);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: linear-gradient(to bottom, var(--color-scrollbar-thumb-hover-start), var(--color-scrollbar-thumb-hover-end));
|
|
border-width: 1px;
|
|
box-shadow: 0 0 5px var(--color-scrollbar-shadow-hover);
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
background: var(--color-bg-header);
|
|
}
|
|
|
|
/* Firefox scrollbar styling */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-border-accent) var(--color-scrollbar-track);
|
|
}
|
|
|
|
/* Responsive layout adjustments */
|
|
@media screen and (max-width: 1500px) {
|
|
:root {
|
|
--margin-left: var(--margin-xlarge);
|
|
}
|
|
}
|
|
|
|
/* Responsive layout adjustments */
|
|
@media screen and (max-width: 1200px) {
|
|
:root {
|
|
--margin-left: var(--margin-large);
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 900px) {
|
|
:root {
|
|
--margin-left: var(--margin-small);
|
|
}
|
|
|
|
.side-nav {
|
|
display: none;
|
|
}
|
|
.content-wrapper {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/* Mobile responsive styles */
|
|
@media screen and (max-width: 768px) {
|
|
:root {
|
|
--margin-left: 1em;
|
|
}
|
|
|
|
.side-nav {
|
|
display: none; /* Hide side navigation on mobile devices */
|
|
}
|
|
|
|
.content-wrapper {
|
|
width: 100%; /* Make content take full width */
|
|
}
|
|
|
|
main {
|
|
margin-left: 5%;
|
|
margin-right: 5%;
|
|
padding-left: 5%;
|
|
padding-right: 5%;
|
|
}
|
|
|
|
header {
|
|
padding-left: 5%;
|
|
padding-right: 5%;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-height: auto;
|
|
padding-top: 1em;
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
header nav {
|
|
margin-left: 0;
|
|
margin-top: 1em;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Theme Toggle Button */
|
|
.theme-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--color-text-primary);
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
margin-left: 15px;
|
|
padding: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background-color: var(--color-bg-tertiary);
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background-color: var(--color-bg-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(100, 130, 255, 0.3);
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--color-text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.theme-toggle:hover svg {
|
|
fill: var(--color-text-accent);
|
|
} |