nekrochan/static/style.css

514 řádky
7.4 KiB
CSS
Surový Normální zobrazení Historie

2024-01-02 11:58:47 +00:00
:root {
2024-02-18 19:25:38 +00:00
font-size: 10pt;
font-family: var(--font);
color: var(--text);
2024-01-02 11:58:47 +00:00
}
2023-12-11 15:18:43 +00:00
body {
2024-02-18 19:25:38 +00:00
min-height: 100vh;
background: var(--bg);
margin: 0;
2023-12-11 15:18:43 +00:00
}
a {
2024-02-18 19:25:38 +00:00
color: var(--link-color);
2023-12-11 15:18:43 +00:00
}
a:hover {
2024-02-18 19:25:38 +00:00
color: var(--link-hover);
2023-12-11 15:18:43 +00:00
}
details,
#live-info {
2024-02-18 19:25:38 +00:00
display: inline-block;
margin-bottom: 8px;
2023-12-11 15:18:43 +00:00
}
2023-12-16 18:05:47 +00:00
details:last-of-type {
2024-02-18 19:25:38 +00:00
margin-bottom: 0;
2023-12-11 15:18:43 +00:00
}
img,
video {
2024-02-18 19:25:38 +00:00
max-width: 100%;
max-height: 90vh;
2023-12-11 15:18:43 +00:00
}
hr {
2024-02-18 19:25:38 +00:00
border-top: 1px solid var(--hr-color);
border-left: none;
border-right: none;
border-bottom: none;
2023-12-11 15:18:43 +00:00
}
summary {
2024-02-18 19:25:38 +00:00
cursor: pointer;
2023-12-11 15:18:43 +00:00
}
.form-table .label {
2024-02-18 19:25:38 +00:00
font-weight: bold;
background-color: var(--table-head);
border: 1px solid var(--table-border);
padding: 4px;
2023-12-11 15:18:43 +00:00
}
.form-table td {
2024-02-18 19:25:38 +00:00
padding: 0;
2023-12-11 15:18:43 +00:00
}
#post-form {
visibility: hidden;
position: fixed;
right: 0;
top: 3rem;
background-color: var(--box-color);
border: 1px solid var(--box-border);
margin: 4px;
}
#post-form:target,
#post-form[data-visible="true"] {
visibility: visible;
}
.draggable {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: move;
}
2024-01-15 15:06:25 +00:00
.edit-box {
2024-02-18 19:25:38 +00:00
display: block;
width: 100%;
2023-12-15 19:41:51 +00:00
}
2023-12-11 15:18:43 +00:00
.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table textarea,
.form-table select,
2023-12-15 19:41:51 +00:00
.input-wrapper,
2024-01-15 15:06:25 +00:00
.edit-box {
2024-02-18 19:25:38 +00:00
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
2023-12-11 15:18:43 +00:00
2024-02-18 19:25:38 +00:00
display: block;
width: 100%;
color: var(--text);
background-color: var(--input-color);
border-radius: 0;
border: 1px solid var(--input-border);
padding: 4px;
2023-12-11 15:18:43 +00:00
}
.form-table input[type="checkbox"] {
2024-02-18 19:25:38 +00:00
display: block;
margin: 0 auto;
2023-12-11 15:18:43 +00:00
}
2023-12-15 19:41:51 +00:00
.form-table textarea,
2024-01-15 15:06:25 +00:00
.edit-box {
2024-02-18 19:25:38 +00:00
height: 8rem;
resize: none;
2023-12-11 15:18:43 +00:00
}
.table-wrap {
2024-02-18 19:25:38 +00:00
overflow: scroll;
2023-12-11 15:18:43 +00:00
}
.data-table {
2024-02-18 19:25:38 +00:00
width: 100%;
border-spacing: 0;
border-collapse: collapse;
margin: 8px 0;
2023-12-11 15:18:43 +00:00
}
.data-table th {
2024-02-18 19:25:38 +00:00
background-color: var(--table-head);
2023-12-11 15:18:43 +00:00
}
2024-02-17 21:24:39 +00:00
.data-table td {
2024-02-18 19:25:38 +00:00
background-color: var(--table-background);
2024-02-17 21:24:39 +00:00
}
.data-table td:not(.form-table td),
2023-12-11 15:18:43 +00:00
.data-table th {
2024-02-18 19:25:38 +00:00
border: 1px solid var(--table-border);
padding: 4px;
2023-12-11 15:18:43 +00:00
}
.data-table .banner {
2024-02-18 19:25:38 +00:00
margin-top: 0;
margin-bottom: 0;
2023-12-11 15:18:43 +00:00
}
2024-01-15 15:06:25 +00:00
.news {
2024-02-18 19:25:38 +00:00
margin: 8px 0;
2024-01-15 15:06:25 +00:00
}
2023-12-11 15:18:43 +00:00
.box {
2024-02-18 19:25:38 +00:00
background-color: var(--box-color);
border-right: 1px solid var(--box-border);
border-bottom: 1px solid var(--box-border);
padding: 8px;
2023-12-11 15:18:43 +00:00
}
.box:target {
2024-02-18 19:25:38 +00:00
background-color: var(--hl-box-color);
border-right: 1px solid var(--hl-box-border);
border-bottom: 1px solid var(--hl-box-border);
2023-12-11 15:18:43 +00:00
}
.button {
2024-02-18 19:25:38 +00:00
cursor: pointer;
border-radius: 0;
color: var(--text);
background-color: var(--input-color);
border: 1px solid var(--input-border);
2024-02-21 15:15:07 +00:00
padding: 4px;
2023-12-11 15:18:43 +00:00
}
.main {
2024-02-18 19:25:38 +00:00
margin: 8px;
2023-12-11 15:18:43 +00:00
}
.container {
2024-02-18 19:25:38 +00:00
margin: 0 auto;
max-width: 720px;
2023-12-11 15:18:43 +00:00
}
.title {
2024-02-18 19:25:38 +00:00
color: var(--title-color);
font-family: var(--title-font);
text-align: center;
letter-spacing: -2px;
margin: 0;
2023-12-11 15:18:43 +00:00
}
.description {
2024-02-18 19:25:38 +00:00
font-weight: bold;
margin: 0;
2023-12-11 15:18:43 +00:00
}
2023-12-25 13:53:44 +00:00
.big {
2024-02-18 19:25:38 +00:00
font-size: 1.2rem;
2023-12-25 13:53:44 +00:00
}
2024-01-02 11:58:47 +00:00
.small {
2024-02-18 19:25:38 +00:00
font-size: 0.8rem;
2024-01-02 11:58:47 +00:00
}
2023-12-11 15:18:43 +00:00
.center {
2024-02-18 19:25:38 +00:00
text-align: center;
2023-12-11 15:18:43 +00:00
}
.inline-block {
2024-02-18 19:25:38 +00:00
display: inline-block;
2023-12-11 15:18:43 +00:00
}
2024-01-02 11:58:47 +00:00
.float-r {
2024-02-18 19:25:38 +00:00
float: right;
2024-01-02 11:58:47 +00:00
}
.float-none-a,
.float-none-b {
float: none !important;
}
2024-01-02 11:58:47 +00:00
.fixed-table {
2024-02-18 19:25:38 +00:00
table-layout: fixed;
2024-01-02 11:58:47 +00:00
}
2024-02-17 21:24:39 +00:00
.m-0 {
2024-02-18 19:25:38 +00:00
margin: 0;
2024-02-17 21:24:39 +00:00
}
2024-01-15 15:06:25 +00:00
.form-table .button,
.full-width {
2024-02-18 19:25:38 +00:00
width: 100%;
2024-01-15 15:06:25 +00:00
}
2023-12-11 15:18:43 +00:00
.banner {
2024-02-18 19:25:38 +00:00
display: block;
width: 100%;
max-width: 300px;
margin: 8px auto;
border: 1px solid var(--box-border);
2023-12-11 15:18:43 +00:00
}
2024-01-02 11:58:47 +00:00
.headline {
2024-02-18 19:25:38 +00:00
font-size: 1rem;
margin: 0;
2024-01-02 11:58:47 +00:00
}
.headline::after {
2024-02-18 19:25:38 +00:00
content: "";
display: block;
clear: both;
2024-01-02 11:58:47 +00:00
}
2024-02-17 21:24:39 +00:00
.board-links,
.pagination {
2024-02-18 19:25:38 +00:00
color: var(--link-list-color);
2023-12-11 15:18:43 +00:00
}
.link-separator::after {
2024-02-18 19:25:38 +00:00
content: " / ";
2023-12-11 15:18:43 +00:00
}
.link-group::before {
2024-02-18 19:25:38 +00:00
content: " [ ";
2023-12-11 15:18:43 +00:00
}
.link-group::after {
2024-02-18 19:25:38 +00:00
content: " ] ";
2023-12-11 15:18:43 +00:00
}
2024-01-02 11:58:47 +00:00
.header {
2024-02-18 19:25:38 +00:00
padding: 2px;
2024-01-02 11:58:47 +00:00
}
.header::after {
2024-02-18 19:25:38 +00:00
content: "";
display: block;
clear: both;
2023-12-11 15:18:43 +00:00
}
2023-12-16 18:05:47 +00:00
.footer {
2024-02-18 19:25:38 +00:00
text-align: center;
font-size: 8pt;
margin-top: 8px;
2023-12-16 18:05:47 +00:00
}
2023-12-11 15:18:43 +00:00
.post {
2024-02-18 19:25:38 +00:00
margin-bottom: 8px;
padding: 8px;
2023-12-11 15:18:43 +00:00
}
.post.box {
2024-02-18 19:25:38 +00:00
display: inline-block;
min-width: 400px;
2023-12-11 15:18:43 +00:00
}
.post:last-of-type {
2024-02-18 19:25:38 +00:00
margin-bottom: 0;
2023-12-11 15:18:43 +00:00
}
.post::after {
2024-02-18 19:25:38 +00:00
content: "";
display: block;
clear: both;
2023-12-11 15:18:43 +00:00
}
.board-links a,
.pagination a,
.post-number a {
2024-02-18 19:25:38 +00:00
text-decoration: none;
2023-12-11 15:18:43 +00:00
}
.post-header input[type="checkbox"] {
height: 1em;
2024-02-18 19:25:38 +00:00
vertical-align: middle;
margin: 0;
2023-12-11 15:18:43 +00:00
}
.catalog-entry {
2024-02-18 19:25:38 +00:00
display: inline-block;
width: 200px;
height: 250px;
overflow: scroll;
margin: 4px;
padding: 8px;
2023-12-11 15:18:43 +00:00
}
.catalog-entry .thumb {
2024-02-18 19:25:38 +00:00
display: block;
max-width: 100%;
max-height: 50%;
box-shadow: 0 0 3px #000;
margin: 4px auto;
padding: 2px;
2023-12-11 15:18:43 +00:00
}
.catalog-entry .post-content {
2024-02-18 19:25:38 +00:00
margin: 8px;
2023-12-11 15:18:43 +00:00
}
.name {
2024-02-18 19:25:38 +00:00
font-weight: bold;
color: var(--name-color);
2023-12-11 15:18:43 +00:00
}
.tripcode {
2024-02-18 19:25:38 +00:00
color: var(--trip-color);
2023-12-11 15:18:43 +00:00
}
.capcode {
2024-02-18 19:25:38 +00:00
color: var(--capcode-color);
font-weight: bold;
2023-12-11 15:18:43 +00:00
}
.user-id {
2024-02-18 19:25:38 +00:00
text-shadow: #000 0 0 1px, #000 0 0 1px, #000 0 0 1px, #000 0 0 1px,
#000 0 0 1px, #000 0 0 1px;
color: #ffffff;
border: 1px solid var(--box-border);
padding: 0 2px;
2023-12-11 15:18:43 +00:00
}
.post-files {
2024-02-18 19:25:38 +00:00
float: left;
margin: 0 8px 8px 8px;
2023-12-11 15:18:43 +00:00
}
.post-file {
2024-02-18 19:25:38 +00:00
display: inline-block;
vertical-align: top;
text-align: center;
font-size: 8pt;
padding: 4px;
2023-12-11 15:18:43 +00:00
}
.thumb {
2024-02-18 19:25:38 +00:00
max-width: 200px;
max-height: 200px;
2023-12-11 15:18:43 +00:00
}
.post-content {
2024-02-18 19:25:38 +00:00
font-family: inherit;
white-space: pre-wrap;
word-break: break-word;
margin: 0;
2024-01-02 11:58:47 +00:00
}
.post .post-content {
2024-02-18 19:25:38 +00:00
margin: 1rem 2rem;
2023-12-11 15:18:43 +00:00
}
.post-content a {
2024-02-18 19:25:38 +00:00
color: var(--post-link-color);
2023-12-11 15:18:43 +00:00
}
.post-content a:hover {
2024-02-18 19:25:38 +00:00
color: var(--post-link-hover);
2023-12-11 15:18:43 +00:00
}
.dead-quote {
2024-02-18 19:25:38 +00:00
color: var(--dead-quote-color);
text-decoration: line-through;
2023-12-11 15:18:43 +00:00
}
.greentext {
2024-02-18 19:25:38 +00:00
color: var(--greentext-color);
2023-12-11 15:18:43 +00:00
}
.orangetext {
2024-02-18 19:25:38 +00:00
color: var(--orangetext-color);
2023-12-11 15:18:43 +00:00
}
.redtext {
2024-02-18 19:25:38 +00:00
color: var(--redtext-color);
font-weight: bold;
2023-12-11 15:18:43 +00:00
}
.bluetext {
2024-02-18 19:25:38 +00:00
color: var(--bluetext-color);
font-weight: bold;
2023-12-11 15:18:43 +00:00
}
.glowtext {
2024-02-18 19:25:38 +00:00
text-shadow: 0 0 40px #00fe20, 0 0 2px #00fe20;
2023-12-11 15:18:43 +00:00
}
.uh-oh-text {
2024-02-18 19:25:38 +00:00
color: var(--uh-oh-text);
background-color: var(--uh-oh-color);
2023-12-11 15:18:43 +00:00
}
.spoiler {
2024-02-18 19:25:38 +00:00
color: var(--text);
background-color: var(--text);
2023-12-11 15:18:43 +00:00
}
.spoiler:hover {
2024-02-18 19:25:38 +00:00
background-color: transparent;
2023-12-11 15:18:43 +00:00
}
2024-01-20 13:35:20 +00:00
.jannytext {
2024-02-18 19:25:38 +00:00
color: var(--jannytext-color);
font-weight: bold;
2024-01-20 13:35:20 +00:00
}
2023-12-11 15:18:43 +00:00
.icon {
2024-02-18 19:25:38 +00:00
height: 0.8em;
vertical-align: middle;
2023-12-11 15:18:43 +00:00
}
.posts-omitted {
2024-02-18 19:25:38 +00:00
margin-top: 0;
margin-bottom: 8px;
2023-12-11 15:18:43 +00:00
}
2024-01-08 17:45:11 +00:00
.board-list {
2024-02-18 19:25:38 +00:00
list-style-type: none;
margin: 0;
padding: 0;
2023-12-11 15:18:43 +00:00
}
@media only screen and (max-width: 600px) {
2024-02-18 19:25:38 +00:00
.thumb {
max-width: 100px;
max-height: 100px;
}
.post.box {
display: block;
min-width: unset;
}
.thread > br {
display: none;
}
.catalog-entry {
width: 140px;
height: 220px;
}
2023-12-11 15:18:43 +00:00
}
/* Only in JS */
.loading {
opacity: 0.5;
2024-02-20 21:09:52 +00:00
cursor: wait;
}
2024-02-21 15:15:07 +00:00
#captcha {
2024-02-20 21:09:52 +00:00
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
2024-02-20 21:09:52 +00:00
display: block;
width: 100%;
2024-02-21 15:15:07 +00:00
height: 120px;
2024-02-20 21:09:52 +00:00
border: 1px solid var(--input-border);
2024-02-21 15:15:07 +00:00
}
#captcha img {
display: block;
height: 100%;
image-rendering: pixelated;
2024-02-20 21:09:52 +00:00
margin: 0px auto;
}
#live-indicator {
display: inline-block;
width: 0.8em;
height: 0.8em;
vertical-align: middle;
border-radius: 50%;
}