Files
teapawt/public/css/style.css
T
2026-04-17 13:26:48 -04:00

427 lines
8.3 KiB
CSS

@import "tweet/base.css";
@import "profile/base.css";
@import "general.css";
@import "navbar.css";
@import "inputs.css";
@import "timeline.css";
@import "search.css";
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=block');
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:[email protected]&display=swap');
body {
--bg_color: #121214;
--fg_color: #A0A0AF;
--fg_faded: #606069;
--fg_dark: #A0A0AF;
--fg_nav: #A0A0AF;
--bg_panel: #171719;
--bg_elements: #1F1F21;
--bg_overlays: #252527;
--bg_hover: #252527;
--grey: #606069;
/* --dark_grey: #2A2A2C; */
--darker_grey: #2A2A2C;
--darkest_grey:#2A2A2C;
--border_grey: #3A3A3C;
--accent: #A0A0AF;
--accent_light: #B8B8C7;
--accent_dark: #888899;
--accent_border: #2A2A2C;
--play_button: #A0A0AF;
--play_button_hover: #B8B8C7;
--more_replies_dots: #A0A0AF;
--error_red: #2A2028;
--verified_blue: #6C81B8;
--verified_business: #A68170;
--verified_government: #8a8a8a;
--icon_text: #171719;
--tab: #606069;
--tab_selected: #A0A0AF;
--profile_stat: #A0A0AF;
--shadow: rgba(0, 0, 0, 0.24);
--shadow_dark: rgba(0, 0, 0, 0.36);
--tp-primary: var(--accent);
--tp-on-primary: var(--icon_text);
--tp-primary-container: var(--accent_border);
--tp-on-primary-container: var(--fg_nav);
--tp-secondary: var(--accent_dark);
--tp-on-secondary: var(--icon_text);
--tp-secondary-container: var(--dark_grey);
--tp-on-secondary-container: var(--fg_faded);
--tp-surface: var(--bg_color);
--tp-surface-dim: var(--bg_panel);
--tp-surface-container-lowest: var(--bg_color);
--tp-surface-container-low: var(--bg_panel);
--tp-surface-container: var(--bg_elements);
--tp-surface-container-high: var(--bg_overlays);
--tp-surface-container-highest: var(--darkest_grey);
--tp-on-surface: var(--fg_color);
--tp-on-surface-variant: var(--fg_faded);
--tp-outline: var(--border_grey);
--tp-outline-variant: var(--dark_grey);
--tp-error: #A67E97;
--tp-error-container: var(--error_red);
--tp-on-error-container:var(--fg_color);
--tp-accent-red: #A67E97;
--tp-accent-green: #738980;
--tp-accent-yellow: var(--verified_business);
--tp-accent-blue: var(--verified_blue);
--tp-accent-magenta: #6E6DA7;
--tp-accent-cyan: #55787D;
--shape-none: 0px;
--shape-xs: 2px;
--shape-sm: 3px;
--shape-md: 4px;
--shape-lg: 6px;
--shape-xl: 8px;
--shape-full: 9999px;
--elevation-0: none;
--elevation-1: 0 1px 2px rgba(0, 0, 0, 0.24), 0 1px 3px rgba(0, 0, 0, 0.12);
--elevation-2: 0 2px 4px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.16);
--elevation-3: 0 4px 8px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.20);
background-color: var(--bg_color);
color: var(--fg_color);
--font-family: 'Readex Pro', sans-serif, Twemoji;
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: 300;
}
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;
margin-bottom: 20px;
color: var(--fg_faded);
font-size: 14px;
}
.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;
}
}