Files
datascape/assets/style.css
2026-04-10 12:47:03 +02:00

392 lines
6.5 KiB
CSS

/* === CRT Base === */
body {
background-color: black;
background-image: radial-gradient(rgba(0, 150, 0, 0.75), black 120%);
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
min-height: 100vh;
margin: 0;
overflow: auto;
padding: 0;
color: white;
font:
1rem Inconsolata,
monospace;
text-shadow: 0 0 5px #c8c8c8;
}
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.15),
rgba(0, 0, 0, 0.15) 1px,
transparent 1px,
transparent 2px
);
pointer-events: none;
z-index: 9999;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
::selection {
background: #0080ff;
text-shadow: none;
}
/* === Links === */
a {
color: #ffb300;
text-shadow: 0 0 5px #b37800;
text-decoration: none;
}
a:hover {
color: #ffd54f;
text-shadow: 0 0 8px #ffb300;
}
/* === Header === */
header {
padding: 0.75rem 1rem;
border-bottom: 1px dashed #0a0;
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.breadcrumb {
display: flex;
align-items: center;
gap: 0.25rem;
flex-wrap: wrap;
flex: 1;
}
.logo {
width: 1.1em;
height: 1.1em;
vertical-align: center;
}
.sep {
color: #060;
}
.edit-btn {
background: none;
border: none;
color: #ffb300;
font: inherit;
cursor: pointer;
padding: 0;
text-decoration: none;
white-space: nowrap;
}
.edit-btn::before {
content: "[";
}
.edit-btn::after {
content: "]";
}
.edit-btn:hover {
color: #ffd54f;
text-shadow: 0 0 8px #ffb300;
}
/* === Main === */
main {
max-width: 860px;
margin: 0 auto;
padding: 1.5rem 1rem;
}
/* === Markdown content === */
.content {
margin-bottom: 2rem;
}
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
color: white;
margin: 1.25rem 0 0.5rem;
line-height: 1.3;
}
.content h1 {
font-size: 1.75rem;
border-bottom: 1px dashed #0a0;
padding-bottom: 0.25rem;
}
.content h2 {
font-size: 1.4rem;
}
.content h3 {
font-size: 1.15rem;
}
.content p {
margin: 0.75rem 0;
}
.content ul,
.content ol {
margin: 0.75rem 0 0.75rem 1.5rem;
}
.content li {
margin: 0.25rem 0;
}
.content blockquote {
border-left: 3px solid #0a0;
padding: 0.25rem 1rem;
color: #888;
margin: 0.75rem 0;
}
.content code {
font-family: Inconsolata, monospace;
font-size: 0.875em;
background: #001a00;
padding: 0.1em 0.35em;
}
.content pre {
background: #001a00;
border: 1px solid #0a0;
padding: 1rem;
overflow-x: auto;
margin: 0.75rem 0;
}
.content pre code {
background: none;
padding: 0;
}
.content table {
width: 100%;
border-collapse: collapse;
margin: 0.75rem 0;
font-size: 0.9rem;
}
.content th,
.content td {
border: 1px solid #0a0;
padding: 0.4rem 0.75rem;
text-align: left;
}
.content th {
background: #001a00;
color: white;
}
.content hr {
border: none;
border-top: 1px dashed #0a0;
margin: 1.5rem 0;
}
.content img {
max-width: 100%;
}
/* === File listing === */
.listing {
border: 1px solid #0a0;
}
.listing-header {
padding: 0.5rem 1rem;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: white;
border-bottom: 1px solid #0a0;
}
.listing-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 1rem;
border-top: 1px solid #060;
font-size: 0.95rem;
}
.listing-item:hover {
background: #001a00;
}
.listing-item .icon {
width: 1.25rem;
text-align: center;
flex-shrink: 0;
filter: drop-shadow(0 0 4px #c8c8c8);
}
.listing-item a {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: inherit;
text-shadow: inherit;
}
.listing-item .meta {
color: #888;
font-size: 0.8rem;
white-space: nowrap;
text-shadow: none;
}
/* === Editor toolbar === */
.editor-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
border: 1px solid #0a0;
border-bottom: none;
padding: 0.4rem 0.6rem;
background: #001a00;
}
.btn-tool {
background: none;
border: none;
color: #0f0;
font: inherit;
font-size: 0.85rem;
cursor: pointer;
padding: 0 0.15rem;
text-shadow: 0 0 4px #0a0;
white-space: nowrap;
}
.btn-tool::before {
content: "[";
color: #060;
}
.btn-tool::after {
content: "]";
color: #060;
}
.btn-tool:hover {
color: #fff;
text-shadow: 0 0 6px #0f0;
}
.toolbar-sep {
width: 1px;
background: #060;
margin: 0 0.2rem;
align-self: stretch;
}
/* === Edit form === */
.edit-form {
display: flex;
flex-direction: column;
}
textarea {
width: 100%;
min-height: 60vh;
background: #000;
border: 1px solid #0a0;
border-top: none;
color: #0f0;
caret-color: #0f0;
text-shadow: 0 0 4px #0a0;
font: inherit;
font-size: 0.9rem;
line-height: 1.6;
padding: 1rem;
resize: vertical;
outline: none;
box-sizing: border-box;
}
textarea:focus {
border-color: #0f0;
box-shadow: 0 0 5px #0a0;
}
.btn-save {
background: none;
border: none;
color: #ffb300;
font: inherit;
cursor: pointer;
padding: 0;
}
.btn-save::before {
content: "[";
}
.btn-save::after {
content: "]";
}
.btn-save:hover {
color: #ffd54f;
text-shadow: 0 0 8px #ffb300;
}
.btn-cancel {
background: none;
border: none;
color: #ffb300;
font: inherit;
cursor: pointer;
padding: 0;
text-decoration: none;
display: inline-block;
}
.btn-cancel::before {
content: "[";
}
.btn-cancel::after {
content: "]";
}
.btn-cancel:hover {
color: #ffb300;
text-shadow: 0 0 8px #b37800;
}
/* === Empty state === */
.empty {
padding: 1rem;
text-align: center;
}
/* === hr === */
hr {
border: none;
border-top: 1px dashed #0a0;
margin: 1rem 0;
}
/* === Scrollbars === */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #111;
}
::-webkit-scrollbar-thumb {
background: #0a0;
}
::-webkit-scrollbar-thumb:hover {
background: #0f0;
}
/* === Responsive === */
@media (max-width: 600px) {
header {
padding: 0.5rem 0.75rem;
}
main {
padding: 1rem 0.75rem;
}
textarea {
min-height: 50vh;
}
}