424 lines
8.1 KiB
CSS
424 lines
8.1 KiB
CSS
/* TipTap collaboration carets (remote users) */
|
||
.collaboration-carets__caret {
|
||
border-left: 2px solid currentColor;
|
||
margin-left: -1px;
|
||
margin-right: -1px;
|
||
pointer-events: none;
|
||
position: relative;
|
||
word-break: normal;
|
||
}
|
||
|
||
.collaboration-carets__label {
|
||
border-radius: 4px 4px 4px 0;
|
||
color: #fff;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
left: -1px;
|
||
line-height: 1.2;
|
||
padding: 2px 6px;
|
||
position: absolute;
|
||
top: -1.4em;
|
||
user-select: none;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.ultidrive-richtext-editor .ProseMirror-selectednode {
|
||
outline: 2px solid hsl(var(--primary) / 0.35);
|
||
}
|
||
|
||
.ultidrive-richtext-editor table {
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
}
|
||
|
||
.ultidrive-richtext-editor td,
|
||
.ultidrive-richtext-editor th {
|
||
border: 1px solid hsl(var(--border));
|
||
min-width: 80px;
|
||
padding: 6px 8px;
|
||
vertical-align: top;
|
||
}
|
||
|
||
/* Google Docs–style chrome */
|
||
.docs-menu-trigger {
|
||
height: auto;
|
||
padding: 2px 8px;
|
||
font-size: 13px;
|
||
font-weight: 400;
|
||
color: #3c4043;
|
||
background: transparent;
|
||
border: none;
|
||
border-radius: 4px;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.docs-menu-trigger:hover,
|
||
.docs-menu-trigger[data-state="open"] {
|
||
background: #e8eaed;
|
||
}
|
||
|
||
.dark .docs-menu-trigger {
|
||
color: hsl(var(--foreground));
|
||
}
|
||
|
||
.dark .docs-menu-trigger:hover,
|
||
.dark .docs-menu-trigger[data-state="open"] {
|
||
background: hsl(var(--muted));
|
||
}
|
||
|
||
.docs-toolbar-btn:hover:not(:disabled) {
|
||
background: #d3e3fd;
|
||
}
|
||
|
||
.dark .docs-toolbar-btn:hover:not(:disabled) {
|
||
background: #444746;
|
||
}
|
||
|
||
.docs-toolbar-btn--active {
|
||
background: #d3e3fd;
|
||
}
|
||
|
||
.dark .docs-toolbar-btn--active {
|
||
background: #444746;
|
||
}
|
||
|
||
.docs-menubar {
|
||
margin-left: -3px;
|
||
}
|
||
|
||
/* Align title first letter with "Fichier" (menubar -3px, title field px-2). */
|
||
.docs-chrome-title-row {
|
||
margin-left: -5px;
|
||
}
|
||
|
||
.docs-menubar [data-slot="menubar-menu"]:first-child .docs-menu-trigger {
|
||
padding-left: 0;
|
||
margin-left: 0;
|
||
}
|
||
|
||
.docs-toolbar-shell {
|
||
padding: 0 12px 8px;
|
||
}
|
||
|
||
.docs-toolbar-shell--collapsed {
|
||
padding-top: 8px;
|
||
}
|
||
|
||
.docs-toolbar {
|
||
flex-wrap: nowrap;
|
||
color: #202124;
|
||
background: #edf2fa;
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
.dark .docs-toolbar {
|
||
color: #e8eaed;
|
||
background: #2d2e30;
|
||
}
|
||
|
||
.docs-toolbar .docs-toolbar-btn {
|
||
color: inherit;
|
||
}
|
||
|
||
.docs-toolbar-select {
|
||
font-size: 13px;
|
||
color: inherit;
|
||
background: transparent !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.docs-toolbar [data-slot="select-trigger"].docs-toolbar-select:hover,
|
||
.docs-toolbar [data-slot="select-trigger"].docs-toolbar-select:focus-visible,
|
||
.docs-toolbar [data-slot="select-trigger"].docs-toolbar-select[data-state="open"],
|
||
.dark .docs-toolbar [data-slot="select-trigger"].docs-toolbar-select:hover,
|
||
.dark .docs-toolbar [data-slot="select-trigger"].docs-toolbar-select:focus-visible,
|
||
.dark .docs-toolbar [data-slot="select-trigger"].docs-toolbar-select[data-state="open"] {
|
||
background: transparent !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.docs-toolbar-select [data-slot="select-value"] {
|
||
color: inherit;
|
||
}
|
||
|
||
.dark .docs-toolbar [data-slot="select-trigger"].docs-toolbar-select {
|
||
color: #e8eaed;
|
||
}
|
||
|
||
.dark .docs-toolbar [data-slot="select-trigger"].docs-toolbar-select [data-slot="select-value"] {
|
||
color: #e8eaed;
|
||
}
|
||
|
||
.dark .docs-toolbar [data-slot="select-trigger"].docs-toolbar-select svg {
|
||
color: #e8eaed;
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.docs-toolbar-select--placeholder {
|
||
opacity: 0.55;
|
||
}
|
||
|
||
.dark .docs-toolbar-select--placeholder {
|
||
opacity: 1;
|
||
color: #e8eaed;
|
||
}
|
||
|
||
.dark .docs-toolbar-select--placeholder [data-slot="select-value"] {
|
||
color: #e8eaed;
|
||
}
|
||
|
||
.docs-toolbar-icon {
|
||
color: #3c4043;
|
||
}
|
||
|
||
.dark .docs-toolbar-icon {
|
||
color: #e8eaed;
|
||
}
|
||
|
||
.docs-toolbar-sep {
|
||
display: inline-block;
|
||
align-self: center;
|
||
flex-shrink: 0;
|
||
width: 0;
|
||
height: 18px;
|
||
margin-inline: 4px;
|
||
border-left: 1px solid #dadce0;
|
||
background: none;
|
||
}
|
||
|
||
.dark .docs-toolbar .docs-toolbar-sep {
|
||
border-left-color: #80868b;
|
||
background: none;
|
||
}
|
||
|
||
.docs-toolbar-select--size {
|
||
justify-content: center;
|
||
gap: 0 !important;
|
||
width: 26px;
|
||
min-width: 26px;
|
||
height: 22px;
|
||
min-height: 22px;
|
||
padding: 0 1px !important;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
border: 1px solid #dadce0 !important;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.docs-toolbar-font-size {
|
||
gap: 3px;
|
||
}
|
||
|
||
.docs-toolbar-btn--size-step {
|
||
width: 20px;
|
||
height: 20px;
|
||
min-width: 20px;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.dark .docs-toolbar .docs-toolbar-select--size {
|
||
border-color: #9aa0a6 !important;
|
||
}
|
||
|
||
.docs-toolbar-select--size:hover,
|
||
.docs-toolbar-select--size:focus-visible,
|
||
.docs-toolbar-select--size[data-state="open"] {
|
||
border-color: #bdc1c6 !important;
|
||
}
|
||
|
||
.dark .docs-toolbar .docs-toolbar-select--size:hover,
|
||
.dark .docs-toolbar .docs-toolbar-select--size:focus-visible,
|
||
.dark .docs-toolbar .docs-toolbar-select--size[data-state="open"] {
|
||
border-color: #bdc1c6 !important;
|
||
}
|
||
|
||
.docs-toolbar-select--size [data-slot="select-value"] {
|
||
flex: 1;
|
||
justify-content: center;
|
||
text-align: center;
|
||
padding: 0;
|
||
line-height: 1;
|
||
}
|
||
|
||
.docs-toolbar-select--size svg {
|
||
display: none;
|
||
}
|
||
|
||
/* Dropdown previews — text style & font family */
|
||
.docs-toolbar-select-content--style {
|
||
min-width: 220px;
|
||
}
|
||
|
||
.docs-toolbar-select-content--font {
|
||
min-width: 196px;
|
||
}
|
||
|
||
.docs-toolbar-style-item {
|
||
align-items: center;
|
||
min-height: auto;
|
||
padding-top: 0.375rem;
|
||
padding-bottom: 0.375rem;
|
||
}
|
||
|
||
.docs-toolbar-style-preview {
|
||
display: block;
|
||
line-height: 1.25;
|
||
color: inherit;
|
||
}
|
||
|
||
.docs-toolbar-style-preview--paragraph {
|
||
font-size: 0.875rem;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.docs-toolbar-style-preview--heading1 {
|
||
font-size: 1.75rem;
|
||
font-weight: 400;
|
||
line-height: 1.15;
|
||
}
|
||
|
||
.docs-toolbar-style-preview--heading2 {
|
||
font-size: 1.375rem;
|
||
font-weight: 400;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.docs-toolbar-style-preview--heading3 {
|
||
font-size: 1.125rem;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.docs-toolbar-style-preview--heading4 {
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.docs-toolbar-font-preview {
|
||
display: block;
|
||
font-size: 0.875rem;
|
||
line-height: 1.25;
|
||
color: inherit;
|
||
}
|
||
|
||
.docs-toolbar-color-glyph {
|
||
position: relative;
|
||
display: inline-flex;
|
||
width: 18px;
|
||
height: 18px;
|
||
flex-shrink: 0;
|
||
align-items: flex-start;
|
||
justify-content: center;
|
||
}
|
||
|
||
.docs-toolbar-color-glyph__icon {
|
||
width: 18px;
|
||
height: 18px;
|
||
transform: translateY(-1px);
|
||
clip-path: inset(0 0 5px 0);
|
||
}
|
||
|
||
.docs-toolbar-color-glyph--highlight .docs-toolbar-color-glyph__icon {
|
||
clip-path: inset(0 0 3px 0);
|
||
}
|
||
|
||
.docs-toolbar-color-glyph__swatch {
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 50%;
|
||
width: 16px;
|
||
height: 3px;
|
||
transform: translateX(-50%);
|
||
border-radius: 1px;
|
||
}
|
||
|
||
.ultidrive-docs-editor-surface .ProseMirror {
|
||
min-height: var(--docs-prose-min-height, 600px);
|
||
}
|
||
|
||
.ultidrive-richtext-editor.prose {
|
||
--tw-prose-body: #000000;
|
||
--tw-prose-headings: #000000;
|
||
--tw-prose-bold: #000000;
|
||
--tw-prose-counters: #5f6368;
|
||
--tw-prose-bullets: #5f6368;
|
||
color: #000000;
|
||
}
|
||
|
||
.ultidrive-docs-canvas {
|
||
scrollbar-width: auto;
|
||
}
|
||
|
||
.dark .ultidrive-docs-canvas {
|
||
scrollbar-color: #5f6368 #202124;
|
||
}
|
||
|
||
.dark .ultidrive-docs-canvas::-webkit-scrollbar {
|
||
width: 12px;
|
||
height: 12px;
|
||
}
|
||
|
||
.dark .ultidrive-docs-canvas::-webkit-scrollbar-track {
|
||
background: #202124;
|
||
}
|
||
|
||
.dark .ultidrive-docs-canvas::-webkit-scrollbar-thumb {
|
||
background-color: #5f6368;
|
||
border: 3px solid #202124;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.dark .ultidrive-docs-canvas::-webkit-scrollbar-thumb:hover {
|
||
background-color: #80868b;
|
||
}
|
||
|
||
.dark .ultidrive-docs-canvas::-webkit-scrollbar-corner {
|
||
background: #202124;
|
||
}
|
||
|
||
.ultidrive-docs-page {
|
||
border: 1px solid #dadce0;
|
||
}
|
||
|
||
.ultidrive-docs-page .ultidrive-richtext-editor {
|
||
min-height: 100%;
|
||
color: #000000;
|
||
}
|
||
|
||
.ultidrive-richtext-editor .ProseMirror {
|
||
color: #000000;
|
||
caret-color: #000000;
|
||
}
|
||
|
||
.ultidrive-richtext-editor .ProseMirror p.is-editor-empty:first-child::before {
|
||
color: #80868b;
|
||
}
|
||
|
||
.ultidrive-richtext-editor p {
|
||
margin-top: 0;
|
||
margin-bottom: 0.75em;
|
||
}
|
||
|
||
.ultidrive-richtext-editor h1 {
|
||
font-size: 1.75rem;
|
||
font-weight: 400;
|
||
margin-bottom: 0.5em;
|
||
}
|
||
|
||
.ultidrive-richtext-editor h2 {
|
||
font-size: 1.375rem;
|
||
font-weight: 400;
|
||
margin-bottom: 0.5em;
|
||
}
|
||
|
||
.ultidrive-richtext-editor h3 {
|
||
font-size: 1.125rem;
|
||
font-weight: 400;
|
||
margin-bottom: 0.5em;
|
||
}
|
||
|
||
.ultidrive-richtext-editor h4 {
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
margin-bottom: 0.5em;
|
||
}
|