bloat/static/style.css
r 14d5eaf6e9 Don't force auto height/width on "inline" images
This fixes the size of mikuphile emojis.
2024-10-14 06:52:31 +00:00

700 lines
10 KiB
CSS

body,
button,
input,
select,
textarea {
font-family: sans-serif;
}
input::file-selector-button {
font-family: sans-serif;
}
input[type=text],
textarea {
font-size: inherit;
}
h1 {
font-weight: normal;
font-size: x-large;
}
frame,
body,
.more-content {
background-color: #fcfcfc;
}
.status-container-container,
.notification-container {
background-color: #f0f0f0;
background-color: #eaeaea99;
margin: 8px 0;
padding: 12px 4px;
border-left: 4px solid transparent;
}
@media only screen and (max-width: 768px) {
.status-container-container,
.notification-container {
margin: 8px -4px;
}
}
.status-container-container.highlight {
background-color: #d3d3d3;
background-color: #cfcfcf99;
}
.status-container-container:target {
border-left: 4px solid #777777;
}
.status-container {
position: relative;
}
.status-quote {
margin: 4px 0;
padding: 8px;
background-color: #e6e6e6;
background-color: #dadada99;
}
.status-content {
margin: 4px 0;
max-height: 600px;
overflow: auto;
overflow-wrap: break-word;
}
.status-name {
overflow-wrap: break-word;
}
.status-content p {
margin: 0px;
}
.status-image,
.status-video {
height: auto;
width: auto;
vertical-align: bottom;
}
.status-content img {
vertical-align: middle;
}
.status-content img,
.status-image,
.status-video {
max-height: 240px;
max-width: 280px;
object-fit: contain;
}
.status-media-container {
margin: 4px 0;
overflow: auto;
}
.status-image-container,
.status-video-container {
display: inline-block;
position: relative;
margin: 2px 4px 2px 0;
}
.status-profile-img-container {
position: absolute;
}
.status-profile-img {
height: 48px;
width: 48px;
min-height: 48px;
min-width: 48px;
max-height: 48px;
max-width: 48px;
vertical-align: top;
object-fit: contain;
}
.user-list-profile-img .img-link,
.status-profile-img-container .img-link {
width: 48px;
overflow: hidden;
}
.retweet-info .img-link {
margin-right: 4px;
}
.status {
margin-left: 56px;
}
.status-action {
display: inline-block;
margin-right: 16px;
}
.status-action-last {
margin-right: 4px;
}
.retweet-info {
margin: 0 0 4px 24px;
overflow-wrap: break-word;
font-size: smaller;
}
.retweet-info>* {
vertical-align: middle;
}
.retweet-info .status-profile-img {
height: 24px;
width: 24px;
min-height: 24px;
min-width: 24px;
max-height: 24px;
max-width: 24px;
vertical-align: middle;
}
textarea {
padding: 4px;
box-sizing: border-box;
width: 644px;
max-width: 100%;
}
.post-content {
width: 100%;
}
.monospace {
font-family: monospace;
}
.pagination {
margin: 12px 4px;
}
.pagination a {
margin: 0 8px;
font-size: large;
}
.notification-container.unread {
border-color: #777777;
}
.notification-container .status-content,
.notification-container .status-reply-container,
.notification-container .status-media-container {
opacity: 0.6;
}
.notification-container.notification-mention .status-content,
.notification-container.notification-mention .status-reply-container,
.notification-container.notification-mention .status-media-container,
.notification-container.notification-status .status-content,
.notification-container.notification-status .status-reply-container,
.notification-container.notification-status .status-media-container {
opacity: 1;
}
.status-reply-to-link,
.status-reply-link,
.status-reply-text {
font-size: smaller;
}
.status-reply-container {
overflow-wrap: break-word;
position: relative;
}
.status-reply-info-divider {
margin: 0 4px;
}
.user-profile-img-container {
display: inline-block;
margin: 0 4px 4px 0;
}
.user-profile-img-container .img-link {
width: 96px;
overflow: hidden;
}
.user-profile-details-container {
display: inline-block;
vertical-align: top;
}
.user-profile-details-container>div {
margin-bottom: 4px;
}
.user-profile-img {
height: 96px;
width: 96px;
vertical-align: top;
object-fit: contain;
}
.user-profile-description,
.user-fields {
overflow-wrap: break-word;
margin: 8px 0;
}
.user-profile-description p {
margin: 0;
}
.user-profile-description img {
height: auto;
width: auto;
max-height: 240px;
max-width: 280px;
object-fit: contain;
}
.d-inline {
display: inline;
}
.btn-link {
outline: none;
cursor: pointer;
padding: 0;
font-size: inherit;
background: none !important;
border: none !important;
}
a,
.btn-link {
color: #1449af;
text-decoration: none;
}
a:hover,
.btn-link:hover {
color: #4489bf;
}
.btn-link:disabled {
color: #666666;
cursor: unset;
}
*:focus-visible {
outline: 1px solid #000000;
}
.remote-link {
margin-left: 4px;
font-size: smaller;
}
.img-link {
display: inline-block;
}
.status-nsfw-overlay {
background: black;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.status-image-container:hover .status-nsfw-overlay,
.status-video-container:hover .status-nsfw-overlay {
display: none;
}
.emoji-item-container {
width: 220px;
display: inline-block;
margin: 4px 4px 0 0;
overflow: hidden;
padding: 4px;
background-color: #f0f0f0;
background-color: #eaeaea99;
}
.emoji-item {
display: flex;
align-items: center;
}
img.emoji {
height: auto;
width: auto;
max-height: 32px;
max-width: 32px;
min-height: 32px;
min-width: 32px;
vertical-align: middle;
object-fit: contain;
margin: 0;
}
.status-dname img.emoji {
height: 20px;
min-height: 20px;
min-width: 20px;
}
.retweet-info>.status-dname img.emoji {
height: 16px;
width: 16px;
min-height: 16px;
min-width: 16px;
}
.emoji-shortcode {
margin-left: 4px;
}
.nav-container {
position: relative;
margin-bottom: 4px;
}
.nav-profile-img-container {
position: absolute;
}
.nav-profile-img {
height: 64px;
width: 64px;
vertical-align: middle;
object-fit: contain;
}
.nav-link-container {
margin-left: 72px;
}
nav ul {
list-style: none;
margin: 4px 0;
padding: 0;
}
nav li {
display: inline;
}
.nav-link {
margin-right: 2px;
}
.nav-profile-link {
margin-right: 2px;
font-size: smaller;
}
.user-list-item {
overflow: auto;
margin: 0 0 4px 0;
padding: 4px;
display: flex;
align-items: center;
}
td .user-list-item {
padding: 0;
}
.user-list-profile-img {
margin: 0 8px 0 0;
}
.user-list-action {
margin: 0 12px;
}
.form-field {
margin-bottom: 8px;
}
.form-field-s {
margin-bottom: 4px;
}
.emoji-link {
margin-left: 4px;
}
#reply-popup,
#reply-to-popup {
background-color: #f0f0f0;
border: 1px solid #bababa;
position: absolute;
padding: 4px 8px;
z-index: 3;
margin: 0;
}
.more-container {
position: relative;
display: inline-block;
}
.more-content {
position: absolute;
display: none;
padding: 2px 4px;
z-index: 1;
border: 1px solid #bababa;
}
.more-container:hover .more-content {
display: block;
}
.more-link {
font-size: smaller;
display: block;
margin: 2px;
}
.status-poll {
margin: 4px 0;
overflow: auto;
overflow-wrap: break-word;
}
.page-link {
font-size: large;
}
kbd {
padding: 2px 4px;
background-color: #f0f0f0;
border: 1px solid #bababa;
}
td {
padding: 2px 4px;
}
#img-preview {
pointer-events: none;
z-index: 2;
position: fixed;
}
blockquote {
margin: 4px 20px;
border-left: 2px solid #3e7300;
padding-left: 12px;
}
blockquote,
.quote {
color: #3e7300;
}
.profile-img-container {
margin: 4px 0;
}
.profile-avatar {
height: 96px;
width: 96px;
object-fit: contain;
vertical-align: middle;
}
.profile-banner {
height: 120px;
vertical-align: middle;
}
.block-label {
margin: 0 0 4px 0;
}
.input-w {
width: 320px;
max-width: 100%;
box-sizing: border-box;
}
.follow-request-actions {
margin-top: 4px;
}
.hidden {
display: none;
}
input[type=text],
textarea {
border: 2px solid #bababa;
}
input[type=submit],
button,
select,
input::file-selector-button {
background-color: #eaeaea;
border: 2px solid #bababa;
}
input[type=text]:hover,
textarea:hover {
border: 2px solid #8b8b8b;
}
input[type=submit]:hover,
button:hover,
select:hover,
input::file-selector-button:hover {
background-color: #dfdfdf;
border: 2px solid #8b8b8b;
}
input[type=submit]:active,
button:active,
select:active,
input::file-selector-button:active {
background-color: #cacaca;
}
input[type=submit]:disabled,
button:disabled,
select:disabled,
input:disabled::file-selector-button {
color: #666666;
background-color: #eaeaea;
border: 2px solid #bababa;
}
.dark,
.dark body,
.dark .more-content {
background-color: #0f0f0f;
color: #dcdcdc;
}
.dark .status-container-container,
.dark .notification-container,
.dark .emoji-item-container {
background-color: #181818;
background-color: #1f1f1f99;
}
.dark .status-container-container.highlight {
background-color: #222222;
background-color: #2f2f2f99;
}
.dark .status-quote {
background-color: #202020;
background-color: #26262699;
}
.dark #reply-popup,
.dark #reply-to-popup {
background-color: #181818;
}
.dark *:focus-visible {
outline: 1px solid #dcdcdc;
}
.dark #reply-popup,
.dark #reply-to-popup,
.dark .more-content {
border-color: #333333;
}
.dark kbd {
background-color: #181818;
border: 2px solid #333333;
}
.dark blockquote,
.dark .quote {
color: #779c3b;
}
.dark input[type=text],
.dark textarea {
color: #dcdcdc;
background-color: #0c0c0c;
border: 2px solid #333333;
}
.dark .post-content {
background-color: #111111;
}
.dark input[type=submit],
.dark button,
.dark select,
.dark input::file-selector-button {
color: #dcdcdc;
background-color: #242424;
border: 2px solid #333333;
}
.dark input[type=text]:hover,
.dark textarea:hover {
border: 2px solid #555555;
}
.dark input[type=submit]:hover,
.dark button:hover,
.dark select:hover,
.dark input::file-selector-button:hover {
background-color: #2f2f2f;
border: 2px solid #555555;
}
.dark input[type=submit]:active,
.dark button:active,
.dark select:active,
.dark input::file-selector-button:active {
background-color: #3f3f3f;
}
.dark input[type=submit]:disabled,
.dark button:disabled,
.dark select:disabled,
.dark input:disabled::file-selector-button {
color: #666666;
background-color: #242424;
border: 2px solid #333333;
}
.dark a,
.dark btn-link,
.dark input.btn-link {
color: #6090a3;
}
.dark a:hover,
.dark .btn-link:hover {
color: #497091;
}
.dark .btn-link:disabled {
color: #666666;
}