/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/common-adapters/text.css
355 строк
7 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
/* Text desktop styles */ .text_HeaderBig, .text_HeaderBigExtrabold, .text_Header, .text_HeaderItalic, .text_HeaderExtrabold, .text_HeaderLink, .text_BodyBig, .text_BodyBigExtrabold, .text_BodyBigLink, .text_Body, .text_BodyItalic, .text_BodySemibold, .text_BodyBold, .text_BodySemiboldItalic, .text_BodySemiboldLink, .text_BodyExtrabold, .text_BodyPrimaryLink, .text_BodySecondaryLink, .text_BodySmall, .text_BodySmallBold, .text_BodySmallItalic, .text_BodySmallPrimaryLink, .text_BodySmallExtrabold, .text_BodySmallSemiboldItalic, .text_BodySmallSemiboldPrimaryLink, .text_BodySmallSemiboldSecondaryLink, .text_BodySmallSecondaryLink, .text_BodySmallExtraboldSecondaryLink, .text_BodySmallError, .text_BodySmallSuccess, .text_BodySmallWallet, .text_BodyTiny, .text_BodyTinyLink, .text_BodyTinyBold, .text_BodyTinyExtrabold, .text_BodyTinySemibold, .text_BodyTinySemiboldItalic, .text_BodySmallSemibold, .text_Terminal, .text_TerminalComment, .text_TerminalEmpty, .text_TerminalInline { color: rgba(0, 0, 0, 0.85); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: Keybase; } /* Dark mode: primary-color types flip to white */ @media (prefers-color-scheme: dark) { .text_HeaderBig, .text_HeaderBigExtrabold, .text_Header, .text_HeaderItalic, .text_HeaderExtrabold, .text_BodyBig, .text_BodyBigExtrabold, .text_BodyExtrabold, .text_BodySemiboldItalic, .text_BodyBold, .text_BodySemibold, .text_BodyItalic, .text_Body { color: rgba(255, 255, 255, 0.85); } } /* Secondary color group */ .text_BodySecondaryLink, .text_BodySmall, .text_BodySmallBold, .text_BodySmallItalic, .text_BodySmallExtrabold, .text_BodySmallSemiboldItalic, .text_BodySmallExtraboldSecondaryLink, .text_BodySmallSecondaryLink, .text_BodySmallSemiboldSecondaryLink, .text_BodyTiny, .text_BodyTinyLink, .text_BodyTinyBold, .text_BodyTinyExtrabold, .text_BodyTinySemibold, .text_BodyTinySemiboldItalic, .text_BodySmallSemibold { color: var(--color-black_50OrWhite_40); } /* Link color group */ .text_HeaderLink, .text_BodyBigLink, .text_BodySemiboldLink, .text_BodyPrimaryLink, .text_BodySmallPrimaryLink, .text_BodySmallSemiboldPrimaryLink { color: var(--color-blueDark); } /* Special color types */ .text_BodySmallError { color: var(--color-redDark); } .text_BodySmallSuccess { color: var(--color-greenDark); } .text_BodySmallWallet { color: var(--color-purpleDark); } /* Italic group */ .text_HeaderItalic, .text_BodyItalic, .text_BodySemiboldItalic, .text_BodySmallItalic, .text_BodySmallSemiboldItalic, .text_BodyTinySemiboldItalic { font-style: italic; } /* Cursor pointer for link types */ .text_HeaderLink, .text_BodyBigLink, .text_BodyPrimaryLink, .text_BodySecondaryLink, .text_BodySmallPrimaryLink, .text_BodySmallSemiboldPrimaryLink, .text_BodySmallSemiboldSecondaryLink, .text_BodySmallSecondaryLink, .text_BodySmallExtraboldSecondaryLink, .text_BodyTinyLink { cursor: pointer; } /* Font size / line-height groups */ :is(.text_HeaderBig, .text_HeaderBigExtrabold) { font-size: 24px; line-height: 28px; } :is(.text_Header, .text_HeaderItalic, .text_HeaderExtrabold, .text_HeaderLink) { font-size: 18px; line-height: 22px; } :is(.text_BodyBig, .text_BodyBigExtrabold, .text_BodyBigLink) { font-size: 15px; line-height: 19px; } .text_Body, .text_BodyItalic, .text_BodySemibold, .text_BodyBold, .text_BodySemiboldItalic, .text_BodySemiboldLink, .text_BodyExtrabold, .text_BodyPrimaryLink, .text_BodySecondaryLink { font-size: 14px; line-height: 18px; } .text_BodySmall, .text_BodySmallBold, .text_BodySmallItalic, .text_BodySmallPrimaryLink, .text_BodySmallExtrabold, .text_BodySmallSemiboldItalic, .text_BodySmallSemiboldPrimaryLink, .text_BodySmallSemiboldSecondaryLink, .text_BodySmallSecondaryLink, .text_BodySmallExtraboldSecondaryLink, .text_BodySmallError, .text_BodySmallSuccess, .text_BodySmallWallet, .text_BodySmallSemibold { font-size: 13px; line-height: 17px; } .text_BodyTiny, .text_BodyTinyLink, .text_BodyTinyBold, .text_BodyTinyExtrabold, .text_BodyTinySemibold, .text_BodyTinySemiboldItalic { font-size: 12px; line-height: 16px; } /* Font weight groups */ .text_Body, .text_BodyItalic, .text_BodyPrimaryLink, .text_BodySecondaryLink, .text_BodySmall, .text_BodySmallItalic, .text_BodySmallPrimaryLink, .text_BodySmallSecondaryLink, .text_BodySmallError, .text_BodySmallSuccess, .text_BodySmallWallet, .text_BodyTiny, .text_BodyTinyLink { font-weight: 400; } .text_BodyBig, .text_BodyBigLink, .text_BodySemibold, .text_BodySemiboldItalic, .text_BodySemiboldLink, .text_BodySmallSemiboldItalic, .text_BodySmallSemiboldPrimaryLink, .text_BodySmallSemiboldSecondaryLink, .text_BodyTinySemibold, .text_BodyTinySemiboldItalic, .text_BodySmallSemibold { font-weight: 600; } .text_HeaderBig, .text_Header, .text_HeaderItalic, .text_HeaderLink, .text_BodyBold, .text_BodySmallBold, .text_BodyTinyBold { font-weight: 700; } .text_HeaderBigExtrabold, .text_HeaderExtrabold, .text_BodyBigExtrabold, .text_BodyExtrabold, .text_BodySmallExtrabold, .text_BodySmallExtraboldSecondaryLink, .text_BodyTinyExtrabold { font-weight: 800; } /* Terminal types */ :is(.text_Terminal, .text_TerminalComment, .text_TerminalEmpty, .text_TerminalInline) { font-size: 13px; line-height: 20px; font-family: Source Code Pro; } .text_Terminal { color: light-dark(#a8ccff, #4c8eff); } .text_TerminalComment { color: var(--color-blueLighter_40); } .text_TerminalEmpty { color: var(--color-blueLighter_40); height: 20px; } .text_TerminalInline { line-height: 16px; color: light-dark(#2645a3, #f00); background-color: var(--color-blueLighter2); border-radius: 2px; height: 17px; padding: 2px; word-wrap: break-word; } /* Dark mode link override */ @media (prefers-color-scheme: dark) { .text_HeaderLink { color: var(--color-blueDarker2_75); } } /* Negative: white for most types */ .text_negative { color: rgba(255, 255, 255, 0.85) !important; } /* Terminal types have non-white negative colors */ .text_negative.text_Terminal { color: light-dark(#a8ccff, #4c8eff) !important; } .text_negative.text_TerminalComment, .text_negative.text_TerminalEmpty { color: var(--color-blueLighter_40) !important; } .text_negative.text_TerminalInline { color: light-dark(#2645a3, #f00) !important; } /* Hover underline for link types */ .text_hover-underline:hover { text-decoration: underline; } /* Utility classes */ .text_center { display: inline-block; text-align: center; } .text_selectable { user-select: text; cursor: text; } .text_clickable { cursor: pointer; } :is(.text_lineClamp1, .text_lineClamp2, .text_lineClamp3, .text_lineClamp4, .text_lineClamp5) { -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; word-break: break-word; } .text_lineClamp1 { -webkit-line-clamp: 1; } .text_lineClamp2 { -webkit-line-clamp: 2; } .text_lineClamp3 { -webkit-line-clamp: 3; } .text_lineClamp4 { -webkit-line-clamp: 4; } .text_lineClamp5 { -webkit-line-clamp: 5; } .text_underline { text-decoration: underline; } .text_underlineNever { text-decoration: none !important; } .text_virtualText::before { content: attr(data-virtual-text); }