mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-28 00:04:35 +00:00
The avatar follows the square profile pictures setting. Co-authored-by: Cursor <[email protected]>
372 lines
6.0 KiB
CSS
372 lines
6.0 KiB
CSS
@import "tweet/base.css?teapawt4";
|
|
@import "profile/base.css?teapawt1";
|
|
@import "general.css";
|
|
@import "navbar.css";
|
|
@import "inputs.css";
|
|
@import "timeline.css?teapawt5";
|
|
@import "search.css?teapawt1";
|
|
|
|
@import "variables.css";
|
|
|
|
body {
|
|
background-color: var(--bg_color);
|
|
color: var(--fg_color);
|
|
font-family: var(--font-family);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
* {
|
|
outline: unset;
|
|
margin: 0;
|
|
text-decoration: none;
|
|
font-weight: 400;
|
|
}
|
|
|
|
h1 {
|
|
display: inline;
|
|
}
|
|
|
|
h2,
|
|
h3 {
|
|
font-weight: normal;
|
|
}
|
|
|
|
p {
|
|
margin: 14px 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
fieldset {
|
|
border: 0;
|
|
padding: 0;
|
|
margin-top: -0.6em;
|
|
min-width: 0;
|
|
}
|
|
|
|
legend {
|
|
width: 100%;
|
|
padding: 0.6em 0 0.3em 0;
|
|
border: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
border-bottom: 1px solid var(--border_grey);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.preferences .note {
|
|
border-top: 1px solid var(--border_grey);
|
|
border-bottom: 1px solid var(--border_grey);
|
|
padding: 6px 0 8px 0;
|
|
margin-bottom: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.note {
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.note .cover {
|
|
width: 100%;
|
|
max-height: 400px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.note article {
|
|
background-color: var(--bg_panel);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.note article h1 {
|
|
display: block;
|
|
font-size: 28px;
|
|
margin-bottom: 16px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.note article h2 {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
margin: 20px 0 10px;
|
|
}
|
|
|
|
.note article h3 {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
margin: 16px 0 8px;
|
|
}
|
|
|
|
.note article p {
|
|
margin: 12px 0;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.note article ul,
|
|
.note article ol {
|
|
margin: 12px 0;
|
|
padding-left: 2em;
|
|
}
|
|
|
|
.note article ol {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.note article li {
|
|
margin: 6px 0;
|
|
padding-left: 0.3em;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.note article .code-block {
|
|
position: relative;
|
|
margin: 16px 0;
|
|
border-radius: 6px;
|
|
background-color: var(--bg_color);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.note article .code-block .code-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
background-color: var(--darker_grey);
|
|
font-size: 12px;
|
|
color: var(--fg_faded);
|
|
min-height: 24px;
|
|
}
|
|
|
|
.note article .code-block .code-header .code-lang {
|
|
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
}
|
|
|
|
.note article .code-block .code-header .copy-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--fg_faded);
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.note article .code-block .code-header .copy-btn:hover {
|
|
color: var(--fg_color);
|
|
}
|
|
|
|
.note article .code-block .copy-toast {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 36px;
|
|
background-color: var(--bg_elements);
|
|
color: var(--fg_color);
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
pointer-events: none;
|
|
animation: toast-fade 1.5s ease forwards;
|
|
}
|
|
|
|
.note article .code-block pre {
|
|
margin: 0;
|
|
padding: 16px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.note article .code-block pre code {
|
|
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
white-space: pre;
|
|
}
|
|
|
|
.note article pre {
|
|
margin: 16px 0;
|
|
padding: 16px;
|
|
background-color: var(--bg_color);
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.note article pre code {
|
|
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
white-space: pre;
|
|
}
|
|
|
|
.note article blockquote {
|
|
margin: 12px 0;
|
|
padding: 4px 0 4px 16px;
|
|
border-left: 3px solid var(--accent);
|
|
color: var(--fg_faded);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.note .author {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 22px;
|
|
color: var(--fg_faded);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.note .author img.avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
margin: 0;
|
|
object-fit: cover;
|
|
flex: 0 0 36px;
|
|
}
|
|
|
|
.note .author-id {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.note .author-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.note .author-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.note .author-date::before {
|
|
content: "·";
|
|
margin: 0 0.4em;
|
|
}
|
|
|
|
.note .author .fullname {
|
|
font-weight: bold;
|
|
color: var(--fg_color);
|
|
}
|
|
|
|
.note .author .username {
|
|
color: var(--fg_dark);
|
|
}
|
|
|
|
.note .image {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.note .image img {
|
|
max-width: 100%;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.note .image video {
|
|
max-width: 100%;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.note .twemoji {
|
|
height: 1.2em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.note .timeline-item {
|
|
margin: 16px 0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@keyframes toast-fade {
|
|
0% { opacity: 1; }
|
|
70% { opacity: 1; }
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
ul {
|
|
padding-left: 1.3em;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
box-sizing: border-box;
|
|
padding-top: 50px;
|
|
margin: auto;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.icon-container {
|
|
display: inline;
|
|
}
|
|
|
|
.overlay-panel {
|
|
max-width: 600px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
margin-top: 10px;
|
|
background-color: var(--bg_overlays);
|
|
padding: 10px 15px;
|
|
align-self: start;
|
|
}
|
|
|
|
.overlay-panel ul {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.overlay-panel p {
|
|
word-break: break-word;
|
|
}
|
|
|
|
.verified-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.verified-icon .verified-badge-check {
|
|
fill: #ffffff;
|
|
}
|
|
|
|
.verified-icon.blue .verified-badge-bg {
|
|
fill: var(--verified_blue);
|
|
}
|
|
|
|
.verified-icon.business .verified-badge-bg {
|
|
fill: var(--verified_business);
|
|
}
|
|
|
|
.verified-icon.government .verified-badge-bg {
|
|
fill: var(--verified_government);
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.preferences-container {
|
|
max-width: 95vw;
|
|
}
|
|
|
|
.nav-item,
|
|
.nav-item .icon-container {
|
|
font-size: 16px;
|
|
}
|
|
} |