takahe/static/css/style.css

530 lines
8.6 KiB
CSS
Raw Normal View History

2022-11-05 13:17:27 -07:00
/* Reset CSS */
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
menu {
margin: 0;
2022-11-12 22:21:52 -08:00
padding: 0;
2022-11-05 13:17:27 -07:00
}
ul[role='list'],
ol[role='list'] {
list-style: none;
}
html:focus-within {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
font-family: sans-serif;
}
a:not([class]) {
text-decoration-skip-ink: auto;
}
img,
picture {
2022-11-12 22:21:52 -08:00
display: inline-block;
2022-11-05 13:17:27 -07:00
}
input,
button,
textarea,
select {
font: inherit;
}
2022-11-12 22:21:52 -08:00
a {
color: inherit;
text-decoration: none;
}
2022-11-05 13:17:27 -07:00
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Base template styling */
:root {
2022-11-12 22:21:52 -08:00
--color-bg-main: #26323c;
--color-bg-menu: #2e3e4c;
--color-bg-box: #1a2631;
2022-11-13 15:14:38 -08:00
--color-bg-error: rgb(87, 32, 32);
2022-11-12 22:21:52 -08:00
--color-highlight: #449c8c;
--color-text-duller: #5f6983;
--color-text-dull: #99a;
--color-text-main: #fff;
2022-11-05 13:17:27 -07:00
--color-input-border: #000;
--color-input-border-active: #444b5d;
--color-button-main: #444b5d;
--color-button-main-hover: #515d7c;
--color-bg3: #444b5d;
}
body {
2022-11-12 22:21:52 -08:00
background-color: var(--color-bg-main);
color: var(--color-text-main);
font-family: "Raleway", sans-serif;
2022-11-13 15:14:38 -08:00
font-size: 16px;
2022-11-12 22:21:52 -08:00
}
main {
width: 850px;
margin: 20px auto;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
border-radius: 5px;
2022-11-05 13:17:27 -07:00
}
header {
display: flex;
}
2022-11-12 22:21:52 -08:00
header .logo {
2022-11-05 19:10:39 -07:00
font-family: "Raleway";
2022-11-12 22:21:52 -08:00
font-weight: bold;
background: var(--color-highlight);
border-radius: 5px 0 0 0;
padding: 10px 11px 9px 10px;
height: 50px;
2022-11-05 13:17:27 -07:00
font-size: 130%;
2022-11-12 22:21:52 -08:00
color: var(--color-text-main);
border-bottom: 3px solid rgba(0, 0, 0, 0);
}
header .logo:hover {
2022-11-13 15:14:38 -08:00
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
header .logo img {
2022-11-05 19:10:39 -07:00
display: inline;
vertical-align: top;
margin: 0 3px 0 0;
}
2022-11-05 13:17:27 -07:00
header menu {
flex-grow: 1;
display: flex;
list-style-type: none;
2022-11-12 22:21:52 -08:00
justify-content: flex-start;
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
header menu a {
padding: 10px 20px 4px 20px;
2022-11-05 13:17:27 -07:00
color: #eee;
2022-11-12 22:21:52 -08:00
line-height: 30px;
border-bottom: 3px solid rgba(0, 0, 0, 0);
border-right: 1px solid var(--color-bg-menu);
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
header menu a:hover {
border-bottom: 3px solid var(--color-highlight);
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
header menu .gap {
flex-grow: 1;
}
2022-11-05 13:17:27 -07:00
2022-11-12 22:21:52 -08:00
header menu a.identity {
border-right: 0;
text-align: right;
padding-right: 10px;
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
header menu a i {
margin-right: 10px;
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
header menu a img {
display: inline-block;
vertical-align: middle;
margin: 0 0 2px 8px;
height: 30px;
width: auto;
}
header menu a small {
color: var(--color-text-dull);
font-size: 70%;
}
nav {
display: flex;
height: 40px;
background: var(--color-bg-menu);
}
nav a {
2022-11-05 13:17:27 -07:00
display: block;
2022-11-12 22:21:52 -08:00
color: var(--color-text-dull);
text-transform: uppercase;
font-weight: bold;
padding: 9px 18px 9px 18px;
}
nav a.selected {
2022-11-05 13:17:27 -07:00
color: var(--color-text-main);
2022-11-12 22:21:52 -08:00
border-bottom: 3px solid var(--color-highlight);
}
nav a:hover {
color: var(--color-text-main);
}
2022-11-13 15:14:38 -08:00
/* Left-right columns */
.columns {
display: flex;
}
.left-column {
flex-grow: 1;
width: 300px;
padding: 15px;
}
.right-column {
width: 250px;
background: var(--color-bg-menu);
}
.right-column h2 {
background: var(--color-highlight);
padding: 8px 10px;
font-weight: bold;
font-size: 90%;
text-transform: uppercase;
}
/* Icon menus */
2022-11-12 22:21:52 -08:00
.icon-menu {
display: flex;
flex-wrap: wrap;
padding: 30px 0 0 30px;
}
.icon-menu>a {
margin: 0px 40px 40px 0;
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
width: 370px;
height: 100px;
line-height: 100px;
color: inherit;
2022-11-05 13:17:27 -07:00
text-decoration: none;
2022-11-12 22:21:52 -08:00
padding: 0 20px;
border: 2px solid rgba(255, 255, 255, 0);
border-radius: 3px;
2022-11-05 19:10:39 -07:00
}
2022-11-12 22:21:52 -08:00
.icon-menu>a:hover {
border: 2px solid var(--color-highlight);
2022-11-05 19:10:39 -07:00
}
2022-11-12 22:21:52 -08:00
.icon-menu>a img,
.icon-menu>a i {
2022-11-05 19:10:39 -07:00
vertical-align: middle;
margin: 0 10px 3px 0;
2022-11-12 22:21:52 -08:00
height: 50px;
width: auto;
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
.icon-menu>a i {
display: inline-block;
text-align: center;
width: 50px;
line-height: 50px;
font-size: 200%;
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
.handle {
vertical-align: middle;
display: inline-block;
line-height: normal;
2022-11-05 13:17:27 -07:00
}
2022-11-12 22:21:52 -08:00
.handle small {
display: block;
2022-11-05 19:10:39 -07:00
color: var(--color-text-dull);
}
2022-11-05 13:17:27 -07:00
/* Forms */
2022-11-13 15:14:38 -08:00
form {
padding: 20px 40px 20px 30px;
2022-11-05 13:17:27 -07:00
}
2022-11-13 15:41:48 -08:00
.right-column form,
form.inline {
2022-11-13 15:14:38 -08:00
padding: 0;
}
2022-11-13 15:41:48 -08:00
form.follow {
float: right;
margin: 20px 20px 0 0;
font-size: 16px;
}
2022-11-13 15:14:38 -08:00
form h1 {
margin: 0 0 10px 0;
}
form p {
color: var(--color-text-main);
margin: 10px 0 15px 0;
}
form .field {
margin: 25px 0 25px 0;
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
padding: 10px 10px;
}
.right-column form .field {
margin: 0;
background: none;
box-shadow: none;
padding: 0;
2022-11-05 13:17:27 -07:00
}
form label {
2022-11-13 15:14:38 -08:00
display: block;
2022-11-05 13:17:27 -07:00
text-transform: uppercase;
2022-11-13 15:14:38 -08:00
font-size: 100%;
font-weight: bold;
2022-11-05 13:17:27 -07:00
}
2022-11-13 15:14:38 -08:00
form label small {
2022-11-05 13:17:27 -07:00
font-size: 80%;
2022-11-13 15:14:38 -08:00
margin-left: 5px;
color: var(--color-text-dull);
2022-11-05 13:17:27 -07:00
}
2022-11-13 15:14:38 -08:00
.right-column form label {
margin: 5px 10px 5px 10px;
}
form .help {
color: var(--color-text-dull);
font-size: 90%;
margin: 2px 0 6px 0;
}
form .errorlist {
list-style-type: none;
margin: 0;
padding: 0;
}
form .errorlist li {
color: var(--color-text-main);
background: var(--color-bg-error);
border-radius: 3px;
margin: 5px 0 8px 0;
padding: 3px 7px;
}
form .errorlist li::before {
content: "\f071";
font: var(--fa-font-solid);
margin-right: 7px;
}
form .hidden {
display: none;
2022-11-05 13:17:27 -07:00
}
form input,
2022-11-13 15:14:38 -08:00
form select,
form textarea {
2022-11-05 13:17:27 -07:00
width: 100%;
2022-11-13 15:14:38 -08:00
padding: 5px 7px;
2022-11-12 22:21:52 -08:00
background: var(--color-bg-main);
2022-11-05 13:17:27 -07:00
border: 1px solid var(--color-input-border);
border-radius: 3px;
color: var(--color-text-main);
}
2022-11-13 15:14:38 -08:00
.right-column form.compose input,
.right-column form.compose textarea {
margin: 0 0 10px 0;
border: 0;
font-size: 95%;
border-radius: 0;
background-color: var(--color-bg-box);
}
.right-column form.compose textarea {
height: 150px;
}
form input:focus,
form select:focus,
form textarea:focus {
2022-11-05 13:17:27 -07:00
outline: none;
border: 1px solid var(--color-input-border-active);
}
form input[type=submit] {
width: 100%;
padding: 4px 6px;
margin: 0 0 10px;
background: var(--color-button-main);
border: 0;
border-radius: 3px;
color: var(--color-text-main);
cursor: pointer;
}
form input[type=submit]:hover {
background: var(--color-button-main-hover);
}
2022-11-05 17:00:01 -07:00
2022-11-13 15:14:38 -08:00
form .buttons {
text-align: right;
margin: 25px 0 15px 0;
}
.right-column form .buttons {
margin: 5px 10px 5px 0;
}
form button,
form .button {
padding: 5px 10px;
margin: 0 0 0 5px;
border-radius: 5px;
border: 3px solid rgba(255, 255, 255, 0);
cursor: pointer;
font-weight: bold;
background-color: var(--color-highlight);
color: var(--color-text-main);
display: inline-block;
}
form button.toggle,
form .button.toggle {
background: var(--color-bg-main);
}
form button.toggle.enabled,
form .button.toggle.enabled {
background: var(--color-highlight);
}
form button:hover,
form .button:hover {
border: 3px solid rgba(255, 255, 255, 0.3);
}
.right-column form button,
.right-column form .button {
padding: 2px 6px;
}
2022-11-05 17:00:01 -07:00
/* Identities */
h1.identity {
2022-11-13 15:41:48 -08:00
margin: 20px 0 20px 20px;
2022-11-05 17:00:01 -07:00
}
h1.identity .icon {
width: 80px;
height: 80px;
float: left;
margin: 0 20px 0 0;
}
h1.identity small {
display: block;
font-size: 80%;
font-weight: normal;
color: var(--color-text-dull);
margin: -10px 0 0 0;
}
.system-note {
2022-11-12 22:21:52 -08:00
background: var(--color-bg-menu);
2022-11-05 17:00:01 -07:00
color: var(--color-text-dull);
border-radius: 3px;
padding: 5px 8px;
2022-11-13 15:41:48 -08:00
margin: 20px;
2022-11-05 17:00:01 -07:00
}
.system-note a {
2022-11-13 15:41:48 -08:00
text-decoration: underline;
2022-11-05 17:00:01 -07:00
}
2022-11-11 21:02:43 -08:00
/* Posts */
.post {
margin-bottom: 20px;
overflow: hidden;
}
2022-11-13 15:14:38 -08:00
.left-column .post {
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
padding: 10px;
}
2022-11-11 21:02:43 -08:00
.post .icon {
height: 48px;
width: auto;
float: left;
}
2022-11-13 15:14:38 -08:00
.post .handle {
display: block;
2022-11-13 15:29:40 -08:00
padding: 7px 0 0 64px;
2022-11-11 21:02:43 -08:00
}
.post time {
display: block;
2022-11-13 15:14:38 -08:00
float: right;
2022-11-11 21:02:43 -08:00
padding-left: 64px;
color: var(--color-text-duller);
}
.post .content {
padding-left: 64px;
}
2022-11-13 15:29:40 -08:00
.post .content p {
margin: 12px 0 4px 0;
}