takahe/static/css/style.css

1778 lines
30 KiB
CSS
Raw Normal View History

2022-11-05 20:17:27 +00:00
/* Reset CSS */
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
2022-11-18 00:43:00 +00:00
fieldset,
2022-11-05 20:17:27 +00:00
menu {
margin: 0;
2022-11-13 06:21:52 +00:00
padding: 0;
2022-11-05 20:17:27 +00: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-13 06:21:52 +00:00
display: inline-block;
2022-11-05 20:17:27 +00:00
}
input,
button,
textarea,
select {
font: inherit;
}
2022-11-13 06:21:52 +00:00
a {
color: inherit;
text-decoration: none;
}
p a,
td a {
text-decoration: underline;
}
2022-11-05 20:17:27 +00: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-13 06:21:52 +00:00
--color-bg-main: #26323c;
--color-bg-menu: #2e3e4c;
--color-bg-box: #1a2631;
2022-11-13 23:14:38 +00:00
--color-bg-error: rgb(87, 32, 32);
2022-11-13 06:21:52 +00:00
--color-highlight: #449c8c;
2022-11-17 04:12:28 +00:00
--color-delete: #8b2821;
2022-11-13 06:21:52 +00:00
--color-text-duller: #5f6983;
--color-text-dull: #99a;
--color-text-main: #fff;
2022-11-29 05:14:52 +00:00
--color-text-link: rgb(176, 194, 206);
2022-11-13 06:21:52 +00:00
2022-11-05 20:17:27 +00:00
--color-input-border: #000;
--color-input-border-active: #444b5d;
--color-button-main: #444b5d;
--color-button-main-hover: #515d7c;
--color-button-disabled: #7c9c97;
--sm-header-height: 50px;
--sm-sidebar-width: 50px;
--md-sidebar-width: 250px;
--md-header-height: 50px;
2022-11-05 20:17:27 +00:00
}
body {
2022-11-13 06:21:52 +00:00
background-color: var(--color-bg-main);
color: var(--color-text-main);
font-family: "Raleway", sans-serif;
2022-11-13 23:14:38 +00:00
font-size: 16px;
min-height: 100%;
2022-11-13 06:21:52 +00:00
}
main {
2022-11-16 13:53:39 +00:00
width: 900px;
2022-11-13 06:21:52 +00:00
margin: 20px auto;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
border-radius: 5px;
2022-11-05 20:17:27 +00:00
}
.no-sidebar main {
box-shadow: none;
max-width: 800px;
}
footer {
2022-12-31 21:12:39 +00:00
max-width: 800px;
margin: 0 auto;
padding: 0 0 10px 0;
color: var(--color-text-duller);
text-align: center;
font-size: 90%;
}
2022-12-31 21:12:39 +00:00
footer a {
border-bottom: 1px solid var(--color-text-duller);
margin-right: 5px;
}
2022-11-05 20:17:27 +00:00
header {
display: flex;
height: 50px;
2022-11-05 20:17:27 +00:00
}
.no-sidebar header {
justify-content: center;
}
2022-11-13 06:21:52 +00:00
header .logo {
display: inline-block;
2022-11-06 02:10:39 +00:00
font-family: "Raleway";
2022-11-13 06:21:52 +00:00
font-weight: bold;
background: var(--color-highlight);
border-radius: 5px 0 0 0;
2022-11-18 02:16:34 +00:00
text-transform: lowercase;
2022-11-13 06:21:52 +00:00
padding: 10px 11px 9px 10px;
height: 50px;
2022-11-05 20:17:27 +00:00
font-size: 130%;
2022-11-13 06:21:52 +00:00
color: var(--color-text-main);
border-bottom: 3px solid rgba(0, 0, 0, 0);
z-index: 10;
overflow: hidden;
white-space: nowrap;
2022-11-13 06:21:52 +00:00
}
.no-sidebar header .logo {
border-radius: 5px;
}
2022-11-13 06:21:52 +00:00
header .logo:hover {
2022-11-13 23:14:38 +00:00
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
2022-11-05 20:17:27 +00:00
}
2022-11-13 06:21:52 +00:00
header .logo img {
2022-11-06 02:10:39 +00:00
display: inline;
vertical-align: top;
margin: 0 3px 0 0;
}
2022-11-05 20:17:27 +00:00
header menu {
flex-grow: 1;
display: flex;
list-style-type: none;
2022-11-13 06:21:52 +00:00
justify-content: flex-start;
z-index: 10;
2022-11-05 20:17:27 +00:00
}
.no-sidebar header menu {
flex-grow: 0;
}
2022-11-13 06:21:52 +00:00
header menu a {
padding: 10px 20px 4px 20px;
2022-11-05 20:17:27 +00:00
color: #eee;
2022-11-13 06:21:52 +00:00
line-height: 30px;
border-bottom: 3px solid rgba(0, 0, 0, 0);
}
.no-sidebar header menu a {
margin: 0 10px;
}
body.has-banner header menu a {
background: rgba(0, 0, 0, 0.5);
border-right: 0;
2022-11-05 20:17:27 +00:00
}
2022-11-17 04:12:28 +00:00
header menu a:hover,
header menu a.selected {
2022-11-13 06:21:52 +00:00
border-bottom: 3px solid var(--color-highlight);
2022-11-05 20:17:27 +00:00
}
.no-sidebar header menu a:hover:not(.logo) {
border-bottom: 3px solid rgba(0, 0, 0, 0);
background-color: var(--color-bg-menu);
border-radius: 5px;
}
header menu a i {
font-size: 24px;
display: inline-block;
vertical-align: middle;
}
header menu a.htmx-request i {
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-duration: var(--fa-animation-duration, 2s);
animation-duration: var(--fa-animation-duration, 2s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
2022-11-13 06:21:52 +00:00
header menu .gap {
flex-grow: 1;
}
2022-11-05 20:17:27 +00:00
2022-11-13 06:21:52 +00:00
header menu a.identity {
border-right: 0;
text-align: right;
padding-right: 10px;
background: var(--color-bg-menu) !important;
2022-11-18 00:43:00 +00:00
border-radius: 0 5px 0 0;
width: 250px;
2022-11-05 20:17:27 +00:00
}
2022-11-18 02:16:34 +00:00
header menu a.identity i {
display: inline-block;
vertical-align: middle;
padding: 0 7px 2px 0;
}
2022-12-30 08:01:03 +00:00
header menu a.identity a.view-profile {
display: inline-block;
margin-right: 20px;
}
2022-11-13 06:21:52 +00: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 {
2022-11-18 00:43:00 +00:00
padding: 10px 10px 20px 0;
}
nav h3 {
text-transform: uppercase;
font-weight: bold;
font-size: 90%;
padding: 15px 18px 7px 16px;
}
nav h3:first-child {
padding-top: 0;
2022-11-13 06:21:52 +00:00
}
nav a {
2022-11-05 20:17:27 +00:00
display: block;
2022-11-13 06:21:52 +00:00
color: var(--color-text-dull);
2022-11-18 00:43:00 +00:00
padding: 7px 18px 7px 13px;
border-left: 3px solid transparent;
2022-11-13 06:21:52 +00:00
}
nav a.selected {
2022-11-05 20:17:27 +00:00
color: var(--color-text-main);
2022-11-18 00:43:00 +00:00
background: var(--color-bg-main);
border-radius: 0 5px 5px 0;
2022-11-13 06:21:52 +00:00
}
nav a:hover {
color: var(--color-text-main);
2022-11-18 00:43:00 +00:00
border-left: 3px solid var(--color-highlight);
}
nav a.selected:hover {
border-left: 3px solid transparent;
}
2022-12-20 09:01:54 +00:00
nav a.danger {
color: var(--color-text-duller);
}
nav a.danger:hover {
color: var(--color-text-dull);
}
2022-11-18 00:43:00 +00:00
nav a i {
width: 20px;
text-align: center;
margin-right: 4px;
display: inline-block;
2022-11-13 06:21:52 +00:00
}
2022-11-13 23:14:38 +00:00
/* Left-right columns */
.columns {
display: flex;
align-items: stretch;
justify-content: center;
2022-11-13 23:14:38 +00:00
}
.left-column {
flex-grow: 1;
width: 300px;
max-width: 700px;
2022-11-13 23:14:38 +00:00
padding: 15px;
}
2022-12-14 19:46:56 +00:00
.left-column h1 {
margin: 0 0 10px 0;
}
2022-12-17 02:42:48 +00:00
.left-column h1 small {
font-size: 60%;
color: var(--color-text-dull);
display: block;
margin: -10px 0 0 0;
padding: 0;
}
2022-11-18 01:52:00 +00:00
.left-column h2 {
margin: 10px 0 10px 0;
}
2022-12-14 19:46:56 +00:00
.left-column h3 {
margin: 10px 0 0 0;
}
2022-11-13 23:14:38 +00:00
.right-column {
width: var(--md-sidebar-width);
2022-11-13 23:14:38 +00:00
background: var(--color-bg-menu);
2022-11-18 00:43:00 +00:00
border-radius: 0 0 5px 0;
2022-11-13 23:14:38 +00:00
}
.right-column h2 {
background: var(--color-highlight);
padding: 8px 10px;
font-weight: bold;
font-size: 90%;
text-transform: uppercase;
}
2022-12-31 21:12:39 +00:00
.right-column footer {
padding: 0 10px 20px 10px;
font-size: 90%;
text-align: left;
}
.right-column footer a {}
2022-12-17 03:04:28 +00:00
img.emoji {
height: 0.8em;
}
/* Generic markdown styling and sections */
.no-sidebar section {
max-width: 700px;
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
margin: 25px auto 45px auto;
padding: 5px 15px;
}
2022-12-31 21:12:39 +00:00
.no-sidebar section:last-of-type {
margin-bottom: 10px;
}
.no-sidebar section.shell {
background: none;
box-shadow: none;
padding: 0;
}
.no-sidebar #main-content>h1 {
max-width: 700px;
margin: 25px auto 5px auto;
font-weight: bold;
font-size: 120%;
text-transform: uppercase;
color: var(--color-text-main);
}
.no-sidebar h1+section {
margin-top: 0;
}
.markdown .banner {
width: calc(100% + 30px);
height: auto;
object-fit: cover;
margin: -5px -15px 10px -15px;
border-radius: 5px 0 0 0;
display: block;
}
2022-12-17 04:27:55 +00:00
.markdown p {
margin: 4px 0 10px 0;
}
.markdown li {
margin: 4px 0 10px 0;
}
2022-12-24 05:34:21 +00:00
p.authorization-code {
margin: 10px 0;
font-size: 140%;
}
2022-11-13 23:14:38 +00:00
/* Icon menus */
2022-11-18 02:16:34 +00:00
.icon-menu .option {
2022-11-18 00:43:00 +00:00
display: block;
margin: 0 0 20px 0;
2022-11-13 06:21:52 +00:00
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
color: inherit;
2022-11-05 20:17:27 +00:00
text-decoration: none;
2022-11-18 00:43:00 +00:00
padding: 10px 20px;
2022-11-13 06:21:52 +00:00
border: 2px solid rgba(255, 255, 255, 0);
border-radius: 3px;
2022-12-24 05:52:20 +00:00
overflow: hidden;
2022-11-06 02:10:39 +00:00
}
2022-11-18 02:16:34 +00:00
.icon-menu .option:hover {
2022-11-13 06:21:52 +00:00
border: 2px solid var(--color-highlight);
2022-11-06 02:10:39 +00:00
}
2022-11-18 02:16:34 +00:00
.icon-menu .option.empty {
color: var(--color-text-dull);
}
.icon-menu .option-actions {
text-align: right;
}
2022-12-20 08:51:53 +00:00
.icon-menu .option.empty:hover,
.icon-menu .option.static:hover {
2022-11-18 02:16:34 +00:00
border: 2px solid rgba(255, 255, 255, 0);
}
.icon-menu .option img,
.icon-menu .option i {
2022-11-06 02:10:39 +00:00
vertical-align: middle;
margin: 0 10px 3px 0;
2022-11-13 06:21:52 +00:00
height: 50px;
width: auto;
2022-11-05 20:17:27 +00:00
}
2022-12-15 07:50:54 +00:00
.icon-menu .option img.emoji {
2022-12-17 03:04:28 +00:00
height: 20px;
2022-12-15 07:50:54 +00:00
}
2022-11-18 02:16:34 +00:00
.icon-menu .option i {
2022-11-13 06:21:52 +00:00
display: inline-block;
text-align: center;
width: 50px;
line-height: 50px;
font-size: 200%;
2022-11-05 20:17:27 +00:00
}
.icon-menu .option.hashtags {
display: flex;
align-items: center;
}
.icon-menu .option.hashtags .tag {
min-width: 0;
text-overflow: ellipsis;
overflow: hidden;
flex-grow: 1;
}
.icon-menu .option.hashtags .count {
text-align: right;
2022-11-18 03:04:01 +00:00
}
.icon-menu .option .pill {
display: inline-block;
padding: 2px 10px;
background: var(--color-text-duller);
border-radius: 20px;
2022-11-18 03:04:01 +00:00
margin: 0 5px 0 5px;
font-size: 70%;
2022-11-18 03:04:01 +00:00
}
2022-11-26 00:52:43 +00:00
.icon-menu .option .pill.bad {
background: var(--color-delete);
}
2022-12-17 00:39:10 +00:00
.icon-menu .option time {
color: var(--color-text-duller);
margin: 14px 0 0 0;
}
.icon-menu .option button {
margin-top: 8px;
margin-right: 20px;
}
2022-12-26 22:25:54 +00:00
.icon-menu .option button.right {
float: right;
margin-right: 0;
}
2022-11-13 06:21:52 +00:00
.handle {
vertical-align: middle;
display: inline-block;
line-height: normal;
2022-11-05 20:17:27 +00:00
}
2022-11-13 06:21:52 +00:00
.handle small {
display: block;
2022-11-06 02:10:39 +00:00
color: var(--color-text-dull);
}
2022-11-05 20:17:27 +00:00
/* Forms */
.no-sidebar form {
max-width: 500px;
margin: 40px auto;
}
2022-11-18 00:43:00 +00:00
fieldset {
border: 0;
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
margin: 25px 0 45px 0;
padding: 5px 15px;
}
fieldset legend {
position: relative;
top: -15px;
left: -15px;
font-weight: bold;
text-transform: uppercase;
color: var(--color-text-dull);
2022-11-05 20:17:27 +00:00
}
2022-11-13 23:41:48 +00:00
.right-column form,
form.inline {
2022-11-13 23:14:38 +00:00
padding: 0;
margin: 0;
2022-12-31 21:12:39 +00:00
display: inline;
2022-11-13 23:14:38 +00:00
}
2022-12-30 08:01:03 +00:00
div.follow-profile {
2022-11-13 23:41:48 +00:00
float: right;
2022-11-18 01:52:00 +00:00
margin: 20px 0 0 0;
2022-11-13 23:41:48 +00:00
font-size: 16px;
2022-11-18 03:04:01 +00:00
text-align: center;
}
.follow-profile.has-reverse {
2022-11-18 03:04:01 +00:00
margin-top: 0;
}
.follow-profile .reverse-follow {
2022-11-18 03:04:01 +00:00
display: block;
margin: 0 0 5px 0;
}
2022-12-30 08:01:03 +00:00
div.follow-profile button,
div.follow-profile .button {
2022-11-18 03:04:01 +00:00
margin: 0;
2022-11-13 23:41:48 +00:00
}
2022-12-30 08:01:03 +00:00
div.follow-profile .actions {
/* display: flex; */
position: relative;
justify-content: space-between;
/* padding: 8px 0 0 0; */
align-items: center;
align-content: center;
}
div.follow-profile .actions a {
border-radius: 4px;
min-width: 40px;
text-align: center;
cursor: pointer;
}
div.follow-profile .actions menu {
display: none;
background-color: var(--color-bg-menu);
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
position: absolute;
right: 0;
top: 43px;
}
2022-12-30 08:01:03 +00:00
div.follow-profile .actions menu.enabled {
display: block;
min-width: 160px;
z-index: 10;
}
div.follow-profile .actions menu a {
text-align: left;
display: block;
font-size: 15px;
padding: 4px 10px;
color: var(--color-text-dull);
}
.follow-profile .actions menu button {
background: none !important;
border: none;
cursor: pointer;
text-align: left;
display: block;
font-size: 15px;
padding: 4px 10px;
color: var(--color-text-dull);
}
.follow-profile .actions menu button i {
margin-right: 4px;
width: 16px;
}
.follow-profile .actions button:hover {
color: var(--color-text-main);
}
.follow-profile .actions menu a i {
2022-12-30 08:01:03 +00:00
margin-right: 4px;
width: 16px;
}
div.follow-profile .actions a:hover {
color: var(--color-text-main);
}
div.follow-profile .actions a.active {
color: var(--color-highlight);
}
form.inline-menu {
margin: 0px;
2022-12-31 21:12:39 +00:00
display: inline;
2022-12-30 08:01:03 +00:00
}
form.follow {
display: inline;
}
form.search {
display: flex;
margin: 0 0 20px 0;
}
2022-11-13 23:14:38 +00:00
form h1 {
margin: 0 0 10px 0;
}
form p {
color: var(--color-text-main);
margin: 10px 0 15px 0;
}
form .field {
2022-11-18 00:43:00 +00:00
margin: 0 0 25px 0;
display: flex;
}
form .field:last-of-type {
margin-bottom: 10px;
}
form .field .label-input {
flex-grow: 1;
2022-11-13 23:14:38 +00:00
}
2022-11-29 04:41:36 +00:00
form .field.stats {
width: 100%;
}
2022-11-29 05:14:52 +00:00
2022-11-29 04:41:36 +00:00
form .field.stats table {
width: 50%;
}
form .field.stats table tr th {
color: var(--color-text-main);
}
form .field.stats table tbody td {
color: var(--color-text-dull);
text-align: center;
}
2022-11-13 23:14:38 +00:00
.right-column form .field {
margin: 0;
background: none;
box-shadow: none;
padding: 0;
2022-11-05 20:17:27 +00:00
}
form label {
2022-11-13 23:14:38 +00:00
display: block;
2022-11-05 20:17:27 +00:00
text-transform: uppercase;
2022-11-13 23:14:38 +00:00
font-size: 100%;
font-weight: bold;
2022-11-18 00:43:00 +00:00
margin: 0 0 5px 0;
2022-11-05 20:17:27 +00:00
}
2022-11-13 23:14:38 +00:00
form label small {
2022-11-05 20:17:27 +00:00
font-size: 80%;
2022-11-13 23:14:38 +00:00
margin-left: 5px;
color: var(--color-text-dull);
2022-11-05 20:17:27 +00:00
}
2022-11-13 23:14:38 +00:00
.right-column form label {
margin: 5px 10px 5px 10px;
}
form .help {
color: var(--color-text-dull);
font-size: 90%;
2022-11-18 00:43:00 +00:00
margin: -5px 0 5px 0;
2022-11-13 23:14:38 +00:00
}
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 20:17:27 +00:00
}
form input,
2022-11-13 23:14:38 +00:00
form select,
form textarea {
2022-11-05 20:17:27 +00:00
width: 100%;
2022-11-13 23:14:38 +00:00
padding: 5px 7px;
2022-11-13 06:21:52 +00:00
background: var(--color-bg-main);
2022-11-05 20:17:27 +00:00
border: 1px solid var(--color-input-border);
border-radius: 3px;
color: var(--color-text-main);
}
form .clear {
color: var(--color-text-main);
font-size: 90%;
margin: 5px 0 5px 0;
}
form .clear input {
display: inline;
width: 32px;
}
2022-12-31 21:12:39 +00:00
.right-column form.compose .buttons {
margin-bottom: 20px;
}
2022-11-13 23:14:38 +00: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 20:17:27 +00: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-06 00:00:01 +00:00
2022-11-18 00:43:00 +00:00
form img.preview {
max-height: 100%;
max-width: 100px;
margin: 0 0 0 20px;
align-self: center;
}
2022-12-02 01:46:49 +00:00
form .uploaded-image {
margin: 0 0 10px 0;
overflow: hidden;
}
form .uploaded-image img {
max-width: 200px;
max-height: 200px;
float: left;
}
form .uploaded-image p {
margin-left: 220px;
}
form .uploaded-image .buttons {
margin-left: 220px;
}
2022-11-13 23:14:38 +00:00
form .buttons {
2022-12-17 02:42:48 +00:00
clear: both;
2022-11-13 23:14:38 +00:00
text-align: right;
2022-11-18 00:43:00 +00:00
margin: -20px 0 15px 0;
2022-11-13 23:14:38 +00:00
}
2022-12-17 02:42:48 +00:00
form .buttons:nth-of-type(2) {
padding-top: 15px;
}
2022-12-04 17:46:41 +00:00
form p+.buttons,
form fieldset .buttons {
margin-top: 0;
}
2022-12-02 01:46:49 +00:00
form .button.add-image {
margin: 10px 0 10px 0;
}
2022-12-04 17:46:41 +00:00
form legend+.button.add-image {
margin-top: 0px;
}
2022-12-02 01:46:49 +00:00
form progress {
display: none;
width: 100%;
}
2022-11-13 23:14:38 +00:00
.right-column form .buttons {
margin: 5px 10px 5px 0;
}
2022-11-22 15:57:40 +00:00
button,
.button {
2022-11-13 23:14:38 +00:00
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;
}
2022-11-22 15:57:40 +00:00
button.delete,
2022-12-17 21:45:31 +00:00
.button.delete,
button.danger,
.button.danger {
2022-11-17 04:12:28 +00:00
background: var(--color-delete);
}
button.destructive:hover,
.button.destructive:hover {
background: var(--color-delete);
}
2022-11-22 15:57:40 +00:00
button.secondary,
.button.secondary {
2022-11-17 15:21:42 +00:00
background: var(--color-bg-menu);
}
2022-11-22 15:57:40 +00:00
button.toggle,
.button.toggle {
2022-11-13 23:14:38 +00:00
background: var(--color-bg-main);
}
button[disabled],
.button[disabled] {
background: var(--color-button-disabled);
}
2022-11-22 15:57:40 +00:00
button.left,
.button.left {
2022-11-18 00:43:00 +00:00
float: left;
margin: 0 5px 0 0;
}
2022-11-22 15:57:40 +00:00
button.toggle.enabled,
.button.toggle.enabled {
2022-11-13 23:14:38 +00:00
background: var(--color-highlight);
}
2022-11-22 15:57:40 +00:00
button:hover,
.button:hover {
2022-11-13 23:14:38 +00:00
border: 3px solid rgba(255, 255, 255, 0.3);
}
button.htmx-request,
.button.htmx-request {
background: var(--color-button-disabled);
}
button.htmx-request::before,
.button.htmx-request::before {
display: inline-block;
content: "\f2f1";
font: var(--fa-font-solid);
margin-right: 8px;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-duration: var(--fa-animation-duration, 2s);
animation-duration: var(--fa-animation-duration, 2s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
2022-11-22 15:57:40 +00:00
.right-column button,
.right-column .button {
2022-11-13 23:14:38 +00:00
padding: 2px 6px;
}
form .field.multi-option {
margin-bottom: 10px;
}
form .field.multi-option {
margin-bottom: 10px;
}
form .option.option-row {
margin: 0px 0px 5px 0px;
}
.option-row .right {
float: right;
}
form .option-row .option-field {
vertical-align: middle;
display: inline-block;
line-height: normal;
width: 40%;
min-width: 30px;
padding-left: 0px;
padding-right: 7px;
}
form .option-row .right button {
vertical-align: middle;
margin-top: 0px;
margin-right: 5px;
}
2022-11-13 23:14:38 +00:00
/* Logged out homepage */
.about p {
margin: 0 0 15px 0;
}
.about img.banner {
width: calc(100% + 30px);
height: auto;
object-fit: cover;
margin: -65px -15px 0 -15px;
2022-11-19 20:38:25 +00:00
border-radius: 5px 0 0 0;
display: block;
}
2022-11-06 00:00:01 +00:00
/* Identities */
h1.identity {
2022-11-18 01:52:00 +00:00
margin: 0 0 20px 0;
2022-11-06 00:00:01 +00:00
}
2022-11-17 15:21:42 +00:00
h1.identity .banner {
2022-11-18 01:52:00 +00:00
width: 100%;
height: 200px;
object-fit: cover;
2022-11-17 15:21:42 +00:00
display: block;
width: calc(100% + 30px);
margin: -65px -15px 20px -15px;
2022-11-19 20:38:25 +00:00
border-radius: 5px 0 0 0;
2022-11-17 15:21:42 +00:00
}
2022-11-06 00:00:01 +00:00
h1.identity .icon {
width: 80px;
height: 80px;
float: left;
margin: 0 20px 0 0;
}
2022-12-15 07:50:54 +00:00
h1.identity .emoji {
height: 22px;
}
2022-11-06 00:00:01 +00:00
h1.identity small {
display: block;
2022-11-19 20:38:25 +00:00
font-size: 60%;
2022-11-06 00:00:01 +00:00
font-weight: normal;
color: var(--color-text-dull);
2022-11-19 20:38:25 +00:00
margin: -5px 0 0 0;
2022-11-06 00:00:01 +00:00
}
2022-11-19 00:24:43 +00:00
.bio {
margin: 0 0 20px 0;
}
2022-12-15 07:50:54 +00:00
.bio .emoji {
height: 22px;
}
.bio p {
margin: 0 0 10px 0;
}
.identity-metadata .metadata-pair {
display: block;
margin: 0px 0 10px 0;
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
color: inherit;
text-decoration: none;
padding: 10px 20px;
border: 2px solid rgba(255, 255, 255, 0);
border-radius: 10px;
overflow: hidden;
}
.identity-metadata .metadata-pair .metadata-name {
display: inline-block;
min-width: 80px;
margin-right: 15px;
text-align: right;
color: var(--color-text-dull);
}
.identity-metadata .metadata-pair .metadata-name::after {
padding-left: 3px;
color: var(--color-text-dull);
}
2022-11-06 00:00:01 +00:00
.system-note {
2022-11-13 06:21:52 +00:00
background: var(--color-bg-menu);
2022-11-06 00:00:01 +00:00
color: var(--color-text-dull);
border-radius: 3px;
padding: 5px 8px;
2022-11-18 01:52:00 +00:00
margin: 15px 0;
2022-11-06 00:00:01 +00:00
}
.system-note a {
2022-11-13 23:41:48 +00:00
text-decoration: underline;
2022-11-06 00:00:01 +00:00
}
2022-11-12 05:02:43 +00:00
table.metadata {
margin: -10px 0 0 0;
2022-12-17 02:42:48 +00:00
text-align: left;
}
table.metadata td {
padding: 0;
}
2022-12-17 02:42:48 +00:00
table.metadata th {
padding: 0 10px 0 0;
font-weight: bold;
}
2022-12-17 21:45:31 +00:00
table.buttons {
margin: -10px 0 10px 0;
text-align: left;
}
table.buttons th {
padding: 5px 20px 5px 0;
text-align: center;
}
table.buttons th button {
width: 100%;
}
.stats {
margin: 0 0 20px 0;
}
.stats ul {
padding: 0;
list-style: none;
display: flex;
justify-content: start;
gap: 1em;
}
2022-12-15 07:50:54 +00:00
table.metadata td .emoji {
height: 22px;
}
/* Timelines */
2022-11-29 04:41:36 +00:00
.left-column .timeline-name {
margin: 0 0 10px 0;
color: var(--color-text-main);
font-size: 130%;
}
.left-column .timeline-name i {
margin-right: 10px
}
.view-options {
2022-12-21 20:36:10 +00:00
margin: 0 0 10px 0px;
}
.view-options.follows {
margin: 0 0 20px 0px;
}
.view-options a {
display: inline-block;
margin: 0 10px 5px 0;
padding: 4px 12px;
color: var(--color-text-duller);
background: var(--color-bg-box);
border-radius: 3px;
}
.view-options a:hover {
color: var(--color-text-dull);
}
.view-options a.selected {
color: var(--color-text-highlight);
}
.view-options .fa-solid {
min-width: 16px;
}
/* Identity banner */
.identity-banner {
display: flex;
align-items: center;
flex-grow: 1;
min-width: 0;
}
.identity-banner .handle {
display: block;
padding: 0 10px;
vertical-align: middle;
min-width: 0;
}
.identity-banner .handle .link,
.identity-banner .handle .small {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: block;
}
.identity-banner .avatar-link {
2022-12-26 22:25:54 +00:00
line-height: 0;
/* Fixes a bit of extra padding on the bottom of the link. */
}
2022-12-30 08:01:03 +00:00
2022-11-12 05:02:43 +00:00
/* Posts */
.post {
margin-bottom: 20px;
background: var(--color-bg-box);
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
padding: 14px;
2022-11-12 05:02:43 +00:00
}
2022-11-25 23:34:45 +00:00
.post.mini {
font-size: 14px;
}
.post.reply {
margin-left: 32px;
2022-11-25 23:34:45 +00:00
}
.post.user {
overflow: hidden;
}
form .post {
2022-11-25 23:34:45 +00:00
background-color: var(--color-bg-main);
}
2022-11-12 05:02:43 +00:00
.post .icon {
height: 48px;
width: auto;
}
2022-11-25 23:34:45 +00:00
.post.mini .icon {
height: 28px;
width: auto;
}
2022-12-15 07:50:54 +00:00
.post .emoji {
2022-12-17 20:31:52 +00:00
height: 18px;
2022-12-15 07:50:54 +00:00
}
.post .post-banner {
display: flex;
align-items: center;
2022-11-25 23:34:45 +00:00
}
2022-11-12 05:02:43 +00:00
.post time {
display: block;
color: var(--color-text-duller);
2022-11-24 22:17:32 +00:00
width: 65px;
text-align: center;
background-color: var(--color-bg-main);
border-radius: 3px;
2022-11-24 22:17:32 +00:00
padding: 3px 3px;
cursor: pointer;
2022-11-12 05:02:43 +00:00
}
2022-11-16 13:53:39 +00:00
.post time i {
margin-right: 3px;
}
2022-11-16 01:50:09 +00:00
.post .summary {
2022-12-27 17:55:16 +00:00
margin: 12px 0 4px 58px;
2022-11-16 01:50:09 +00:00
padding: 3px 6px;
border-radius: 3px;
background: var(--color-bg-menu);
cursor: pointer;
}
.post .summary::before {
display: block;
font-weight: bold;
float: right;
content: "SHOW";
font-size: 80%;
padding: 2px 2px 2px 10px;
}
.post .summary.enabled::before {
content: "HIDE";
}
2022-11-27 18:09:46 +00:00
.post .edited {
font-weight: lighter;
color: var(--color-text-duller);
2022-12-27 17:55:16 +00:00
margin-left: 58px;
2022-11-27 18:09:46 +00:00
}
2022-12-22 02:40:46 +00:00
.post .content {
2022-12-27 17:55:16 +00:00
margin-left: 58px;
2022-12-22 02:40:46 +00:00
}
.post.mini .content,
.post.mini .edited {
margin-left: 0;
2022-11-25 23:34:45 +00:00
}
2022-11-16 01:50:09 +00:00
.post .content.hidden {
display: none;
2022-11-12 05:02:43 +00:00
}
2022-11-13 23:29:40 +00:00
.post .content p {
margin: 12px 0 4px 0;
}
2022-11-14 01:42:47 +00:00
2022-11-17 06:00:10 +00:00
.post .attachments {
padding-top: 4px;
display: grid;
grid-template-columns: repeat(2, auto);
grid-column-gap: 4px;
grid-row-gap: 4px;
2022-11-17 06:00:10 +00:00
}
.post .attachments a {
display: block;
width: 100%;
2022-11-17 06:00:10 +00:00
}
.post .attachments a.image img {
2022-11-29 05:35:43 +00:00
display: block;
max-width: 100%;
object-fit: cover;
object-position: center;
max-height: 400px;
height: 100%;
width: 100%;
}
.post .attachments video {
max-width: 100%;
2022-11-17 06:00:10 +00:00
}
.post .actions {
display: flex;
2022-12-22 02:40:46 +00:00
position: relative;
justify-content: space-between;
padding: 8px 0 0 0;
align-items: center;
align-content: center;
2022-12-22 02:40:46 +00:00
margin: 0 0 -8px 64px;
}
2022-12-22 02:40:46 +00:00
.post .actions a {
padding: 2px 4px;
border-radius: 4px;
min-width: 60px;
text-align: center;
cursor: pointer;
color: var(--color-text-dull);
}
2022-12-22 02:40:46 +00:00
.post .actions a:hover {
background-color: var(--color-bg-main);
}
.post .actions menu {
display: none;
background-color: var(--color-bg-menu);
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
position: absolute;
right: 0;
2022-12-22 02:40:46 +00:00
bottom: 35px;
}
.post .actions menu.enabled {
display: block;
z-index: 10;
}
.post .actions menu a {
text-align: left;
display: block;
font-size: 15px;
padding: 4px 10px;
}
.post .actions menu a i {
margin-right: 4px;
width: 16px;
}
.post .actions a:hover {
color: var(--color-text-main);
}
.post .actions a.active {
color: var(--color-highlight);
}
.post .handle .link:hover {
text-decoration: underline;
}
.post .content a {
word-break: break-all;
2022-11-29 04:41:36 +00:00
text-decoration: none;
color: var(--color-highlight);
2022-11-29 04:41:36 +00:00
}
.post .content a:hover {
2022-11-29 04:41:36 +00:00
text-decoration: underline;
}
/* Special Type Posts */
.post .notice a:hover {
text-decoration: underline;
}
.post .poll h3 small {
font-weight: lighter;
font-size: small;
}
2022-12-20 08:51:53 +00:00
.post .poll ul {
list-style: none;
}
.post .poll li {
padding: 6px 0;
line-height: 18px;
}
2022-12-20 08:51:53 +00:00
.poll-number {
display: inline-block;
width: 45px;
}
2022-12-20 08:51:53 +00:00
.poll-footer {
padding: 6px 0 6px;
font-size: 12px;
}
2022-12-20 08:51:53 +00:00
.post .poll ul li .votes {
margin-left: 10px;
font-size: small;
}
2022-11-18 01:52:00 +00:00
.boost-banner,
.mention-banner,
.follow-banner,
.like-banner {
2022-12-22 02:40:46 +00:00
padding: 0 0 3px 5px;
2022-11-14 01:42:47 +00:00
}
2022-12-15 07:50:54 +00:00
.boost-banner .emoji,
.mention-banner .emoji,
.follow-banner .emoji,
.like-banner .emoji {
height: 22px;
}
2022-11-18 01:52:00 +00:00
.boost-banner a,
.mention-banner a,
.follow-banner a,
.like-banner a {
font-weight: bold;
}
2022-11-14 01:42:47 +00:00
.boost-banner::before {
content: "\f079";
font: var(--fa-font-solid);
margin-right: 4px;
}
.boost-banner time {
float: right;
display: block;
color: var(--color-text-duller);
border-radius: 3px;
2022-11-14 01:42:47 +00:00
}
2022-11-18 01:52:00 +00:00
.mention-banner::before {
content: "\0040";
font: var(--fa-font-solid);
margin-right: 4px;
}
.follow-banner::before {
content: "\f007";
font: var(--fa-font-solid);
margin-right: 4px;
}
.like-banner::before {
content: "\f005";
font: var(--fa-font-solid);
margin-right: 4px;
2022-11-14 01:42:47 +00:00
}
2022-11-16 13:53:39 +00:00
.pagination {
display: flex;
justify-content: center;
gap: 1em;
}
2022-11-22 15:57:40 +00:00
.load-more {
margin: 10px 0;
text-align: center;
}
2022-11-16 13:53:39 +00:00
@media (max-width: 920px),
(display-mode: standalone) {
div.columns {
height: calc(100vh - 50px);
align-items: stretch;
}
.left-column {
margin: var(--md-header-height) var(--md-sidebar-width) 0 0;
}
.right-column {
width: var(--md-sidebar-width);
position: fixed;
height: 100%;
right: 0;
top: var(--md-header-height);
}
.right-column nav {
padding: 0;
}
body:not(.no-sidebar) header {
height: var(--md-header-height);
position: fixed;
width: 100%;
z-index: 9;
}
body:not(.no-sidebar) header menu a {
2022-12-22 17:23:59 +00:00
background: rgba(0, 0, 0, 0.5);
}
2022-11-16 13:53:39 +00:00
main {
width: 100%;
margin: 0;
box-shadow: none;
border-radius: 0;
}
.no-sidebar main {
margin: 20px auto 20px auto;
}
.post .attachments a.image img {
max-height: 300px;
}
}
2022-11-18 00:43:00 +00:00
2022-12-22 02:40:46 +00:00
@media (max-width: 750px) {
header {
height: var(--sm-header-height);
}
2022-11-18 00:43:00 +00:00
header menu a.identity {
width: var(--sm-sidebar-width);
2022-11-18 00:43:00 +00:00
padding: 10px 10px 0 0;
2022-11-19 20:38:25 +00:00
font-size: 0;
}
header menu a.identity i {
font-size: 22px;
2022-11-18 00:43:00 +00:00
}
.left-column {
padding: 8px;
margin: var(--sm-header-height) var(--sm-sidebar-width) 0 0;
}
2022-11-18 00:43:00 +00:00
.right-column {
width: var(--sm-sidebar-width);
top: var(--sm-header-height);
2022-11-18 00:43:00 +00:00
}
.right-column nav {
padding-right: 0;
}
.right-column nav a {
font-size: 0;
padding: 10px 0 10px 10px;
}
.right-column nav a i {
font-size: 22px;
}
.right-column h3 {
visibility: hidden;
}
.right-column h2,
.right-column .compose {
display: none;
}
2022-12-06 02:32:35 +00:00
2022-12-31 21:12:39 +00:00
.right-column footer {
2022-12-06 02:32:35 +00:00
display: none;
}
2022-12-22 02:40:46 +00:00
.post {
margin-bottom: 15px;
}
2022-12-22 02:40:46 +00:00
}
@media (max-width: 550px) {
.post .content,
.post .summary,
2022-12-22 04:12:25 +00:00
.post .edited,
2022-12-22 02:40:46 +00:00
.post .actions {
margin-left: 0;
}
2022-12-22 02:40:46 +00:00
2022-12-24 05:52:20 +00:00
menu a.search {
display: none;
}
2022-11-18 00:43:00 +00:00
}
2022-12-22 05:36:21 +00:00
@media (display-mode: standalone) {
html {
scrollbar-color: var(--color-bg-main) var(--color-text-duller);
}
html::-webkit-scrollbar {
background: var(--color-bg-menu);
width: 7px;
}
html::-webkit-scrollbar-thumb {
background: var(--color-text-dull);
}
}
/* Copy to clipboard action */
.copy {
transition: 0.2s;
}
.copy:hover {
color: var(--color-text-main);
cursor: pointer;
}
2022-12-02 01:46:49 +00:00
.copied,
.copied:hover {
color: var(--color-highlight);
transition: 0.2s;
}
2022-12-07 16:12:43 +00:00
/* Accessibility */
.screenreader-text {
position: absolute;
left: -999px;
width: 1px;
height: 1px;
top: auto;
}
.screenreader-text:focus {
color: var(--color-text-main);
2022-12-07 16:12:43 +00:00
display: inline-block;
height: auto;
width: auto;
position: static;
margin: auto;
}
2022-12-24 18:05:07 +00:00
/* Debug */
.debug {
width: 100%;
}
2022-12-26 22:25:54 +00:00
2022-12-24 18:05:07 +00:00
.debug h2 {
text-align: center;
padding-bottom: 5px;
}
2022-12-26 22:25:54 +00:00
2022-12-24 18:05:07 +00:00
.debug-section {
text-align: center;
}
2022-12-26 22:25:54 +00:00
2022-12-24 18:05:07 +00:00
.debug-section .field.payload,
#canonical_response,
#raw_response {
margin-bottom: 10px;
}
2022-12-26 22:25:54 +00:00
#canonical_response,
#raw_response {
2022-12-24 18:05:07 +00:00
background-color: var(--color-bg-box);
overflow: scroll;
text-align: left;
}
2022-12-26 22:25:54 +00:00
2022-12-24 18:05:07 +00:00
.debug-section .field .name {
display: inline-block;
min-width: 49%;
text-align: right;
padding-right: 10px;
}
2022-12-26 22:25:54 +00:00
2022-12-24 18:05:07 +00:00
.debug-section .field .value {
display: inline-block;
min-width: 49%;
text-align: left;
}
.debug-section {
margin-bottom: 20px;
}
.debug-section .hidden {
display: none;
}
.field .hidden {
display: none;
}