/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
apps/dotcom/client/styles/globals.css
300 строк
5 KB
Jessica Claire Edwards
feat: commenting (#9471)
30 июл 2026, 14:08
Не верифицирован
30 июл 2026, 14:08
584d9b1
Код
Авторство
О чём код?
@import url('tldraw/tldraw.css'); @import url('@tldraw/commenting/commenting.css'); /* Dark mode early initialization styles * These work with theme-init.js to prevent flash of white background * The data-theme attribute is set by theme-init.js before CSS loads */ html[data-theme='dark'], html[data-theme='dark'] body, html[data-theme='dark'] #root { /* this is the same as --tl-color-background, if you ever update that, update this too */ background-color: hsl(240, 5%, 6.5%); /* this is the same as --tl-color-text, if you ever update that, update this too */ color: hsl(210, 17%, 98%); color-scheme: dark; } html[data-theme='light'], html[data-theme='light'] body, html[data-theme='light'] #root { /* this is the same as --tl-color-background, if you ever update that, update this too */ background-color: hsl(210, 20%, 98%); color-scheme: light; } /* Fallback for users whose OS preference matches their tldraw preference * This provides instant dark background before JavaScript runs */ @media (prefers-color-scheme: dark) { html:not([data-theme='light']), html:not([data-theme='light']) body, html:not([data-theme='light']) #root { background-color: hsl(240, 5%, 6.5%); color: hsl(210, 17%, 98%); color-scheme: dark; } } @media (prefers-color-scheme: light) { html:not([data-theme='dark']), html:not([data-theme='dark']) body, html:not([data-theme='dark']) #root { background-color: hsl(210, 20%, 98%); color-scheme: light; } } .tldraw__editor { height: 100%; position: relative; } :root { font-family: Inter, -apple-system, 'system-ui', 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; font-weight: 500; color: var(--text-color-0); line-height: 1.6; touch-action: none; } body { font-size: 12px; overscroll-behavior: none; } /* 1. Use a more-intuitive box-sizing model. */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } /* 5. Improve media defaults */ img, picture, video, canvas, svg { display: block; } /* 6. Remove built-in form typography styles */ input, button, textarea, select { font: inherit; } html { height: 100%; overflow: hidden; } html, body { overscroll-behavior-x: none; } body { display: flex; height: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-smooth: antialiased; text-rendering: optimizeLegibility; } div { box-sizing: border-box; } a { color: inherit; text-decoration: none; } /* ------------------- Error Page ------------------- */ .error-page { display: flex; inset: 0px; position: absolute; align-items: center; justify-content: center; padding: 0px 12px; } .error-page__container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; } .error-page__content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 400px; text-wrap: balance; } .error-page__content h1 { font-size: 12px; font-weight: 600; line-height: 1.6; margin: 0 0 12px; } .error-page__content p { font-size: 12px; font-weight: 500; line-height: 1.6; margin: 0; color: var(--text-color-2); } .error-page__container a, .error-page__container button { font-size: 12px; font-weight: 500; line-height: 1.6; color: inherit; padding: 0; text-decoration: underline; background: none; border: none; cursor: pointer; } /* ------------------ Board history ----------------- */ .board-history { padding: 64px; height: 100%; overflow: scroll; } .board-history__list { list-style: none; padding: 0; margin: 0; } .board-history__list > .board-history__month-group:first-child { margin-top: 24px; } .board-history__month-group { margin-bottom: 32px; } .board-history__month-header { font-size: 16px; font-weight: 600; color: var(--tl-color-text-0); margin: 0 0 8px 0; padding: 0; } .board-history__list a { color: var(--tl-color-text-0); text-decoration: none; padding: 8px 0; display: block; } .board-history__list a:hover { text-decoration: underline; } .board-history__load-more { display: flex; justify-content: center; padding: 16px; } .board-history__load-more-button { font-family: inherit; font-size: inherit; height: 36px; border: 2px solid var(--tl-color-selected); border-radius: 8px; background-color: var(--tl-color-selected); color: var(--tl-color-selected-contrast); text-shadow: none; pointer-events: all; position: relative; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .board-history__load-more-button:hover:not(:disabled) { background-color: var(--tl-color-selected); opacity: 0.9; } .board-history__load-more-button:disabled { opacity: 0.5; cursor: not-allowed; } /* ----------------- Iframe warning ----------------- */ .iframe-warning__container { position: absolute; inset: 0px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; } .iframe-warning__link { display: flex; align-items: center; gap: 4px; padding: 32px; font-size: 14px; } .iframe-warning__link svg { width: 14px; height: 14px; } .tlui-style-panel__wrapper { margin-top: 4px; } .tlui-guest-icon { /* https://stackoverflow.com/a/23735769/1810018 */ -webkit-transform: translateZ(0); }