Files
upstream-mirror a774ac673a
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
snapshot of https://github.com/tldraw/tldraw.git (main, 2026-09-23; blobs > 131072B omitted)
2026-09-23 16:12:52 +05:00

301 lines
5.3 KiB
CSS

@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);
}