mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-27 14:04:35 +00:00
334 lines
4.8 KiB
CSS
334 lines
4.8 KiB
CSS
@import "thread.css";
|
|
@import "media.css";
|
|
@import "video.css";
|
|
@import "embed.css";
|
|
@import "card.css";
|
|
@import "poll.css";
|
|
@import "quote.css";
|
|
|
|
.tweet-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
margin-left: 58px;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.tweet-content {
|
|
line-height: 1.3em;
|
|
pointer-events: all;
|
|
display: inline;
|
|
}
|
|
|
|
.tweet-bidi {
|
|
display: block !important;
|
|
}
|
|
|
|
.tweet-header {
|
|
padding: 0;
|
|
vertical-align: bottom;
|
|
flex-basis: 100%;
|
|
margin-bottom: 0.2em;
|
|
|
|
& a {
|
|
display: inline-block;
|
|
word-break: break-all;
|
|
max-width: 100%;
|
|
pointer-events: all;
|
|
}
|
|
}
|
|
|
|
.tweet-name-row {
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.fullname-and-username {
|
|
display: flex;
|
|
min-width: 0;
|
|
}
|
|
|
|
.fullname {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex-shrink: 2;
|
|
max-width: 80%;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--fg_color);
|
|
}
|
|
|
|
.username {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 1.6em;
|
|
margin-left: 0.4em;
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.tweet-date {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.tweet-date a,
|
|
.username,
|
|
.show-more a {
|
|
color: var(--tp-accent-blue);
|
|
}
|
|
|
|
.tweet-published {
|
|
margin: 0;
|
|
margin-top: 5px;
|
|
color: var(--grey);
|
|
pointer-events: all;
|
|
}
|
|
|
|
.tweet-avatar {
|
|
display: contents !important;
|
|
|
|
& img {
|
|
float: left;
|
|
margin-top: 3px;
|
|
margin-left: -58px;
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
}
|
|
|
|
.avatar {
|
|
&.round {
|
|
border-radius: 50%;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
&.mini {
|
|
position: unset;
|
|
margin-right: 5px;
|
|
margin-top: -1px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
|
|
.tweet-embed {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
height: 100%;
|
|
background-color: var(--bg_panel);
|
|
|
|
& .tweet-content {
|
|
font-size: 18px;
|
|
}
|
|
|
|
& .tweet-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: calc(100vh - 0.75em * 2);
|
|
}
|
|
|
|
& .card-image img {
|
|
height: auto;
|
|
}
|
|
|
|
& .avatar {
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
.attribution {
|
|
display: flex;
|
|
pointer-events: all;
|
|
margin: 5px 0;
|
|
|
|
& strong {
|
|
color: var(--fg_color);
|
|
}
|
|
}
|
|
|
|
.media-tag-block {
|
|
padding-top: 5px;
|
|
pointer-events: all;
|
|
color: var(--fg_faded);
|
|
|
|
& .icon-container {
|
|
padding-right: 2px;
|
|
}
|
|
|
|
& .media-tag,
|
|
& .icon-container {
|
|
color: var(--fg_faded);
|
|
}
|
|
}
|
|
|
|
.timeline-container .media-tag-block {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.tweet-geo {
|
|
color: var(--fg_faded);
|
|
}
|
|
|
|
.replying-to {
|
|
color: var(--fg_faded);
|
|
margin: -2px 0 4px;
|
|
|
|
& a {
|
|
pointer-events: all;
|
|
}
|
|
}
|
|
|
|
.retweet-header,
|
|
.pinned,
|
|
.tweet-stats {
|
|
align-content: center;
|
|
color: var(--grey);
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 22px;
|
|
|
|
& span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.retweet-header {
|
|
margin-top: -5px !important;
|
|
}
|
|
|
|
.tweet-stats {
|
|
margin-bottom: -3px;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.tweet-stat {
|
|
padding-top: 5px;
|
|
min-width: 1em;
|
|
margin-right: 0.8em;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a.tweet-stat {
|
|
pointer-events: all;
|
|
&:hover {
|
|
color: var(--accent);
|
|
}
|
|
}
|
|
|
|
.show-thread {
|
|
display: block;
|
|
pointer-events: all;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.unavailable-box {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 12px;
|
|
border: solid 1px var(--dark_grey);
|
|
box-sizing: border-box;
|
|
border-radius: 10px;
|
|
background-color: var(--bg_color);
|
|
z-index: 2;
|
|
}
|
|
|
|
.disclosure-label {
|
|
font-size: 0.82em;
|
|
color: var(--fg_faded);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.community-note {
|
|
margin-top: 10px;
|
|
border: solid 1px var(--dark_grey);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
z-index: 2;
|
|
position: relative;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.community-note-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
background-color: var(--dark_grey);
|
|
color: var(--fg_color);
|
|
font-weight: 700;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.community-note-text {
|
|
padding: 10px 12px;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
line-height: 1.4;
|
|
|
|
& a {
|
|
color: var(--accent);
|
|
}
|
|
}
|
|
|
|
.translate-btn {
|
|
cursor: pointer;
|
|
pointer-events: all;
|
|
margin-top: 4px;
|
|
display: block;
|
|
clear: both;
|
|
width: 100%;
|
|
}
|
|
|
|
.translate-btn.htmx-request {
|
|
opacity: 0.5;
|
|
cursor: wait;
|
|
}
|
|
|
|
.translation {
|
|
margin-top: 4px;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.translation-header {
|
|
font-size: 0.85em;
|
|
color: var(--fg_faded);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.translation-text {
|
|
line-height: 1.3em;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.translation-error {
|
|
font-size: 0.85em;
|
|
color: var(--fg_faded);
|
|
pointer-events: all;
|
|
}
|
|
|
|
.tweet-link {
|
|
height: 100%;
|
|
width: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
position: absolute;
|
|
-webkit-user-select: none;
|
|
|
|
&:hover {
|
|
background-color: var(--bg_hover);
|
|
border-radius: 10px;
|
|
}
|
|
}
|