Some checks failed
ci / changes (push) Has been cancelled
ci / lint (push) Has been cancelled
ci / build (push) Has been cancelled
ci / tests-unit (push) Has been cancelled
ci / tests-types (push) Has been cancelled
ci / int-cosmosdb (push) Has been cancelled
ci / int-documentdb (push) Has been cancelled
ci / int-firestore (push) Has been cancelled
ci / int-mongodb (push) Has been cancelled
ci / int-postgres (push) Has been cancelled
ci / int-postgres-custom-schema (push) Has been cancelled
ci / int-postgres-uuid (push) Has been cancelled
ci / int-sqlite (push) Has been cancelled
ci / int-sqlite-uuid (push) Has been cancelled
ci / int-supabase (push) Has been cancelled
ci / e2e-_community (push) Has been cancelled
ci / e2e-access-control (push) Has been cancelled
ci / e2e-admin-bar (push) Has been cancelled
ci / e2e-admin-root (push) Has been cancelled
ci / e2e-admin__e2e__document-view (push) Has been cancelled
ci / e2e-admin__e2e__general (push) Has been cancelled
ci / e2e-admin__e2e__list-view (push) Has been cancelled
ci / e2e-auth (push) Has been cancelled
ci / e2e-auth-basic (push) Has been cancelled
ci / e2e-bulk-edit (push) Has been cancelled
ci / e2e-field-error-states (push) Has been cancelled
ci / e2e-fields-relationship (push) Has been cancelled
ci / e2e-fields__collections__Array (push) Has been cancelled
ci / e2e-fields__collections__Blocks#config.blockreferences.ts (push) Has been cancelled
ci / e2e-fields__collections__Blocks (push) Has been cancelled
ci / e2e-fields__collections__Checkbox (push) Has been cancelled
ci / e2e-fields__collections__Collapsible (push) Has been cancelled
ci / e2e-fields__collections__ConditionalLogic (push) Has been cancelled
ci / e2e-fields__collections__CustomID (push) Has been cancelled
ci / e2e-fields__collections__Date (push) Has been cancelled
ci / e2e-fields__collections__Email (push) Has been cancelled
ci / e2e-fields__collections__Indexed (push) Has been cancelled
ci / e2e-fields__collections__JSON (push) Has been cancelled
ci / e2e-fields__collections__Number (push) Has been cancelled
ci / e2e-fields__collections__Point (push) Has been cancelled
ci / e2e-fields__collections__Radio (push) Has been cancelled
ci / e2e-fields__collections__Relationship (push) Has been cancelled
ci / e2e-fields__collections__Row (push) Has been cancelled
ci / e2e-fields__collections__Select (push) Has been cancelled
ci / e2e-fields__collections__Tabs (push) Has been cancelled
ci / e2e-fields__collections__Tabs2 (push) Has been cancelled
ci / e2e-fields__collections__Text (push) Has been cancelled
ci / e2e-fields__collections__UI (push) Has been cancelled
ci / e2e-fields__collections__Upload (push) Has been cancelled
ci / e2e-folders (push) Has been cancelled
ci / e2e-form-state (push) Has been cancelled
ci / e2e-group-by (push) Has been cancelled
ci / e2e-hooks (push) Has been cancelled
ci / e2e-i18n (push) Has been cancelled
ci / e2e-joins (push) Has been cancelled
ci / e2e-lexical__collections__LexicalHeadingFeature (push) Has been cancelled
ci / e2e-lexical__collections__LexicalJSXConverter (push) Has been cancelled
ci / e2e-lexical__collections__LexicalLinkFeature (push) Has been cancelled
ci / e2e-lexical__collections__Lexical__e2e__blocks#config.blockreferences.ts (push) Has been cancelled
ci / e2e-lexical__collections__Lexical__e2e__blocks (push) Has been cancelled
ci / e2e-lexical__collections__Lexical__e2e__main (push) Has been cancelled
ci / e2e-lexical__collections__OnDemandForm (push) Has been cancelled
ci / e2e-lexical__collections__RichText (push) Has been cancelled
ci / e2e-lexical__collections___LexicalFullyFeatured (push) Has been cancelled
ci / e2e-lexical__collections___LexicalFullyFeatured__db (push) Has been cancelled
ci / e2e-live-preview (push) Has been cancelled
ci / e2e-localization (push) Has been cancelled
ci / e2e-locked-documents (push) Has been cancelled
ci / e2e-plugin-cloud-storage (push) Has been cancelled
ci / e2e-plugin-form-builder (push) Has been cancelled
ci / e2e-plugin-import-export (push) Has been cancelled
ci / e2e-plugin-multi-tenant (push) Has been cancelled
ci / e2e-plugin-nested-docs (push) Has been cancelled
ci / e2e-plugin-seo (push) Has been cancelled
ci / e2e-query-presets (push) Has been cancelled
ci / e2e-sort (push) Has been cancelled
ci / e2e-trash (push) Has been cancelled
ci / e2e-uploads (push) Has been cancelled
ci / e2e-versions (push) Has been cancelled
ci / e2e-turbo-_community (push) Has been cancelled
ci / e2e-turbo-access-control (push) Has been cancelled
ci / e2e-turbo-admin-bar (push) Has been cancelled
ci / e2e-turbo-admin-root (push) Has been cancelled
ci / e2e-turbo-admin__e2e__document-view (push) Has been cancelled
ci / e2e-turbo-admin__e2e__general (push) Has been cancelled
ci / e2e-turbo-admin__e2e__list-view (push) Has been cancelled
ci / e2e-turbo-auth (push) Has been cancelled
ci / e2e-turbo-auth-basic (push) Has been cancelled
ci / e2e-turbo-bulk-edit (push) Has been cancelled
ci / e2e-turbo-field-error-states (push) Has been cancelled
ci / e2e-turbo-fields-relationship (push) Has been cancelled
ci / e2e-turbo-fields__collections__Array (push) Has been cancelled
ci / e2e-turbo-fields__collections__Blocks#config.blockreferences.ts (push) Has been cancelled
ci / e2e-turbo-fields__collections__Blocks (push) Has been cancelled
ci / e2e-turbo-fields__collections__Checkbox (push) Has been cancelled
ci / e2e-turbo-fields__collections__Collapsible (push) Has been cancelled
ci / e2e-turbo-fields__collections__ConditionalLogic (push) Has been cancelled
ci / e2e-turbo-fields__collections__CustomID (push) Has been cancelled
ci / e2e-turbo-fields__collections__Date (push) Has been cancelled
ci / e2e-turbo-fields__collections__Email (push) Has been cancelled
ci / e2e-turbo-fields__collections__Indexed (push) Has been cancelled
ci / e2e-turbo-fields__collections__JSON (push) Has been cancelled
ci / e2e-turbo-fields__collections__Number (push) Has been cancelled
ci / e2e-turbo-fields__collections__Point (push) Has been cancelled
ci / e2e-turbo-fields__collections__Radio (push) Has been cancelled
ci / e2e-turbo-fields__collections__Relationship (push) Has been cancelled
ci / e2e-turbo-fields__collections__Row (push) Has been cancelled
ci / e2e-turbo-fields__collections__Select (push) Has been cancelled
ci / e2e-turbo-fields__collections__Tabs (push) Has been cancelled
ci / e2e-turbo-fields__collections__Tabs2 (push) Has been cancelled
ci / e2e-turbo-fields__collections__Text (push) Has been cancelled
ci / e2e-turbo-fields__collections__UI (push) Has been cancelled
ci / e2e-turbo-fields__collections__Upload (push) Has been cancelled
ci / e2e-turbo-folders (push) Has been cancelled
ci / e2e-turbo-form-state (push) Has been cancelled
ci / e2e-turbo-group-by (push) Has been cancelled
ci / e2e-turbo-hooks (push) Has been cancelled
ci / e2e-turbo-i18n (push) Has been cancelled
ci / e2e-turbo-joins (push) Has been cancelled
ci / e2e-turbo-lexical__collections__LexicalHeadingFeature (push) Has been cancelled
ci / e2e-turbo-lexical__collections__LexicalJSXConverter (push) Has been cancelled
ci / e2e-turbo-lexical__collections__LexicalLinkFeature (push) Has been cancelled
ci / e2e-turbo-lexical__collections__Lexical__e2e__blocks#config.blockreferences.ts (push) Has been cancelled
ci / e2e-turbo-lexical__collections__Lexical__e2e__blocks (push) Has been cancelled
ci / e2e-turbo-lexical__collections__Lexical__e2e__main (push) Has been cancelled
ci / e2e-turbo-lexical__collections__OnDemandForm (push) Has been cancelled
ci / e2e-turbo-lexical__collections__RichText (push) Has been cancelled
ci / e2e-turbo-lexical__collections___LexicalFullyFeatured (push) Has been cancelled
ci / e2e-turbo-lexical__collections___LexicalFullyFeatured__db (push) Has been cancelled
ci / e2e-turbo-live-preview (push) Has been cancelled
ci / e2e-turbo-localization (push) Has been cancelled
ci / e2e-turbo-locked-documents (push) Has been cancelled
ci / e2e-turbo-plugin-cloud-storage (push) Has been cancelled
ci / e2e-turbo-plugin-form-builder (push) Has been cancelled
ci / e2e-turbo-plugin-import-export (push) Has been cancelled
ci / e2e-turbo-plugin-multi-tenant (push) Has been cancelled
ci / e2e-turbo-plugin-nested-docs (push) Has been cancelled
ci / e2e-turbo-plugin-seo (push) Has been cancelled
ci / e2e-turbo-query-presets (push) Has been cancelled
ci / e2e-turbo-sort (push) Has been cancelled
ci / e2e-turbo-trash (push) Has been cancelled
ci / e2e-turbo-uploads (push) Has been cancelled
ci / e2e-turbo-versions (push) Has been cancelled
ci / build-template-blank-mongodb (push) Has been cancelled
ci / build-template-website-mongodb (push) Has been cancelled
ci / build-template-with-payload-cloud-mongodb (push) Has been cancelled
ci / build-template-with-vercel-mongodb-mongodb (push) Has been cancelled
ci / build-template-plugin- (push) Has been cancelled
ci / build-template-with-postgres-postgres (push) Has been cancelled
ci / build-template-with-vercel-postgres-postgres (push) Has been cancelled
ci / tests-type-generation (push) Has been cancelled
ci / All Green (push) Has been cancelled
ci / Publish Canary (push) Has been cancelled
ci / analyze (push) Has been cancelled
publish-prerelease / publish-prerelease-${{ github.ref_name }}-${{ github.sha }} (push) Has been cancelled
lock-issues / lock_issues (push) Has been cancelled
stale / stale (push) Has been cancelled
audit-dependencies / audit (push) Has been cancelled
activity-notifications / run (push) Has been cancelled
216 lines
4.2 KiB
SCSS
216 lines
4.2 KiB
SCSS
@import '~@tabshiftcms/ui/scss';
|
|
|
|
@layer payload-default {
|
|
.rich-text {
|
|
margin-bottom: base(2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
isolation: isolate;
|
|
|
|
&__toolbar {
|
|
@include blur-bg(var(--theme-elevation-0));
|
|
margin-bottom: $baseline;
|
|
border: $style-stroke-width-s solid var(--theme-elevation-150);
|
|
position: sticky;
|
|
z-index: 1;
|
|
top: var(--doc-controls-height);
|
|
}
|
|
|
|
&__toolbar-wrap {
|
|
padding: base(0.25);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: stretch;
|
|
position: relative;
|
|
z-index: 1;
|
|
|
|
&:after {
|
|
content: ' ';
|
|
opacity: 0.8;
|
|
position: absolute;
|
|
top: calc(100% + 1px);
|
|
background: linear-gradient(var(--theme-elevation-0), transparent);
|
|
display: block;
|
|
left: -1px;
|
|
right: -1px;
|
|
height: base(1);
|
|
}
|
|
}
|
|
|
|
&__editor {
|
|
font-family: var(--font-serif);
|
|
font-size: base(0.8);
|
|
line-height: 1.5;
|
|
|
|
*[data-slate-node='element'] {
|
|
margin-top: 0.75em;
|
|
position: relative;
|
|
line-height: 1.5;
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-weight: 700;
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h1[data-slate-node='element'] {
|
|
font-size: base(1.4);
|
|
margin-block: 0.5em 0.4em;
|
|
line-height: base(1.2);
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h2[data-slate-node='element'] {
|
|
font-size: base(1.25);
|
|
margin-block: 0.55em 0.4em;
|
|
line-height: base(1.2);
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h3[data-slate-node='element'] {
|
|
font-size: base(1.1);
|
|
margin-block: 0.6em 0.4em;
|
|
line-height: base(1.3);
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h4[data-slate-node='element'] {
|
|
font-size: base(1);
|
|
margin-block: 0.65em 0.4em;
|
|
line-height: base(1.4);
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h5[data-slate-node='element'] {
|
|
font-size: base(0.9);
|
|
margin-block: 0.7em 0.4em;
|
|
line-height: base(1.5);
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
h6[data-slate-node='element'] {
|
|
font-size: base(0.8);
|
|
margin-block: 0.75em 0.4em;
|
|
line-height: base(1.5);
|
|
}
|
|
}
|
|
|
|
&--gutter {
|
|
.rich-text__editor {
|
|
padding-left: $baseline;
|
|
border-left: 1px solid var(--theme-elevation-100);
|
|
}
|
|
}
|
|
|
|
&__input {
|
|
min-height: base(10);
|
|
}
|
|
|
|
&__wrap {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
&__wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
&--read-only {
|
|
.rich-text__editor {
|
|
background: var(--theme-elevation-200);
|
|
color: var(--theme-elevation-450);
|
|
padding: base(0.5);
|
|
|
|
.popup button {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.rich-text__toolbar {
|
|
pointer-events: none;
|
|
position: relative;
|
|
top: 0;
|
|
|
|
&::after {
|
|
content: ' ';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--theme-elevation-200);
|
|
opacity: 0.85;
|
|
z-index: 2;
|
|
backdrop-filter: unset;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__button {
|
|
@extend %btn-reset;
|
|
padding: base(0.25);
|
|
|
|
svg {
|
|
@include color-svg(var(--theme-elevation-800));
|
|
width: base(0.75);
|
|
height: base(0.75);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--theme-elevation-100);
|
|
}
|
|
|
|
&__button--active,
|
|
&__button--active:hover {
|
|
background-color: var(--theme-elevation-150);
|
|
}
|
|
}
|
|
|
|
&__drawerIsOpen {
|
|
top: base(1);
|
|
}
|
|
|
|
@include mid-break {
|
|
&__toolbar {
|
|
top: base(3);
|
|
}
|
|
|
|
&__drawerIsOpen {
|
|
top: base(1);
|
|
}
|
|
}
|
|
}
|
|
|
|
[data-slate-node='element'] {
|
|
margin-bottom: base(0.25);
|
|
}
|
|
|
|
html[data-theme='light'] {
|
|
.rich-text {
|
|
&.error {
|
|
.rich-text__editor,
|
|
.rich-text__toolbar {
|
|
@include lightInputError;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
html[data-theme='dark'] {
|
|
.rich-text {
|
|
&.error {
|
|
.rich-text__editor,
|
|
.rich-text__toolbar {
|
|
@include darkInputError;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|