189 lines
4.1 KiB
CSS
189 lines
4.1 KiB
CSS
/* Twemoji font (Twitter emoji) */
|
|
@font-face {
|
|
font-family: Twemoji;
|
|
src: url('../public/font/Twemoji.Mozilla.v15.1.0.woff2'),
|
|
url('../public/font/Twemoji.Mozilla.v15.1.0.ttf');
|
|
font-display: swap;
|
|
}
|
|
|
|
/* Apple Color Emoji - uses local Apple Color Emoji if available (macOS/iOS),
|
|
falls back to Segoe UI Emoji (Windows) or Noto (Linux/Android) */
|
|
@font-face {
|
|
font-family: AppleColorEmoji;
|
|
src: local('Apple Color Emoji'),
|
|
local('Segoe UI Emoji'),
|
|
local('Noto Color Emoji');
|
|
font-display: swap;
|
|
}
|
|
|
|
/* System emoji - uses native OS emoji */
|
|
@font-face {
|
|
font-family: SystemEmoji;
|
|
src: local('Apple Color Emoji'),
|
|
local('Segoe UI Emoji'),
|
|
local('Segoe UI Symbol'),
|
|
local('Noto Color Emoji'),
|
|
local('Android Emoji'),
|
|
local('EmojiOne Color');
|
|
font-display: swap;
|
|
}
|
|
|
|
:root {
|
|
--tc-link: hsl(213deg 100% 45%);
|
|
|
|
/* user mxid colors */
|
|
--mx-uc-1: hsl(208, 100%, 45%);
|
|
--mx-uc-2: hsl(302, 100%, 30%);
|
|
--mx-uc-3: hsl(163, 100%, 30%);
|
|
--mx-uc-4: hsl(343, 100%, 45%);
|
|
--mx-uc-5: hsl(24, 100%, 45%);
|
|
--mx-uc-6: hsl(181, 100%, 30%);
|
|
--mx-uc-7: hsl(242, 100%, 45%);
|
|
--mx-uc-8: hsl(94, 100%, 35%);
|
|
|
|
--font-emoji: 'AppleColorEmoji';
|
|
--font-secondary: 'InterVariable', var(--font-emoji), sans-serif;
|
|
}
|
|
|
|
.dark-theme,
|
|
.butter-theme,
|
|
.discord-theme,
|
|
.discord-darker-theme {
|
|
--tc-link: hsl(213deg 100% 80%);
|
|
|
|
--mx-uc-1: hsl(208, 100%, 75%);
|
|
--mx-uc-2: hsl(301, 100%, 80%);
|
|
--mx-uc-3: hsl(163, 100%, 70%);
|
|
--mx-uc-4: hsl(343, 100%, 75%);
|
|
--mx-uc-5: hsl(24, 100%, 70%);
|
|
--mx-uc-6: hsl(181, 100%, 60%);
|
|
--mx-uc-7: hsl(243, 100%, 80%);
|
|
--mx-uc-8: hsl(94, 100%, 80%);
|
|
|
|
--font-secondary: 'InterVariable', var(--font-emoji), sans-serif;
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
/* Enable safe area variables */
|
|
--safe-area-inset-top: env(safe-area-inset-top, 0px);
|
|
--safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
|
|
--safe-area-inset-left: env(safe-area-inset-left, 0px);
|
|
--safe-area-inset-right: env(safe-area-inset-right, 0px);
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
/* Safe area insets for mobile devices (notch, navigation bar) */
|
|
padding-top: var(--safe-area-inset-top);
|
|
padding-bottom: var(--safe-area-inset-bottom);
|
|
padding-left: var(--safe-area-inset-left);
|
|
padding-right: var(--safe-area-inset-right);
|
|
height: 100%;
|
|
font-family: var(--font-secondary);
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
/* Default to dark theme background for safe areas */
|
|
background-color: #1A1A1A;
|
|
|
|
/*Why font-variant-ligatures => https://github.com/rsms/inter/issues/222 */
|
|
font-variant-ligatures: no-contextual;
|
|
}
|
|
|
|
/* Theme-specific body backgrounds for safe area padding */
|
|
body.light-theme {
|
|
background-color: #F0F0F0;
|
|
}
|
|
body.silver-theme {
|
|
background-color: #DEDEDE;
|
|
}
|
|
body.dark-theme {
|
|
background-color: #1A1A1A;
|
|
}
|
|
body.butter-theme {
|
|
background-color: #1A1916;
|
|
}
|
|
body.discord-theme {
|
|
background-color: #2B2D31;
|
|
}
|
|
body.discord-darker-theme {
|
|
background-color: #1E1F22;
|
|
}
|
|
#root {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
a {
|
|
color: var(--tc-link);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
[data-mx-spoiler][aria-pressed='true'] a {
|
|
color: transparent;
|
|
pointer-events: none;
|
|
}
|
|
|
|
b {
|
|
font-weight: 500;
|
|
}
|
|
label {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
button,
|
|
textarea {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: transparent;
|
|
color: inherit;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
line-height: inherit;
|
|
letter-spacing: inherit;
|
|
border: none;
|
|
}
|
|
button {
|
|
max-width: 100%;
|
|
text-transform: none;
|
|
text-align: inherit;
|
|
overflow: visible;
|
|
-webkit-appearance: button;
|
|
}
|
|
textarea,
|
|
input,
|
|
input[type],
|
|
input[type='text'],
|
|
input[type='username'],
|
|
input[type='password'],
|
|
input[type='email'],
|
|
input[type='checkbox'] {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
textarea {
|
|
color: inherit;
|
|
word-spacing: inherit;
|
|
}
|
|
|
|
audio:not([controls]) {
|
|
display: none !important;
|
|
}
|