PostText/assets/css/post_text.css

228 lines
4 KiB
CSS
Raw Normal View History

/*
* Tags
*/
2023-05-15 01:46:35 +00:00
:root {
--light-warm-gray: #C2B3A9;
--dark-warm-gray: #A59990;
--teal: #5B90A4;
--light-blue: #8C97A8;
--dark-blue: #696F80;
--true-gray: #999999;
--highlight-green: green;
--highlight-red: red;
2023-05-20 03:50:44 +00:00
box-sizing: border-box;
2023-05-15 01:46:35 +00:00
}
*, ::before, ::after {
box-sizing: inherit;
}
body {
background-image: url('/images/background2.gif');
width: 95vmin;
2023-05-15 01:46:35 +00:00
margin: 0 auto;
font-size: calc(8px + 1vmin);
}
2023-05-20 03:50:44 +00:00
code {
background-color: black;
2023-05-20 04:34:02 +00:00
color: lime;
2023-05-20 03:50:44 +00:00
font-size: 0.75em; /* Why tho?? */
}
pre > code {
white-space: pre-wrap;
overflow-wrap: anywhere;
2023-05-20 03:50:44 +00:00
padding: 0.5em 1em;
display: inline-block;
width: 100%;
2023-05-15 01:46:35 +00:00
}
/*
* Simple classes
*/
2023-05-20 17:22:29 +00:00
.site-header {
display: flex;
flex-flow: column wrap;
gap: 1em;
2023-05-15 01:46:35 +00:00
}
2023-05-20 17:22:29 +00:00
.site-title {
text-align: center;
2023-05-20 04:34:02 +00:00
border: outset var(--light-warm-gray);
background-color: var(--light-warm-gray);
2023-05-20 17:22:29 +00:00
padding: 0.5em 0;
margin-bottom: 0;
}
.site-nav {
2023-05-15 01:46:35 +00:00
display: flex;
flex-flow: row wrap;
gap: 0.25em;
2023-05-20 04:34:02 +00:00
border: outset var(--light-warm-gray);
2023-05-15 01:46:35 +00:00
padding: 0.5em 0.25em;
background-color: var(--light-warm-gray);
2023-05-15 01:46:35 +00:00
}
.site-nav > a {
2023-05-20 04:34:02 +00:00
border: outset var(--light-blue);
2023-05-15 01:46:35 +00:00
flex: 1;
padding: 0 0.5em 0 0.5em;
background-color: var(--light-blue);
2023-05-15 01:46:35 +00:00
}
2023-05-20 17:22:29 +00:00
.site-footer {
text-align: center;
border: outset var(--light-warm-gray);
background-color: var(--light-warm-gray);
padding: 0;
margin: 1em 0;
}
2023-05-20 03:50:44 +00:00
.page-title {
text-align: center;
2023-05-20 04:34:02 +00:00
border: inset var(--dark-warm-gray);
2023-05-20 03:50:44 +00:00
padding: 0.5em 0;
background-color: var(--dark-warm-gray);
}
.page-body {
background-color: var(--light-warm-gray);
2023-05-20 04:34:02 +00:00
border: outset var(--light-warm-gray);
2023-05-20 03:50:44 +00:00
padding: 0.5em 1em;
}
2023-05-20 05:54:12 +00:00
.form-body {
background-color: var(--light-warm-gray);
border: outset var(--light-warm-gray);
padding: 0.5em 1em;
display: flex;
flex-flow: column wrap;
gap: 1em;
}
.form-field {
display: flex;
flex-flow: column wrap;
}
2023-05-20 17:22:29 +00:00
.form-field > textarea {
overflow: scroll;
resize: vertical;
}
2023-05-20 05:54:12 +00:00
.form-button {
border: outset var(--light-blue);
background-color: var(--light-blue);
2023-05-20 17:22:29 +00:00
padding: 0.5em 1.5em;
text-align: left;
2023-05-20 05:54:12 +00:00
}
.field-with-info {
2023-05-20 17:22:29 +00:00
border: dashed var(--highlight-green) 0.5em;
background-color: var(--true-gray);
padding: 1em;
}
.field-with-error {
2023-05-20 17:22:29 +00:00
border: dashed var(--highlight-red) 0.5em;
background-color: var(--true-gray);
padding: 1em;
}
/*
* Nested/layered classes
*/
.pager {
2023-05-15 01:46:35 +00:00
display: flex;
flex-direction: column;
gap: 1em;
padding: 0.5em 0;
}
.pager__nav {
display: flex;
flex-flow: row wrap;
2023-05-20 04:34:02 +00:00
border: inset var(--dark-warm-gray);
background-color: var(--dark-warm-gray);
padding: 0.5em 0.25em;
gap: 0.25em;
}
.pager__nav > a {
2023-05-20 04:34:02 +00:00
border: outset var(--light-blue);
flex: 1;
text-align: center;
background-color: var(--light-blue);
}
.pager__nav > a[rel="self"] {
2023-05-20 04:34:02 +00:00
border: inset var(--dark-blue);
background-color: var(--dark-blue);
}
.post {
background-color: var(--light-warm-gray);
2023-05-20 04:34:02 +00:00
border: outset var(--light-warm-gray);
2023-05-15 01:46:35 +00:00
}
.post__title {
2023-05-15 01:46:35 +00:00
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background-color: var(--teal);
2023-05-15 01:46:35 +00:00
margin: 0;
padding: 0.25em 0.5em 0.25em 0.75em;
align-items: center;
2023-05-20 04:34:02 +00:00
border: inset var(--teal);
2023-05-15 01:46:35 +00:00
}
.post__id {
2023-05-20 04:34:02 +00:00
border: outset var(--true-gray);
2023-05-15 01:46:35 +00:00
padding: 0.25em;
background-color: var(--true-gray);
2023-05-15 01:46:35 +00:00
}
.post__date, .post__author, .post__body {
2023-05-15 01:46:35 +00:00
margin: 1em 0.5em;
padding: 0.25em 0.5em;
}
.post--remark__date {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background-color: var(--teal);
margin: 0;
padding: 0.25em 0.5em 0.25em 0.75em;
align-items: center;
2023-05-20 04:34:02 +00:00
border: inset var(--teal);
2023-05-15 02:04:11 +00:00
}
.post__body {
background-color: var(--dark-warm-gray);
2023-05-20 04:34:02 +00:00
border: inset var(--dark-warm-gray);
2023-05-15 01:46:35 +00:00
}
.post__nav {
2023-05-15 01:46:35 +00:00
display: flex;
justify-content: flex-end;
flex-flow: row wrap;
padding: 0 1em 0.5em 1em;
gap: 0.5em;
align-items: center;
}
.post__nav > a {
2023-05-15 01:46:35 +00:00
flex: 1 0;
text-align: center;
2023-05-20 04:34:02 +00:00
border: outset var(--light-blue);
2023-05-15 01:46:35 +00:00
padding: 0.25em 0;
white-space: nowrap;
background-color: var(--light-blue);
2023-05-15 01:46:35 +00:00
}