nekrochan/static/style.css

450 řádky
6.3 KiB
CSS
Spustitelný soubor

body {
min-height: 100vh;
font-family: var(--font);
font-size: 10pt;
background: var(--bg);
color: var(--text);
margin: 0;
}
a {
color: var(--link-color);
}
a:hover {
color: var(--link-hover);
}
details {
display: inline-block;
margin-bottom: 8px;
}
details:last-of-type {
margin-bottom: 0;
}
img,
video {
max-height: 90vh;
}
hr {
border-top: 1px solid var(--hr-color);
border-left: none;
border-right: none;
border-bottom: none;
}
summary {
cursor: pointer;
}
.form-table .label {
font-weight: bold;
background-color: var(--table-head);
border: 1px solid var(--table-border);
padding: 4px;
}
.form-table td {
padding: 0;
}
.edit-post {
display: block;
width: 100%;
}
.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table textarea,
.form-table select,
.input-wrapper,
.edit-post {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
width: 100%;
color: var(--text);
background-color: var(--input-color);
border-radius: 0;
border: 1px solid var(--input-border);
padding: 4px;
}
.form-table input[type="checkbox"] {
display: block;
margin: 0 auto;
}
.form-table textarea,
.edit-post {
height: 8rem;
resize: none;
}
.form-table .submit .button {
display: block;
width: 100%;
}
.reply-mode {
font-weight: bold;
font-size: 18px;
text-align: center;
background-color: var(--table-head);
border: 1px solid var(--table-border);
padding: 8px;
}
.container > form > .form-table {
margin: 8px auto;
}
.table-wrap {
overflow-x: auto;
margin: 8px 0;
}
.data-table {
width: 100%;
background-color: var(--table-primary);
border-spacing: 0;
border: 1px solid var(--table-border);
}
.data-table tr:nth-child(2n + 1) {
background-color: var(--table-secondary);
}
.data-table th {
background-color: var(--table-head);
}
.data-table td,
.data-table th {
padding: 4px;
text-align: center;
}
.data-table .banner {
margin-top: 0;
margin-bottom: 0;
}
.box {
background-color: var(--box-color);
border-right: 1px solid var(--box-border);
border-bottom: 1px solid var(--box-border);
padding: 8px;
}
.box:target {
background-color: var(--hl-box-color);
border-right: 1px solid var(--hl-box-border);
border-bottom: 1px solid var(--hl-box-border);
}
.infobox {
margin: 8px 0;
border: 1px solid var(--table-border);
}
.infobox-head {
background-color: var(--table-head);
font-weight: bold;
padding: 4px;
}
.infobox-content {
background-color: var(--table-primary);
padding: 4px;
}
.infobox-content .post-files {
margin: 0;
}
.button {
cursor: pointer;
border-radius: 0;
color: var(--text);
background-color: var(--input-color);
border: 1px solid var(--input-border);
padding: 8px;
}
.captcha {
width: 100%;
image-rendering: pixelated;
border: 1px solid var(--input-border);
}
.main {
margin: 8px;
}
.container {
margin: 0 auto;
max-width: 720px;
}
.title {
color: var(--title-color);
font-family: var(--title-font);
text-align: center;
letter-spacing: -2px;
margin: 0;
}
.description {
font-weight: bold;
margin: 0;
}
.small {
font-size: 8pt;
font-weight: normal;
}
.center {
text-align: center;
}
.inline-block {
display: inline-block;
}
.banner {
display: block;
width: 100%;
max-width: 300px;
margin: 8px auto;
border: 1px solid var(--box-border);
}
.board-links {
padding: 2px;
}
.link-separator::after {
content: " / ";
}
.link-group::before {
content: " [ ";
}
.link-group::after {
content: " ] ";
}
.board-links::after {
content: "";
display: block;
clear: both;
}
.footer {
text-align: center;
font-size: 8pt;
}
.post {
margin-bottom: 8px;
padding: 8px;
}
.post.box {
display: inline-block;
min-width: 400px;
}
.post:last-of-type {
margin-bottom: 0;
}
.post::after {
display: block;
content: "";
clear: both;
}
.board-links a,
.pagination a,
.post-number {
text-decoration: none;
}
.post-header input[type="checkbox"] {
margin: 0;
}
.catalog-entry {
display: inline-block;
width: 200px;
height: 250px;
overflow: scroll;
margin: 4px;
padding: 8px;
}
.catalog-entry .thumb {
display: block;
max-width: 100%;
max-height: 50%;
box-shadow: 0 0 3px #000;
margin: 4px auto;
padding: 2px;
}
.catalog-entry .post-content {
margin: 8px;
}
.name {
font-weight: bold;
color: var(--name-color);
}
.tripcode {
color: var(--trip-color);
}
.capcode {
color: var(--capcode-color);
font-weight: bold;
}
.user-id {
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;
}
.post-files {
float: left;
margin: 0 8px 8px 8px;
}
.multi-files {
float: none;
}
.post-file {
display: inline-block;
vertical-align: top;
text-align: center;
font-size: 8pt;
padding: 4px;
}
.thumb {
max-width: 200px;
max-height: 200px;
}
.post-content {
font-family: inherit;
white-space: pre-wrap;
word-break: break-word;
margin: 1rem 2rem;
}
.post-content a {
color: var(--post-link-color);
}
.post-content a:hover {
color: var(--post-link-hover);
}
.quote {
text-decoration: underline;
}
.dead-quote {
color: var(--dead-quote-color);
text-decoration: line-through;
}
.greentext {
color: var(--greentext-color);
}
.orangetext {
color: var(--orangetext-color);
}
.redtext {
color: var(--redtext-color);
font-weight: bold;
}
.bluetext {
color: var(--bluetext-color);
font-weight: bold;
}
.glowtext {
text-shadow: 0 0 40px #00fe20, 0 0 2px #00fe20;
}
.uh-oh-text {
color: var(--uh-oh-text);
background-color: var(--uh-oh-color);
}
.spoiler {
color: var(--text);
background-color: var(--text);
}
.spoiler:hover {
background-color: transparent;
}
.icon {
height: 1em;
vertical-align: middle;
image-rendering: pixelated;
}
.posts-omitted {
margin-top: 0;
margin-bottom: 8px;
}
.infobox-list {
list-style-type: none;
margin: 0;
padding: 0;
}
@media only screen and (max-width: 600px) {
.thumb {
max-width: 100px;
max-height: 100px;
}
.post.box {
display: block;
min-width: unset;
}
.thread > br {
display: none;
}
.catalog-entry {
width: 140px;
height: 220px;
}
}