tahamajs/NS / docs /textbook /css /style.css
tahamajs's picture
download
raw
6.06 kB
/* Network Security & Cryptography Academic Textbook Master Stylesheet */
:root {
--bg-dark: #0f172a;
--bg-card: #1e293b;
--bg-subcard: #0f172a;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--accent-primary: #38bdf8;
--accent-secondary: #818cf8;
--accent-success: #34d399;
--accent-warning: #fbbf24;
--accent-danger: #f87171;
--border-color: #334155;
--code-bg: #020617;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.7;
font-size: 1rem;
}
/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible {
outline: 2px solid var(--accent-primary);
outline-offset: 2px;
}
/* Top Navigation Bar */
.top-bar {
background-color: #020617;
border-bottom: 1px solid var(--border-color);
padding: 0.8rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 1000;
}
.brand {
font-weight: 700;
font-size: 1.15rem;
color: var(--accent-primary);
text-decoration: none;
}
.top-nav {
display: flex;
gap: 1.25rem;
list-style: none;
}
.top-nav a {
color: var(--text-muted);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: color 0.2s ease;
}
.top-nav a:hover, .top-nav a.active {
color: var(--accent-primary);
}
/* Main Layout */
.main-container {
display: flex;
max-width: 1400px;
margin: 0 auto;
padding: 2rem 1.5rem;
gap: 2rem;
}
/* Sidebar */
.sidebar {
width: 280px;
flex-shrink: 0;
background-color: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1.25rem;
height: fit-content;
position: sticky;
top: 5rem;
max-height: calc(100vh - 6rem);
overflow-y: auto;
}
.sidebar-title {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 0.75rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border-color);
}
.sidebar-list {
list-style: none;
margin-bottom: 1.5rem;
}
.sidebar-list li {
margin-bottom: 0.4rem;
}
.sidebar-list a {
color: #cbd5e1;
text-decoration: none;
font-size: 0.88rem;
display: block;
padding: 0.3rem 0.5rem;
border-radius: 4px;
transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-list a:hover, .sidebar-list a.active {
background-color: rgba(56, 189, 248, 0.1);
color: var(--accent-primary);
}
/* Main Content Area */
.content {
flex-grow: 1;
min-width: 0;
}
.page-title {
font-size: 2rem;
margin-bottom: 0.4rem;
color: var(--text-main);
}
.page-subtitle {
color: var(--text-muted);
font-size: 1rem;
margin-bottom: 1.5rem;
}
/* Cards */
.card {
background-color: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.card h2 {
font-size: 1.35rem;
margin-bottom: 0.8rem;
color: var(--accent-primary);
}
.card h3 {
font-size: 1.1rem;
margin-bottom: 0.6rem;
color: var(--accent-secondary);
}
/* Technical Code & Diagrams */
.diagram-box {
background-color: var(--code-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 1rem 1.25rem;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 0.85rem;
color: #38bdf8;
overflow-x: auto;
white-space: pre;
margin: 1rem 0;
}
.tech-box {
background-color: var(--bg-subcard);
border: 1px solid var(--border-color);
border-left: 4px solid var(--accent-secondary);
border-radius: 6px;
padding: 1.25rem;
margin: 1rem 0;
}
.tech-box h4 {
color: var(--accent-secondary);
margin-bottom: 0.5rem;
font-size: 0.95rem;
}
/* Tables */
.table-custom {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
font-size: 0.9rem;
}
.table-custom th, .table-custom td {
padding: 0.75rem 1rem;
text-align: left;
border: 1px solid var(--border-color);
}
.table-custom th {
background-color: #020617;
color: var(--accent-primary);
font-weight: 600;
}
.table-custom tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.02);
}
/* Badges & Buttons */
.badge {
display: inline-block;
padding: 0.25rem 0.6rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
background-color: rgba(56, 189, 248, 0.15);
color: var(--accent-primary);
border: 1px solid rgba(56, 189, 248, 0.3);
}
/* Footer */
footer {
background-color: #020617;
border-top: 1px solid var(--border-color);
text-align: center;
padding: 2rem 1.5rem;
color: var(--text-muted);
margin-top: 4rem;
}
footer a {
color: var(--accent-primary);
text-decoration: none;
}
/* Responsive Media Queries */
@media (max-width: 1024px) {
.main-container {
flex-direction: column;
}
.sidebar {
width: 100%;
position: static;
max-height: none;
}
}
@media (max-width: 640px) {
.top-bar {
flex-direction: column;
gap: 0.8rem;
padding: 1rem;
}
.top-nav {
flex-wrap: wrap;
justify-content: center;
gap: 0.8rem;
}
.page-title {
font-size: 1.5rem;
}
}
/* Print-Friendly Stylesheet */
@media print {
body {
background-color: #fff !important;
color: #000 !important;
}
.top-bar, .sidebar, footer {
display: none !important;
}
.main-container {
display: block !important;
padding: 0 !important;
}
.card {
background-color: #fff !important;
color: #000 !important;
border: 1px solid #ccc !important;
break-inside: avoid;
}
}

Xet Storage Details

Size:
6.06 kB
·
Xet hash:
d8108615cba601a862cd94d78de52cf9ac811bf62a234fbdc2e277b96e6da9a0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.