feat(ui)!: scope all payload css to payload-default layer (#8545)

All payload css is now encapsulated inside CSS layers under `@layer
payload-default`

Any custom css will now have the highest possible specificity.
We have also provided a new layer `@layer payload` if you want to use
layers and ensure that your styles are applied after payload.

To override existing styles in a way that the existing rules of
specificity would be respected you can use the default layer like so
```css
@layer payload-default {
  // my styles within the payload specificity
}
```
This commit is contained in:
Paul
2024-10-04 13:02:56 -06:00
committed by GitHub
parent 400293b8ee
commit 7c62e2a327
234 changed files with 12702 additions and 12208 deletions

View File

@@ -33,6 +33,19 @@ Here is an example of how you might target the Dashboard View and change the bac
If you are building [Custom Components](./overview), it is best to import your own stylesheets directly into your components, rather than using the global stylesheet. You can continue to use the [CSS library](#css-library) as needed.
</Banner>
### Specificity rules
All Payload CSS is encapsulated inside CSS layers under `@layer payload-default`. Any custom css will now have the highest possible specificity.
We have also provided a layer `@layer payload` if you want to use layers and ensure that your styles are applied after payload.
To override existing styles in a way that the previous rules of specificity would be respected you can use the default layer like so
```css
@layer payload-default {
// my styles within the payload specificity
}
```
## Re-using Payload SCSS variables and utilities
You can re-use Payload's SCSS variables and utilities in your own stylesheets by importing it from the UI package.

View File

@@ -1,203 +1,207 @@
@layer payload-default, payload;
@import 'styles';
@import './toasts.scss';
@import './colors.scss';
:root {
--base-px: 20;
--base-body-size: 13;
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
@layer payload-default {
:root {
--base-px: 20;
--base-body-size: 13;
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
--breakpoint-xs-width: #{$breakpoint-xs-width};
--breakpoint-s-width: #{$breakpoint-s-width};
--breakpoint-m-width: #{$breakpoint-m-width};
--breakpoint-l-width: #{$breakpoint-l-width};
--scrollbar-width: 17px;
--breakpoint-xs-width: #{$breakpoint-xs-width};
--breakpoint-s-width: #{$breakpoint-s-width};
--breakpoint-m-width: #{$breakpoint-m-width};
--breakpoint-l-width: #{$breakpoint-l-width};
--scrollbar-width: 17px;
--theme-bg: var(--theme-elevation-0);
--theme-input-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-800);
--theme-overlay: rgba(5, 5, 5, 0.5);
--theme-baseline: #{$baseline-px};
--theme-baseline-body-size: #{$baseline-body-size};
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
sans-serif;
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
--style-radius-s: #{$style-radius-s};
--style-radius-m: #{$style-radius-m};
--style-radius-l: #{$style-radius-l};
--z-popup: 10;
--z-nav: 20;
--z-modal: 30;
--z-status: 40;
--accessibility-outline: 2px solid var(--theme-text);
--accessibility-outline-offset: 2px;
--gutter-h: #{base(3)};
--spacing-view-bottom: var(--gutter-h);
--doc-controls-height: calc(var(--base) * 2.8);
--app-header-height: calc(var(--base) * 2.8);
--nav-width: 275px;
--nav-trans-time: 150ms;
@include mid-break {
--gutter-h: #{base(2)};
--app-header-height: calc(var(--base) * 2.4);
--doc-controls-height: calc(var(--base) * 2.4);
}
@include small-break {
--gutter-h: #{base(0.8)};
--spacing-view-bottom: calc(var(--base) * 2);
--nav-width: 100vw;
}
}
/////////////////////////////
// GLOBAL STYLES
/////////////////////////////
* {
box-sizing: border-box;
}
html {
@extend %body;
background: var(--theme-bg);
-webkit-font-smoothing: antialiased;
&[data-theme='dark'] {
--theme-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-1000);
--theme-input-bg: var(--theme-elevation-50);
--theme-overlay: rgba(5, 5, 5, 0.75);
color-scheme: dark;
--theme-input-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-800);
--theme-overlay: rgba(5, 5, 5, 0.5);
--theme-baseline: #{$baseline-px};
--theme-baseline-body-size: #{$baseline-body-size};
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
sans-serif;
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
::selection {
color: var(--color-base-1000);
--style-radius-s: #{$style-radius-s};
--style-radius-m: #{$style-radius-m};
--style-radius-l: #{$style-radius-l};
--z-popup: 10;
--z-nav: 20;
--z-modal: 30;
--z-status: 40;
--accessibility-outline: 2px solid var(--theme-text);
--accessibility-outline-offset: 2px;
--gutter-h: #{base(3)};
--spacing-view-bottom: var(--gutter-h);
--doc-controls-height: calc(var(--base) * 2.8);
--app-header-height: calc(var(--base) * 2.8);
--nav-width: 275px;
--nav-trans-time: 150ms;
@include mid-break {
--gutter-h: #{base(2)};
--app-header-height: calc(var(--base) * 2.4);
--doc-controls-height: calc(var(--base) * 2.4);
}
::-moz-selection {
color: var(--color-base-1000);
@include small-break {
--gutter-h: #{base(0.8)};
--spacing-view-bottom: calc(var(--base) * 2);
--nav-width: 100vw;
}
}
@include mid-break {
font-size: 12px;
/////////////////////////////
// GLOBAL STYLES
/////////////////////////////
* {
box-sizing: border-box;
}
}
html,
body,
#app {
height: 100%;
}
html {
@extend %body;
background: var(--theme-bg);
-webkit-font-smoothing: antialiased;
body {
font-family: var(--font-body);
font-weight: 400;
color: var(--theme-text);
margin: 0;
// this is for the nav to be able to push the document over
overflow-x: hidden;
}
&[data-theme='dark'] {
--theme-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-1000);
--theme-input-bg: var(--theme-elevation-50);
--theme-overlay: rgba(5, 5, 5, 0.75);
color-scheme: dark;
::selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
::selection {
color: var(--color-base-1000);
}
::-moz-selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
img {
max-width: 100%;
height: auto;
display: block;
}
h1 {
@extend %h1;
}
h2 {
@extend %h2;
}
h3 {
@extend %h3;
}
h4 {
@extend %h4;
}
h5 {
@extend %h5;
}
h6 {
@extend %h6;
}
p {
margin: 0;
}
ul,
ol {
padding-left: $baseline;
margin: 0;
}
:focus-visible {
outline: var(--accessibility-outline);
}
a {
color: currentColor;
&:focus {
&:not(:focus-visible) {
opacity: 0.8;
::-moz-selection {
color: var(--color-base-1000);
}
}
@include mid-break {
font-size: 12px;
}
outline: none;
}
&:active {
opacity: 0.7;
outline: none;
html,
body,
#app {
height: 100%;
}
}
svg {
vertical-align: middle;
}
body {
font-family: var(--font-body);
font-weight: 400;
color: var(--theme-text);
margin: 0;
// this is for the nav to be able to push the document over
overflow-x: hidden;
}
dialog {
width: 100%;
border: 0;
padding: 0;
color: currentColor;
}
::selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
.payload__modal-item {
min-height: 100%;
background: transparent;
}
::-moz-selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
.payload__modal-container--enterDone {
overflow: auto;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.payload__modal-item--enter,
.payload__modal-item--enterDone {
z-index: var(--z-modal);
}
h1 {
@extend %h1;
}
// @import '~payload-user-css'; TODO: re-enable this
h2 {
@extend %h2;
}
h3 {
@extend %h3;
}
h4 {
@extend %h4;
}
h5 {
@extend %h5;
}
h6 {
@extend %h6;
}
p {
margin: 0;
}
ul,
ol {
padding-left: $baseline;
margin: 0;
}
:focus-visible {
outline: var(--accessibility-outline);
}
a {
color: currentColor;
&:focus {
&:not(:focus-visible) {
opacity: 0.8;
}
outline: none;
}
&:active {
opacity: 0.7;
outline: none;
}
}
svg {
vertical-align: middle;
}
dialog {
width: 100%;
border: 0;
padding: 0;
color: currentColor;
}
.payload__modal-item {
min-height: 100%;
background: transparent;
}
.payload__modal-container--enterDone {
overflow: auto;
}
.payload__modal-item--enter,
.payload__modal-item--enterDone {
z-index: var(--z-modal);
}
// @import '~payload-user-css'; TODO: re-enable this
}

View File

@@ -1,269 +1,271 @@
:root {
--color-base-0: rgb(255, 255, 255);
--color-base-50: rgb(245, 245, 245);
--color-base-100: rgb(235, 235, 235);
--color-base-150: rgb(221, 221, 221);
--color-base-200: rgb(208, 208, 208);
--color-base-250: rgb(195, 195, 195);
--color-base-300: rgb(181, 181, 181);
--color-base-350: rgb(168, 168, 168);
--color-base-400: rgb(154, 154, 154);
--color-base-450: rgb(141, 141, 141);
--color-base-500: rgb(128, 128, 128);
--color-base-550: rgb(114, 114, 114);
--color-base-600: rgb(101, 101, 101);
--color-base-650: rgb(87, 87, 87);
--color-base-700: rgb(74, 74, 74);
--color-base-750: rgb(60, 60, 60);
--color-base-800: rgb(47, 47, 47);
--color-base-850: rgb(34, 34, 34);
--color-base-900: rgb(20, 20, 20);
--color-base-950: rgb(7, 7, 7);
--color-base-1000: rgb(0, 0, 0);
@layer payload-default {
:root {
--color-base-0: rgb(255, 255, 255);
--color-base-50: rgb(245, 245, 245);
--color-base-100: rgb(235, 235, 235);
--color-base-150: rgb(221, 221, 221);
--color-base-200: rgb(208, 208, 208);
--color-base-250: rgb(195, 195, 195);
--color-base-300: rgb(181, 181, 181);
--color-base-350: rgb(168, 168, 168);
--color-base-400: rgb(154, 154, 154);
--color-base-450: rgb(141, 141, 141);
--color-base-500: rgb(128, 128, 128);
--color-base-550: rgb(114, 114, 114);
--color-base-600: rgb(101, 101, 101);
--color-base-650: rgb(87, 87, 87);
--color-base-700: rgb(74, 74, 74);
--color-base-750: rgb(60, 60, 60);
--color-base-800: rgb(47, 47, 47);
--color-base-850: rgb(34, 34, 34);
--color-base-900: rgb(20, 20, 20);
--color-base-950: rgb(7, 7, 7);
--color-base-1000: rgb(0, 0, 0);
--color-success-50: rgb(237, 245, 249);
--color-success-100: rgb(218, 237, 248);
--color-success-150: rgb(188, 225, 248);
--color-success-200: rgb(156, 216, 253);
--color-success-250: rgb(125, 204, 248);
--color-success-300: rgb(97, 190, 241);
--color-success-350: rgb(65, 178, 236);
--color-success-400: rgb(36, 164, 223);
--color-success-450: rgb(18, 148, 204);
--color-success-500: rgb(21, 135, 186);
--color-success-550: rgb(12, 121, 168);
--color-success-600: rgb(11, 110, 153);
--color-success-650: rgb(11, 97, 135);
--color-success-700: rgb(17, 88, 121);
--color-success-750: rgb(17, 76, 105);
--color-success-800: rgb(18, 66, 90);
--color-success-850: rgb(18, 56, 76);
--color-success-900: rgb(19, 44, 58);
--color-success-950: rgb(22, 33, 39);
--color-success-50: rgb(237, 245, 249);
--color-success-100: rgb(218, 237, 248);
--color-success-150: rgb(188, 225, 248);
--color-success-200: rgb(156, 216, 253);
--color-success-250: rgb(125, 204, 248);
--color-success-300: rgb(97, 190, 241);
--color-success-350: rgb(65, 178, 236);
--color-success-400: rgb(36, 164, 223);
--color-success-450: rgb(18, 148, 204);
--color-success-500: rgb(21, 135, 186);
--color-success-550: rgb(12, 121, 168);
--color-success-600: rgb(11, 110, 153);
--color-success-650: rgb(11, 97, 135);
--color-success-700: rgb(17, 88, 121);
--color-success-750: rgb(17, 76, 105);
--color-success-800: rgb(18, 66, 90);
--color-success-850: rgb(18, 56, 76);
--color-success-900: rgb(19, 44, 58);
--color-success-950: rgb(22, 33, 39);
--color-error-50: rgb(250, 241, 240);
--color-error-100: rgb(252, 229, 227);
--color-error-150: rgb(247, 208, 204);
--color-error-200: rgb(254, 193, 188);
--color-error-250: rgb(253, 177, 170);
--color-error-300: rgb(253, 154, 146);
--color-error-350: rgb(253, 131, 123);
--color-error-400: rgb(246, 109, 103);
--color-error-450: rgb(234, 90, 86);
--color-error-500: rgb(218, 75, 72);
--color-error-550: rgb(200, 62, 61);
--color-error-600: rgb(182, 54, 54);
--color-error-650: rgb(161, 47, 47);
--color-error-700: rgb(144, 44, 43);
--color-error-750: rgb(123, 41, 39);
--color-error-800: rgb(105, 39, 37);
--color-error-850: rgb(86, 36, 33);
--color-error-900: rgb(64, 32, 29);
--color-error-950: rgb(44, 26, 24);
--color-error-50: rgb(250, 241, 240);
--color-error-100: rgb(252, 229, 227);
--color-error-150: rgb(247, 208, 204);
--color-error-200: rgb(254, 193, 188);
--color-error-250: rgb(253, 177, 170);
--color-error-300: rgb(253, 154, 146);
--color-error-350: rgb(253, 131, 123);
--color-error-400: rgb(246, 109, 103);
--color-error-450: rgb(234, 90, 86);
--color-error-500: rgb(218, 75, 72);
--color-error-550: rgb(200, 62, 61);
--color-error-600: rgb(182, 54, 54);
--color-error-650: rgb(161, 47, 47);
--color-error-700: rgb(144, 44, 43);
--color-error-750: rgb(123, 41, 39);
--color-error-800: rgb(105, 39, 37);
--color-error-850: rgb(86, 36, 33);
--color-error-900: rgb(64, 32, 29);
--color-error-950: rgb(44, 26, 24);
--color-warning-50: rgb(249, 242, 237);
--color-warning-100: rgb(248, 232, 219);
--color-warning-150: rgb(243, 212, 186);
--color-warning-200: rgb(243, 200, 162);
--color-warning-250: rgb(240, 185, 136);
--color-warning-300: rgb(238, 166, 98);
--color-warning-350: rgb(234, 148, 58);
--color-warning-400: rgb(223, 132, 17);
--color-warning-450: rgb(204, 120, 15);
--color-warning-500: rgb(185, 108, 13);
--color-warning-550: rgb(167, 97, 10);
--color-warning-600: rgb(150, 87, 11);
--color-warning-650: rgb(134, 78, 11);
--color-warning-700: rgb(120, 70, 13);
--color-warning-750: rgb(105, 61, 13);
--color-warning-800: rgb(90, 55, 19);
--color-warning-850: rgb(73, 47, 21);
--color-warning-900: rgb(56, 38, 20);
--color-warning-950: rgb(38, 29, 21);
--color-warning-50: rgb(249, 242, 237);
--color-warning-100: rgb(248, 232, 219);
--color-warning-150: rgb(243, 212, 186);
--color-warning-200: rgb(243, 200, 162);
--color-warning-250: rgb(240, 185, 136);
--color-warning-300: rgb(238, 166, 98);
--color-warning-350: rgb(234, 148, 58);
--color-warning-400: rgb(223, 132, 17);
--color-warning-450: rgb(204, 120, 15);
--color-warning-500: rgb(185, 108, 13);
--color-warning-550: rgb(167, 97, 10);
--color-warning-600: rgb(150, 87, 11);
--color-warning-650: rgb(134, 78, 11);
--color-warning-700: rgb(120, 70, 13);
--color-warning-750: rgb(105, 61, 13);
--color-warning-800: rgb(90, 55, 19);
--color-warning-850: rgb(73, 47, 21);
--color-warning-900: rgb(56, 38, 20);
--color-warning-950: rgb(38, 29, 21);
--color-blue-50: rgb(237, 245, 249);
--color-blue-100: rgb(218, 237, 248);
--color-blue-150: rgb(188, 225, 248);
--color-blue-200: rgb(156, 216, 253);
--color-blue-250: rgb(125, 204, 248);
--color-blue-300: rgb(97, 190, 241);
--color-blue-350: rgb(65, 178, 236);
--color-blue-400: rgb(36, 164, 223);
--color-blue-450: rgb(18, 148, 204);
--color-blue-500: rgb(21, 135, 186);
--color-blue-550: rgb(12, 121, 168);
--color-blue-600: rgb(11, 110, 153);
--color-blue-650: rgb(11, 97, 135);
--color-blue-700: rgb(17, 88, 121);
--color-blue-750: rgb(17, 76, 105);
--color-blue-800: rgb(18, 66, 90);
--color-blue-850: rgb(18, 56, 76);
--color-blue-900: rgb(19, 44, 58);
--color-blue-950: rgb(22, 33, 39);
--color-blue-50: rgb(237, 245, 249);
--color-blue-100: rgb(218, 237, 248);
--color-blue-150: rgb(188, 225, 248);
--color-blue-200: rgb(156, 216, 253);
--color-blue-250: rgb(125, 204, 248);
--color-blue-300: rgb(97, 190, 241);
--color-blue-350: rgb(65, 178, 236);
--color-blue-400: rgb(36, 164, 223);
--color-blue-450: rgb(18, 148, 204);
--color-blue-500: rgb(21, 135, 186);
--color-blue-550: rgb(12, 121, 168);
--color-blue-600: rgb(11, 110, 153);
--color-blue-650: rgb(11, 97, 135);
--color-blue-700: rgb(17, 88, 121);
--color-blue-750: rgb(17, 76, 105);
--color-blue-800: rgb(18, 66, 90);
--color-blue-850: rgb(18, 56, 76);
--color-blue-900: rgb(19, 44, 58);
--color-blue-950: rgb(22, 33, 39);
--theme-border-color: var(--theme-elevation-150);
--theme-border-color: var(--theme-elevation-150);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
--theme-success-350: var(--color-success-350);
--theme-success-400: var(--color-success-400);
--theme-success-450: var(--color-success-450);
--theme-success-500: var(--color-success-500);
--theme-success-550: var(--color-success-550);
--theme-success-600: var(--color-success-600);
--theme-success-650: var(--color-success-650);
--theme-success-700: var(--color-success-700);
--theme-success-750: var(--color-success-750);
--theme-success-800: var(--color-success-800);
--theme-success-850: var(--color-success-850);
--theme-success-900: var(--color-success-900);
--theme-success-950: var(--color-success-950);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
--theme-success-350: var(--color-success-350);
--theme-success-400: var(--color-success-400);
--theme-success-450: var(--color-success-450);
--theme-success-500: var(--color-success-500);
--theme-success-550: var(--color-success-550);
--theme-success-600: var(--color-success-600);
--theme-success-650: var(--color-success-650);
--theme-success-700: var(--color-success-700);
--theme-success-750: var(--color-success-750);
--theme-success-800: var(--color-success-800);
--theme-success-850: var(--color-success-850);
--theme-success-900: var(--color-success-900);
--theme-success-950: var(--color-success-950);
--theme-warning-50: var(--color-warning-50);
--theme-warning-100: var(--color-warning-100);
--theme-warning-150: var(--color-warning-150);
--theme-warning-200: var(--color-warning-200);
--theme-warning-250: var(--color-warning-250);
--theme-warning-300: var(--color-warning-300);
--theme-warning-350: var(--color-warning-350);
--theme-warning-400: var(--color-warning-400);
--theme-warning-450: var(--color-warning-450);
--theme-warning-500: var(--color-warning-500);
--theme-warning-550: var(--color-warning-550);
--theme-warning-600: var(--color-warning-600);
--theme-warning-650: var(--color-warning-650);
--theme-warning-700: var(--color-warning-700);
--theme-warning-750: var(--color-warning-750);
--theme-warning-800: var(--color-warning-800);
--theme-warning-850: var(--color-warning-850);
--theme-warning-900: var(--color-warning-900);
--theme-warning-950: var(--color-warning-950);
--theme-warning-50: var(--color-warning-50);
--theme-warning-100: var(--color-warning-100);
--theme-warning-150: var(--color-warning-150);
--theme-warning-200: var(--color-warning-200);
--theme-warning-250: var(--color-warning-250);
--theme-warning-300: var(--color-warning-300);
--theme-warning-350: var(--color-warning-350);
--theme-warning-400: var(--color-warning-400);
--theme-warning-450: var(--color-warning-450);
--theme-warning-500: var(--color-warning-500);
--theme-warning-550: var(--color-warning-550);
--theme-warning-600: var(--color-warning-600);
--theme-warning-650: var(--color-warning-650);
--theme-warning-700: var(--color-warning-700);
--theme-warning-750: var(--color-warning-750);
--theme-warning-800: var(--color-warning-800);
--theme-warning-850: var(--color-warning-850);
--theme-warning-900: var(--color-warning-900);
--theme-warning-950: var(--color-warning-950);
--theme-error-50: var(--color-error-50);
--theme-error-100: var(--color-error-100);
--theme-error-150: var(--color-error-150);
--theme-error-200: var(--color-error-200);
--theme-error-250: var(--color-error-250);
--theme-error-300: var(--color-error-300);
--theme-error-350: var(--color-error-350);
--theme-error-400: var(--color-error-400);
--theme-error-450: var(--color-error-450);
--theme-error-500: var(--color-error-500);
--theme-error-550: var(--color-error-550);
--theme-error-600: var(--color-error-600);
--theme-error-650: var(--color-error-650);
--theme-error-700: var(--color-error-700);
--theme-error-750: var(--color-error-750);
--theme-error-800: var(--color-error-800);
--theme-error-850: var(--color-error-850);
--theme-error-900: var(--color-error-900);
--theme-error-950: var(--color-error-950);
--theme-error-50: var(--color-error-50);
--theme-error-100: var(--color-error-100);
--theme-error-150: var(--color-error-150);
--theme-error-200: var(--color-error-200);
--theme-error-250: var(--color-error-250);
--theme-error-300: var(--color-error-300);
--theme-error-350: var(--color-error-350);
--theme-error-400: var(--color-error-400);
--theme-error-450: var(--color-error-450);
--theme-error-500: var(--color-error-500);
--theme-error-550: var(--color-error-550);
--theme-error-600: var(--color-error-600);
--theme-error-650: var(--color-error-650);
--theme-error-700: var(--color-error-700);
--theme-error-750: var(--color-error-750);
--theme-error-800: var(--color-error-800);
--theme-error-850: var(--color-error-850);
--theme-error-900: var(--color-error-900);
--theme-error-950: var(--color-error-950);
--theme-elevation-0: var(--color-base-0);
--theme-elevation-50: var(--color-base-50);
--theme-elevation-100: var(--color-base-100);
--theme-elevation-150: var(--color-base-150);
--theme-elevation-200: var(--color-base-200);
--theme-elevation-250: var(--color-base-250);
--theme-elevation-300: var(--color-base-300);
--theme-elevation-350: var(--color-base-350);
--theme-elevation-400: var(--color-base-400);
--theme-elevation-450: var(--color-base-450);
--theme-elevation-500: var(--color-base-500);
--theme-elevation-550: var(--color-base-550);
--theme-elevation-600: var(--color-base-600);
--theme-elevation-650: var(--color-base-650);
--theme-elevation-700: var(--color-base-700);
--theme-elevation-750: var(--color-base-750);
--theme-elevation-800: var(--color-base-800);
--theme-elevation-850: var(--color-base-850);
--theme-elevation-900: var(--color-base-900);
--theme-elevation-950: var(--color-base-950);
--theme-elevation-1000: var(--color-base-1000);
}
html[data-theme='dark'] {
--theme-border-color: var(--theme-elevation-150);
--theme-elevation-0: var(--color-base-900);
--theme-elevation-50: var(--color-base-850);
--theme-elevation-100: var(--color-base-800);
--theme-elevation-150: var(--color-base-750);
--theme-elevation-200: var(--color-base-700);
--theme-elevation-250: var(--color-base-650);
--theme-elevation-300: var(--color-base-600);
--theme-elevation-350: var(--color-base-550);
--theme-elevation-400: var(--color-base-450);
--theme-elevation-450: var(--color-base-400);
--theme-elevation-550: var(--color-base-350);
--theme-elevation-600: var(--color-base-300);
--theme-elevation-650: var(--color-base-250);
--theme-elevation-700: var(--color-base-200);
--theme-elevation-750: var(--color-base-150);
--theme-elevation-800: var(--color-base-100);
--theme-elevation-850: var(--color-base-50);
--theme-elevation-900: var(--color-base-0);
--theme-elevation-950: var(--color-base-0);
--theme-elevation-1000: var(--color-base-0);
--theme-success-50: var(--color-success-950);
--theme-success-100: var(--color-success-900);
--theme-success-150: var(--color-success-850);
--theme-success-200: var(--color-success-800);
--theme-success-250: var(--color-success-750);
--theme-success-300: var(--color-success-700);
--theme-success-350: var(--color-success-650);
--theme-success-400: var(--color-success-600);
--theme-success-450: var(--color-success-550);
--theme-success-550: var(--color-success-450);
--theme-success-600: var(--color-success-400);
--theme-success-650: var(--color-success-350);
--theme-success-700: var(--color-success-300);
--theme-success-750: var(--color-success-250);
--theme-success-800: var(--color-success-200);
--theme-success-850: var(--color-success-150);
--theme-success-900: var(--color-success-100);
--theme-success-950: var(--color-success-50);
--theme-warning-50: var(--color-warning-950);
--theme-warning-100: var(--color-warning-900);
--theme-warning-150: var(--color-warning-850);
--theme-warning-200: var(--color-warning-800);
--theme-warning-250: var(--color-warning-750);
--theme-warning-300: var(--color-warning-700);
--theme-warning-350: var(--color-warning-650);
--theme-warning-400: var(--color-warning-600);
--theme-warning-450: var(--color-warning-550);
--theme-warning-550: var(--color-warning-450);
--theme-warning-600: var(--color-warning-400);
--theme-warning-650: var(--color-warning-350);
--theme-warning-700: var(--color-warning-300);
--theme-warning-750: var(--color-warning-250);
--theme-warning-800: var(--color-warning-200);
--theme-warning-850: var(--color-warning-150);
--theme-warning-900: var(--color-warning-100);
--theme-warning-950: var(--color-warning-50);
--theme-error-50: var(--color-error-950);
--theme-error-100: var(--color-error-900);
--theme-error-150: var(--color-error-850);
--theme-error-200: var(--color-error-800);
--theme-error-250: var(--color-error-750);
--theme-error-300: var(--color-error-700);
--theme-error-350: var(--color-error-650);
--theme-error-400: var(--color-error-600);
--theme-error-450: var(--color-error-550);
--theme-error-550: var(--color-error-450);
--theme-error-600: var(--color-error-400);
--theme-error-650: var(--color-error-350);
--theme-error-700: var(--color-error-300);
--theme-error-750: var(--color-error-250);
--theme-error-800: var(--color-error-200);
--theme-error-850: var(--color-error-150);
--theme-error-900: var(--color-error-100);
--theme-error-950: var(--color-error-50);
--theme-elevation-0: var(--color-base-0);
--theme-elevation-50: var(--color-base-50);
--theme-elevation-100: var(--color-base-100);
--theme-elevation-150: var(--color-base-150);
--theme-elevation-200: var(--color-base-200);
--theme-elevation-250: var(--color-base-250);
--theme-elevation-300: var(--color-base-300);
--theme-elevation-350: var(--color-base-350);
--theme-elevation-400: var(--color-base-400);
--theme-elevation-450: var(--color-base-450);
--theme-elevation-500: var(--color-base-500);
--theme-elevation-550: var(--color-base-550);
--theme-elevation-600: var(--color-base-600);
--theme-elevation-650: var(--color-base-650);
--theme-elevation-700: var(--color-base-700);
--theme-elevation-750: var(--color-base-750);
--theme-elevation-800: var(--color-base-800);
--theme-elevation-850: var(--color-base-850);
--theme-elevation-900: var(--color-base-900);
--theme-elevation-950: var(--color-base-950);
--theme-elevation-1000: var(--color-base-1000);
}
html[data-theme='dark'] {
--theme-border-color: var(--theme-elevation-150);
--theme-elevation-0: var(--color-base-900);
--theme-elevation-50: var(--color-base-850);
--theme-elevation-100: var(--color-base-800);
--theme-elevation-150: var(--color-base-750);
--theme-elevation-200: var(--color-base-700);
--theme-elevation-250: var(--color-base-650);
--theme-elevation-300: var(--color-base-600);
--theme-elevation-350: var(--color-base-550);
--theme-elevation-400: var(--color-base-450);
--theme-elevation-450: var(--color-base-400);
--theme-elevation-550: var(--color-base-350);
--theme-elevation-600: var(--color-base-300);
--theme-elevation-650: var(--color-base-250);
--theme-elevation-700: var(--color-base-200);
--theme-elevation-750: var(--color-base-150);
--theme-elevation-800: var(--color-base-100);
--theme-elevation-850: var(--color-base-50);
--theme-elevation-900: var(--color-base-0);
--theme-elevation-950: var(--color-base-0);
--theme-elevation-1000: var(--color-base-0);
--theme-success-50: var(--color-success-950);
--theme-success-100: var(--color-success-900);
--theme-success-150: var(--color-success-850);
--theme-success-200: var(--color-success-800);
--theme-success-250: var(--color-success-750);
--theme-success-300: var(--color-success-700);
--theme-success-350: var(--color-success-650);
--theme-success-400: var(--color-success-600);
--theme-success-450: var(--color-success-550);
--theme-success-550: var(--color-success-450);
--theme-success-600: var(--color-success-400);
--theme-success-650: var(--color-success-350);
--theme-success-700: var(--color-success-300);
--theme-success-750: var(--color-success-250);
--theme-success-800: var(--color-success-200);
--theme-success-850: var(--color-success-150);
--theme-success-900: var(--color-success-100);
--theme-success-950: var(--color-success-50);
--theme-warning-50: var(--color-warning-950);
--theme-warning-100: var(--color-warning-900);
--theme-warning-150: var(--color-warning-850);
--theme-warning-200: var(--color-warning-800);
--theme-warning-250: var(--color-warning-750);
--theme-warning-300: var(--color-warning-700);
--theme-warning-350: var(--color-warning-650);
--theme-warning-400: var(--color-warning-600);
--theme-warning-450: var(--color-warning-550);
--theme-warning-550: var(--color-warning-450);
--theme-warning-600: var(--color-warning-400);
--theme-warning-650: var(--color-warning-350);
--theme-warning-700: var(--color-warning-300);
--theme-warning-750: var(--color-warning-250);
--theme-warning-800: var(--color-warning-200);
--theme-warning-850: var(--color-warning-150);
--theme-warning-900: var(--color-warning-100);
--theme-warning-950: var(--color-warning-50);
--theme-error-50: var(--color-error-950);
--theme-error-100: var(--color-error-900);
--theme-error-150: var(--color-error-850);
--theme-error-200: var(--color-error-800);
--theme-error-250: var(--color-error-750);
--theme-error-300: var(--color-error-700);
--theme-error-350: var(--color-error-650);
--theme-error-400: var(--color-error-600);
--theme-error-450: var(--color-error-550);
--theme-error-550: var(--color-error-450);
--theme-error-600: var(--color-error-400);
--theme-error-650: var(--color-error-350);
--theme-error-700: var(--color-error-300);
--theme-error-750: var(--color-error-250);
--theme-error-800: var(--color-error-200);
--theme-error-850: var(--color-error-150);
--theme-error-900: var(--color-error-100);
--theme-error-950: var(--color-error-50);
}
}

View File

@@ -1,10 +1,12 @@
%btn-reset {
border: 0;
background: none;
box-shadow: none;
border-radius: 0;
padding: 0;
color: currentColor;
@layer payload-default {
%btn-reset {
border: 0;
background: none;
box-shadow: none;
border-radius: 0;
padding: 0;
color: currentColor;
}
}
@mixin btn-reset {

View File

@@ -1,59 +1,61 @@
@import 'vars';
@import 'queries';
.Toastify {
.Toastify__toast-container {
left: base(5);
transform: none;
right: base(5);
width: auto;
}
.Toastify__toast {
padding: base(0.5);
border-radius: $style-radius-m;
font-weight: 600;
}
.Toastify__close-button {
align-self: center;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
.Toastify__toast--success {
color: var(--color-success-900);
background: var(--color-success-500);
.Toastify__progress-bar {
background-color: var(--color-success-900);
}
}
.Toastify__close-button--success {
color: var(--color-success-900);
}
.Toastify__toast--error {
background: var(--theme-error-500);
color: #fff;
.Toastify__progress-bar {
background-color: #fff;
}
}
.Toastify__close-button--light {
color: inherit;
}
@include mid-break {
@layer payload-default {
.Toastify {
.Toastify__toast-container {
left: $baseline;
right: $baseline;
left: base(5);
transform: none;
right: base(5);
width: auto;
}
.Toastify__toast {
padding: base(0.5);
border-radius: $style-radius-m;
font-weight: 600;
}
.Toastify__close-button {
align-self: center;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
.Toastify__toast--success {
color: var(--color-success-900);
background: var(--color-success-500);
.Toastify__progress-bar {
background-color: var(--color-success-900);
}
}
.Toastify__close-button--success {
color: var(--color-success-900);
}
.Toastify__toast--error {
background: var(--theme-error-500);
color: #fff;
.Toastify__progress-bar {
background-color: #fff;
}
}
.Toastify__close-button--light {
color: inherit;
}
@include mid-break {
.Toastify__toast-container {
left: $baseline;
right: $baseline;
}
}
}
}

View File

@@ -1,140 +1,142 @@
@import './styles.scss';
.payload-toast-container {
padding: 0;
margin: 0;
@layer payload-default {
.payload-toast-container {
padding: 0;
margin: 0;
.payload-toast-close-button {
position: absolute;
order: 3;
left: unset;
inset-inline-end: base(0.8);
top: 50%;
transform: translateY(-50%);
color: var(--theme-elevation-600);
background: unset;
border: none;
.payload-toast-close-button {
position: absolute;
order: 3;
left: unset;
inset-inline-end: base(0.8);
top: 50%;
transform: translateY(-50%);
color: var(--theme-elevation-600);
background: unset;
border: none;
svg {
width: base(0.8);
height: base(0.8);
}
svg {
width: base(0.8);
height: base(0.8);
}
&:hover {
color: var(--theme-elevation-250);
background: none;
}
&:hover {
color: var(--theme-elevation-250);
background: none;
}
[dir='RTL'] & {
right: unset;
left: 0.5rem;
}
}
.toast-title {
line-height: base(1);
margin-right: base(1);
}
.payload-toast-item {
padding: base(0.8);
color: var(--theme-elevation-800);
font-style: normal;
font-weight: 600;
display: flex;
gap: 1rem;
align-items: center;
width: 100%;
border-radius: 4px;
border: 1px solid var(--theme-border-color);
background: var(--theme-input-bg);
box-shadow:
0px 10px 4px -8px rgba(0, 2, 4, 0.02),
0px 2px 3px 0px rgba(0, 2, 4, 0.05);
.toast-content {
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
width: 100%;
}
&[data-front='false'] {
.toast-content {
opacity: 0;
[dir='RTL'] & {
right: unset;
left: 0.5rem;
}
}
&[data-expanded='true'] {
.toast-content {
opacity: 1;
}
.toast-title {
line-height: base(1);
margin-right: base(1);
}
.toast-icon {
width: base(0.8);
height: base(0.8);
margin: 0;
display: flex;
align-items: center;
justify-content: center;
& > * {
width: base(1.2);
height: base(1.2);
}
}
&.toast-warning {
color: var(--theme-warning-800);
border-color: var(--theme-warning-250);
background-color: var(--theme-warning-100);
.payload-toast-close-button {
color: var(--theme-warning-600);
&:hover {
color: var(--theme-warning-250);
}
}
}
&.toast-error {
color: var(--theme-error-800);
border-color: var(--theme-error-250);
background-color: var(--theme-error-100);
.payload-toast-close-button {
color: var(--theme-error-600);
&:hover {
color: var(--theme-error-250);
}
}
}
&.toast-success {
color: var(--theme-success-800);
border-color: var(--theme-success-250);
background-color: var(--theme-success-100);
.payload-toast-close-button {
color: var(--theme-success-600);
&:hover {
color: var(--theme-success-250);
}
}
}
&.toast-info {
.payload-toast-item {
padding: base(0.8);
color: var(--theme-elevation-800);
border-color: var(--theme-elevation-250);
background-color: var(--theme-elevation-100);
font-style: normal;
font-weight: 600;
display: flex;
gap: 1rem;
align-items: center;
width: 100%;
border-radius: 4px;
border: 1px solid var(--theme-border-color);
background: var(--theme-input-bg);
box-shadow:
0px 10px 4px -8px rgba(0, 2, 4, 0.02),
0px 2px 3px 0px rgba(0, 2, 4, 0.05);
.payload-toast-close-button {
color: var(--theme-elevation-600);
.toast-content {
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
width: 100%;
}
&:hover {
color: var(--theme-elevation-250);
&[data-front='false'] {
.toast-content {
opacity: 0;
}
}
&[data-expanded='true'] {
.toast-content {
opacity: 1;
}
}
.toast-icon {
width: base(0.8);
height: base(0.8);
margin: 0;
display: flex;
align-items: center;
justify-content: center;
& > * {
width: base(1.2);
height: base(1.2);
}
}
&.toast-warning {
color: var(--theme-warning-800);
border-color: var(--theme-warning-250);
background-color: var(--theme-warning-100);
.payload-toast-close-button {
color: var(--theme-warning-600);
&:hover {
color: var(--theme-warning-250);
}
}
}
&.toast-error {
color: var(--theme-error-800);
border-color: var(--theme-error-250);
background-color: var(--theme-error-100);
.payload-toast-close-button {
color: var(--theme-error-600);
&:hover {
color: var(--theme-error-250);
}
}
}
&.toast-success {
color: var(--theme-success-800);
border-color: var(--theme-success-250);
background-color: var(--theme-success-100);
.payload-toast-close-button {
color: var(--theme-success-600);
&:hover {
color: var(--theme-success-250);
}
}
}
&.toast-info {
color: var(--theme-elevation-800);
border-color: var(--theme-elevation-250);
background-color: var(--theme-elevation-100);
.payload-toast-close-button {
color: var(--theme-elevation-600);
&:hover {
color: var(--theme-elevation-250);
}
}
}
}

View File

@@ -4,106 +4,107 @@
/////////////////////////////
// HEADINGS
/////////////////////////////
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
font-family: var(--font-body);
font-weight: 500;
}
%h1 {
margin: 0;
font-size: base(1.6);
line-height: base(1.8);
@include small-break {
letter-spacing: -0.5px;
font-size: base(1.25);
@layer payload-default {
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
font-family: var(--font-body);
font-weight: 500;
}
}
%h2 {
margin: 0;
font-size: base(1.3);
line-height: base(1.6);
%h1 {
margin: 0;
font-size: base(1.6);
line-height: base(1.8);
@include small-break {
font-size: base(0.85);
@include small-break {
letter-spacing: -0.5px;
font-size: base(1.25);
}
}
}
%h3 {
margin: 0;
font-size: base(1);
line-height: base(1.2);
%h2 {
margin: 0;
font-size: base(1.3);
line-height: base(1.6);
@include small-break {
font-size: base(0.65);
line-height: 1.25;
@include small-break {
font-size: base(0.85);
}
}
}
%h4 {
margin: 0;
font-size: base(0.8);
line-height: base(1);
letter-spacing: -0.375px;
}
%h3 {
margin: 0;
font-size: base(1);
line-height: base(1.2);
%h5 {
margin: 0;
font-size: base(0.65);
line-height: base(0.8);
}
@include small-break {
font-size: base(0.65);
line-height: 1.25;
}
}
%h6 {
margin: 0;
font-size: base(0.6);
line-height: base(0.8);
}
%small {
margin: 0;
font-size: 12px;
line-height: 20px;
}
/////////////////////////////
// TYPE STYLES
/////////////////////////////
%large-body {
font-size: base(0.6);
line-height: base(1);
letter-spacing: base(0.02);
@include mid-break {
font-size: base(0.7);
%h4 {
margin: 0;
font-size: base(0.8);
line-height: base(1);
letter-spacing: -0.375px;
}
@include small-break {
font-size: base(0.55);
line-height: base(0.75);
}
}
%body {
font-size: $baseline-body-size;
line-height: $baseline-px;
font-weight: normal;
font-family: var(--font-body);
}
%code {
font-size: base(0.4);
color: var(--theme-elevation-400);
span {
color: var(--theme-elevation-800);
%h5 {
margin: 0;
font-size: base(0.65);
line-height: base(0.8);
}
%h6 {
margin: 0;
font-size: base(0.6);
line-height: base(0.8);
}
%small {
margin: 0;
font-size: 12px;
line-height: 20px;
}
/////////////////////////////
// TYPE STYLES
/////////////////////////////
%large-body {
font-size: base(0.6);
line-height: base(1);
letter-spacing: base(0.02);
@include mid-break {
font-size: base(0.7);
line-height: base(1);
}
@include small-break {
font-size: base(0.55);
line-height: base(0.75);
}
}
%body {
font-size: $baseline-body-size;
line-height: $baseline-px;
font-weight: normal;
font-family: var(--font-body);
}
%code {
font-size: base(0.4);
color: var(--theme-elevation-400);
span {
color: var(--theme-elevation-800);
}
}
}

View File

@@ -1,123 +1,125 @@
@import '../../scss/styles.scss';
.query-inspector {
--string-color: #11b102;
--number-color: #62c3f3;
display: flex;
gap: calc(var(--base) * 2);
align-items: flex-start;
@layer payload-default {
.query-inspector {
--string-color: #11b102;
--number-color: #62c3f3;
display: flex;
gap: calc(var(--base) * 2);
align-items: flex-start;
ul {
padding-left: calc(var(--base) * 1);
}
&--fullscreen {
padding-left: 0;
.query-inspector__configuration {
display: none;
ul {
padding-left: calc(var(--base) * 1);
}
}
&__configuration {
margin-top: calc(var(--base) * 2);
width: 60%;
position: sticky;
top: var(--base);
}
&--fullscreen {
padding-left: 0;
.query-inspector__configuration {
display: none;
}
}
&__api-url {
margin-bottom: calc(var(--base) * 1.5);
&__configuration {
margin-top: calc(var(--base) * 2);
width: 60%;
position: sticky;
top: var(--base);
}
a {
display: block;
overflow: hidden;
text-overflow: ellipsis;
text-decoration: none;
&__api-url {
margin-bottom: calc(var(--base) * 1.5);
&:hover,
&:focus-visible {
text-decoration: underline;
a {
display: block;
overflow: hidden;
text-overflow: ellipsis;
text-decoration: none;
&:hover,
&:focus-visible {
text-decoration: underline;
}
}
}
&__form-fields {
display: flex;
flex-direction: column;
gap: var(--base);
}
&__label {
color: var(--theme-elevation-400);
}
&__filter-query-checkboxes {
display: flex;
gap: var(--base);
}
&__results-wrapper {
font-family: var(--font-mono);
width: 100%;
ul {
margin: 0;
}
li {
list-style: none;
}
}
&__toggle-fullscreen-button-container {
position: sticky;
top: 0;
z-index: 1;
@include mid-break {
display: none;
}
}
&__toggle-fullscreen-button {
position: absolute;
right: calc(var(--base) * 0.5);
top: calc(var(--base) * 0.5);
padding: calc(var(--base) * 0.25);
background-color: var(--theme-elevation-0);
cursor: pointer;
z-index: 1;
margin: 0;
border: 0;
border-radius: 3px;
color: var(--theme-elevation-300);
&:hover {
color: var(--theme-elevation-700);
}
}
&__results {
padding-top: calc(var(--base) * 0.5);
padding-left: calc(var(--base) * 0.5);
padding-bottom: calc(var(--base) * 0.5);
background-color: var(--theme-elevation-50);
overflow: auto;
min-height: 100vh;
}
@include mid-break {
flex-direction: column;
padding-left: 0;
.query-inspector__configuration {
position: relative;
width: 100%;
top: 0;
padding-inline-end: var(--gutter-h);
}
}
}
&__form-fields {
display: flex;
flex-direction: column;
gap: var(--base);
}
&__label {
color: var(--theme-elevation-400);
}
&__filter-query-checkboxes {
display: flex;
gap: var(--base);
}
&__results-wrapper {
font-family: var(--font-mono);
width: 100%;
ul {
margin: 0;
}
li {
list-style: none;
}
}
&__toggle-fullscreen-button-container {
position: sticky;
top: 0;
z-index: 1;
@include mid-break {
display: none;
}
}
&__toggle-fullscreen-button {
position: absolute;
right: calc(var(--base) * 0.5);
top: calc(var(--base) * 0.5);
padding: calc(var(--base) * 0.25);
background-color: var(--theme-elevation-0);
cursor: pointer;
z-index: 1;
margin: 0;
border: 0;
border-radius: 3px;
color: var(--theme-elevation-300);
&:hover {
color: var(--theme-elevation-700);
}
}
&__results {
padding-top: calc(var(--base) * 0.5);
padding-left: calc(var(--base) * 0.5);
padding-bottom: calc(var(--base) * 0.5);
background-color: var(--theme-elevation-50);
overflow: auto;
min-height: 100vh;
}
@include mid-break {
flex-direction: column;
padding-left: 0;
.query-inspector__configuration {
position: relative;
width: 100%;
top: 0;
padding-inline-end: var(--gutter-h);
html[data-theme='light'] {
.query-inspector {
--number-color: #2e9cd3;
}
}
}
html[data-theme='light'] {
.query-inspector {
--number-color: #2e9cd3;
}
}

View File

@@ -1,46 +1,48 @@
@import '../../../scss/styles.scss';
.payload-settings {
position: relative;
margin-bottom: calc(var(--base) * 2);
@layer payload-default {
.payload-settings {
position: relative;
margin-bottom: calc(var(--base) * 2);
h3 {
margin: 0;
}
h3 {
margin: 0;
}
&::before,
&::after {
content: '';
display: block;
height: 1px;
background: var(--theme-elevation-100);
width: calc(100% + calc(var(--base) * 5));
left: calc(var(--gutter-h) * -1);
top: 0;
position: absolute;
}
&::after {
display: none;
bottom: 0;
top: unset;
}
margin-top: calc(var(--base) * 3);
padding-top: calc(var(--base) * 3);
padding-bottom: calc(var(--base) * 3);
display: flex;
flex-direction: column;
gap: var(--base);
@include mid-break {
margin-bottom: var(--base);
padding-top: calc(var(--base) * 2);
margin-top: calc(var(--base) * 2);
padding-bottom: calc(var(--base) * 2);
&::before,
&::after {
content: '';
display: block;
height: 1px;
background: var(--theme-elevation-100);
width: calc(100% + calc(var(--base) * 5));
left: calc(var(--gutter-h) * -1);
top: 0;
position: absolute;
}
&::after {
display: block;
display: none;
bottom: 0;
top: unset;
}
margin-top: calc(var(--base) * 3);
padding-top: calc(var(--base) * 3);
padding-bottom: calc(var(--base) * 3);
display: flex;
flex-direction: column;
gap: var(--base);
@include mid-break {
margin-bottom: var(--base);
padding-top: calc(var(--base) * 2);
margin-top: calc(var(--base) * 2);
padding-bottom: calc(var(--base) * 2);
&::after {
display: block;
}
}
}
}

View File

@@ -1,19 +1,21 @@
@import '../../scss/styles.scss';
.create-first-user {
display: flex;
flex-direction: column;
gap: base(0.4);
@layer payload-default {
.create-first-user {
display: flex;
flex-direction: column;
gap: base(0.4);
> form > .field-type {
margin-bottom: var(--base);
> form > .field-type {
margin-bottom: var(--base);
& .form-submit {
margin: 0;
& .form-submit {
margin: 0;
}
}
}
}
.emailAndUsername {
margin-bottom: var(--base);
.emailAndUsername {
margin-bottom: var(--base);
}
}

View File

@@ -1,67 +1,69 @@
@import '../../../scss/styles.scss';
.dashboard {
width: 100%;
--gap: var(--base);
--cols: 5;
&__wrap {
padding-bottom: var(--spacing-view-bottom);
display: flex;
flex-direction: column;
gap: var(--base);
}
&__group {
display: flex;
flex-direction: column;
gap: var(--gap);
}
&__label {
margin: 0;
}
&__card-list {
padding: 0;
margin: 0;
list-style: none;
gap: var(--gap);
display: grid;
grid-template-columns: repeat(var(--cols), 1fr);
.card {
height: 100%;
}
}
&__locked.locked {
align-items: unset;
justify-content: unset;
}
@include large-break {
--cols: 4;
}
@include mid-break {
@layer payload-default {
.dashboard {
width: 100%;
--gap: var(--base);
--cols: 2;
}
@include small-break {
--cols: 2;
--cols: 5;
&__wrap {
padding-bottom: var(--spacing-view-bottom);
display: flex;
flex-direction: column;
gap: var(--base);
}
&__group {
display: flex;
flex-direction: column;
gap: var(--gap);
}
&__label {
margin: 0;
}
&__card-list {
gap: base(0.4);
padding: 0;
margin: 0;
list-style: none;
gap: var(--gap);
display: grid;
grid-template-columns: repeat(var(--cols), 1fr);
.card {
height: 100%;
}
}
&__locked.locked {
align-items: unset;
justify-content: unset;
}
@include large-break {
--cols: 4;
}
@include mid-break {
--gap: var(--base);
--cols: 2;
}
@include small-break {
--cols: 2;
&__wrap {
gap: var(--base);
}
&__card-list {
gap: base(0.4);
}
}
@include extra-small-break {
--cols: 1;
}
}
@include extra-small-break {
--cols: 1;
}
}

View File

@@ -1,76 +1,78 @@
@import '../../../../scss/styles.scss';
.auth-fields {
padding: calc(var(--base) * 2);
background: var(--theme-elevation-50);
display: flex;
flex-direction: column;
gap: var(--base);
&__controls {
display: flex;
align-items: center;
gap: calc(var(--base) / 2);
flex-wrap: wrap;
}
&__changing-password {
@layer payload-default {
.auth-fields {
padding: calc(var(--base) * 2);
background: var(--theme-elevation-50);
display: flex;
flex-direction: column;
gap: var(--base);
}
.btn {
margin: 0;
}
&__api-key-label {
position: relative;
}
@include mid-break {
padding: var(--base);
gap: calc(var(--base) / 2);
&__controls {
display: flex;
align-items: center;
gap: calc(var(--base) / 2);
flex-wrap: wrap;
}
&__changing-password {
display: flex;
flex-direction: column;
gap: var(--base);
}
.btn {
margin: 0;
}
&__api-key-label {
position: relative;
}
@include mid-break {
padding: var(--base);
gap: calc(var(--base) / 2);
&__changing-password {
gap: calc(var(--base) / 2);
}
}
}
}
.field-type.api-key {
margin-bottom: var(--base);
.field-type.api-key {
margin-bottom: var(--base);
input {
@include formInput;
input {
@include formInput;
}
}
@keyframes highlight {
0% {
background: var(--theme-success-250);
border: 1px solid var(--theme-success-500);
}
20% {
background: var(--theme-input-bg);
border: 1px solid var(--theme-elevation-250);
color: var(--theme-text);
}
80% {
background: var(--theme-input-bg);
border: 1px solid var(--theme-elevation-250);
color: var(--theme-text);
}
100% {
background: var(--theme-elevation-200);
border: 1px solid transparent;
color: var(--theme-elevation-400);
}
}
.highlight {
animation: highlight 10s;
}
}
@keyframes highlight {
0% {
background: var(--theme-success-250);
border: 1px solid var(--theme-success-500);
}
20% {
background: var(--theme-input-bg);
border: 1px solid var(--theme-elevation-250);
color: var(--theme-text);
}
80% {
background: var(--theme-input-bg);
border: 1px solid var(--theme-elevation-250);
color: var(--theme-text);
}
100% {
background: var(--theme-elevation-200);
border: 1px solid transparent;
color: var(--theme-elevation-400);
}
}
.highlight {
animation: highlight 10s;
}

View File

@@ -1,21 +1,23 @@
@import '../../../scss/styles.scss';
.collection-edit {
width: 100%;
@layer payload-default {
.collection-edit {
width: 100%;
&__form {
height: 100%;
}
&__form {
height: 100%;
}
&__auth {
margin-bottom: base(1.6);
border-radius: var(--style-radius-s);
}
@include small-break {
&__auth {
margin-top: 0;
margin-bottom: var(--base);
margin-bottom: base(1.6);
border-radius: var(--style-radius-s);
}
@include small-break {
&__auth {
margin-top: 0;
margin-bottom: var(--base);
}
}
}
}

View File

@@ -1,177 +1,179 @@
@import '../../../scss/styles.scss';
.collection-list {
width: 100%;
&__wrap {
padding-bottom: var(--spacing-view-bottom);
& > *:not(:last-child) {
margin-bottom: var(--base);
}
}
.list-header {
a {
text-decoration: none;
}
.btn--withoutPopup,
.btn--withPopup {
position: relative;
margin: 0 0 base(0.2);
}
}
&__sub-header {
flex-basis: 100%;
}
.table {
table {
width: 100%;
overflow: auto;
[class^='cell'] > p,
[class^='cell'] > span,
[class^='cell'] > a {
line-clamp: 4;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
display: -webkit-box;
max-width: 100vw;
}
#heading-_select,
.cell-_select {
display: flex;
min-width: unset;
}
}
}
&__no-results {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--base);
& > * {
margin: 0;
}
}
&__page-controls {
@layer payload-default {
.collection-list {
width: 100%;
display: flex;
align-items: center;
}
.paginator {
margin-bottom: 0;
}
&__page-info {
[dir='ltr'] & {
margin-right: base(1);
margin-left: auto;
}
[dir='rtl'] & {
margin-left: base(1);
margin-right: auto;
}
}
&__list-selection {
position: fixed;
bottom: 0;
z-index: 10;
padding: base(0.8) 0;
width: 100%;
background-color: var(--theme-bg);
.btn {
margin: 0 0 0 base(0.4);
}
.btn {
background-color: var(--theme-elevation-100);
cursor: pointer;
padding: 0 base(0.4);
border-radius: $style-radius-s;
&:hover {
background-color: var(--theme-elevation-200);
}
}
}
&__list-selection-actions {
display: flex;
gap: base(0.25);
}
&__shimmer {
margin-top: base(1.75);
width: 100%;
> div {
margin-top: 8px;
}
}
@include mid-break {
margin-top: base(0.25);
&__wrap {
padding-top: 0;
padding-bottom: 0;
padding-bottom: var(--spacing-view-bottom);
& > *:not(:last-child) {
margin-bottom: var(--base);
}
}
&__header {
gap: base(0.5);
.list-header {
a {
text-decoration: none;
}
.btn--withoutPopup,
.btn--withPopup {
position: relative;
margin: 0 0 base(0.2);
}
}
&__sub-header {
margin-top: 0;
flex-basis: 100%;
}
&__search-input {
margin: 0;
}
// on mobile, extend the table all the way to the viewport edges
// this is to visually indicate overflowing content
.table {
display: flex;
width: calc(100% + calc(var(--gutter-h) * 2));
max-width: unset;
left: calc(var(--gutter-h) * -1);
position: relative;
padding-left: var(--gutter-h);
table {
width: 100%;
overflow: auto;
&::after {
content: '';
height: 1px;
padding-right: var(--gutter-h);
[class^='cell'] > p,
[class^='cell'] > span,
[class^='cell'] > a {
line-clamp: 4;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
display: -webkit-box;
max-width: 100vw;
}
#heading-_select,
.cell-_select {
display: flex;
min-width: unset;
}
}
}
&__no-results {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--base);
& > * {
margin: 0;
}
}
&__page-controls {
flex-wrap: wrap;
}
&__page-info {
margin-left: 0;
width: 100%;
display: flex;
align-items: center;
}
.paginator {
margin-bottom: 0;
}
&__page-info {
[dir='ltr'] & {
margin-right: base(1);
margin-left: auto;
}
[dir='rtl'] & {
margin-left: base(1);
margin-right: auto;
}
}
&__list-selection {
position: fixed;
bottom: 0;
z-index: 10;
padding: base(0.8) 0;
width: 100%;
margin-bottom: $baseline;
background-color: var(--theme-bg);
.btn {
margin: 0 0 0 base(0.4);
}
.btn {
background-color: var(--theme-elevation-100);
cursor: pointer;
padding: 0 base(0.4);
border-radius: $style-radius-s;
&:hover {
background-color: var(--theme-elevation-200);
}
}
}
&__list-selection-actions {
display: flex;
gap: base(0.25);
}
&__shimmer {
margin-top: base(1.75);
width: 100%;
> div {
margin-top: 8px;
}
}
@include mid-break {
margin-top: base(0.25);
&__wrap {
padding-top: 0;
padding-bottom: 0;
}
&__header {
gap: base(0.5);
}
&__sub-header {
margin-top: 0;
}
&__search-input {
margin: 0;
}
// on mobile, extend the table all the way to the viewport edges
// this is to visually indicate overflowing content
.table {
display: flex;
width: calc(100% + calc(var(--gutter-h) * 2));
max-width: unset;
left: calc(var(--gutter-h) * -1);
position: relative;
padding-left: var(--gutter-h);
&::after {
content: '';
height: 1px;
padding-right: var(--gutter-h);
}
}
&__page-controls {
flex-wrap: wrap;
}
&__page-info {
margin-left: 0;
}
.paginator {
width: 100%;
margin-bottom: $baseline;
}
}
@include small-break {
margin-bottom: base(2.4);
}
}
@include small-break {
margin-bottom: base(2.4);
}
}

View File

@@ -1,7 +1,9 @@
.live-preview-iframe {
background-color: white;
border: 0;
width: 100%;
height: 100%;
transform-origin: top left;
@layer payload-default {
.live-preview-iframe {
background-color: white;
border: 0;
width: 100%;
height: 100%;
transform-origin: top left;
}
}

View File

@@ -1,41 +1,43 @@
@import '../../../scss/styles.scss';
.live-preview-window {
background-color: var(--theme-bg);
width: 60%;
flex-shrink: 0;
flex-grow: 0;
position: sticky;
top: var(--doc-controls-height);
height: calc(100vh - var(--doc-controls-height));
overflow: hidden;
@layer payload-default {
.live-preview-window {
background-color: var(--theme-bg);
width: 60%;
flex-shrink: 0;
flex-grow: 0;
position: sticky;
top: var(--doc-controls-height);
height: calc(100vh - var(--doc-controls-height));
overflow: hidden;
&__wrapper {
display: flex;
flex-direction: column;
height: 100%;
justify-content: flex-start;
}
&__main {
flex-grow: 1;
height: 100%;
width: 100%;
}
&--has-breakpoint {
.live-preview-iframe {
border: 1px solid var(--theme-elevation-100);
&__wrapper {
display: flex;
flex-direction: column;
height: 100%;
justify-content: flex-start;
}
.live-preview-window {
&__main {
padding: var(--base);
&__main {
flex-grow: 1;
height: 100%;
width: 100%;
}
&--has-breakpoint {
.live-preview-iframe {
border: 1px solid var(--theme-elevation-100);
}
.live-preview-window {
&__main {
padding: var(--base);
}
}
}
}
@include mid-break {
width: 100%;
@include mid-break {
width: 100%;
}
}
}

View File

@@ -1,59 +1,61 @@
@import '../../../../scss/styles.scss';
.live-preview-toolbar-controls {
display: flex;
align-items: center;
gap: calc(var(--base) / 3);
@layer payload-default {
.live-preview-toolbar-controls {
display: flex;
align-items: center;
gap: calc(var(--base) / 3);
&__breakpoint {
border: none;
background: transparent;
height: var(--base);
&__breakpoint {
border: none;
background: transparent;
height: var(--base);
&:focus {
outline: none;
&:focus {
outline: none;
}
}
}
&__device-size {
display: flex;
align-items: center;
}
&__size {
width: 50px;
height: var(--base);
display: flex;
align-items: center;
border: 1px solid var(--theme-elevation-200);
background: var(--theme-elevation-100);
border-radius: 2px;
font-size: small;
}
&__zoom {
width: 55px;
border: none;
background: transparent;
height: var(--base);
&:focus {
outline: none;
&__device-size {
display: flex;
align-items: center;
}
}
&__external {
flex-shrink: 0;
display: flex;
width: var(--base);
height: var(--base);
align-items: center;
justify-content: center;
padding: 6px 0;
}
&__size {
width: 50px;
height: var(--base);
display: flex;
align-items: center;
border: 1px solid var(--theme-elevation-200);
background: var(--theme-elevation-100);
border-radius: 2px;
font-size: small;
}
.popup-button {
display: flex;
align-items: center;
&__zoom {
width: 55px;
border: none;
background: transparent;
height: var(--base);
&:focus {
outline: none;
}
}
&__external {
flex-shrink: 0;
display: flex;
width: var(--base);
height: var(--base);
align-items: center;
justify-content: center;
padding: 6px 0;
}
.popup-button {
display: flex;
align-items: center;
}
}
}

View File

@@ -1,10 +1,12 @@
.toolbar-input {
width: 50px;
height: var(--base);
display: flex;
align-items: center;
border: 1px solid var(--theme-elevation-200);
background: var(--theme-elevation-100);
border-radius: 2px;
font-size: small;
@layer payload-default {
.toolbar-input {
width: 50px;
height: var(--base);
display: flex;
align-items: center;
border: 1px solid var(--theme-elevation-200);
background: var(--theme-elevation-100);
border-radius: 2px;
font-size: small;
}
}

View File

@@ -1,41 +1,43 @@
@import '../../../scss/styles.scss';
.live-preview-toolbar {
display: flex;
background-color: var(--theme-bg);
color: var(--theme-text);
height: calc(var(--base) * 1.75);
align-items: center;
flex-shrink: 0;
@layer payload-default {
.live-preview-toolbar {
display: flex;
background-color: var(--theme-bg);
color: var(--theme-text);
height: calc(var(--base) * 1.75);
align-items: center;
flex-shrink: 0;
&--static {
position: relative;
width: 100%;
justify-content: center;
border-bottom: 1px solid var(--theme-elevation-100);
}
&--draggable {
@include shadow-lg;
position: absolute;
top: 0;
left: 0;
margin: 0;
border-radius: 4px;
}
&__drag-handle {
background: transparent;
border: 0;
padding: 0;
cursor: grab;
.icon--drag-handle .fill {
fill: var(--theme-elevation-300);
&--static {
position: relative;
width: 100%;
justify-content: center;
border-bottom: 1px solid var(--theme-elevation-100);
}
&:active {
cursor: grabbing;
&--draggable {
@include shadow-lg;
position: absolute;
top: 0;
left: 0;
margin: 0;
border-radius: 4px;
}
&__drag-handle {
background: transparent;
border: 0;
padding: 0;
cursor: grab;
.icon--drag-handle .fill {
fill: var(--theme-elevation-300);
}
&:active {
cursor: grabbing;
}
}
}
}

View File

@@ -1,4 +1,6 @@
.toolbar-area {
width: 100%;
height: 100%;
@layer payload-default {
.toolbar-area {
width: 100%;
height: 100%;
}
}

View File

@@ -1,66 +1,68 @@
@import '../../scss/styles.scss';
.live-preview {
width: 100%;
display: flex;
--gradient: linear-gradient(to left, rgba(0, 0, 0, 0.04) 0%, transparent 100%);
[dir='rtl'] & {
flex-direction: row-reverse;
}
&--popup-open {
.live-preview {
&__edit {
padding-right: var(--gutter-h);
}
}
}
&__main {
width: 40%;
@layer payload-default {
.live-preview {
width: 100%;
display: flex;
flex-direction: column;
min-height: 100%;
position: relative;
--gradient: linear-gradient(to left, rgba(0, 0, 0, 0.04) 0%, transparent 100%);
[dir='rtl'] & {
flex-direction: row-reverse;
}
&--popup-open {
width: 100%;
}
&::after {
content: ' ';
position: absolute;
top: 0;
right: 0;
width: calc(var(--base) * 2);
height: 100%;
background: var(--gradient);
pointer-events: none;
z-index: -1;
}
}
@include mid-break {
flex-direction: column;
&__main {
min-height: initial;
width: 100%;
&::after {
display: none;
.live-preview {
&__edit {
padding-right: var(--gutter-h);
}
}
}
&__form {
display: block;
&__main {
width: 40%;
display: flex;
flex-direction: column;
min-height: 100%;
position: relative;
&--popup-open {
width: 100%;
}
&::after {
content: ' ';
position: absolute;
top: 0;
right: 0;
width: calc(var(--base) * 2);
height: 100%;
background: var(--gradient);
pointer-events: none;
z-index: -1;
}
}
@include mid-break {
flex-direction: column;
&__main {
min-height: initial;
width: 100%;
&::after {
display: none;
}
}
&__form {
display: block;
}
}
}
html[data-theme='dark'] {
.live-preview {
--gradient: linear-gradient(to left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}
}
}
html[data-theme='dark'] {
.live-preview {
--gradient: linear-gradient(to left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}
}

View File

@@ -1,8 +1,10 @@
.login__form {
&__inputWrap {
display: flex;
flex-direction: column;
gap: var(--base);
margin-bottom: calc(var(--base) / 4);
@layer payload-default {
.login__form {
&__inputWrap {
display: flex;
flex-direction: column;
gap: var(--base);
margin-bottom: calc(var(--base) / 4);
}
}
}

View File

@@ -1,8 +1,10 @@
.login {
&__brand {
display: flex;
justify-content: center;
width: 100%;
margin-bottom: calc(var(--base) * 2);
@layer payload-default {
.login {
&__brand {
display: flex;
justify-content: center;
width: 100%;
margin-bottom: calc(var(--base) * 2);
}
}
}

View File

@@ -1,23 +1,25 @@
@import '../../scss/styles.scss';
.logout {
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
&__wrap {
z-index: 1;
position: relative;
@layer payload-default {
.logout {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: base(0.8);
width: 100%;
max-width: base(36);
align-items: center;
flex-wrap: wrap;
& > * {
margin: 0;
&__wrap {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: base(0.8);
width: 100%;
max-width: base(36);
& > * {
margin: 0;
}
}
}
}

View File

@@ -1,55 +1,57 @@
@import '../../scss/styles.scss';
.not-found {
margin-top: var(--base);
display: flex;
& > * {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
&__wrap {
@layer payload-default {
.not-found {
margin-top: var(--base);
display: flex;
flex-direction: column;
align-items: flex-start;
gap: base(0.8);
max-width: base(36);
}
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
& > * {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
> * {
&__wrap {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: base(0.8);
max-width: base(36);
}
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
> * {
margin: 0;
}
}
&__button {
margin: 0;
}
}
&__button {
margin: 0;
}
&--margin-top-large {
margin-top: calc(var(--base) * 2);
}
@include large-break {
&--margin-top-large {
margin-top: var(--base);
margin-top: calc(var(--base) * 2);
}
}
@include small-break {
margin-top: calc(var(--base) / 2);
@include large-break {
&--margin-top-large {
margin-top: var(--base);
}
}
&--margin-top-large {
@include small-break {
margin-top: calc(var(--base) / 2);
&--margin-top-large {
margin-top: calc(var(--base) / 2);
}
}
}
}

View File

@@ -1,31 +1,33 @@
@import '../../scss/styles.scss';
.reset-password {
&__wrap {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: base(0.8);
max-width: base(36);
@layer payload-default {
.reset-password {
&__wrap {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: base(0.8);
max-width: base(36);
& > form {
width: 100%;
& > form {
width: 100%;
& > .inputWrap {
display: flex;
flex-direction: column;
gap: base(0.8);
& > .inputWrap {
display: flex;
flex-direction: column;
gap: base(0.8);
> * {
margin: 0;
> * {
margin: 0;
}
}
}
}
& > .btn {
margin: 0;
& > .btn {
margin: 0;
}
}
}
}

View File

@@ -1,36 +1,38 @@
@import '../../scss/styles.scss';
.unauthorized {
margin-top: var(--base);
@layer payload-default {
.unauthorized {
margin-top: var(--base);
& > * {
&:first-child {
margin-top: 0;
& > * {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
&:last-child {
margin-bottom: 0;
&__button {
margin: 0;
}
}
&__button {
margin: 0;
}
&--margin-top-large {
margin-top: calc(var(--base) * 2);
}
@include large-break {
&--margin-top-large {
margin-top: var(--base);
}
}
@include small-break {
margin-top: calc(var(--base) / 2);
&--margin-top-large {
margin-top: calc(var(--base) * 2);
}
@include large-break {
&--margin-top-large {
margin-top: var(--base);
}
}
@include small-break {
margin-top: calc(var(--base) / 2);
&--margin-top-large {
margin-top: calc(var(--base) / 2);
}
}
}
}

View File

@@ -1,14 +1,16 @@
.verify {
display: flex;
align-items: center;
text-align: center;
flex-wrap: wrap;
min-height: 100vh;
&__brand {
@layer payload-default {
.verify {
display: flex;
justify-content: center;
width: 100%;
margin-bottom: calc(var(--base) * 2);
align-items: center;
text-align: center;
flex-wrap: wrap;
min-height: 100vh;
&__brand {
display: flex;
justify-content: center;
width: 100%;
margin-bottom: calc(var(--base) * 2);
}
}
}

View File

@@ -1,70 +1,72 @@
@import '../../../scss/styles.scss';
.view-version {
width: 100%;
padding-bottom: var(--spacing-view-bottom);
@layer payload-default {
.view-version {
width: 100%;
padding-bottom: var(--spacing-view-bottom);
&__wrap {
padding-top: calc(var(--base) * 1.5);
display: flex;
flex-direction: column;
gap: var(--base);
}
&__header-wrap {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
}
&__header {
display: flex;
align-items: center;
flex-wrap: wrap;
h2 {
margin: 0;
}
}
&__created-at {
margin: 0;
color: var(--theme-elevation-500);
}
&__controls {
display: flex;
gap: var(--base);
> * {
flex-basis: 100%;
}
}
&__restore {
margin: 0 0 0 var(--base);
}
@include mid-break {
&__intro,
&__header {
display: block;
&__wrap {
padding-top: calc(var(--base) * 1.5);
display: flex;
flex-direction: column;
gap: var(--base);
}
&__controls {
&__header-wrap {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
}
&__restore {
margin: calc(var(--base) * 0.5) 0 0 0;
}
}
&__header {
display: flex;
align-items: center;
flex-wrap: wrap;
@include small-break {
&__wrap {
padding-top: calc(var(--base) / 2);
gap: calc(var(--base) / 2);
h2 {
margin: 0;
}
}
&__created-at {
margin: 0;
color: var(--theme-elevation-500);
}
&__controls {
display: flex;
gap: var(--base);
> * {
flex-basis: 100%;
}
}
&__restore {
margin: 0 0 0 var(--base);
}
@include mid-break {
&__intro,
&__header {
display: block;
}
&__controls {
flex-direction: column;
gap: calc(var(--base) / 4);
}
&__restore {
margin: calc(var(--base) * 0.5) 0 0 0;
}
}
@include small-break {
&__wrap {
padding-top: calc(var(--base) / 2);
gap: calc(var(--base) / 2);
}
}
}
}

View File

@@ -1,4 +1,6 @@
.field-diff-label {
margin-bottom: calc(var(--base) * 0.25);
font-weight: 600;
@layer payload-default {
.field-diff-label {
margin-bottom: calc(var(--base) * 0.25);
font-weight: 600;
}
}

View File

@@ -1,34 +1,36 @@
.iterable-diff {
margin-bottom: calc(var(--base) * 2);
@layer payload-default {
.iterable-diff {
margin-bottom: calc(var(--base) * 2);
&__locale-label {
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
&__locale-label {
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
}
&__wrap {
margin: calc(var(--base) * 0.5);
[dir='ltr'] & {
padding-left: calc(var(--base) * 0.5);
// border-left: $style-stroke-width-s solid var(--theme-elevation-150);
&__wrap {
margin: calc(var(--base) * 0.5);
[dir='ltr'] & {
padding-left: calc(var(--base) * 0.5);
// border-left: $style-stroke-width-s solid var(--theme-elevation-150);
}
[dir='rtl'] & {
padding-right: calc(var(--base) * 0.5);
// border-right: $style-stroke-width-s solid var(--theme-elevation-150);
}
}
[dir='rtl'] & {
padding-right: calc(var(--base) * 0.5);
// border-right: $style-stroke-width-s solid var(--theme-elevation-150);
}
}
&__no-rows {
font-family: monospace;
background-color: var(--theme-elevation-50);
// padding: base(0.125) calc(var(--base) * 0.5);
// margin: base(0.125) 0;
&__no-rows {
font-family: monospace;
background-color: var(--theme-elevation-50);
// padding: base(0.125) calc(var(--base) * 0.5);
// margin: base(0.125) 0;
}
}
}

View File

@@ -1,12 +1,14 @@
.nested-diff {
&__wrap--gutter {
[dir='ltr'] & {
padding-left: calc(var(--base) * 0.25);
// border-left: $style-stroke-width-s solid var(--theme-elevation-150);
}
[dir='rtl'] & {
padding-right: calc(var(--base) * 0.25);
// border-right: $style-stroke-width-s solid var(--theme-elevation-150);
@layer payload-default {
.nested-diff {
&__wrap--gutter {
[dir='ltr'] & {
padding-left: calc(var(--base) * 0.25);
// border-left: $style-stroke-width-s solid var(--theme-elevation-150);
}
[dir='rtl'] & {
padding-right: calc(var(--base) * 0.25);
// border-right: $style-stroke-width-s solid var(--theme-elevation-150);
}
}
}
}

View File

@@ -1,13 +1,15 @@
.relationship-diff {
&__locale-label {
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
@layer payload-default {
.relationship-diff {
&__locale-label {
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
}
}

View File

@@ -1,13 +1,15 @@
.select-diff {
&__locale-label {
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
@layer payload-default {
.select-diff {
&__locale-label {
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
}
}

View File

@@ -1,13 +1,15 @@
.text-diff {
&__locale-label {
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
@layer payload-default {
.text-diff {
&__locale-label {
[dir='ltr'] & {
margin-right: calc(var(--base) * 0.25);
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
}
[dir='rtl'] & {
margin-left: calc(var(--base) * 0.25);
}
background: var(--theme-elevation-100);
padding: calc(var(--base) * 0.25);
// border-radius: $style-radius-m;
}
}

View File

@@ -1,18 +1,20 @@
@import '../../../scss/styles.scss';
.render-field-diffs {
display: flex;
flex-direction: column;
gap: var(--base);
&__field {
overflow-wrap: anywhere;
@layer payload-default {
.render-field-diffs {
display: flex;
flex-direction: column;
gap: var(--base);
}
@include small-break {
gap: calc(var(--base) / 2);
&__field {
overflow-wrap: anywhere;
display: flex;
flex-direction: column;
gap: var(--base);
}
@include small-break {
gap: calc(var(--base) / 2);
}
}
}

View File

@@ -1,77 +1,79 @@
@import '../../.././scss/styles.scss';
.restore-version {
cursor: pointer;
display: flex;
.popup-button {
display: flex;
}
&__chevron {
background-color: var(--theme-elevation-150);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
@layer payload-default {
.restore-version {
cursor: pointer;
.stroke {
stroke-width: 1px;
}
&:hover {
background: var(--theme-elevation-100);
}
}
&__button {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
margin-right: 2px;
&:focus {
border-radius: 0;
outline-offset: 0;
}
}
&__modal {
@include blur-bg;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
&__toggle {
@extend %btn-reset;
.popup-button {
display: flex;
}
}
&__wrapper {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
gap: base(0.8);
padding: base(2);
max-width: base(36);
}
&__chevron {
background-color: var(--theme-elevation-150);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
cursor: pointer;
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
.stroke {
stroke-width: 1px;
}
> * {
margin: 0;
&:hover {
background: var(--theme-elevation-100);
}
}
}
&__controls {
display: flex;
gap: base(0.4);
&__button {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
margin-right: 2px;
.btn {
margin: 0;
&:focus {
border-radius: 0;
outline-offset: 0;
}
}
&__modal {
@include blur-bg;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
&__toggle {
@extend %btn-reset;
}
}
&__wrapper {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
gap: base(0.8);
padding: base(2);
max-width: base(36);
}
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
> * {
margin: 0;
}
}
&__controls {
display: flex;
gap: base(0.4);
.btn {
margin: 0;
}
}
}
}

View File

@@ -1,13 +1,15 @@
.compare-version {
&__error-loading {
border: 1px solid var(--theme-error-500);
min-height: calc(var(--base) * 2);
padding: calc(var(--base) * 0.5) calc(var(--base) * 0.75);
background-color: var(--theme-error-100);
color: var(--theme-elevation-0);
}
@layer payload-default {
.compare-version {
&__error-loading {
border: 1px solid var(--theme-error-500);
min-height: calc(var(--base) * 2);
padding: calc(var(--base) * 0.5) calc(var(--base) * 0.75);
background-color: var(--theme-error-100);
color: var(--theme-elevation-0);
}
&__label {
margin-bottom: calc(var(--base) * 0.25);
&__label {
margin-bottom: calc(var(--base) * 0.25);
}
}
}

View File

@@ -1,7 +1,9 @@
.select-version-locales {
flex-grow: 1;
@layer payload-default {
.select-version-locales {
flex-grow: 1;
&__label {
margin-bottom: calc(var(--base) * 0.25);
&__label {
margin-bottom: calc(var(--base) * 0.25);
}
}
}

View File

@@ -1,108 +1,110 @@
@import '../../scss/styles.scss';
.versions {
width: 100%;
margin-bottom: calc(var(--base) * 2);
&__wrap {
padding-top: 0;
padding-bottom: var(--spacing-view-bottom);
margin-top: calc(var(--base) * 0.75);
}
&__header {
margin-bottom: var(--base);
}
&__no-versions {
margin-top: calc(var(--base) * 1.5);
}
&__parent-doc {
.banner__content {
display: flex;
}
}
&__parent-doc-pills {
[dir='ltr'] & {
margin-left: auto;
}
[dir='rtl'] & {
margin-right: auto;
}
}
.table {
table {
width: 100%;
overflow: auto;
}
}
&__page-controls {
@layer payload-default {
.versions {
width: 100%;
display: flex;
align-items: center;
}
margin-bottom: calc(var(--base) * 2);
.paginator {
margin-bottom: 0;
}
&__page-info {
[dir='ltr'] & {
margin-right: var(--base);
margin-left: auto;
}
[dir='rtl'] & {
margin-left: var(--base);
margin-right: auto;
}
}
@include mid-break {
&__wrap {
padding-top: 0;
margin-top: 0;
padding-bottom: var(--spacing-view-bottom);
margin-top: calc(var(--base) * 0.75);
}
// on mobile, extend the table all the way to the viewport edges
// this is to visually indicate overflowing content
.table {
display: flex;
width: calc(100% + calc(var(--gutter-h) * 2));
max-width: unset;
left: calc(var(--gutter-h) * -1);
position: relative;
padding-left: var(--gutter-h);
&__header {
margin-bottom: var(--base);
}
&::after {
content: '';
height: 1px;
padding-right: var(--gutter-h);
&__no-versions {
margin-top: calc(var(--base) * 1.5);
}
&__parent-doc {
.banner__content {
display: flex;
}
}
&__parent-doc-pills {
[dir='ltr'] & {
margin-left: auto;
}
[dir='rtl'] & {
margin-right: auto;
}
}
.table {
table {
width: 100%;
overflow: auto;
}
}
&__page-controls {
flex-wrap: wrap;
width: 100%;
display: flex;
align-items: center;
}
.paginator {
margin-bottom: 0;
}
&__page-info {
[dir='ltr'] & {
margin-left: 0;
margin-right: var(--base);
margin-left: auto;
}
[dir='rtl'] & {
margin-right: 0;
margin-left: var(--base);
margin-right: auto;
}
}
.paginator {
width: 100%;
margin-bottom: var(--base);
@include mid-break {
&__wrap {
padding-top: 0;
margin-top: 0;
}
// on mobile, extend the table all the way to the viewport edges
// this is to visually indicate overflowing content
.table {
display: flex;
width: calc(100% + calc(var(--gutter-h) * 2));
max-width: unset;
left: calc(var(--gutter-h) * -1);
position: relative;
padding-left: var(--gutter-h);
&::after {
content: '';
height: 1px;
padding-right: var(--gutter-h);
}
}
&__page-controls {
flex-wrap: wrap;
}
&__page-info {
[dir='ltr'] & {
margin-left: 0;
}
[dir='rtl'] & {
margin-right: 0;
}
}
.paginator {
width: 100%;
margin-bottom: var(--base);
}
}
}
}

View File

@@ -1,5 +1,7 @@
.plugin-seo__field {
.field-label {
display: inline !important;
@layer payload-default {
.plugin-seo__field {
.field-label {
display: inline !important;
}
}
}

View File

@@ -1,162 +1,164 @@
@import '../../../../scss/styles';
.ContentEditable__root > div:has(.lexical-block) {
// Fixes a bug where, if the block field has a Select field, the Select field's dropdown menu would be hidden behind the lexical editor.
z-index: 1;
}
.lexical-block {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 2);
@extend %body;
&__row {
.collapsible__toggle-wrap {
padding-inline-start: base(0.4);
}
@layer payload-default {
.ContentEditable__root > div:has(.lexical-block) {
// Fixes a bug where, if the block field has a Select field, the Select field's dropdown menu would be hidden behind the lexical editor.
z-index: 1;
}
margin-block: base(0.4);
&__header {
h3 {
margin: 0;
}
}
&__header-wrap {
display: flex;
align-items: flex-end;
width: 100%;
justify-content: space-between;
}
&__heading-with-error {
display: flex;
align-items: center;
gap: calc(var(--base) * 0.5);
}
&--has-no-error {
> .array-field__header .array-field__heading-with-error {
color: var(--theme-text);
}
}
&--has-error {
> .array-field__header {
color: var(--theme-error-500);
}
}
&__error-pill {
align-self: center;
}
&__header-actions {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
&__header-action {
@extend %btn-reset;
cursor: pointer;
margin-left: calc(var(--base) * 0.5);
&:hover,
&:focus-visible {
text-decoration: underline;
}
}
.collapsible {
&__header-wrap {
// Make more space for the block header (default right: is `calc(var(--base) * 3)`) so that the remove button aligns nicely to the right
right: calc(var(--base) * 1.5);
}
}
&__removeButton.btn {
margin: 0;
&:hover {
background-color: var(--theme-elevation-200);
}
}
&__block-header {
pointer-events: none;
}
&__block-header * {
pointer-events: all;
}
&__block-header,
&__block-header > div {
display: flex;
max-width: 100%;
width: 100%;
overflow: hidden;
gap: calc(var(--base) * 0.375);
justify-content: flex-start;
pointer-events: none;
& > * {
pointer-events: all;
}
}
&__block-number {
flex-shrink: 0;
}
&__block-pill {
flex-shrink: 0;
display: block;
line-height: unset;
}
&__rows {
.lexical-block {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 2);
@extend %body;
&__row {
.collapsible__toggle-wrap {
padding-inline-start: base(0.4);
}
}
margin-block: base(0.4);
&__header {
h3 {
margin: 0;
}
}
&__header-wrap {
display: flex;
align-items: flex-end;
width: 100%;
justify-content: space-between;
}
&__heading-with-error {
display: flex;
align-items: center;
gap: calc(var(--base) * 0.5);
}
&--has-no-error {
> .array-field__header .array-field__heading-with-error {
color: var(--theme-text);
}
}
&--has-error {
> .array-field__header {
color: var(--theme-error-500);
}
}
&__error-pill {
align-self: center;
}
&__header-actions {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
&__header-action {
@extend %btn-reset;
cursor: pointer;
margin-left: calc(var(--base) * 0.5);
&:hover,
&:focus-visible {
text-decoration: underline;
}
}
.collapsible {
&__header-wrap {
// Make more space for the block header (default right: is `calc(var(--base) * 3)`) so that the remove button aligns nicely to the right
right: calc(var(--base) * 1.5);
}
}
&__removeButton.btn {
margin: 0;
&:hover {
background-color: var(--theme-elevation-200);
}
}
&__block-header {
pointer-events: none;
}
&__block-header * {
pointer-events: all;
}
&__block-header,
&__block-header > div {
display: flex;
max-width: 100%;
width: 100%;
overflow: hidden;
gap: calc(var(--base) * 0.375);
justify-content: flex-start;
pointer-events: none;
& > * {
pointer-events: all;
}
}
&__block-number {
flex-shrink: 0;
}
&__block-pill {
flex-shrink: 0;
display: block;
line-height: unset;
}
&__rows {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 2);
}
&__drawer-toggler {
background-color: transparent;
margin: 0;
padding: 0;
border: none;
align-self: flex-start;
.btn {
color: var(--theme-elevation-400);
margin: 0;
&:hover {
color: var(--theme-elevation-800);
}
}
}
}
&__drawer-toggler {
background-color: transparent;
margin: 0;
padding: 0;
border: none;
align-self: flex-start;
html[data-theme='light'] {
.blocks-field--has-error {
.section-title__input,
.blocks-field__heading-with-error {
color: var(--theme-error-750);
}
}
}
.btn {
color: var(--theme-elevation-400);
margin: 0;
&:hover {
color: var(--theme-elevation-800);
html[data-theme='dark'] {
.blocks-field--has-error {
.section-title__input,
.blocks-field__heading-with-error {
color: var(--theme-error-500);
}
}
}
}
html[data-theme='light'] {
.blocks-field--has-error {
.section-title__input,
.blocks-field__heading-with-error {
color: var(--theme-error-750);
}
}
}
html[data-theme='dark'] {
.blocks-field--has-error {
.section-title__input,
.blocks-field__heading-with-error {
color: var(--theme-error-500);
}
}
}

View File

@@ -1,88 +1,90 @@
@import '../../../../scss/styles';
.inline-block-container {
display: inline-block;
}
.inline-block {
@extend %body;
@include shadow-sm;
padding: base(0.1);
padding-inline-start: base(0.4);
display: flex;
align-items: center;
background: var(--theme-input-bg);
outline: 1px solid var(--theme-elevation-100);
border-radius: $style-radius-s;
max-width: calc(var(--base) * 15);
font-family: var(--font-body);
margin-right: base(0.2);
margin-left: base(0.2);
&::selection {
background: transparent;
@layer payload-default {
.inline-block-container {
display: inline-block;
}
&:hover {
outline: 1px solid var(--theme-elevation-150);
}
&__wrap {
flex-grow: 1;
overflow: hidden;
}
&--selected {
background: var(--theme-success-100);
outline: 1px solid var(--theme-success-400);
}
&__editButton.btn {
margin: 0;
}
&__editButton {
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
&__actions {
.inline-block {
@extend %body;
@include shadow-sm;
padding: base(0.1);
padding-inline-start: base(0.4);
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: base(0.4);
background: var(--theme-input-bg);
outline: 1px solid var(--theme-elevation-100);
border-radius: $style-radius-s;
max-width: calc(var(--base) * 15);
font-family: var(--font-body);
margin-right: base(0.2);
margin-left: base(0.2);
& > .btn {
width: base(1);
height: base(1);
&::selection {
background: transparent;
}
&:not(:disabled):hover {
background: var(--theme-elevation-100);
}
&:hover {
outline: 1px solid var(--theme-elevation-150);
}
& > * {
height: 100%;
&__wrap {
flex-grow: 1;
overflow: hidden;
}
&--selected {
background: var(--theme-success-100);
outline: 1px solid var(--theme-success-400);
}
&__editButton.btn {
margin: 0;
}
&__editButton {
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
svg {
width: 16px;
height: 16px;
}
}
&__actions {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: base(0.4);
&__removeButton.btn {
margin: 0;
& > .btn {
width: base(1);
height: base(1);
line {
stroke-width: base(0.2);
&:not(:disabled):hover {
background: var(--theme-elevation-100);
}
& > * {
height: 100%;
}
}
svg {
width: 16px;
height: 16px;
}
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
&__removeButton.btn {
margin: 0;
line {
stroke-width: base(0.2);
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
}
}

View File

@@ -1,51 +1,53 @@
@import '../../../../../scss/styles';
.test-recorder-output {
margin: 20px auto 20px auto;
width: 100%;
}
.test-recorder-toolbar {
display: flex;
}
@layer payload-default {
.test-recorder-output {
margin: 20px auto 20px auto;
width: 100%;
}
.test-recorder-toolbar {
display: flex;
}
.test-recorder-button {
position: relative;
display: block;
font-size: 10px;
padding: 6px 6px;
border-radius: $style-radius-m;
border: none;
cursor: pointer;
outline: none;
box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
background-color: #222;
color: white;
transition: box-shadow 50ms ease-out;
}
.test-recorder-button {
position: relative;
display: block;
font-size: 10px;
padding: 6px 6px;
border-radius: $style-radius-m;
border: none;
cursor: pointer;
outline: none;
box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
background-color: #222;
color: white;
transition: box-shadow 50ms ease-out;
}
.test-recorder-button:active {
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}
.test-recorder-button:active {
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}
.test-recorder-button + .test-recorder-button {
margin-left: 4px;
}
.test-recorder-button + .test-recorder-button {
margin-left: 4px;
}
.test-recorder-button::after {
content: '';
position: absolute;
top: 8px;
right: 8px;
bottom: 8px;
left: 8px;
display: block;
background-size: contain;
filter: invert(1);
}
#test-recorder-button {
position: relative;
}
.test-recorder-button::after {
content: '';
position: absolute;
top: 8px;
right: 8px;
bottom: 8px;
left: 8px;
display: block;
background-size: contain;
filter: invert(1);
}
#test-recorder-button {
position: relative;
}
#test-recorder-button-snapshot {
margin-right: auto;
#test-recorder-button-snapshot {
margin-right: auto;
}
}

View File

@@ -1,78 +1,80 @@
.tree-view-output {
display: block;
background: #222;
color: #fff;
padding: 0;
font-size: 12px;
margin: 1px auto 10px auto;
position: relative;
overflow: hidden;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
pre {
line-height: 1.1;
@layer payload-default {
.tree-view-output {
display: block;
background: #222;
color: #fff;
margin: 0;
padding: 10px;
font-size: 12px;
overflow: auto;
max-height: 400px;
}
.debug-treetype-button {
border: 0;
padding: 0;
font-size: 12px;
top: 10px;
right: 85px;
position: absolute;
background: none;
color: #fff;
&:hover {
text-decoration: underline;
}
}
.debug-timetravel-button {
border: 0;
padding: 0;
font-size: 12px;
top: 10px;
right: 15px;
position: absolute;
background: none;
color: #fff;
&:hover {
text-decoration: underline;
}
}
.debug-timetravel-panel {
margin: 1px auto 10px auto;
position: relative;
overflow: hidden;
padding: 0 0 10px;
margin: auto;
display: flex;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
&-button {
padding: 0;
border: 0;
background: none;
flex: 1;
pre {
line-height: 1.1;
background: #222;
color: #fff;
margin: 0;
padding: 10px;
font-size: 12px;
overflow: auto;
max-height: 400px;
}
.debug-treetype-button {
border: 0;
padding: 0;
font-size: 12px;
top: 10px;
right: 85px;
position: absolute;
background: none;
color: #fff;
&:hover {
text-decoration: underline;
}
}
&-slider {
.debug-timetravel-button {
border: 0;
padding: 0;
flex: 8;
font-size: 12px;
top: 10px;
right: 15px;
position: absolute;
background: none;
color: #fff;
&:hover {
text-decoration: underline;
}
}
.debug-timetravel-panel {
overflow: hidden;
padding: 0 0 10px;
margin: auto;
display: flex;
&-button {
padding: 0;
border: 0;
background: none;
flex: 1;
color: #fff;
font-size: 12px;
&:hover {
text-decoration: underline;
}
}
&-slider {
padding: 0;
flex: 8;
}
}
}
}

View File

@@ -1,73 +1,75 @@
@import '../../../../../scss/styles';
.table-cell-action-button-container {
position: absolute;
top: 0;
left: 0;
will-change: transform;
}
.table-cell-action-button {
background-color: var(--theme-elevation-200);
border: 0;
padding: 2px;
position: relative;
border-radius: $style-radius-m;
color: var(--theme-elevation-800);
display: inline-block;
cursor: pointer;
&:hover {
background-color: var(--theme-elevation-300);
@layer payload-default {
.table-cell-action-button-container {
position: absolute;
top: 0;
left: 0;
will-change: transform;
}
}
html[data-theme='light'] {
.table-action-menu-dropdown {
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}
}
.table-action-menu-dropdown {
z-index: 100;
display: block;
position: fixed;
background: var(--theme-input-bg);
min-width: 160px;
border-radius: $style-radius-m;
min-height: 40px;
overflow-y: auto;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.2),
0px -4px 8px 0px rgba(0, 0, 0, 0.1);
hr {
border: none;
height: 1px;
.table-cell-action-button {
background-color: var(--theme-elevation-200);
}
.item {
padding: 8px;
color: var(--theme-elevation-900);
background: var(--theme-input-bg);
cursor: pointer;
font-size: 13px;
font-family: var(--font-body);
display: flex;
align-content: center;
flex-direction: row;
flex-shrink: 0;
justify-content: space-between;
border: 0;
height: 30px;
width: 100%;
padding: 2px;
position: relative;
border-radius: $style-radius-m;
color: var(--theme-elevation-800);
display: inline-block;
cursor: pointer;
&:hover {
background: var(--theme-elevation-100);
background-color: var(--theme-elevation-300);
}
}
html[data-theme='light'] {
.table-action-menu-dropdown {
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}
}
.table-action-menu-dropdown {
z-index: 100;
display: block;
position: fixed;
background: var(--theme-input-bg);
min-width: 160px;
border-radius: $style-radius-m;
min-height: 40px;
overflow-y: auto;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.2),
0px -4px 8px 0px rgba(0, 0, 0, 0.1);
hr {
border: none;
height: 1px;
background-color: var(--theme-elevation-200);
}
.item {
padding: 8px;
color: var(--theme-elevation-900);
background: var(--theme-input-bg);
cursor: pointer;
font-size: 13px;
font-family: var(--font-body);
display: flex;
align-content: center;
flex-direction: row;
flex-shrink: 0;
justify-content: space-between;
border: 0;
height: 30px;
width: 100%;
&:hover {
background: var(--theme-elevation-100);
}
}
}
}

View File

@@ -1,182 +1,184 @@
@import '../../../../../scss/styles';
.LexicalEditorTheme {
&__table {
border-collapse: collapse;
max-width: 100%;
border-spacing: 0;
overflow-y: scroll;
overflow-x: scroll;
table-layout: fixed;
width: fit-content;
margin: 0 25px 30px 0;
::selection {
background: rgba(172, 206, 247);
}
br::selection {
background: unset;
}
}
&__tableRowStriping tr:nth-child(even) {
background-color: var(--theme-elevation-100);
}
&__tableSelected {
outline: 2px solid rgb(60, 132, 244);
}
&__tableCell {
border: 1px solid var(--theme-elevation-200);
vertical-align: top;
text-align: start;
padding: 6px 8px;
position: relative;
cursor: default;
outline: none;
}
&__tableCellSortedIndicator {
display: block;
opacity: 0.5;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background-color: #999;
}
&__tableCellResizer {
position: absolute;
right: -4px;
height: 100%;
width: 8px;
cursor: ew-resize;
z-index: 10;
top: 0;
}
&__tableCellHeader {
background-color: #f2f3f5;
text-align: start;
}
&__tableCellSelected {
background-color: #c9dbf0;
}
&__tableCellPrimarySelected {
border: 2px solid rgb(60, 132, 244);
display: block;
height: calc(100% - 2px);
position: absolute;
width: calc(100% - 2px);
left: -1px;
top: -1px;
z-index: 2;
}
&__tableCellEditing {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
border-radius: $style-radius-m;
}
&__tableAddColumns {
height: 100%;
}
&__tableAddColumns,
&__tableAddRows {
position: absolute;
background-color: var(--theme-elevation-100);
animation: table-controls 0.2s ease;
border: 0;
cursor: pointer;
min-width: 24px;
min-height: 24px;
}
&__tableAddColumns:after,
&__tableAddRows:after {
background-image: url(../../../../../lexical/ui/icons/Add/index.svg);
background-position: center;
background-repeat: no-repeat;
display: block;
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.4;
}
&__tableAddColumns:hover,
&__tableAddRows:hover {
background-color: var(--theme-elevation-200);
}
&__tableAddRows {
width: calc(100% - 25px);
}
@keyframes table-controls {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
&__tableCellResizeRuler {
display: block;
position: absolute;
width: 1px;
background-color: rgb(60, 132, 244);
height: 100%;
top: 0;
}
&__tableCellActionButtonContainer {
display: block;
right: 5px;
top: 6px;
position: absolute;
z-index: 4;
width: 20px;
height: 20px;
}
&__tableCellActionButton {
background-color: #eee;
display: block;
border: 0;
border-radius: 20px;
width: 20px;
height: 20px;
color: #222;
cursor: pointer;
}
&__tableCellActionButton:hover {
background-color: #ddd;
}
}
html[data-theme='dark'] {
@layer payload-default {
.LexicalEditorTheme {
&__table {
border-collapse: collapse;
max-width: 100%;
border-spacing: 0;
overflow-y: scroll;
overflow-x: scroll;
table-layout: fixed;
width: fit-content;
margin: 0 25px 30px 0;
::selection {
background: rgba(172, 206, 247);
}
br::selection {
background: unset;
}
}
&__tableRowStriping tr:nth-child(even) {
background-color: var(--theme-elevation-100);
}
&__tableSelected {
outline: 2px solid rgb(60, 132, 244);
}
&__tableCell {
border: 1px solid var(--theme-elevation-200);
vertical-align: top;
text-align: start;
padding: 6px 8px;
position: relative;
cursor: default;
outline: none;
}
&__tableCellSortedIndicator {
display: block;
opacity: 0.5;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background-color: #999;
}
&__tableCellResizer {
position: absolute;
right: -4px;
height: 100%;
width: 8px;
cursor: ew-resize;
z-index: 10;
top: 0;
}
&__tableCellHeader {
background-color: var(--theme-elevation-50);
background-color: #f2f3f5;
text-align: start;
}
&__tableCellSelected {
background-color: #c9dbf0;
}
&__tableCellPrimarySelected {
border: 2px solid rgb(60, 132, 244);
display: block;
height: calc(100% - 2px);
position: absolute;
width: calc(100% - 2px);
left: -1px;
top: -1px;
z-index: 2;
}
&__tableCellEditing {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
border-radius: $style-radius-m;
}
&__tableAddColumns {
height: 100%;
}
&__tableAddColumns,
&__tableAddRows {
position: absolute;
background-color: var(--theme-elevation-100);
animation: table-controls 0.2s ease;
border: 0;
cursor: pointer;
min-width: 24px;
min-height: 24px;
}
&__tableAddColumns:after,
&__tableAddRows:after {
background-image: url(../../../../../lexical/ui/icons/Add/light.svg);
background-image: url(../../../../../lexical/ui/icons/Add/index.svg);
background-position: center;
background-repeat: no-repeat;
display: block;
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.4;
}
&__tableAddColumns:hover,
&__tableAddRows:hover {
background-color: var(--theme-elevation-200);
}
&__tableAddRows {
width: calc(100% - 25px);
}
@keyframes table-controls {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
&__tableCellResizeRuler {
display: block;
position: absolute;
width: 1px;
background-color: rgb(60, 132, 244);
height: 100%;
top: 0;
}
&__tableCellActionButtonContainer {
display: block;
right: 5px;
top: 6px;
position: absolute;
z-index: 4;
width: 20px;
height: 20px;
}
&__tableCellActionButton {
background-color: #eee;
display: block;
border: 0;
border-radius: 20px;
width: 20px;
height: 20px;
color: #222;
cursor: pointer;
}
&__tableCellActionButton:hover {
background-color: #ddd;
}
}
html[data-theme='dark'] {
.LexicalEditorTheme {
&__tableCellHeader {
background-color: var(--theme-elevation-50);
}
&__tableAddColumns:after,
&__tableAddRows:after {
background-image: url(../../../../../lexical/ui/icons/Add/light.svg);
}
}
}
}

View File

@@ -1,20 +1,22 @@
@import '../../../../scss/styles';
.LexicalEditorTheme__hr {
padding: 2px 2px;
border: none;
margin: 1rem 0;
cursor: pointer;
}
@layer payload-default {
.LexicalEditorTheme__hr {
padding: 2px 2px;
border: none;
margin: 1rem 0;
cursor: pointer;
}
.LexicalEditorTheme__hr:after {
content: '';
display: block;
height: 2px;
background-color: var(--theme-elevation-250);
}
.LexicalEditorTheme__hr:after {
content: '';
display: block;
height: 2px;
background-color: var(--theme-elevation-250);
}
.LexicalEditorTheme__hr.selected {
outline: 2px solid var(--theme-success-250);
user-select: none;
.LexicalEditorTheme__hr.selected {
outline: 2px solid var(--theme-success-250);
user-select: none;
}
}

View File

@@ -1,86 +1,88 @@
@import '../../../../../scss/styles.scss';
.link-editor {
z-index: 1;
display: flex;
align-items: center;
background: var(--theme-input-bg);
padding: 4px 4px 4px 12px;
vertical-align: middle;
position: absolute;
top: 0;
left: 0;
opacity: 0;
border-radius: $style-radius-m;
transition: opacity 0.2s;
will-change: transform;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.1),
0px -4px 16px 0px rgba(0, 0, 0, 0.1);
.link-input {
@layer payload-default {
.link-editor {
z-index: 1;
display: flex;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
min-height: 28px;
box-sizing: border-box;
@extend %body;
border: 0;
outline: 0;
position: relative;
font-family: var(--font-body);
background: var(--theme-input-bg);
padding: 4px 4px 4px 12px;
vertical-align: middle;
position: absolute;
top: 0;
left: 0;
opacity: 0;
border-radius: $style-radius-m;
transition: opacity 0.2s;
will-change: transform;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.1),
0px -4px 16px 0px rgba(0, 0, 0, 0.1);
&__label-pure {
color: var(--theme-elevation-1000);
margin-right: 15px;
display: block;
white-space: nowrap;
overflow: hidden;
.link-input {
display: flex;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
min-height: 28px;
box-sizing: border-box;
@extend %body;
border: 0;
outline: 0;
position: relative;
font-family: var(--font-body);
&__label-pure {
color: var(--theme-elevation-1000);
margin-right: 15px;
display: block;
white-space: nowrap;
overflow: hidden;
}
a {
text-decoration: underline;
display: block;
white-space: nowrap;
overflow: hidden;
margin-right: base(0.4);
text-overflow: ellipsis;
color: var(--theme-success-750);
&:hover {
color: var(--theme-success-850);
}
}
}
a {
text-decoration: underline;
display: block;
white-space: nowrap;
overflow: hidden;
margin-right: base(0.4);
text-overflow: ellipsis;
color: var(--theme-success-750);
button {
all: unset;
display: flex;
align-items: center;
justify-content: center;
background-size: 16px;
background-position: center;
background-repeat: no-repeat;
width: 30px;
height: 30px;
cursor: pointer;
color: var(--theme-elevation-600);
border-radius: $style-radius-m;
&:hover {
color: var(--theme-success-850);
&:hover:not([disabled]) {
color: var(--theme-elevation-800);
background-color: var(--theme-elevation-100);
}
}
}
button {
all: unset;
display: flex;
align-items: center;
justify-content: center;
background-size: 16px;
background-position: center;
background-repeat: no-repeat;
width: 30px;
height: 30px;
cursor: pointer;
color: var(--theme-elevation-600);
border-radius: $style-radius-m;
&:hover:not([disabled]) {
color: var(--theme-elevation-800);
background-color: var(--theme-elevation-100);
html[data-theme='light'] {
.link-editor {
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.05),
0px -4px 16px 0px rgba(0, 0, 0, 0.05);
}
}
}
html[data-theme='light'] {
.link-editor {
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.05),
0px -4px 16px 0px rgba(0, 0, 0, 0.05);
}
}

View File

@@ -1,94 +1,96 @@
@import '../../../../scss/styles.scss';
.lexical-relationship {
@extend %body;
@include shadow-sm;
padding: calc(var(--base) * 0.75);
display: flex;
align-items: center;
background: var(--theme-input-bg);
border: 1px solid var(--theme-elevation-100);
border-radius: $style-radius-m;
max-width: calc(var(--base) * 15);
font-family: var(--font-body);
margin-block: base(0.5);
&:hover {
border: 1px solid var(--theme-elevation-150);
}
&__label {
margin-bottom: calc(var(--base) * 0.25);
}
&__title {
margin: 0;
}
&__label,
&__title {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 1 !important;
}
&__title {
font-weight: bold;
}
&__wrap {
flex-grow: 1;
overflow: hidden;
}
&--selected {
box-shadow: $focus-box-shadow;
outline: none;
}
&__doc-drawer-toggler {
text-decoration: underline;
pointer-events: all;
line-height: inherit;
& > * {
margin: 0;
}
}
&__swapButton.btn {
margin: 0;
}
&__doc-drawer-toggler,
&__swapButton {
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
&__actions {
@layer payload-default {
.lexical-relationship {
@extend %body;
@include shadow-sm;
padding: calc(var(--base) * 0.75);
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: calc(var(--base) * 0.5);
background: var(--theme-input-bg);
border: 1px solid var(--theme-elevation-100);
border-radius: $style-radius-m;
max-width: calc(var(--base) * 15);
font-family: var(--font-body);
margin-block: base(0.5);
& > *:not(:last-child) {
margin-right: calc(var(--base) * 0.25);
}
}
&__removeButton.btn {
margin: 0;
line {
stroke-width: $style-stroke-width-m;
&:hover {
border: 1px solid var(--theme-elevation-150);
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
&__label {
margin-bottom: calc(var(--base) * 0.25);
}
&__title {
margin: 0;
}
&__label,
&__title {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 1 !important;
}
&__title {
font-weight: bold;
}
&__wrap {
flex-grow: 1;
overflow: hidden;
}
&--selected {
box-shadow: $focus-box-shadow;
outline: none;
}
&__doc-drawer-toggler {
text-decoration: underline;
pointer-events: all;
line-height: inherit;
& > * {
margin: 0;
}
}
&__swapButton.btn {
margin: 0;
}
&__doc-drawer-toggler,
&__swapButton {
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
&__actions {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: calc(var(--base) * 0.5);
& > *:not(:last-child) {
margin-right: calc(var(--base) * 0.25);
}
}
&__removeButton.btn {
margin: 0;
line {
stroke-width: $style-stroke-width-m;
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
}
}

View File

@@ -1,108 +1,110 @@
@import '../../../../../scss/styles';
html[data-theme='dark'] {
.fixed-toolbar {
&__dropdown-items {
background: var(--theme-elevation-0);
transition: background 0.2s cubic-bezier(0, 0.2, 0.2, 1);
@layer payload-default {
html[data-theme='dark'] {
.fixed-toolbar {
&__dropdown-items {
background: var(--theme-elevation-0);
transition: background 0.2s cubic-bezier(0, 0.2, 0.2, 1);
.toolbar-popup__dropdown-item {
color: var(--theme-elevation-900);
.toolbar-popup__dropdown-item {
color: var(--theme-elevation-900);
&:hover:not([disabled]),
&.active {
background: var(--theme-elevation-100);
}
&:hover:not([disabled]),
&.active {
background: var(--theme-elevation-100);
}
.icon {
color: var(--theme-elevation-600);
.icon {
color: var(--theme-elevation-600);
}
}
}
}
.toolbar-popup {
&__dropdown {
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
.toolbar-popup {
&__dropdown {
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
&:hover:not([disabled]) {
background: var(--theme-elevation-100);
}
&:hover:not([disabled]) {
background: var(--theme-elevation-100);
}
&-caret:after {
filter: invert(1);
}
&-caret:after {
filter: invert(1);
}
&-label {
color: var(--theme-elevation-750);
&-label {
color: var(--theme-elevation-750);
}
}
}
}
}
}
.fixed-toolbar.fixed-toolbar--hide {
visibility: hidden; // Still needs to take up space so content does not jump, thus we cannot use display: none
// make sure you cant interact with it
pointer-events: none;
user-select: none;
}
.fixed-toolbar.fixed-toolbar--hide {
visibility: hidden; // Still needs to take up space so content does not jump, thus we cannot use display: none
// make sure you cant interact with it
pointer-events: none;
user-select: none;
}
.fixed-toolbar {
@include blur-bg(var(--theme-elevation-0));
display: flex;
flex-wrap: wrap;
align-items: center;
padding: calc(var(--base) / 4);
vertical-align: middle;
position: sticky;
z-index: 2;
top: var(--doc-controls-height);
border: $style-stroke-width-s solid var(--theme-elevation-150);
// Make it so border itself is round too and not cut off at the corners
border-collapse: unset;
transform: translateY(1px); // aligns with top bar pixel line when stuck
&__group {
.fixed-toolbar {
@include blur-bg(var(--theme-elevation-0));
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px;
z-index: 1;
padding: calc(var(--base) / 4);
vertical-align: middle;
position: sticky;
z-index: 2;
top: var(--doc-controls-height);
border: $style-stroke-width-s solid var(--theme-elevation-150);
// Make it so border itself is round too and not cut off at the corners
border-collapse: unset;
transform: translateY(1px); // aligns with top bar pixel line when stuck
.icon {
min-width: 20px;
height: 20px;
color: var(--theme-elevation-600);
}
&__group {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px;
z-index: 1;
.divider {
width: 1px;
height: 15px;
background-color: var(--theme-elevation-100);
margin: 0 6.25px 0 4.25px; // substract 2px from the gap
}
}
.icon {
min-width: 20px;
height: 20px;
color: var(--theme-elevation-600);
}
+ .editor-container {
> .editor-scroller > .editor {
> .ContentEditable__root {
padding-top: calc(var(--base) * 1.25);
.divider {
width: 1px;
height: 15px;
background-color: var(--theme-elevation-100);
margin: 0 6.25px 0 4.25px; // substract 2px from the gap
}
}
> .editor-scroller > .editor > div > .editor-placeholder {
top: calc(var(--base) * 1.25);
}
}
}
.rich-text-lexical--show-gutter {
.fixed-toolbar {
+ .editor-container {
> .editor-scroller > .editor {
> .ContentEditable__root::before {
top: calc(var(--base) * 1.25) !important;
height: calc(100% - calc(var(--base) * 1.25) - 8px) !important;
> .ContentEditable__root {
padding-top: calc(var(--base) * 1.25);
}
}
> .editor-scroller > .editor > div > .editor-placeholder {
top: calc(var(--base) * 1.25);
}
}
}
.rich-text-lexical--show-gutter {
.fixed-toolbar {
+ .editor-container {
> .editor-scroller > .editor {
> .ContentEditable__root::before {
top: calc(var(--base) * 1.25) !important;
height: calc(100% - calc(var(--base) * 1.25) - 8px) !important;
}
}
}
}

View File

@@ -1,56 +1,58 @@
@import '../../../../../scss/styles';
.inline-toolbar-popup {
display: flex;
align-items: center;
background: var(--theme-input-bg);
padding: base(0.2);
vertical-align: middle;
position: absolute;
top: 0;
left: 0;
z-index: 2;
opacity: 0;
border-radius: $style-radius-m;
transition: opacity 0.2s;
will-change: transform;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.2),
0px -4px 8px 0px rgba(0, 0, 0, 0.1);
.caret {
z-index: 93;
position: absolute;
top: calc(100% - 24px);
border: base(0.4) solid transparent;
pointer-events: none;
border-top-color: var(--theme-input-bg);
}
&__group {
@layer payload-default {
.inline-toolbar-popup {
display: flex;
align-items: center;
gap: 2px;
.icon {
min-width: 20px;
height: 20px;
color: var(--theme-elevation-600);
}
.divider {
width: 1px;
height: 15px;
background-color: var(--theme-border-color);
margin: 0 6.25px;
}
}
}
html[data-theme='light'] {
.inline-toolbar-popup {
background: var(--theme-input-bg);
padding: base(0.2);
vertical-align: middle;
position: absolute;
top: 0;
left: 0;
z-index: 2;
opacity: 0;
border-radius: $style-radius-m;
transition: opacity 0.2s;
will-change: transform;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.2),
0px -4px 8px 0px rgba(0, 0, 0, 0.1);
.caret {
z-index: 93;
position: absolute;
top: calc(100% - 24px);
border: base(0.4) solid transparent;
pointer-events: none;
border-top-color: var(--theme-input-bg);
}
&__group {
display: flex;
align-items: center;
gap: 2px;
.icon {
min-width: 20px;
height: 20px;
color: var(--theme-elevation-600);
}
.divider {
width: 1px;
height: 15px;
background-color: var(--theme-border-color);
margin: 0 6.25px;
}
}
}
html[data-theme='light'] {
.inline-toolbar-popup {
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}
}
}

View File

@@ -1,150 +1,152 @@
@import '../../../../scss/styles';
.lexical-upload {
@extend %body;
@include shadow-sm;
max-width: calc(var(--base) * 15);
display: flex;
align-items: center;
background: var(--theme-input-bg);
border-radius: $style-radius-m;
border: 1px solid var(--theme-elevation-100);
position: relative;
font-family: var(--font-body);
margin-block: base(0.5);
.btn {
margin: 0;
}
&:hover {
border: 1px solid var(--theme-elevation-150);
}
&__card {
@include soft-shadow-bottom;
@layer payload-default {
.lexical-upload {
@extend %body;
@include shadow-sm;
max-width: calc(var(--base) * 15);
display: flex;
flex-direction: column;
width: 100%;
}
&__topRow {
display: flex;
}
&__thumbnail {
width: calc(var(--base) * 3.25);
height: auto;
align-items: center;
background: var(--theme-input-bg);
border-radius: $style-radius-m;
border: 1px solid var(--theme-elevation-100);
position: relative;
overflow: hidden;
flex-shrink: 0;
border-top-left-radius: $style-radius-m;
font-family: var(--font-body);
margin-block: base(0.5);
img,
svg {
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
background-color: var(--theme-elevation-800);
}
}
&__topRowRightPanel {
flex-grow: 1;
display: flex;
align-items: center;
padding: calc(var(--base) * 0.75);
justify-content: space-between;
max-width: calc(100% - #{calc(var(--base) * 3.25)});
}
&__actions {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: calc(var(--base) * 0.5);
.lexical-upload__doc-drawer-toggler {
pointer-events: all;
}
& > *:not(:last-child) {
margin-right: calc(var(--base) * 0.25);
}
}
&__removeButton {
margin: 0;
line {
stroke-width: $style-stroke-width-m;
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
&__upload-drawer-toggler {
background-color: transparent;
border: none;
padding: 0;
margin: 0;
outline: none;
line-height: inherit;
}
&__doc-drawer-toggler {
text-decoration: underline;
}
&__doc-drawer-toggler,
&__list-drawer-toggler,
&__upload-drawer-toggler {
& > * {
.btn {
margin: 0;
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
&:hover {
border: 1px solid var(--theme-elevation-150);
}
}
&__collectionLabel {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__card {
@include soft-shadow-bottom;
display: flex;
flex-direction: column;
width: 100%;
}
&__bottomRow {
padding: calc(var(--base) * 0.5);
border-top: 1px solid var(--theme-elevation-100);
}
&__topRow {
display: flex;
}
h5 {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
&__thumbnail {
width: calc(var(--base) * 3.25);
height: auto;
position: relative;
overflow: hidden;
flex-shrink: 0;
border-top-left-radius: $style-radius-m;
&__wrap {
padding: calc(var(--base) * 0.5) calc(var(--base) * 0.5) calc(var(--base) * 0.5) var(--base);
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
}
img,
svg {
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
background-color: var(--theme-elevation-800);
}
}
&--selected {
box-shadow: $focus-box-shadow;
outline: none;
}
@include small-break {
&__topRowRightPanel {
padding: calc(var(--base) * 0.75) calc(var(--base) * 0.5);
flex-grow: 1;
display: flex;
align-items: center;
padding: calc(var(--base) * 0.75);
justify-content: space-between;
max-width: calc(100% - #{calc(var(--base) * 3.25)});
}
&__actions {
display: flex;
align-items: center;
flex-shrink: 0;
margin-left: calc(var(--base) * 0.5);
.lexical-upload__doc-drawer-toggler {
pointer-events: all;
}
& > *:not(:last-child) {
margin-right: calc(var(--base) * 0.25);
}
}
&__removeButton {
margin: 0;
line {
stroke-width: $style-stroke-width-m;
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
&__upload-drawer-toggler {
background-color: transparent;
border: none;
padding: 0;
margin: 0;
outline: none;
line-height: inherit;
}
&__doc-drawer-toggler {
text-decoration: underline;
}
&__doc-drawer-toggler,
&__list-drawer-toggler,
&__upload-drawer-toggler {
& > * {
margin: 0;
}
&:disabled {
color: var(--theme-elevation-300);
pointer-events: none;
}
}
&__collectionLabel {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__bottomRow {
padding: calc(var(--base) * 0.5);
border-top: 1px solid var(--theme-elevation-100);
}
h5 {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
&__wrap {
padding: calc(var(--base) * 0.5) calc(var(--base) * 0.5) calc(var(--base) * 0.5) var(--base);
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
}
&--selected {
box-shadow: $focus-box-shadow;
outline: none;
}
@include small-break {
&__topRowRightPanel {
padding: calc(var(--base) * 0.75) calc(var(--base) * 0.5);
}
}
}
}

View File

@@ -1,30 +1,32 @@
@import '../scss/styles.scss';
.rich-text-lexical {
& > .field-error.tooltip {
right: auto;
position: static;
margin-bottom: 0.2em;
max-width: fit-content;
}
.errorBoundary {
pre {
text-wrap: unset;
@layer payload-default {
.rich-text-lexical {
& > .field-error.tooltip {
right: auto;
position: static;
margin-bottom: 0.2em;
max-width: fit-content;
}
}
&__wrap {
width: 100%;
position: relative;
}
.errorBoundary {
pre {
text-wrap: unset;
}
}
&--read-only {
.editor-container {
.editor {
background: var(--theme-elevation-200);
color: var(--theme-elevation-450);
padding: calc(var(--base) * 0.5);
&__wrap {
width: 100%;
position: relative;
}
&--read-only {
.editor-container {
.editor {
background: var(--theme-elevation-200);
color: var(--theme-elevation-450);
padding: calc(var(--base) * 0.5);
}
}
}
}

View File

@@ -1,63 +1,65 @@
@import '../scss/styles';
.rich-text-lexical {
.editor {
position: relative;
}
.editor-container {
position: relative;
font-family: var(--font-serif);
font-size: base(0.8);
letter-spacing: 0.02em;
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-body);
line-height: 1.125;
letter-spacing: 0;
@layer payload-default {
.rich-text-lexical {
.editor {
position: relative;
}
}
&--show-gutter {
> .rich-text-lexical__wrap
.editor-container {
position: relative;
font-family: var(--font-serif);
font-size: base(0.8);
letter-spacing: 0.02em;
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-body);
line-height: 1.125;
letter-spacing: 0;
}
}
&--show-gutter {
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> div
> .editor-placeholder {
left: 3rem;
}
}
&:not(&--show-gutter)
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> div
> .editor-placeholder {
left: 3rem;
left: 0;
}
.editor-placeholder {
position: absolute;
top: 8px;
font-size: base(0.8);
line-height: 1.5;
color: var(--theme-elevation-500);
/* Prevent text selection */
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
/* Make it behave more like a background element (no interaction) */
pointer-events: none;
}
}
&:not(&--show-gutter)
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> div
> .editor-placeholder {
left: 0;
}
.editor-placeholder {
position: absolute;
top: 8px;
font-size: base(0.8);
line-height: 1.5;
color: var(--theme-elevation-500);
/* Prevent text selection */
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
/* Make it behave more like a background element (no interaction) */
pointer-events: none;
}
}

View File

@@ -1,67 +1,69 @@
@import '../../../scss/styles.scss';
.slash-menu-popup {
background: var(--theme-input-bg);
width: 200px;
color: var(--theme-elevation-800);
border-radius: $style-radius-m;
list-style: none;
font-family: var(--font-body);
max-height: 300px;
overflow-y: auto;
z-index: 10;
position: absolute;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.2),
0px -4px 8px 0px rgba(0, 0, 0, 0.1);
&__group {
padding-bottom: 8px;
}
&__group-title {
padding-left: 10px;
color: var(--theme-elevation-600);
font-size: 10px;
}
&__item {
all: unset;
padding-left: 12px;
font-size: 13px;
box-sizing: border-box;
background: none;
border: none;
color: var(--theme-elevation-900);
display: flex;
align-items: center;
height: 30px;
width: 100%;
cursor: pointer;
&--selected {
background: var(--theme-elevation-100);
}
&-text {
margin-left: 6px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.icon {
color: var(--theme-elevation-500);
min-width: fit-content;
}
}
}
html[data-theme='light'] {
@layer payload-default {
.slash-menu-popup {
background: var(--theme-input-bg);
width: 200px;
color: var(--theme-elevation-800);
border-radius: $style-radius-m;
list-style: none;
font-family: var(--font-body);
max-height: 300px;
overflow-y: auto;
z-index: 10;
position: absolute;
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
0px 1px 2px 1px rgba(0, 0, 0, 0.1),
0px 4px 16px 0px rgba(0, 0, 0, 0.2),
0px -4px 8px 0px rgba(0, 0, 0, 0.1);
&__group {
padding-bottom: 8px;
}
&__group-title {
padding-left: 10px;
color: var(--theme-elevation-600);
font-size: 10px;
}
&__item {
all: unset;
padding-left: 12px;
font-size: 13px;
box-sizing: border-box;
background: none;
border: none;
color: var(--theme-elevation-900);
display: flex;
align-items: center;
height: 30px;
width: 100%;
cursor: pointer;
&--selected {
background: var(--theme-elevation-100);
}
&-text {
margin-left: 6px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.icon {
color: var(--theme-elevation-500);
min-width: fit-content;
}
}
}
html[data-theme='light'] {
.slash-menu-popup {
box-shadow:
0px 1px 2px 1px rgba(0, 0, 0, 0.05),
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}
}
}

View File

@@ -1,33 +1,35 @@
@import '../../../../scss/styles.scss';
.add-block-menu {
all: unset; // reset all default button styles
border-radius: $style-radius-m;
padding: 0;
cursor: pointer;
opacity: 0;
position: absolute;
left: 0;
top: 0;
will-change: transform;
@layer payload-default {
.add-block-menu {
all: unset; // reset all default button styles
border-radius: $style-radius-m;
padding: 0;
cursor: pointer;
opacity: 0;
position: absolute;
left: 0;
top: 0;
will-change: transform;
&:hover {
background-color: var(--theme-elevation-100);
.icon {
opacity: 1;
&:hover {
background-color: var(--theme-elevation-100);
.icon {
opacity: 1;
}
}
}
.icon {
width: 18px;
height: 24px;
opacity: 0.3;
background-image: url(../../../ui/icons/Add/index.svg);
}
html[data-theme='dark'] & {
.icon {
background-image: url(../../../ui/icons/Add/light.svg);
width: 18px;
height: 24px;
opacity: 0.3;
background-image: url(../../../ui/icons/Add/index.svg);
}
html[data-theme='dark'] & {
.icon {
background-image: url(../../../ui/icons/Add/light.svg);
}
}
}
}

View File

@@ -1,76 +1,78 @@
@import '../../../../scss/styles.scss';
.draggable-block-menu {
border-radius: $style-radius-m;
padding: 0;
cursor: grab;
opacity: 0;
position: absolute;
left: 0;
top: 0;
will-change: transform;
background-color: var(--theme-bg);
@layer payload-default {
.draggable-block-menu {
border-radius: $style-radius-m;
padding: 0;
cursor: grab;
opacity: 0;
position: absolute;
left: 0;
top: 0;
will-change: transform;
background-color: var(--theme-bg);
&:active {
cursor: grabbing;
}
&:active {
cursor: grabbing;
}
&:hover {
background-color: var(--theme-elevation-100);
.icon {
opacity: 1;
}
}
&:hover {
background-color: var(--theme-elevation-100);
.icon {
opacity: 1;
width: 18px;
height: 24px;
opacity: 0.3;
background-image: url(../../../ui/icons/DraggableBlock/index.svg);
}
html[data-theme='dark'] & {
.icon {
background-image: url(../../../ui/icons/DraggableBlock/light.svg);
}
}
}
.icon {
width: 18px;
height: 24px;
opacity: 0.3;
background-image: url(../../../ui/icons/DraggableBlock/index.svg);
}
html[data-theme='dark'] & {
.icon {
background-image: url(../../../ui/icons/DraggableBlock/light.svg);
.rich-text-lexical--show-gutter
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor {
> .draggable-block-target-line {
left: 3rem;
}
}
}
.rich-text-lexical--show-gutter
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor {
> .draggable-block-target-line {
left: 3rem;
}
}
.draggable-block-target-line {
pointer-events: none;
background: var(--theme-success-400);
border-radius: 1px;
height: base(0.2);
position: absolute;
left: 0;
top: 0;
opacity: 0;
will-change: transform;
transition: transform 0.1s;
}
/* This targets Firefox 57+. The transition looks ugly on firefox, thus we disable it here */
@-moz-document url-prefix() {
.draggable-block-target-line {
transition: none;
pointer-events: none;
background: var(--theme-success-400);
border-radius: 1px;
height: base(0.2);
position: absolute;
left: 0;
top: 0;
opacity: 0;
will-change: transform;
transition: transform 0.1s;
}
}
.rich-text-lexical {
.ContentEditable__root > * {
will-change: margin-top, margin-bottom;
transition:
margin-top 0.08s,
margin-bottom 0.08s;
/* This targets Firefox 57+. The transition looks ugly on firefox, thus we disable it here */
@-moz-document url-prefix() {
.draggable-block-target-line {
transition: none;
}
}
.rich-text-lexical {
.ContentEditable__root > * {
will-change: margin-top, margin-bottom;
transition:
margin-top 0.08s,
margin-bottom 0.08s;
}
}
}

View File

@@ -1,392 +1,394 @@
@import '../../scss/styles.scss';
.LexicalEditorTheme {
&__ltr {
text-align: left;
@layer payload-default {
.LexicalEditorTheme {
&__ltr {
text-align: left;
}
&__rtl {
text-align: right;
}
&__paragraph {
font-size: base(0.8);
margin-bottom: 0.55em;
position: relative;
line-height: 1.5;
letter-spacing: normal;
}
// No bottom margin for last paragraph in editor. This also created nice animations when adding a new line at the end
.ContentEditable__root {
font-size: base(0.8);
}
&__quote {
font-size: base(0.8);
margin-block: base(0.8);
margin-inline: base(0.2);
border-inline-start-color: var(--theme-elevation-150);
border-inline-start-width: base(0.2);
border-inline-start-style: solid;
padding-inline-start: base(0.6);
padding-block: base(0.2);
}
&__h1 {
font-size: base(1.4);
font-weight: 700;
margin-block: 0.5em 0.4em;
line-height: base(1.2);
letter-spacing: normal;
}
&__h2 {
font-size: base(1.25);
font-weight: 700;
margin-block: 0.55em 0.4em;
line-height: base(1.2);
letter-spacing: normal;
}
&__h3 {
font-size: base(1.1);
font-weight: 700;
margin-block: 0.6em 0.4em;
line-height: base(1.3);
letter-spacing: normal;
}
&__h4 {
font-size: base(1);
font-weight: 700;
margin-block: 0.65em 0.4em;
line-height: base(1.4);
letter-spacing: normal;
}
&__h5 {
font-size: base(0.9);
font-weight: 700;
margin-block: 0.7em 0.4em;
line-height: base(1.5);
letter-spacing: normal;
}
&__h6 {
font-size: base(0.8);
font-weight: 700;
margin-block: 0.75em 0.4em;
line-height: base(1.5);
letter-spacing: 0.1em;
}
&__indent {
--lexical-indent-base-value: 40px;
}
&__textBold {
font-weight: bold;
}
&__textItalic {
font-style: italic;
}
&__textUnderline {
text-decoration: underline;
}
&__textStrikethrough {
text-decoration: line-through;
}
&__textUnderlineStrikethrough {
text-decoration: underline line-through;
}
&__textSubscript {
font-size: 0.8em;
vertical-align: sub !important;
}
&__textSuperscript {
font-size: 0.8em;
vertical-align: super;
}
&__textCode {
background-color: var(--theme-elevation-50);
border: 1px solid var(--theme-elevation-150);
color: var(--theme-error-600);
padding: base(0.1) base(0.2);
font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace;
font-size: 0.875em;
border-radius: var(--style-radius-s);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
&__hashtag {
background-color: rgba(88, 144, 255, 0.15);
border-bottom: 1px solid rgba(88, 144, 255, 0.3);
}
.ContentEditable__root &__link {
pointer-events: none;
}
&__link {
color: var(--theme-success-750);
text-decoration: none;
border-bottom: 1px dotted;
}
&__code {
/*background-color: rgb(240, 242, 245);*/
font-family: Menlo, Consolas, Monaco, monospace;
display: block;
padding: 8px 8px 8px 52px;
line-height: 1.53;
font-size: 13px;
margin: 8px 0;
tab-size: 2;
/* white-space: pre; */
overflow-x: auto;
position: relative;
}
&__code:before {
content: attr(data-gutter);
position: absolute;
/*background-color: #eee;*/
left: 0;
top: 0;
border-right: 1px solid #ccc;
padding: 8px;
color: #777;
white-space: pre-wrap;
text-align: right;
min-width: 25px;
}
&__characterLimit {
display: inline;
background-color: #ffbbbb !important;
}
&__ol1 {
padding: 0;
list-style-position: outside;
margin: base(0.4) 0 base(0.8);
}
&__ol2 {
padding: 0;
margin: 0;
list-style-type: upper-alpha;
list-style-position: outside;
}
&__ol3 {
padding: 0;
margin: 0;
list-style-type: lower-alpha;
list-style-position: outside;
}
&__ol4 {
padding: 0;
margin: 0;
list-style-type: upper-roman;
list-style-position: outside;
}
&__ol5 {
padding: 0;
margin: 0;
list-style-type: lower-roman;
list-style-position: outside;
}
&__ul {
padding: 0;
margin: base(0.4) 0 base(0.8);
list-style-position: outside;
}
&__ul ul {
margin: 0;
}
&__listItem {
font-size: base(0.8);
margin: 0 0 0.4em 40px;
}
&__listItem[dir='rtl'] {
margin: 0 40px 0.4em 0;
}
&__listItemChecked,
&__listItemUnchecked {
position: relative;
// Instead of having margin-left: 40px like other list-items or indented paragraphs,
// we use padding-left: 25px + margin-left: 15px = 40px, so that the click position
// calculation in `CheckListPlugin` matches the checkbox
margin-left: 15px;
padding-left: 25px;
list-style-type: none;
outline: none;
}
// See comment above for why we need this
&__listItemUnchecked[dir='rtl'],
&__listItemChecked[dir='rtl'] {
margin-left: 0;
padding-left: 0;
padding-right: 25px;
margin-right: 15px;
}
&__listItemChecked {
text-decoration: line-through;
}
&__listItemUnchecked:before,
&__listItemChecked:before {
content: '';
width: base(0.8);
height: base(0.8);
top: base(0.1);
left: 0;
cursor: pointer;
display: block;
background-size: cover;
position: absolute;
}
&__listItemUnchecked[dir='rtl']:before,
&__listItemChecked[dir='rtl']:before {
left: auto;
right: 0;
}
&__listItemUnchecked:focus:before,
&__listItemChecked:focus:before {
outline: 0;
box-shadow: 0 0 3px 3px var(--theme-success-400);
border: 1px solid var(--theme-elevation-250);
border-radius: var(--style-radius-s);
}
&__listItemUnchecked:before {
border: 1px solid var(--theme-elevation-250);
border-radius: $style-radius-s;
}
&__listItemChecked:before {
border: 1px solid var(--theme-elevation-500);
border-radius: $style-radius-s;
background-color: var(--theme-elevation-100);
background-repeat: no-repeat;
}
&__listItemChecked:after {
content: '';
cursor: pointer;
border-color: var(--theme-text);
border-style: solid;
position: absolute;
display: block;
top: 6px;
width: 3px;
left: 7px;
right: 7px;
height: 6px;
transform: rotate(45deg);
border-width: 0 2px 2px 0;
}
&__nestedListItem {
list-style-type: none;
}
&__nestedListItem:before,
&__nestedListItem:after {
display: none;
}
&__tokenComment {
color: slategray;
}
&__tokenPunctuation {
color: #999;
}
&__tokenProperty {
color: #905;
}
&__tokenSelector {
color: #690;
}
&__tokenOperator {
color: #9a6e3a;
}
&__tokenAttr {
color: #07a;
}
&__tokenVariable {
color: #e90;
}
&__tokenFunction {
color: #dd4a68;
}
&__mark {
background: rgba(255, 212, 0, 0.14);
border-bottom: 2px solid rgba(255, 212, 0, 0.3);
padding-bottom: 2px;
}
&__markOverlap {
background: rgba(255, 212, 0, 0.3);
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}
&__mark.selected {
background: rgba(255, 212, 0, 0.5);
border-bottom: 2px solid rgba(255, 212, 0, 1);
}
&__markOverlap.selected {
background: rgba(255, 212, 0, 0.7);
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}
&__embedBlock {
user-select: none;
}
&__embedBlockFocus {
outline: 2px solid rgb(60, 132, 244);
}
.ContentEditable__root {
&:first-child {
margin-top: 0;
}
}
}
&__rtl {
text-align: right;
}
&__paragraph {
font-size: base(0.8);
margin-bottom: 0.55em;
position: relative;
line-height: 1.5;
letter-spacing: normal;
}
// No bottom margin for last paragraph in editor. This also created nice animations when adding a new line at the end
.ContentEditable__root {
font-size: base(0.8);
}
&__quote {
font-size: base(0.8);
margin-block: base(0.8);
margin-inline: base(0.2);
border-inline-start-color: var(--theme-elevation-150);
border-inline-start-width: base(0.2);
border-inline-start-style: solid;
padding-inline-start: base(0.6);
padding-block: base(0.2);
}
&__h1 {
font-size: base(1.4);
font-weight: 700;
margin-block: 0.5em 0.4em;
line-height: base(1.2);
letter-spacing: normal;
}
&__h2 {
font-size: base(1.25);
font-weight: 700;
margin-block: 0.55em 0.4em;
line-height: base(1.2);
letter-spacing: normal;
}
&__h3 {
font-size: base(1.1);
font-weight: 700;
margin-block: 0.6em 0.4em;
line-height: base(1.3);
letter-spacing: normal;
}
&__h4 {
font-size: base(1);
font-weight: 700;
margin-block: 0.65em 0.4em;
line-height: base(1.4);
letter-spacing: normal;
}
&__h5 {
font-size: base(0.9);
font-weight: 700;
margin-block: 0.7em 0.4em;
line-height: base(1.5);
letter-spacing: normal;
}
&__h6 {
font-size: base(0.8);
font-weight: 700;
margin-block: 0.75em 0.4em;
line-height: base(1.5);
letter-spacing: 0.1em;
}
&__indent {
--lexical-indent-base-value: 40px;
}
&__textBold {
font-weight: bold;
}
&__textItalic {
font-style: italic;
}
&__textUnderline {
text-decoration: underline;
}
&__textStrikethrough {
text-decoration: line-through;
}
&__textUnderlineStrikethrough {
text-decoration: underline line-through;
}
&__textSubscript {
font-size: 0.8em;
vertical-align: sub !important;
}
&__textSuperscript {
font-size: 0.8em;
vertical-align: super;
}
&__textCode {
background-color: var(--theme-elevation-50);
border: 1px solid var(--theme-elevation-150);
color: var(--theme-error-600);
padding: base(0.1) base(0.2);
font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace;
font-size: 0.875em;
border-radius: var(--style-radius-s);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
&__hashtag {
background-color: rgba(88, 144, 255, 0.15);
border-bottom: 1px solid rgba(88, 144, 255, 0.3);
}
.ContentEditable__root &__link {
pointer-events: none;
}
&__link {
color: var(--theme-success-750);
text-decoration: none;
border-bottom: 1px dotted;
}
&__code {
/*background-color: rgb(240, 242, 245);*/
font-family: Menlo, Consolas, Monaco, monospace;
display: block;
padding: 8px 8px 8px 52px;
line-height: 1.53;
font-size: 13px;
margin: 8px 0;
tab-size: 2;
/* white-space: pre; */
overflow-x: auto;
position: relative;
}
&__code:before {
content: attr(data-gutter);
position: absolute;
/*background-color: #eee;*/
left: 0;
top: 0;
border-right: 1px solid #ccc;
padding: 8px;
color: #777;
white-space: pre-wrap;
text-align: right;
min-width: 25px;
}
&__characterLimit {
display: inline;
background-color: #ffbbbb !important;
}
&__ol1 {
padding: 0;
list-style-position: outside;
margin: base(0.4) 0 base(0.8);
}
&__ol2 {
padding: 0;
margin: 0;
list-style-type: upper-alpha;
list-style-position: outside;
}
&__ol3 {
padding: 0;
margin: 0;
list-style-type: lower-alpha;
list-style-position: outside;
}
&__ol4 {
padding: 0;
margin: 0;
list-style-type: upper-roman;
list-style-position: outside;
}
&__ol5 {
padding: 0;
margin: 0;
list-style-type: lower-roman;
list-style-position: outside;
}
&__ul {
padding: 0;
margin: base(0.4) 0 base(0.8);
list-style-position: outside;
}
&__ul ul {
margin: 0;
}
&__listItem {
font-size: base(0.8);
margin: 0 0 0.4em 40px;
}
&__listItem[dir='rtl'] {
margin: 0 40px 0.4em 0;
}
&__listItemChecked,
&__listItemUnchecked {
position: relative;
// Instead of having margin-left: 40px like other list-items or indented paragraphs,
// we use padding-left: 25px + margin-left: 15px = 40px, so that the click position
// calculation in `CheckListPlugin` matches the checkbox
margin-left: 15px;
padding-left: 25px;
list-style-type: none;
outline: none;
}
// See comment above for why we need this
&__listItemUnchecked[dir='rtl'],
&__listItemChecked[dir='rtl'] {
margin-left: 0;
padding-left: 0;
padding-right: 25px;
margin-right: 15px;
}
&__listItemChecked {
text-decoration: line-through;
}
&__listItemUnchecked:before,
&__listItemChecked:before {
content: '';
width: base(0.8);
height: base(0.8);
top: base(0.1);
left: 0;
cursor: pointer;
display: block;
background-size: cover;
position: absolute;
}
&__listItemUnchecked[dir='rtl']:before,
&__listItemChecked[dir='rtl']:before {
left: auto;
right: 0;
}
&__listItemUnchecked:focus:before,
&__listItemChecked:focus:before {
outline: 0;
box-shadow: 0 0 3px 3px var(--theme-success-400);
border: 1px solid var(--theme-elevation-250);
border-radius: var(--style-radius-s);
}
&__listItemUnchecked:before {
border: 1px solid var(--theme-elevation-250);
border-radius: $style-radius-s;
}
&__listItemChecked:before {
border: 1px solid var(--theme-elevation-500);
border-radius: $style-radius-s;
background-color: var(--theme-elevation-100);
background-repeat: no-repeat;
}
&__listItemChecked:after {
content: '';
cursor: pointer;
border-color: var(--theme-text);
border-style: solid;
position: absolute;
display: block;
top: 6px;
width: 3px;
left: 7px;
right: 7px;
height: 6px;
transform: rotate(45deg);
border-width: 0 2px 2px 0;
}
&__nestedListItem {
list-style-type: none;
}
&__nestedListItem:before,
&__nestedListItem:after {
display: none;
}
&__tokenComment {
color: slategray;
}
&__tokenPunctuation {
color: #999;
}
&__tokenProperty {
color: #905;
}
&__tokenSelector {
color: #690;
}
&__tokenOperator {
color: #9a6e3a;
}
&__tokenAttr {
color: #07a;
}
&__tokenVariable {
color: #e90;
}
&__tokenFunction {
color: #dd4a68;
}
&__mark {
background: rgba(255, 212, 0, 0.14);
border-bottom: 2px solid rgba(255, 212, 0, 0.3);
padding-bottom: 2px;
}
&__markOverlap {
background: rgba(255, 212, 0, 0.3);
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}
&__mark.selected {
background: rgba(255, 212, 0, 0.5);
border-bottom: 2px solid rgba(255, 212, 0, 1);
}
&__markOverlap.selected {
background: rgba(255, 212, 0, 0.7);
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}
&__embedBlock {
user-select: none;
}
&__embedBlockFocus {
outline: 2px solid rgb(60, 132, 244);
}
.ContentEditable__root {
&:first-child {
margin-top: 0;
html[data-theme='dark'] {
.LexicalEditorTheme__textCode {
color: var(--theme-warning-600);
}
}
}
html[data-theme='dark'] {
.LexicalEditorTheme__textCode {
color: var(--theme-warning-600);
}
}

View File

@@ -3,89 +3,91 @@
$lexical-contenteditable-top-padding: 8px;
$lexical-contenteditable-bottom-padding: 8px;
.ContentEditable__root {
border: 0;
font-size: 15px;
display: block;
position: relative;
tab-size: 1;
outline: 0;
padding-top: $lexical-contenteditable-top-padding;
padding-bottom: $lexical-contenteditable-bottom-padding;
//min-height: base(10);
&:focus-visible {
outline: none !important;
}
& > * {
transition: transform 0.2s ease-in-out;
// will-change: transform; // breaks cursor rendering for empty paragraph blocks in safari, and creates other issues
}
}
@media (max-width: 768px) {
@layer payload-default {
.ContentEditable__root {
padding-left: 0;
padding-right: 0;
}
}
border: 0;
font-size: 15px;
display: block;
position: relative;
tab-size: 1;
outline: 0;
padding-top: $lexical-contenteditable-top-padding;
padding-bottom: $lexical-contenteditable-bottom-padding;
//min-height: base(10);
@media (min-width: 769px) {
.rich-text-lexical--show-gutter
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor {
> .ContentEditable__root {
padding-left: 3rem;
&:focus-visible {
outline: none !important;
}
> .ContentEditable__root::before {
content: ' ';
position: absolute;
top: $lexical-contenteditable-top-padding;
left: 0;
height: calc(
100% - #{$lexical-contenteditable-top-padding} - #{$lexical-contenteditable-bottom-padding}
);
border-left: 1px solid var(--theme-elevation-100);
& > * {
transition: transform 0.2s ease-in-out;
// will-change: transform; // breaks cursor rendering for empty paragraph blocks in safari, and creates other issues
}
}
}
html[data-theme='light'] {
.rich-text-lexical.rich-text-lexical--show-gutter {
&.error:not(:hover) {
@media (max-width: 768px) {
.ContentEditable__root {
padding-left: 0;
padding-right: 0;
}
}
@media (min-width: 769px) {
.rich-text-lexical--show-gutter
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> .ContentEditable__root::before {
border-left: 2px solid var(--theme-error-400);
> .editor-container
> .editor-scroller
> .editor {
> .ContentEditable__root {
padding-left: 3rem;
}
> .ContentEditable__root::before {
content: ' ';
position: absolute;
top: $lexical-contenteditable-top-padding;
left: 0;
height: calc(
100% - #{$lexical-contenteditable-top-padding} - #{$lexical-contenteditable-bottom-padding}
);
border-left: 1px solid var(--theme-elevation-100);
}
}
}
&.error:hover {
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> .ContentEditable__root::before {
border-left: 2px solid var(--theme-error-500);
}
}
}
}
html[data-theme='dark'] {
.rich-text-lexical.rich-text-lexical--show-gutter {
&.error {
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> .ContentEditable__root::before {
border-left: 2px solid var(--theme-error-500);
html[data-theme='light'] {
.rich-text-lexical.rich-text-lexical--show-gutter {
&.error:not(:hover) {
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> .ContentEditable__root::before {
border-left: 2px solid var(--theme-error-400);
}
}
&.error:hover {
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> .ContentEditable__root::before {
border-left: 2px solid var(--theme-error-500);
}
}
}
}
html[data-theme='dark'] {
.rich-text-lexical.rich-text-lexical--show-gutter {
&.error {
> .rich-text-lexical__wrap
> .editor-container
> .editor-scroller
> .editor
> .ContentEditable__root::before {
border-left: 2px solid var(--theme-error-500);
}
}
}
}

View File

@@ -2,202 +2,204 @@
@import './toasts.scss';
@import './colors.scss';
:root {
--base-px: 20;
--base-body-size: 13;
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
@layer payload-default {
:root {
--base-px: 20;
--base-body-size: 13;
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
--breakpoint-xs-width: #{$breakpoint-xs-width};
--breakpoint-s-width: #{$breakpoint-s-width};
--breakpoint-m-width: #{$breakpoint-m-width};
--breakpoint-l-width: #{$breakpoint-l-width};
--scrollbar-width: 17px;
--breakpoint-xs-width: #{$breakpoint-xs-width};
--breakpoint-s-width: #{$breakpoint-s-width};
--breakpoint-m-width: #{$breakpoint-m-width};
--breakpoint-l-width: #{$breakpoint-l-width};
--scrollbar-width: 17px;
--theme-bg: var(--theme-elevation-0);
--theme-input-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-800);
--theme-overlay: rgba(5, 5, 5, 0.5);
--theme-baseline: #{$baseline-px};
--theme-baseline-body-size: #{$baseline-body-size};
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
sans-serif;
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
--style-radius-s: #{$style-radius-s};
--style-radius-m: #{$style-radius-m};
--style-radius-l: #{$style-radius-l};
--z-popup: 10;
--z-nav: 20;
--z-modal: 30;
--z-status: 40;
--accessibility-outline: 2px solid var(--theme-text);
--accessibility-outline-offset: 2px;
--gutter-h: #{base(3)};
--spacing-view-bottom: var(--gutter-h);
--doc-controls-height: calc(var(--base) * 2.8);
--app-header-height: calc(var(--base) * 2.8);
--nav-width: 275px;
--nav-trans-time: 150ms;
@include mid-break {
--gutter-h: #{base(2)};
--app-header-height: calc(var(--base) * 2.4);
--doc-controls-height: calc(var(--base) * 2.4);
}
@include small-break {
--gutter-h: #{base(0.8)};
--spacing-view-bottom: calc(var(--base) * 2);
--nav-width: 100vw;
}
}
/////////////////////////////
// GLOBAL STYLES
/////////////////////////////
* {
box-sizing: border-box;
}
html {
@extend %body;
background: var(--theme-bg);
-webkit-font-smoothing: antialiased;
&[data-theme='dark'] {
--theme-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-1000);
--theme-input-bg: var(--theme-elevation-50);
--theme-overlay: rgba(5, 5, 5, 0.75);
color-scheme: dark;
--theme-input-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-800);
--theme-overlay: rgba(5, 5, 5, 0.5);
--theme-baseline: #{$baseline-px};
--theme-baseline-body-size: #{$baseline-body-size};
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
sans-serif;
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
::selection {
color: var(--color-base-1000);
--style-radius-s: #{$style-radius-s};
--style-radius-m: #{$style-radius-m};
--style-radius-l: #{$style-radius-l};
--z-popup: 10;
--z-nav: 20;
--z-modal: 30;
--z-status: 40;
--accessibility-outline: 2px solid var(--theme-text);
--accessibility-outline-offset: 2px;
--gutter-h: #{base(3)};
--spacing-view-bottom: var(--gutter-h);
--doc-controls-height: calc(var(--base) * 2.8);
--app-header-height: calc(var(--base) * 2.8);
--nav-width: 275px;
--nav-trans-time: 150ms;
@include mid-break {
--gutter-h: #{base(2)};
--app-header-height: calc(var(--base) * 2.4);
--doc-controls-height: calc(var(--base) * 2.4);
}
::-moz-selection {
color: var(--color-base-1000);
@include small-break {
--gutter-h: #{base(0.8)};
--spacing-view-bottom: calc(var(--base) * 2);
--nav-width: 100vw;
}
}
@include mid-break {
font-size: 12px;
/////////////////////////////
// GLOBAL STYLES
/////////////////////////////
* {
box-sizing: border-box;
}
}
html,
body,
#app {
height: 100%;
}
html {
@extend %body;
background: var(--theme-bg);
-webkit-font-smoothing: antialiased;
body {
font-family: var(--font-body);
font-weight: 400;
color: var(--theme-text);
margin: 0;
// this is for the nav to be able to push the document over
overflow-x: hidden;
}
&[data-theme='dark'] {
--theme-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-1000);
--theme-input-bg: var(--theme-elevation-50);
--theme-overlay: rgba(5, 5, 5, 0.75);
color-scheme: dark;
::selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
::selection {
color: var(--color-base-1000);
}
::-moz-selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
img {
max-width: 100%;
height: auto;
display: block;
}
h1 {
@extend %h1;
}
h2 {
@extend %h2;
}
h3 {
@extend %h3;
}
h4 {
@extend %h4;
}
h5 {
@extend %h5;
}
h6 {
@extend %h6;
}
p {
margin: 0;
}
ul,
ol {
padding-left: $baseline;
margin: 0;
}
:focus-visible {
outline: var(--accessibility-outline);
}
a {
color: currentColor;
&:focus {
&:not(:focus-visible) {
opacity: 0.8;
::-moz-selection {
color: var(--color-base-1000);
}
}
@include mid-break {
font-size: 12px;
}
outline: none;
}
&:active {
opacity: 0.7;
outline: none;
html,
body,
#app {
height: 100%;
}
}
svg {
vertical-align: middle;
}
body {
font-family: var(--font-body);
font-weight: 400;
color: var(--theme-text);
margin: 0;
// this is for the nav to be able to push the document over
overflow-x: hidden;
}
dialog {
width: 100%;
border: 0;
padding: 0;
color: currentColor;
}
::selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
.payload__modal-item {
min-height: 100%;
background: transparent;
}
::-moz-selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
.payload__modal-container--enterDone {
overflow: auto;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.payload__modal-item--enter,
.payload__modal-item--enterDone {
z-index: var(--z-modal);
}
h1 {
@extend %h1;
}
// @import '~payload-user-css'; TODO: re-enable this
h2 {
@extend %h2;
}
h3 {
@extend %h3;
}
h4 {
@extend %h4;
}
h5 {
@extend %h5;
}
h6 {
@extend %h6;
}
p {
margin: 0;
}
ul,
ol {
padding-left: $baseline;
margin: 0;
}
:focus-visible {
outline: var(--accessibility-outline);
}
a {
color: currentColor;
&:focus {
&:not(:focus-visible) {
opacity: 0.8;
}
outline: none;
}
&:active {
opacity: 0.7;
outline: none;
}
}
svg {
vertical-align: middle;
}
dialog {
width: 100%;
border: 0;
padding: 0;
color: currentColor;
}
.payload__modal-item {
min-height: 100%;
background: transparent;
}
.payload__modal-container--enterDone {
overflow: auto;
}
.payload__modal-item--enter,
.payload__modal-item--enterDone {
z-index: var(--z-modal);
}
// @import '~payload-user-css'; TODO: re-enable this
}

View File

@@ -1,269 +1,271 @@
:root {
--color-base-0: rgb(255, 255, 255);
--color-base-50: rgb(245, 245, 245);
--color-base-100: rgb(235, 235, 235);
--color-base-150: rgb(221, 221, 221);
--color-base-200: rgb(208, 208, 208);
--color-base-250: rgb(195, 195, 195);
--color-base-300: rgb(181, 181, 181);
--color-base-350: rgb(168, 168, 168);
--color-base-400: rgb(154, 154, 154);
--color-base-450: rgb(141, 141, 141);
--color-base-500: rgb(128, 128, 128);
--color-base-550: rgb(114, 114, 114);
--color-base-600: rgb(101, 101, 101);
--color-base-650: rgb(87, 87, 87);
--color-base-700: rgb(74, 74, 74);
--color-base-750: rgb(60, 60, 60);
--color-base-800: rgb(47, 47, 47);
--color-base-850: rgb(34, 34, 34);
--color-base-900: rgb(20, 20, 20);
--color-base-950: rgb(7, 7, 7);
--color-base-1000: rgb(0, 0, 0);
@layer payload-default {
:root {
--color-base-0: rgb(255, 255, 255);
--color-base-50: rgb(245, 245, 245);
--color-base-100: rgb(235, 235, 235);
--color-base-150: rgb(221, 221, 221);
--color-base-200: rgb(208, 208, 208);
--color-base-250: rgb(195, 195, 195);
--color-base-300: rgb(181, 181, 181);
--color-base-350: rgb(168, 168, 168);
--color-base-400: rgb(154, 154, 154);
--color-base-450: rgb(141, 141, 141);
--color-base-500: rgb(128, 128, 128);
--color-base-550: rgb(114, 114, 114);
--color-base-600: rgb(101, 101, 101);
--color-base-650: rgb(87, 87, 87);
--color-base-700: rgb(74, 74, 74);
--color-base-750: rgb(60, 60, 60);
--color-base-800: rgb(47, 47, 47);
--color-base-850: rgb(34, 34, 34);
--color-base-900: rgb(20, 20, 20);
--color-base-950: rgb(7, 7, 7);
--color-base-1000: rgb(0, 0, 0);
--color-success-50: rgb(237, 245, 249);
--color-success-100: rgb(218, 237, 248);
--color-success-150: rgb(188, 225, 248);
--color-success-200: rgb(156, 216, 253);
--color-success-250: rgb(125, 204, 248);
--color-success-300: rgb(97, 190, 241);
--color-success-350: rgb(65, 178, 236);
--color-success-400: rgb(36, 164, 223);
--color-success-450: rgb(18, 148, 204);
--color-success-500: rgb(21, 135, 186);
--color-success-550: rgb(12, 121, 168);
--color-success-600: rgb(11, 110, 153);
--color-success-650: rgb(11, 97, 135);
--color-success-700: rgb(17, 88, 121);
--color-success-750: rgb(17, 76, 105);
--color-success-800: rgb(18, 66, 90);
--color-success-850: rgb(18, 56, 76);
--color-success-900: rgb(19, 44, 58);
--color-success-950: rgb(22, 33, 39);
--color-success-50: rgb(237, 245, 249);
--color-success-100: rgb(218, 237, 248);
--color-success-150: rgb(188, 225, 248);
--color-success-200: rgb(156, 216, 253);
--color-success-250: rgb(125, 204, 248);
--color-success-300: rgb(97, 190, 241);
--color-success-350: rgb(65, 178, 236);
--color-success-400: rgb(36, 164, 223);
--color-success-450: rgb(18, 148, 204);
--color-success-500: rgb(21, 135, 186);
--color-success-550: rgb(12, 121, 168);
--color-success-600: rgb(11, 110, 153);
--color-success-650: rgb(11, 97, 135);
--color-success-700: rgb(17, 88, 121);
--color-success-750: rgb(17, 76, 105);
--color-success-800: rgb(18, 66, 90);
--color-success-850: rgb(18, 56, 76);
--color-success-900: rgb(19, 44, 58);
--color-success-950: rgb(22, 33, 39);
--color-error-50: rgb(250, 241, 240);
--color-error-100: rgb(252, 229, 227);
--color-error-150: rgb(247, 208, 204);
--color-error-200: rgb(254, 193, 188);
--color-error-250: rgb(253, 177, 170);
--color-error-300: rgb(253, 154, 146);
--color-error-350: rgb(253, 131, 123);
--color-error-400: rgb(246, 109, 103);
--color-error-450: rgb(234, 90, 86);
--color-error-500: rgb(218, 75, 72);
--color-error-550: rgb(200, 62, 61);
--color-error-600: rgb(182, 54, 54);
--color-error-650: rgb(161, 47, 47);
--color-error-700: rgb(144, 44, 43);
--color-error-750: rgb(123, 41, 39);
--color-error-800: rgb(105, 39, 37);
--color-error-850: rgb(86, 36, 33);
--color-error-900: rgb(64, 32, 29);
--color-error-950: rgb(44, 26, 24);
--color-error-50: rgb(250, 241, 240);
--color-error-100: rgb(252, 229, 227);
--color-error-150: rgb(247, 208, 204);
--color-error-200: rgb(254, 193, 188);
--color-error-250: rgb(253, 177, 170);
--color-error-300: rgb(253, 154, 146);
--color-error-350: rgb(253, 131, 123);
--color-error-400: rgb(246, 109, 103);
--color-error-450: rgb(234, 90, 86);
--color-error-500: rgb(218, 75, 72);
--color-error-550: rgb(200, 62, 61);
--color-error-600: rgb(182, 54, 54);
--color-error-650: rgb(161, 47, 47);
--color-error-700: rgb(144, 44, 43);
--color-error-750: rgb(123, 41, 39);
--color-error-800: rgb(105, 39, 37);
--color-error-850: rgb(86, 36, 33);
--color-error-900: rgb(64, 32, 29);
--color-error-950: rgb(44, 26, 24);
--color-warning-50: rgb(249, 242, 237);
--color-warning-100: rgb(248, 232, 219);
--color-warning-150: rgb(243, 212, 186);
--color-warning-200: rgb(243, 200, 162);
--color-warning-250: rgb(240, 185, 136);
--color-warning-300: rgb(238, 166, 98);
--color-warning-350: rgb(234, 148, 58);
--color-warning-400: rgb(223, 132, 17);
--color-warning-450: rgb(204, 120, 15);
--color-warning-500: rgb(185, 108, 13);
--color-warning-550: rgb(167, 97, 10);
--color-warning-600: rgb(150, 87, 11);
--color-warning-650: rgb(134, 78, 11);
--color-warning-700: rgb(120, 70, 13);
--color-warning-750: rgb(105, 61, 13);
--color-warning-800: rgb(90, 55, 19);
--color-warning-850: rgb(73, 47, 21);
--color-warning-900: rgb(56, 38, 20);
--color-warning-950: rgb(38, 29, 21);
--color-warning-50: rgb(249, 242, 237);
--color-warning-100: rgb(248, 232, 219);
--color-warning-150: rgb(243, 212, 186);
--color-warning-200: rgb(243, 200, 162);
--color-warning-250: rgb(240, 185, 136);
--color-warning-300: rgb(238, 166, 98);
--color-warning-350: rgb(234, 148, 58);
--color-warning-400: rgb(223, 132, 17);
--color-warning-450: rgb(204, 120, 15);
--color-warning-500: rgb(185, 108, 13);
--color-warning-550: rgb(167, 97, 10);
--color-warning-600: rgb(150, 87, 11);
--color-warning-650: rgb(134, 78, 11);
--color-warning-700: rgb(120, 70, 13);
--color-warning-750: rgb(105, 61, 13);
--color-warning-800: rgb(90, 55, 19);
--color-warning-850: rgb(73, 47, 21);
--color-warning-900: rgb(56, 38, 20);
--color-warning-950: rgb(38, 29, 21);
--color-blue-50: rgb(237, 245, 249);
--color-blue-100: rgb(218, 237, 248);
--color-blue-150: rgb(188, 225, 248);
--color-blue-200: rgb(156, 216, 253);
--color-blue-250: rgb(125, 204, 248);
--color-blue-300: rgb(97, 190, 241);
--color-blue-350: rgb(65, 178, 236);
--color-blue-400: rgb(36, 164, 223);
--color-blue-450: rgb(18, 148, 204);
--color-blue-500: rgb(21, 135, 186);
--color-blue-550: rgb(12, 121, 168);
--color-blue-600: rgb(11, 110, 153);
--color-blue-650: rgb(11, 97, 135);
--color-blue-700: rgb(17, 88, 121);
--color-blue-750: rgb(17, 76, 105);
--color-blue-800: rgb(18, 66, 90);
--color-blue-850: rgb(18, 56, 76);
--color-blue-900: rgb(19, 44, 58);
--color-blue-950: rgb(22, 33, 39);
--color-blue-50: rgb(237, 245, 249);
--color-blue-100: rgb(218, 237, 248);
--color-blue-150: rgb(188, 225, 248);
--color-blue-200: rgb(156, 216, 253);
--color-blue-250: rgb(125, 204, 248);
--color-blue-300: rgb(97, 190, 241);
--color-blue-350: rgb(65, 178, 236);
--color-blue-400: rgb(36, 164, 223);
--color-blue-450: rgb(18, 148, 204);
--color-blue-500: rgb(21, 135, 186);
--color-blue-550: rgb(12, 121, 168);
--color-blue-600: rgb(11, 110, 153);
--color-blue-650: rgb(11, 97, 135);
--color-blue-700: rgb(17, 88, 121);
--color-blue-750: rgb(17, 76, 105);
--color-blue-800: rgb(18, 66, 90);
--color-blue-850: rgb(18, 56, 76);
--color-blue-900: rgb(19, 44, 58);
--color-blue-950: rgb(22, 33, 39);
--theme-border-color: var(--theme-elevation-150);
--theme-border-color: var(--theme-elevation-150);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
--theme-success-350: var(--color-success-350);
--theme-success-400: var(--color-success-400);
--theme-success-450: var(--color-success-450);
--theme-success-500: var(--color-success-500);
--theme-success-550: var(--color-success-550);
--theme-success-600: var(--color-success-600);
--theme-success-650: var(--color-success-650);
--theme-success-700: var(--color-success-700);
--theme-success-750: var(--color-success-750);
--theme-success-800: var(--color-success-800);
--theme-success-850: var(--color-success-850);
--theme-success-900: var(--color-success-900);
--theme-success-950: var(--color-success-950);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
--theme-success-350: var(--color-success-350);
--theme-success-400: var(--color-success-400);
--theme-success-450: var(--color-success-450);
--theme-success-500: var(--color-success-500);
--theme-success-550: var(--color-success-550);
--theme-success-600: var(--color-success-600);
--theme-success-650: var(--color-success-650);
--theme-success-700: var(--color-success-700);
--theme-success-750: var(--color-success-750);
--theme-success-800: var(--color-success-800);
--theme-success-850: var(--color-success-850);
--theme-success-900: var(--color-success-900);
--theme-success-950: var(--color-success-950);
--theme-warning-50: var(--color-warning-50);
--theme-warning-100: var(--color-warning-100);
--theme-warning-150: var(--color-warning-150);
--theme-warning-200: var(--color-warning-200);
--theme-warning-250: var(--color-warning-250);
--theme-warning-300: var(--color-warning-300);
--theme-warning-350: var(--color-warning-350);
--theme-warning-400: var(--color-warning-400);
--theme-warning-450: var(--color-warning-450);
--theme-warning-500: var(--color-warning-500);
--theme-warning-550: var(--color-warning-550);
--theme-warning-600: var(--color-warning-600);
--theme-warning-650: var(--color-warning-650);
--theme-warning-700: var(--color-warning-700);
--theme-warning-750: var(--color-warning-750);
--theme-warning-800: var(--color-warning-800);
--theme-warning-850: var(--color-warning-850);
--theme-warning-900: var(--color-warning-900);
--theme-warning-950: var(--color-warning-950);
--theme-warning-50: var(--color-warning-50);
--theme-warning-100: var(--color-warning-100);
--theme-warning-150: var(--color-warning-150);
--theme-warning-200: var(--color-warning-200);
--theme-warning-250: var(--color-warning-250);
--theme-warning-300: var(--color-warning-300);
--theme-warning-350: var(--color-warning-350);
--theme-warning-400: var(--color-warning-400);
--theme-warning-450: var(--color-warning-450);
--theme-warning-500: var(--color-warning-500);
--theme-warning-550: var(--color-warning-550);
--theme-warning-600: var(--color-warning-600);
--theme-warning-650: var(--color-warning-650);
--theme-warning-700: var(--color-warning-700);
--theme-warning-750: var(--color-warning-750);
--theme-warning-800: var(--color-warning-800);
--theme-warning-850: var(--color-warning-850);
--theme-warning-900: var(--color-warning-900);
--theme-warning-950: var(--color-warning-950);
--theme-error-50: var(--color-error-50);
--theme-error-100: var(--color-error-100);
--theme-error-150: var(--color-error-150);
--theme-error-200: var(--color-error-200);
--theme-error-250: var(--color-error-250);
--theme-error-300: var(--color-error-300);
--theme-error-350: var(--color-error-350);
--theme-error-400: var(--color-error-400);
--theme-error-450: var(--color-error-450);
--theme-error-500: var(--color-error-500);
--theme-error-550: var(--color-error-550);
--theme-error-600: var(--color-error-600);
--theme-error-650: var(--color-error-650);
--theme-error-700: var(--color-error-700);
--theme-error-750: var(--color-error-750);
--theme-error-800: var(--color-error-800);
--theme-error-850: var(--color-error-850);
--theme-error-900: var(--color-error-900);
--theme-error-950: var(--color-error-950);
--theme-error-50: var(--color-error-50);
--theme-error-100: var(--color-error-100);
--theme-error-150: var(--color-error-150);
--theme-error-200: var(--color-error-200);
--theme-error-250: var(--color-error-250);
--theme-error-300: var(--color-error-300);
--theme-error-350: var(--color-error-350);
--theme-error-400: var(--color-error-400);
--theme-error-450: var(--color-error-450);
--theme-error-500: var(--color-error-500);
--theme-error-550: var(--color-error-550);
--theme-error-600: var(--color-error-600);
--theme-error-650: var(--color-error-650);
--theme-error-700: var(--color-error-700);
--theme-error-750: var(--color-error-750);
--theme-error-800: var(--color-error-800);
--theme-error-850: var(--color-error-850);
--theme-error-900: var(--color-error-900);
--theme-error-950: var(--color-error-950);
--theme-elevation-0: var(--color-base-0);
--theme-elevation-50: var(--color-base-50);
--theme-elevation-100: var(--color-base-100);
--theme-elevation-150: var(--color-base-150);
--theme-elevation-200: var(--color-base-200);
--theme-elevation-250: var(--color-base-250);
--theme-elevation-300: var(--color-base-300);
--theme-elevation-350: var(--color-base-350);
--theme-elevation-400: var(--color-base-400);
--theme-elevation-450: var(--color-base-450);
--theme-elevation-500: var(--color-base-500);
--theme-elevation-550: var(--color-base-550);
--theme-elevation-600: var(--color-base-600);
--theme-elevation-650: var(--color-base-650);
--theme-elevation-700: var(--color-base-700);
--theme-elevation-750: var(--color-base-750);
--theme-elevation-800: var(--color-base-800);
--theme-elevation-850: var(--color-base-850);
--theme-elevation-900: var(--color-base-900);
--theme-elevation-950: var(--color-base-950);
--theme-elevation-1000: var(--color-base-1000);
}
html[data-theme='dark'] {
--theme-border-color: var(--theme-elevation-150);
--theme-elevation-0: var(--color-base-900);
--theme-elevation-50: var(--color-base-850);
--theme-elevation-100: var(--color-base-800);
--theme-elevation-150: var(--color-base-750);
--theme-elevation-200: var(--color-base-700);
--theme-elevation-250: var(--color-base-650);
--theme-elevation-300: var(--color-base-600);
--theme-elevation-350: var(--color-base-550);
--theme-elevation-400: var(--color-base-450);
--theme-elevation-450: var(--color-base-400);
--theme-elevation-550: var(--color-base-350);
--theme-elevation-600: var(--color-base-300);
--theme-elevation-650: var(--color-base-250);
--theme-elevation-700: var(--color-base-200);
--theme-elevation-750: var(--color-base-150);
--theme-elevation-800: var(--color-base-100);
--theme-elevation-850: var(--color-base-50);
--theme-elevation-900: var(--color-base-0);
--theme-elevation-950: var(--color-base-0);
--theme-elevation-1000: var(--color-base-0);
--theme-success-50: var(--color-success-950);
--theme-success-100: var(--color-success-900);
--theme-success-150: var(--color-success-850);
--theme-success-200: var(--color-success-800);
--theme-success-250: var(--color-success-750);
--theme-success-300: var(--color-success-700);
--theme-success-350: var(--color-success-650);
--theme-success-400: var(--color-success-600);
--theme-success-450: var(--color-success-550);
--theme-success-550: var(--color-success-450);
--theme-success-600: var(--color-success-400);
--theme-success-650: var(--color-success-350);
--theme-success-700: var(--color-success-300);
--theme-success-750: var(--color-success-250);
--theme-success-800: var(--color-success-200);
--theme-success-850: var(--color-success-150);
--theme-success-900: var(--color-success-100);
--theme-success-950: var(--color-success-50);
--theme-warning-50: var(--color-warning-950);
--theme-warning-100: var(--color-warning-900);
--theme-warning-150: var(--color-warning-850);
--theme-warning-200: var(--color-warning-800);
--theme-warning-250: var(--color-warning-750);
--theme-warning-300: var(--color-warning-700);
--theme-warning-350: var(--color-warning-650);
--theme-warning-400: var(--color-warning-600);
--theme-warning-450: var(--color-warning-550);
--theme-warning-550: var(--color-warning-450);
--theme-warning-600: var(--color-warning-400);
--theme-warning-650: var(--color-warning-350);
--theme-warning-700: var(--color-warning-300);
--theme-warning-750: var(--color-warning-250);
--theme-warning-800: var(--color-warning-200);
--theme-warning-850: var(--color-warning-150);
--theme-warning-900: var(--color-warning-100);
--theme-warning-950: var(--color-warning-50);
--theme-error-50: var(--color-error-950);
--theme-error-100: var(--color-error-900);
--theme-error-150: var(--color-error-850);
--theme-error-200: var(--color-error-800);
--theme-error-250: var(--color-error-750);
--theme-error-300: var(--color-error-700);
--theme-error-350: var(--color-error-650);
--theme-error-400: var(--color-error-600);
--theme-error-450: var(--color-error-550);
--theme-error-550: var(--color-error-450);
--theme-error-600: var(--color-error-400);
--theme-error-650: var(--color-error-350);
--theme-error-700: var(--color-error-300);
--theme-error-750: var(--color-error-250);
--theme-error-800: var(--color-error-200);
--theme-error-850: var(--color-error-150);
--theme-error-900: var(--color-error-100);
--theme-error-950: var(--color-error-50);
--theme-elevation-0: var(--color-base-0);
--theme-elevation-50: var(--color-base-50);
--theme-elevation-100: var(--color-base-100);
--theme-elevation-150: var(--color-base-150);
--theme-elevation-200: var(--color-base-200);
--theme-elevation-250: var(--color-base-250);
--theme-elevation-300: var(--color-base-300);
--theme-elevation-350: var(--color-base-350);
--theme-elevation-400: var(--color-base-400);
--theme-elevation-450: var(--color-base-450);
--theme-elevation-500: var(--color-base-500);
--theme-elevation-550: var(--color-base-550);
--theme-elevation-600: var(--color-base-600);
--theme-elevation-650: var(--color-base-650);
--theme-elevation-700: var(--color-base-700);
--theme-elevation-750: var(--color-base-750);
--theme-elevation-800: var(--color-base-800);
--theme-elevation-850: var(--color-base-850);
--theme-elevation-900: var(--color-base-900);
--theme-elevation-950: var(--color-base-950);
--theme-elevation-1000: var(--color-base-1000);
}
html[data-theme='dark'] {
--theme-border-color: var(--theme-elevation-150);
--theme-elevation-0: var(--color-base-900);
--theme-elevation-50: var(--color-base-850);
--theme-elevation-100: var(--color-base-800);
--theme-elevation-150: var(--color-base-750);
--theme-elevation-200: var(--color-base-700);
--theme-elevation-250: var(--color-base-650);
--theme-elevation-300: var(--color-base-600);
--theme-elevation-350: var(--color-base-550);
--theme-elevation-400: var(--color-base-450);
--theme-elevation-450: var(--color-base-400);
--theme-elevation-550: var(--color-base-350);
--theme-elevation-600: var(--color-base-300);
--theme-elevation-650: var(--color-base-250);
--theme-elevation-700: var(--color-base-200);
--theme-elevation-750: var(--color-base-150);
--theme-elevation-800: var(--color-base-100);
--theme-elevation-850: var(--color-base-50);
--theme-elevation-900: var(--color-base-0);
--theme-elevation-950: var(--color-base-0);
--theme-elevation-1000: var(--color-base-0);
--theme-success-50: var(--color-success-950);
--theme-success-100: var(--color-success-900);
--theme-success-150: var(--color-success-850);
--theme-success-200: var(--color-success-800);
--theme-success-250: var(--color-success-750);
--theme-success-300: var(--color-success-700);
--theme-success-350: var(--color-success-650);
--theme-success-400: var(--color-success-600);
--theme-success-450: var(--color-success-550);
--theme-success-550: var(--color-success-450);
--theme-success-600: var(--color-success-400);
--theme-success-650: var(--color-success-350);
--theme-success-700: var(--color-success-300);
--theme-success-750: var(--color-success-250);
--theme-success-800: var(--color-success-200);
--theme-success-850: var(--color-success-150);
--theme-success-900: var(--color-success-100);
--theme-success-950: var(--color-success-50);
--theme-warning-50: var(--color-warning-950);
--theme-warning-100: var(--color-warning-900);
--theme-warning-150: var(--color-warning-850);
--theme-warning-200: var(--color-warning-800);
--theme-warning-250: var(--color-warning-750);
--theme-warning-300: var(--color-warning-700);
--theme-warning-350: var(--color-warning-650);
--theme-warning-400: var(--color-warning-600);
--theme-warning-450: var(--color-warning-550);
--theme-warning-550: var(--color-warning-450);
--theme-warning-600: var(--color-warning-400);
--theme-warning-650: var(--color-warning-350);
--theme-warning-700: var(--color-warning-300);
--theme-warning-750: var(--color-warning-250);
--theme-warning-800: var(--color-warning-200);
--theme-warning-850: var(--color-warning-150);
--theme-warning-900: var(--color-warning-100);
--theme-warning-950: var(--color-warning-50);
--theme-error-50: var(--color-error-950);
--theme-error-100: var(--color-error-900);
--theme-error-150: var(--color-error-850);
--theme-error-200: var(--color-error-800);
--theme-error-250: var(--color-error-750);
--theme-error-300: var(--color-error-700);
--theme-error-350: var(--color-error-650);
--theme-error-400: var(--color-error-600);
--theme-error-450: var(--color-error-550);
--theme-error-550: var(--color-error-450);
--theme-error-600: var(--color-error-400);
--theme-error-650: var(--color-error-350);
--theme-error-700: var(--color-error-300);
--theme-error-750: var(--color-error-250);
--theme-error-800: var(--color-error-200);
--theme-error-850: var(--color-error-150);
--theme-error-900: var(--color-error-100);
--theme-error-950: var(--color-error-50);
}
}

View File

@@ -1,10 +1,12 @@
%btn-reset {
border: 0;
background: none;
box-shadow: none;
border-radius: 0;
padding: 0;
color: currentColor;
@layer payload-default {
%btn-reset {
border: 0;
background: none;
box-shadow: none;
border-radius: 0;
padding: 0;
color: currentColor;
}
}
@mixin btn-reset {

View File

@@ -1,59 +1,60 @@
@import 'vars';
@import 'queries';
.Toastify {
.Toastify__toast-container {
left: base(5);
transform: none;
right: base(5);
width: auto;
}
.Toastify__toast {
padding: base(0.5);
border-radius: $style-radius-m;
font-weight: 600;
}
.Toastify__close-button {
align-self: center;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
.Toastify__toast--success {
color: var(--color-success-900);
background: var(--color-success-500);
.Toastify__progress-bar {
background-color: var(--color-success-900);
}
}
.Toastify__close-button--success {
color: var(--color-success-900);
}
.Toastify__toast--error {
background: var(--theme-error-500);
color: #fff;
.Toastify__progress-bar {
background-color: #fff;
}
}
.Toastify__close-button--light {
color: inherit;
}
@include mid-break {
@layer payload-default {
.Toastify {
.Toastify__toast-container {
left: $baseline;
right: $baseline;
left: base(5);
transform: none;
right: base(5);
width: auto;
}
.Toastify__toast {
padding: base(0.5);
border-radius: $style-radius-m;
font-weight: 600;
}
.Toastify__close-button {
align-self: center;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
.Toastify__toast--success {
color: var(--color-success-900);
background: var(--color-success-500);
.Toastify__progress-bar {
background-color: var(--color-success-900);
}
}
.Toastify__close-button--success {
color: var(--color-success-900);
}
.Toastify__toast--error {
background: var(--theme-error-500);
color: #fff;
.Toastify__progress-bar {
background-color: #fff;
}
}
.Toastify__close-button--light {
color: inherit;
}
@include mid-break {
.Toastify__toast-container {
left: $baseline;
right: $baseline;
}
}
}
}

View File

@@ -1,140 +1,142 @@
@import './styles.scss';
.payload-toast-container {
padding: 0;
margin: 0;
@layer payload-default {
.payload-toast-container {
padding: 0;
margin: 0;
.payload-toast-close-button {
position: absolute;
order: 3;
left: unset;
inset-inline-end: base(0.8);
top: 50%;
transform: translateY(-50%);
color: var(--theme-elevation-600);
background: unset;
border: none;
.payload-toast-close-button {
position: absolute;
order: 3;
left: unset;
inset-inline-end: base(0.8);
top: 50%;
transform: translateY(-50%);
color: var(--theme-elevation-600);
background: unset;
border: none;
svg {
width: base(0.8);
height: base(0.8);
}
svg {
width: base(0.8);
height: base(0.8);
}
&:hover {
color: var(--theme-elevation-250);
background: none;
}
&:hover {
color: var(--theme-elevation-250);
background: none;
}
[dir='RTL'] & {
right: unset;
left: 0.5rem;
}
}
.toast-title {
line-height: base(1);
margin-right: base(1);
}
.payload-toast-item {
padding: base(0.8);
color: var(--theme-elevation-800);
font-style: normal;
font-weight: 600;
display: flex;
gap: 1rem;
align-items: center;
width: 100%;
border-radius: 4px;
border: 1px solid var(--theme-border-color);
background: var(--theme-input-bg);
box-shadow:
0px 10px 4px -8px rgba(0, 2, 4, 0.02),
0px 2px 3px 0px rgba(0, 2, 4, 0.05);
.toast-content {
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
width: 100%;
}
&[data-front='false'] {
.toast-content {
opacity: 0;
[dir='RTL'] & {
right: unset;
left: 0.5rem;
}
}
&[data-expanded='true'] {
.toast-content {
opacity: 1;
}
.toast-title {
line-height: base(1);
margin-right: base(1);
}
.toast-icon {
width: base(0.8);
height: base(0.8);
margin: 0;
display: flex;
align-items: center;
justify-content: center;
& > * {
width: base(1.2);
height: base(1.2);
}
}
&.toast-warning {
color: var(--theme-warning-800);
border-color: var(--theme-warning-250);
background-color: var(--theme-warning-100);
.payload-toast-close-button {
color: var(--theme-warning-600);
&:hover {
color: var(--theme-warning-250);
}
}
}
&.toast-error {
color: var(--theme-error-800);
border-color: var(--theme-error-250);
background-color: var(--theme-error-100);
.payload-toast-close-button {
color: var(--theme-error-600);
&:hover {
color: var(--theme-error-250);
}
}
}
&.toast-success {
color: var(--theme-success-800);
border-color: var(--theme-success-250);
background-color: var(--theme-success-100);
.payload-toast-close-button {
color: var(--theme-success-600);
&:hover {
color: var(--theme-success-250);
}
}
}
&.toast-info {
.payload-toast-item {
padding: base(0.8);
color: var(--theme-elevation-800);
border-color: var(--theme-elevation-250);
background-color: var(--theme-elevation-100);
font-style: normal;
font-weight: 600;
display: flex;
gap: 1rem;
align-items: center;
width: 100%;
border-radius: 4px;
border: 1px solid var(--theme-border-color);
background: var(--theme-input-bg);
box-shadow:
0px 10px 4px -8px rgba(0, 2, 4, 0.02),
0px 2px 3px 0px rgba(0, 2, 4, 0.05);
.payload-toast-close-button {
color: var(--theme-elevation-600);
.toast-content {
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
width: 100%;
}
&:hover {
color: var(--theme-elevation-250);
&[data-front='false'] {
.toast-content {
opacity: 0;
}
}
&[data-expanded='true'] {
.toast-content {
opacity: 1;
}
}
.toast-icon {
width: base(0.8);
height: base(0.8);
margin: 0;
display: flex;
align-items: center;
justify-content: center;
& > * {
width: base(1.2);
height: base(1.2);
}
}
&.toast-warning {
color: var(--theme-warning-800);
border-color: var(--theme-warning-250);
background-color: var(--theme-warning-100);
.payload-toast-close-button {
color: var(--theme-warning-600);
&:hover {
color: var(--theme-warning-250);
}
}
}
&.toast-error {
color: var(--theme-error-800);
border-color: var(--theme-error-250);
background-color: var(--theme-error-100);
.payload-toast-close-button {
color: var(--theme-error-600);
&:hover {
color: var(--theme-error-250);
}
}
}
&.toast-success {
color: var(--theme-success-800);
border-color: var(--theme-success-250);
background-color: var(--theme-success-100);
.payload-toast-close-button {
color: var(--theme-success-600);
&:hover {
color: var(--theme-success-250);
}
}
}
&.toast-info {
color: var(--theme-elevation-800);
border-color: var(--theme-elevation-250);
background-color: var(--theme-elevation-100);
.payload-toast-close-button {
color: var(--theme-elevation-600);
&:hover {
color: var(--theme-elevation-250);
}
}
}
}

View File

@@ -4,106 +4,107 @@
/////////////////////////////
// HEADINGS
/////////////////////////////
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
font-family: var(--font-body);
font-weight: 500;
}
%h1 {
margin: 0;
font-size: base(1.6);
line-height: base(1.8);
@include small-break {
letter-spacing: -0.5px;
font-size: base(1.25);
@layer payload-default {
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
font-family: var(--font-body);
font-weight: 500;
}
}
%h2 {
margin: 0;
font-size: base(1.3);
line-height: base(1.6);
%h1 {
margin: 0;
font-size: base(1.6);
line-height: base(1.8);
@include small-break {
font-size: base(0.85);
@include small-break {
letter-spacing: -0.5px;
font-size: base(1.25);
}
}
}
%h3 {
margin: 0;
font-size: base(1);
line-height: base(1.2);
%h2 {
margin: 0;
font-size: base(1.3);
line-height: base(1.6);
@include small-break {
font-size: base(0.65);
line-height: 1.25;
@include small-break {
font-size: base(0.85);
}
}
}
%h4 {
margin: 0;
font-size: base(0.8);
line-height: base(1);
letter-spacing: -0.375px;
}
%h3 {
margin: 0;
font-size: base(1);
line-height: base(1.2);
%h5 {
margin: 0;
font-size: base(0.65);
line-height: base(0.8);
}
@include small-break {
font-size: base(0.65);
line-height: 1.25;
}
}
%h6 {
margin: 0;
font-size: base(0.6);
line-height: base(0.8);
}
%small {
margin: 0;
font-size: 12px;
line-height: 20px;
}
/////////////////////////////
// TYPE STYLES
/////////////////////////////
%large-body {
font-size: base(0.6);
line-height: base(1);
letter-spacing: base(0.02);
@include mid-break {
font-size: base(0.7);
%h4 {
margin: 0;
font-size: base(0.8);
line-height: base(1);
letter-spacing: -0.375px;
}
@include small-break {
font-size: base(0.55);
line-height: base(0.75);
}
}
%body {
font-size: $baseline-body-size;
line-height: $baseline-px;
font-weight: normal;
font-family: var(--font-body);
}
%code {
font-size: base(0.4);
color: var(--theme-elevation-400);
span {
color: var(--theme-elevation-800);
%h5 {
margin: 0;
font-size: base(0.65);
line-height: base(0.8);
}
%h6 {
margin: 0;
font-size: base(0.6);
line-height: base(0.8);
}
%small {
margin: 0;
font-size: 12px;
line-height: 20px;
}
/////////////////////////////
// TYPE STYLES
/////////////////////////////
%large-body {
font-size: base(0.6);
line-height: base(1);
letter-spacing: base(0.02);
@include mid-break {
font-size: base(0.7);
line-height: base(1);
}
@include small-break {
font-size: base(0.55);
line-height: base(0.75);
}
}
%body {
font-size: $baseline-body-size;
line-height: $baseline-px;
font-weight: normal;
font-family: var(--font-body);
}
%code {
font-size: base(0.4);
color: var(--theme-elevation-400);
span {
color: var(--theme-elevation-800);
}
}
}

View File

@@ -1,15 +1,16 @@
@import '../scss/styles.scss';
@layer payload-default {
.rich-text__button {
position: relative;
cursor: pointer;
.rich-text__button {
position: relative;
cursor: pointer;
svg {
width: base(0.75);
height: base(0.75);
}
svg {
width: base(0.75);
height: base(0.75);
}
&--disabled {
opacity: 0.4;
&--disabled {
opacity: 0.4;
}
}
}

View File

@@ -1,16 +1,18 @@
@import '../../../scss/styles.scss';
.icon--indent-left {
height: $baseline;
width: $baseline;
@layer payload-default {
.icon--indent-left {
height: $baseline;
width: $baseline;
.stroke {
fill: none;
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width-m;
}
.stroke {
fill: none;
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width-m;
}
.fill {
fill: var(--theme-elevation-800);
.fill {
fill: var(--theme-elevation-800);
}
}
}

View File

@@ -1,16 +1,18 @@
@import '../../../scss/styles.scss';
.icon--indent-right {
height: $baseline;
width: $baseline;
@layer payload-default {
.icon--indent-right {
height: $baseline;
width: $baseline;
.stroke {
fill: none;
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width-m;
}
.stroke {
fill: none;
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width-m;
}
.fill {
fill: var(--theme-elevation-800);
.fill {
fill: var(--theme-elevation-800);
}
}
}

View File

@@ -1,11 +1,13 @@
@import '../../../scss/styles.scss';
.icon--link {
width: $baseline;
height: $baseline;
@layer payload-default {
.icon--link {
width: $baseline;
height: $baseline;
.stroke {
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width;
.stroke {
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width;
}
}
}

View File

@@ -1,12 +1,14 @@
@import '../../../scss/styles.scss';
.icon--relationship {
height: $baseline;
width: $baseline;
@layer payload-default {
.icon--relationship {
height: $baseline;
width: $baseline;
.stroke {
fill: none;
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width-m;
.stroke {
fill: none;
stroke: var(--theme-elevation-800);
stroke-width: $style-stroke-width-m;
}
}
}

View File

@@ -1,11 +1,13 @@
@import '../../../scss/styles.scss';
.icon--upload {
height: $baseline;
width: $baseline;
@layer payload-default {
.icon--upload {
height: $baseline;
width: $baseline;
.fill {
fill: var(--theme-elevation-800);
stroke: none;
.fill {
fill: var(--theme-elevation-800);
stroke: none;
}
}
}

View File

@@ -1,212 +1,213 @@
@import '../scss/styles.scss';
.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);
@layer payload-default {
.rich-text {
margin-bottom: base(2);
display: flex;
flex-wrap: wrap;
align-items: stretch;
position: relative;
z-index: 1;
flex-direction: column;
isolation: isolate;
&: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);
@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);
}
[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;
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;
}
}
}
}

View File

@@ -1,203 +1,204 @@
@import 'styles';
@import './toasts.scss';
@import './colors.scss';
@layer payload-default {
:root {
--base-px: 20;
--base-body-size: 13;
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
:root {
--base-px: 20;
--base-body-size: 13;
--base: calc((var(--base-px) / var(--base-body-size)) * 1rem);
--breakpoint-xs-width: #{$breakpoint-xs-width};
--breakpoint-s-width: #{$breakpoint-s-width};
--breakpoint-m-width: #{$breakpoint-m-width};
--breakpoint-l-width: #{$breakpoint-l-width};
--scrollbar-width: 17px;
--breakpoint-xs-width: #{$breakpoint-xs-width};
--breakpoint-s-width: #{$breakpoint-s-width};
--breakpoint-m-width: #{$breakpoint-m-width};
--breakpoint-l-width: #{$breakpoint-l-width};
--scrollbar-width: 17px;
--theme-bg: var(--theme-elevation-0);
--theme-input-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-800);
--theme-overlay: rgba(5, 5, 5, 0.5);
--theme-baseline: #{$baseline-px};
--theme-baseline-body-size: #{$baseline-body-size};
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
sans-serif;
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
--style-radius-s: #{$style-radius-s};
--style-radius-m: #{$style-radius-m};
--style-radius-l: #{$style-radius-l};
--z-popup: 10;
--z-nav: 20;
--z-modal: 30;
--z-status: 40;
--accessibility-outline: 2px solid var(--theme-text);
--accessibility-outline-offset: 2px;
--gutter-h: #{base(3)};
--spacing-view-bottom: var(--gutter-h);
--doc-controls-height: calc(var(--base) * 2.8);
--app-header-height: calc(var(--base) * 2.8);
--nav-width: 275px;
--nav-trans-time: 150ms;
@include mid-break {
--gutter-h: #{base(2)};
--app-header-height: calc(var(--base) * 2.4);
--doc-controls-height: calc(var(--base) * 2.4);
}
@include small-break {
--gutter-h: #{base(0.8)};
--spacing-view-bottom: calc(var(--base) * 2);
--nav-width: 100vw;
}
}
/////////////////////////////
// GLOBAL STYLES
/////////////////////////////
* {
box-sizing: border-box;
}
html {
@extend %body;
background: var(--theme-bg);
-webkit-font-smoothing: antialiased;
&[data-theme='dark'] {
--theme-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-1000);
--theme-input-bg: var(--theme-elevation-50);
--theme-overlay: rgba(5, 5, 5, 0.75);
color-scheme: dark;
--theme-input-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-800);
--theme-overlay: rgba(5, 5, 5, 0.5);
--theme-baseline: #{$baseline-px};
--theme-baseline-body-size: #{$baseline-body-size};
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
sans-serif;
--font-serif: 'Georgia', 'Bitstream Charter', 'Charis SIL', Utopia, 'URW Bookman L', serif;
--font-mono: 'SF Mono', Menlo, Consolas, Monaco, monospace;
::selection {
color: var(--color-base-1000);
--style-radius-s: #{$style-radius-s};
--style-radius-m: #{$style-radius-m};
--style-radius-l: #{$style-radius-l};
--z-popup: 10;
--z-nav: 20;
--z-modal: 30;
--z-status: 40;
--accessibility-outline: 2px solid var(--theme-text);
--accessibility-outline-offset: 2px;
--gutter-h: #{base(3)};
--spacing-view-bottom: var(--gutter-h);
--doc-controls-height: calc(var(--base) * 2.8);
--app-header-height: calc(var(--base) * 2.8);
--nav-width: 275px;
--nav-trans-time: 150ms;
@include mid-break {
--gutter-h: #{base(2)};
--app-header-height: calc(var(--base) * 2.4);
--doc-controls-height: calc(var(--base) * 2.4);
}
::-moz-selection {
color: var(--color-base-1000);
@include small-break {
--gutter-h: #{base(0.8)};
--spacing-view-bottom: calc(var(--base) * 2);
--nav-width: 100vw;
}
}
@include mid-break {
font-size: 12px;
/////////////////////////////
// GLOBAL STYLES
/////////////////////////////
* {
box-sizing: border-box;
}
}
html,
body,
#app {
height: 100%;
}
html {
@extend %body;
background: var(--theme-bg);
-webkit-font-smoothing: antialiased;
body {
font-family: var(--font-body);
font-weight: 400;
color: var(--theme-text);
margin: 0;
// this is for the nav to be able to push the document over
overflow-x: hidden;
}
&[data-theme='dark'] {
--theme-bg: var(--theme-elevation-0);
--theme-text: var(--theme-elevation-1000);
--theme-input-bg: var(--theme-elevation-50);
--theme-overlay: rgba(5, 5, 5, 0.75);
color-scheme: dark;
::selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
::selection {
color: var(--color-base-1000);
}
::-moz-selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
img {
max-width: 100%;
height: auto;
display: block;
}
h1 {
@extend %h1;
}
h2 {
@extend %h2;
}
h3 {
@extend %h3;
}
h4 {
@extend %h4;
}
h5 {
@extend %h5;
}
h6 {
@extend %h6;
}
p {
margin: 0;
}
ul,
ol {
padding-left: $baseline;
margin: 0;
}
:focus-visible {
outline: var(--accessibility-outline);
}
a {
color: currentColor;
&:focus {
&:not(:focus-visible) {
opacity: 0.8;
::-moz-selection {
color: var(--color-base-1000);
}
}
@include mid-break {
font-size: 12px;
}
outline: none;
}
&:active {
opacity: 0.7;
outline: none;
html,
body,
#app {
height: 100%;
}
}
svg {
vertical-align: middle;
}
body {
font-family: var(--font-body);
font-weight: 400;
color: var(--theme-text);
margin: 0;
// this is for the nav to be able to push the document over
overflow-x: hidden;
}
dialog {
width: 100%;
border: 0;
padding: 0;
color: currentColor;
}
::selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
.payload__modal-item {
min-height: 100%;
background: transparent;
}
::-moz-selection {
background: var(--color-success-250);
color: var(--theme-base-800);
}
.payload__modal-container--enterDone {
overflow: auto;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.payload__modal-item--enter,
.payload__modal-item--enterDone {
z-index: var(--z-modal);
}
h1 {
@extend %h1;
}
// @import '~payload-user-css'; TODO: re-enable this
h2 {
@extend %h2;
}
h3 {
@extend %h3;
}
h4 {
@extend %h4;
}
h5 {
@extend %h5;
}
h6 {
@extend %h6;
}
p {
margin: 0;
}
ul,
ol {
padding-left: $baseline;
margin: 0;
}
:focus-visible {
outline: var(--accessibility-outline);
}
a {
color: currentColor;
&:focus {
&:not(:focus-visible) {
opacity: 0.8;
}
outline: none;
}
&:active {
opacity: 0.7;
outline: none;
}
}
svg {
vertical-align: middle;
}
dialog {
width: 100%;
border: 0;
padding: 0;
color: currentColor;
}
.payload__modal-item {
min-height: 100%;
background: transparent;
}
.payload__modal-container--enterDone {
overflow: auto;
}
.payload__modal-item--enter,
.payload__modal-item--enterDone {
z-index: var(--z-modal);
}
// @import '~payload-user-css'; TODO: re-enable this
}

View File

@@ -1,269 +1,271 @@
:root {
--color-base-0: rgb(255, 255, 255);
--color-base-50: rgb(245, 245, 245);
--color-base-100: rgb(235, 235, 235);
--color-base-150: rgb(221, 221, 221);
--color-base-200: rgb(208, 208, 208);
--color-base-250: rgb(195, 195, 195);
--color-base-300: rgb(181, 181, 181);
--color-base-350: rgb(168, 168, 168);
--color-base-400: rgb(154, 154, 154);
--color-base-450: rgb(141, 141, 141);
--color-base-500: rgb(128, 128, 128);
--color-base-550: rgb(114, 114, 114);
--color-base-600: rgb(101, 101, 101);
--color-base-650: rgb(87, 87, 87);
--color-base-700: rgb(74, 74, 74);
--color-base-750: rgb(60, 60, 60);
--color-base-800: rgb(47, 47, 47);
--color-base-850: rgb(34, 34, 34);
--color-base-900: rgb(20, 20, 20);
--color-base-950: rgb(7, 7, 7);
--color-base-1000: rgb(0, 0, 0);
@layer payload-default {
:root {
--color-base-0: rgb(255, 255, 255);
--color-base-50: rgb(245, 245, 245);
--color-base-100: rgb(235, 235, 235);
--color-base-150: rgb(221, 221, 221);
--color-base-200: rgb(208, 208, 208);
--color-base-250: rgb(195, 195, 195);
--color-base-300: rgb(181, 181, 181);
--color-base-350: rgb(168, 168, 168);
--color-base-400: rgb(154, 154, 154);
--color-base-450: rgb(141, 141, 141);
--color-base-500: rgb(128, 128, 128);
--color-base-550: rgb(114, 114, 114);
--color-base-600: rgb(101, 101, 101);
--color-base-650: rgb(87, 87, 87);
--color-base-700: rgb(74, 74, 74);
--color-base-750: rgb(60, 60, 60);
--color-base-800: rgb(47, 47, 47);
--color-base-850: rgb(34, 34, 34);
--color-base-900: rgb(20, 20, 20);
--color-base-950: rgb(7, 7, 7);
--color-base-1000: rgb(0, 0, 0);
--color-success-50: rgb(237, 245, 249);
--color-success-100: rgb(218, 237, 248);
--color-success-150: rgb(188, 225, 248);
--color-success-200: rgb(156, 216, 253);
--color-success-250: rgb(125, 204, 248);
--color-success-300: rgb(97, 190, 241);
--color-success-350: rgb(65, 178, 236);
--color-success-400: rgb(36, 164, 223);
--color-success-450: rgb(18, 148, 204);
--color-success-500: rgb(21, 135, 186);
--color-success-550: rgb(12, 121, 168);
--color-success-600: rgb(11, 110, 153);
--color-success-650: rgb(11, 97, 135);
--color-success-700: rgb(17, 88, 121);
--color-success-750: rgb(17, 76, 105);
--color-success-800: rgb(18, 66, 90);
--color-success-850: rgb(18, 56, 76);
--color-success-900: rgb(19, 44, 58);
--color-success-950: rgb(22, 33, 39);
--color-success-50: rgb(237, 245, 249);
--color-success-100: rgb(218, 237, 248);
--color-success-150: rgb(188, 225, 248);
--color-success-200: rgb(156, 216, 253);
--color-success-250: rgb(125, 204, 248);
--color-success-300: rgb(97, 190, 241);
--color-success-350: rgb(65, 178, 236);
--color-success-400: rgb(36, 164, 223);
--color-success-450: rgb(18, 148, 204);
--color-success-500: rgb(21, 135, 186);
--color-success-550: rgb(12, 121, 168);
--color-success-600: rgb(11, 110, 153);
--color-success-650: rgb(11, 97, 135);
--color-success-700: rgb(17, 88, 121);
--color-success-750: rgb(17, 76, 105);
--color-success-800: rgb(18, 66, 90);
--color-success-850: rgb(18, 56, 76);
--color-success-900: rgb(19, 44, 58);
--color-success-950: rgb(22, 33, 39);
--color-error-50: rgb(250, 241, 240);
--color-error-100: rgb(252, 229, 227);
--color-error-150: rgb(247, 208, 204);
--color-error-200: rgb(254, 193, 188);
--color-error-250: rgb(253, 177, 170);
--color-error-300: rgb(253, 154, 146);
--color-error-350: rgb(253, 131, 123);
--color-error-400: rgb(246, 109, 103);
--color-error-450: rgb(234, 90, 86);
--color-error-500: rgb(218, 75, 72);
--color-error-550: rgb(200, 62, 61);
--color-error-600: rgb(182, 54, 54);
--color-error-650: rgb(161, 47, 47);
--color-error-700: rgb(144, 44, 43);
--color-error-750: rgb(123, 41, 39);
--color-error-800: rgb(105, 39, 37);
--color-error-850: rgb(86, 36, 33);
--color-error-900: rgb(64, 32, 29);
--color-error-950: rgb(44, 26, 24);
--color-error-50: rgb(250, 241, 240);
--color-error-100: rgb(252, 229, 227);
--color-error-150: rgb(247, 208, 204);
--color-error-200: rgb(254, 193, 188);
--color-error-250: rgb(253, 177, 170);
--color-error-300: rgb(253, 154, 146);
--color-error-350: rgb(253, 131, 123);
--color-error-400: rgb(246, 109, 103);
--color-error-450: rgb(234, 90, 86);
--color-error-500: rgb(218, 75, 72);
--color-error-550: rgb(200, 62, 61);
--color-error-600: rgb(182, 54, 54);
--color-error-650: rgb(161, 47, 47);
--color-error-700: rgb(144, 44, 43);
--color-error-750: rgb(123, 41, 39);
--color-error-800: rgb(105, 39, 37);
--color-error-850: rgb(86, 36, 33);
--color-error-900: rgb(64, 32, 29);
--color-error-950: rgb(44, 26, 24);
--color-warning-50: rgb(249, 242, 237);
--color-warning-100: rgb(248, 232, 219);
--color-warning-150: rgb(243, 212, 186);
--color-warning-200: rgb(243, 200, 162);
--color-warning-250: rgb(240, 185, 136);
--color-warning-300: rgb(238, 166, 98);
--color-warning-350: rgb(234, 148, 58);
--color-warning-400: rgb(223, 132, 17);
--color-warning-450: rgb(204, 120, 15);
--color-warning-500: rgb(185, 108, 13);
--color-warning-550: rgb(167, 97, 10);
--color-warning-600: rgb(150, 87, 11);
--color-warning-650: rgb(134, 78, 11);
--color-warning-700: rgb(120, 70, 13);
--color-warning-750: rgb(105, 61, 13);
--color-warning-800: rgb(90, 55, 19);
--color-warning-850: rgb(73, 47, 21);
--color-warning-900: rgb(56, 38, 20);
--color-warning-950: rgb(38, 29, 21);
--color-warning-50: rgb(249, 242, 237);
--color-warning-100: rgb(248, 232, 219);
--color-warning-150: rgb(243, 212, 186);
--color-warning-200: rgb(243, 200, 162);
--color-warning-250: rgb(240, 185, 136);
--color-warning-300: rgb(238, 166, 98);
--color-warning-350: rgb(234, 148, 58);
--color-warning-400: rgb(223, 132, 17);
--color-warning-450: rgb(204, 120, 15);
--color-warning-500: rgb(185, 108, 13);
--color-warning-550: rgb(167, 97, 10);
--color-warning-600: rgb(150, 87, 11);
--color-warning-650: rgb(134, 78, 11);
--color-warning-700: rgb(120, 70, 13);
--color-warning-750: rgb(105, 61, 13);
--color-warning-800: rgb(90, 55, 19);
--color-warning-850: rgb(73, 47, 21);
--color-warning-900: rgb(56, 38, 20);
--color-warning-950: rgb(38, 29, 21);
--color-blue-50: rgb(237, 245, 249);
--color-blue-100: rgb(218, 237, 248);
--color-blue-150: rgb(188, 225, 248);
--color-blue-200: rgb(156, 216, 253);
--color-blue-250: rgb(125, 204, 248);
--color-blue-300: rgb(97, 190, 241);
--color-blue-350: rgb(65, 178, 236);
--color-blue-400: rgb(36, 164, 223);
--color-blue-450: rgb(18, 148, 204);
--color-blue-500: rgb(21, 135, 186);
--color-blue-550: rgb(12, 121, 168);
--color-blue-600: rgb(11, 110, 153);
--color-blue-650: rgb(11, 97, 135);
--color-blue-700: rgb(17, 88, 121);
--color-blue-750: rgb(17, 76, 105);
--color-blue-800: rgb(18, 66, 90);
--color-blue-850: rgb(18, 56, 76);
--color-blue-900: rgb(19, 44, 58);
--color-blue-950: rgb(22, 33, 39);
--color-blue-50: rgb(237, 245, 249);
--color-blue-100: rgb(218, 237, 248);
--color-blue-150: rgb(188, 225, 248);
--color-blue-200: rgb(156, 216, 253);
--color-blue-250: rgb(125, 204, 248);
--color-blue-300: rgb(97, 190, 241);
--color-blue-350: rgb(65, 178, 236);
--color-blue-400: rgb(36, 164, 223);
--color-blue-450: rgb(18, 148, 204);
--color-blue-500: rgb(21, 135, 186);
--color-blue-550: rgb(12, 121, 168);
--color-blue-600: rgb(11, 110, 153);
--color-blue-650: rgb(11, 97, 135);
--color-blue-700: rgb(17, 88, 121);
--color-blue-750: rgb(17, 76, 105);
--color-blue-800: rgb(18, 66, 90);
--color-blue-850: rgb(18, 56, 76);
--color-blue-900: rgb(19, 44, 58);
--color-blue-950: rgb(22, 33, 39);
--theme-border-color: var(--theme-elevation-150);
--theme-border-color: var(--theme-elevation-150);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
--theme-success-350: var(--color-success-350);
--theme-success-400: var(--color-success-400);
--theme-success-450: var(--color-success-450);
--theme-success-500: var(--color-success-500);
--theme-success-550: var(--color-success-550);
--theme-success-600: var(--color-success-600);
--theme-success-650: var(--color-success-650);
--theme-success-700: var(--color-success-700);
--theme-success-750: var(--color-success-750);
--theme-success-800: var(--color-success-800);
--theme-success-850: var(--color-success-850);
--theme-success-900: var(--color-success-900);
--theme-success-950: var(--color-success-950);
--theme-success-50: var(--color-success-50);
--theme-success-100: var(--color-success-100);
--theme-success-150: var(--color-success-150);
--theme-success-200: var(--color-success-200);
--theme-success-250: var(--color-success-250);
--theme-success-300: var(--color-success-300);
--theme-success-350: var(--color-success-350);
--theme-success-400: var(--color-success-400);
--theme-success-450: var(--color-success-450);
--theme-success-500: var(--color-success-500);
--theme-success-550: var(--color-success-550);
--theme-success-600: var(--color-success-600);
--theme-success-650: var(--color-success-650);
--theme-success-700: var(--color-success-700);
--theme-success-750: var(--color-success-750);
--theme-success-800: var(--color-success-800);
--theme-success-850: var(--color-success-850);
--theme-success-900: var(--color-success-900);
--theme-success-950: var(--color-success-950);
--theme-warning-50: var(--color-warning-50);
--theme-warning-100: var(--color-warning-100);
--theme-warning-150: var(--color-warning-150);
--theme-warning-200: var(--color-warning-200);
--theme-warning-250: var(--color-warning-250);
--theme-warning-300: var(--color-warning-300);
--theme-warning-350: var(--color-warning-350);
--theme-warning-400: var(--color-warning-400);
--theme-warning-450: var(--color-warning-450);
--theme-warning-500: var(--color-warning-500);
--theme-warning-550: var(--color-warning-550);
--theme-warning-600: var(--color-warning-600);
--theme-warning-650: var(--color-warning-650);
--theme-warning-700: var(--color-warning-700);
--theme-warning-750: var(--color-warning-750);
--theme-warning-800: var(--color-warning-800);
--theme-warning-850: var(--color-warning-850);
--theme-warning-900: var(--color-warning-900);
--theme-warning-950: var(--color-warning-950);
--theme-warning-50: var(--color-warning-50);
--theme-warning-100: var(--color-warning-100);
--theme-warning-150: var(--color-warning-150);
--theme-warning-200: var(--color-warning-200);
--theme-warning-250: var(--color-warning-250);
--theme-warning-300: var(--color-warning-300);
--theme-warning-350: var(--color-warning-350);
--theme-warning-400: var(--color-warning-400);
--theme-warning-450: var(--color-warning-450);
--theme-warning-500: var(--color-warning-500);
--theme-warning-550: var(--color-warning-550);
--theme-warning-600: var(--color-warning-600);
--theme-warning-650: var(--color-warning-650);
--theme-warning-700: var(--color-warning-700);
--theme-warning-750: var(--color-warning-750);
--theme-warning-800: var(--color-warning-800);
--theme-warning-850: var(--color-warning-850);
--theme-warning-900: var(--color-warning-900);
--theme-warning-950: var(--color-warning-950);
--theme-error-50: var(--color-error-50);
--theme-error-100: var(--color-error-100);
--theme-error-150: var(--color-error-150);
--theme-error-200: var(--color-error-200);
--theme-error-250: var(--color-error-250);
--theme-error-300: var(--color-error-300);
--theme-error-350: var(--color-error-350);
--theme-error-400: var(--color-error-400);
--theme-error-450: var(--color-error-450);
--theme-error-500: var(--color-error-500);
--theme-error-550: var(--color-error-550);
--theme-error-600: var(--color-error-600);
--theme-error-650: var(--color-error-650);
--theme-error-700: var(--color-error-700);
--theme-error-750: var(--color-error-750);
--theme-error-800: var(--color-error-800);
--theme-error-850: var(--color-error-850);
--theme-error-900: var(--color-error-900);
--theme-error-950: var(--color-error-950);
--theme-error-50: var(--color-error-50);
--theme-error-100: var(--color-error-100);
--theme-error-150: var(--color-error-150);
--theme-error-200: var(--color-error-200);
--theme-error-250: var(--color-error-250);
--theme-error-300: var(--color-error-300);
--theme-error-350: var(--color-error-350);
--theme-error-400: var(--color-error-400);
--theme-error-450: var(--color-error-450);
--theme-error-500: var(--color-error-500);
--theme-error-550: var(--color-error-550);
--theme-error-600: var(--color-error-600);
--theme-error-650: var(--color-error-650);
--theme-error-700: var(--color-error-700);
--theme-error-750: var(--color-error-750);
--theme-error-800: var(--color-error-800);
--theme-error-850: var(--color-error-850);
--theme-error-900: var(--color-error-900);
--theme-error-950: var(--color-error-950);
--theme-elevation-0: var(--color-base-0);
--theme-elevation-50: var(--color-base-50);
--theme-elevation-100: var(--color-base-100);
--theme-elevation-150: var(--color-base-150);
--theme-elevation-200: var(--color-base-200);
--theme-elevation-250: var(--color-base-250);
--theme-elevation-300: var(--color-base-300);
--theme-elevation-350: var(--color-base-350);
--theme-elevation-400: var(--color-base-400);
--theme-elevation-450: var(--color-base-450);
--theme-elevation-500: var(--color-base-500);
--theme-elevation-550: var(--color-base-550);
--theme-elevation-600: var(--color-base-600);
--theme-elevation-650: var(--color-base-650);
--theme-elevation-700: var(--color-base-700);
--theme-elevation-750: var(--color-base-750);
--theme-elevation-800: var(--color-base-800);
--theme-elevation-850: var(--color-base-850);
--theme-elevation-900: var(--color-base-900);
--theme-elevation-950: var(--color-base-950);
--theme-elevation-1000: var(--color-base-1000);
}
html[data-theme='dark'] {
--theme-border-color: var(--theme-elevation-150);
--theme-elevation-0: var(--color-base-900);
--theme-elevation-50: var(--color-base-850);
--theme-elevation-100: var(--color-base-800);
--theme-elevation-150: var(--color-base-750);
--theme-elevation-200: var(--color-base-700);
--theme-elevation-250: var(--color-base-650);
--theme-elevation-300: var(--color-base-600);
--theme-elevation-350: var(--color-base-550);
--theme-elevation-400: var(--color-base-450);
--theme-elevation-450: var(--color-base-400);
--theme-elevation-550: var(--color-base-350);
--theme-elevation-600: var(--color-base-300);
--theme-elevation-650: var(--color-base-250);
--theme-elevation-700: var(--color-base-200);
--theme-elevation-750: var(--color-base-150);
--theme-elevation-800: var(--color-base-100);
--theme-elevation-850: var(--color-base-50);
--theme-elevation-900: var(--color-base-0);
--theme-elevation-950: var(--color-base-0);
--theme-elevation-1000: var(--color-base-0);
--theme-success-50: var(--color-success-950);
--theme-success-100: var(--color-success-900);
--theme-success-150: var(--color-success-850);
--theme-success-200: var(--color-success-800);
--theme-success-250: var(--color-success-750);
--theme-success-300: var(--color-success-700);
--theme-success-350: var(--color-success-650);
--theme-success-400: var(--color-success-600);
--theme-success-450: var(--color-success-550);
--theme-success-550: var(--color-success-450);
--theme-success-600: var(--color-success-400);
--theme-success-650: var(--color-success-350);
--theme-success-700: var(--color-success-300);
--theme-success-750: var(--color-success-250);
--theme-success-800: var(--color-success-200);
--theme-success-850: var(--color-success-150);
--theme-success-900: var(--color-success-100);
--theme-success-950: var(--color-success-50);
--theme-warning-50: var(--color-warning-950);
--theme-warning-100: var(--color-warning-900);
--theme-warning-150: var(--color-warning-850);
--theme-warning-200: var(--color-warning-800);
--theme-warning-250: var(--color-warning-750);
--theme-warning-300: var(--color-warning-700);
--theme-warning-350: var(--color-warning-650);
--theme-warning-400: var(--color-warning-600);
--theme-warning-450: var(--color-warning-550);
--theme-warning-550: var(--color-warning-450);
--theme-warning-600: var(--color-warning-400);
--theme-warning-650: var(--color-warning-350);
--theme-warning-700: var(--color-warning-300);
--theme-warning-750: var(--color-warning-250);
--theme-warning-800: var(--color-warning-200);
--theme-warning-850: var(--color-warning-150);
--theme-warning-900: var(--color-warning-100);
--theme-warning-950: var(--color-warning-50);
--theme-error-50: var(--color-error-950);
--theme-error-100: var(--color-error-900);
--theme-error-150: var(--color-error-850);
--theme-error-200: var(--color-error-800);
--theme-error-250: var(--color-error-750);
--theme-error-300: var(--color-error-700);
--theme-error-350: var(--color-error-650);
--theme-error-400: var(--color-error-600);
--theme-error-450: var(--color-error-550);
--theme-error-550: var(--color-error-450);
--theme-error-600: var(--color-error-400);
--theme-error-650: var(--color-error-350);
--theme-error-700: var(--color-error-300);
--theme-error-750: var(--color-error-250);
--theme-error-800: var(--color-error-200);
--theme-error-850: var(--color-error-150);
--theme-error-900: var(--color-error-100);
--theme-error-950: var(--color-error-50);
--theme-elevation-0: var(--color-base-0);
--theme-elevation-50: var(--color-base-50);
--theme-elevation-100: var(--color-base-100);
--theme-elevation-150: var(--color-base-150);
--theme-elevation-200: var(--color-base-200);
--theme-elevation-250: var(--color-base-250);
--theme-elevation-300: var(--color-base-300);
--theme-elevation-350: var(--color-base-350);
--theme-elevation-400: var(--color-base-400);
--theme-elevation-450: var(--color-base-450);
--theme-elevation-500: var(--color-base-500);
--theme-elevation-550: var(--color-base-550);
--theme-elevation-600: var(--color-base-600);
--theme-elevation-650: var(--color-base-650);
--theme-elevation-700: var(--color-base-700);
--theme-elevation-750: var(--color-base-750);
--theme-elevation-800: var(--color-base-800);
--theme-elevation-850: var(--color-base-850);
--theme-elevation-900: var(--color-base-900);
--theme-elevation-950: var(--color-base-950);
--theme-elevation-1000: var(--color-base-1000);
}
html[data-theme='dark'] {
--theme-border-color: var(--theme-elevation-150);
--theme-elevation-0: var(--color-base-900);
--theme-elevation-50: var(--color-base-850);
--theme-elevation-100: var(--color-base-800);
--theme-elevation-150: var(--color-base-750);
--theme-elevation-200: var(--color-base-700);
--theme-elevation-250: var(--color-base-650);
--theme-elevation-300: var(--color-base-600);
--theme-elevation-350: var(--color-base-550);
--theme-elevation-400: var(--color-base-450);
--theme-elevation-450: var(--color-base-400);
--theme-elevation-550: var(--color-base-350);
--theme-elevation-600: var(--color-base-300);
--theme-elevation-650: var(--color-base-250);
--theme-elevation-700: var(--color-base-200);
--theme-elevation-750: var(--color-base-150);
--theme-elevation-800: var(--color-base-100);
--theme-elevation-850: var(--color-base-50);
--theme-elevation-900: var(--color-base-0);
--theme-elevation-950: var(--color-base-0);
--theme-elevation-1000: var(--color-base-0);
--theme-success-50: var(--color-success-950);
--theme-success-100: var(--color-success-900);
--theme-success-150: var(--color-success-850);
--theme-success-200: var(--color-success-800);
--theme-success-250: var(--color-success-750);
--theme-success-300: var(--color-success-700);
--theme-success-350: var(--color-success-650);
--theme-success-400: var(--color-success-600);
--theme-success-450: var(--color-success-550);
--theme-success-550: var(--color-success-450);
--theme-success-600: var(--color-success-400);
--theme-success-650: var(--color-success-350);
--theme-success-700: var(--color-success-300);
--theme-success-750: var(--color-success-250);
--theme-success-800: var(--color-success-200);
--theme-success-850: var(--color-success-150);
--theme-success-900: var(--color-success-100);
--theme-success-950: var(--color-success-50);
--theme-warning-50: var(--color-warning-950);
--theme-warning-100: var(--color-warning-900);
--theme-warning-150: var(--color-warning-850);
--theme-warning-200: var(--color-warning-800);
--theme-warning-250: var(--color-warning-750);
--theme-warning-300: var(--color-warning-700);
--theme-warning-350: var(--color-warning-650);
--theme-warning-400: var(--color-warning-600);
--theme-warning-450: var(--color-warning-550);
--theme-warning-550: var(--color-warning-450);
--theme-warning-600: var(--color-warning-400);
--theme-warning-650: var(--color-warning-350);
--theme-warning-700: var(--color-warning-300);
--theme-warning-750: var(--color-warning-250);
--theme-warning-800: var(--color-warning-200);
--theme-warning-850: var(--color-warning-150);
--theme-warning-900: var(--color-warning-100);
--theme-warning-950: var(--color-warning-50);
--theme-error-50: var(--color-error-950);
--theme-error-100: var(--color-error-900);
--theme-error-150: var(--color-error-850);
--theme-error-200: var(--color-error-800);
--theme-error-250: var(--color-error-750);
--theme-error-300: var(--color-error-700);
--theme-error-350: var(--color-error-650);
--theme-error-400: var(--color-error-600);
--theme-error-450: var(--color-error-550);
--theme-error-550: var(--color-error-450);
--theme-error-600: var(--color-error-400);
--theme-error-650: var(--color-error-350);
--theme-error-700: var(--color-error-300);
--theme-error-750: var(--color-error-250);
--theme-error-800: var(--color-error-200);
--theme-error-850: var(--color-error-150);
--theme-error-900: var(--color-error-100);
--theme-error-950: var(--color-error-50);
}
}

View File

@@ -1,10 +1,12 @@
%btn-reset {
border: 0;
background: none;
box-shadow: none;
border-radius: 0;
padding: 0;
color: currentColor;
@layer payload-default {
%btn-reset {
border: 0;
background: none;
box-shadow: none;
border-radius: 0;
padding: 0;
color: currentColor;
}
}
@mixin btn-reset {

View File

@@ -1,59 +1,60 @@
@import 'vars';
@import 'queries';
.Toastify {
.Toastify__toast-container {
left: base(5);
transform: none;
right: base(5);
width: auto;
}
.Toastify__toast {
padding: base(0.5);
border-radius: $style-radius-m;
font-weight: 600;
}
.Toastify__close-button {
align-self: center;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
.Toastify__toast--success {
color: var(--color-success-900);
background: var(--color-success-500);
.Toastify__progress-bar {
background-color: var(--color-success-900);
}
}
.Toastify__close-button--success {
color: var(--color-success-900);
}
.Toastify__toast--error {
background: var(--theme-error-500);
color: #fff;
.Toastify__progress-bar {
background-color: #fff;
}
}
.Toastify__close-button--light {
color: inherit;
}
@include mid-break {
@layer payload-default {
.Toastify {
.Toastify__toast-container {
left: $baseline;
right: $baseline;
left: base(5);
transform: none;
right: base(5);
width: auto;
}
.Toastify__toast {
padding: base(0.5);
border-radius: $style-radius-m;
font-weight: 600;
}
.Toastify__close-button {
align-self: center;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
.Toastify__toast--success {
color: var(--color-success-900);
background: var(--color-success-500);
.Toastify__progress-bar {
background-color: var(--color-success-900);
}
}
.Toastify__close-button--success {
color: var(--color-success-900);
}
.Toastify__toast--error {
background: var(--theme-error-500);
color: #fff;
.Toastify__progress-bar {
background-color: #fff;
}
}
.Toastify__close-button--light {
color: inherit;
}
@include mid-break {
.Toastify__toast-container {
left: $baseline;
right: $baseline;
}
}
}
}

View File

@@ -1,140 +1,141 @@
@import './styles.scss';
@layer payload-default {
.payload-toast-container {
padding: 0;
margin: 0;
.payload-toast-container {
padding: 0;
margin: 0;
.payload-toast-close-button {
position: absolute;
order: 3;
left: unset;
inset-inline-end: base(0.8);
top: 50%;
transform: translateY(-50%);
color: var(--theme-elevation-600);
background: unset;
border: none;
.payload-toast-close-button {
position: absolute;
order: 3;
left: unset;
inset-inline-end: base(0.8);
top: 50%;
transform: translateY(-50%);
color: var(--theme-elevation-600);
background: unset;
border: none;
svg {
width: base(0.8);
height: base(0.8);
}
svg {
width: base(0.8);
height: base(0.8);
}
&:hover {
color: var(--theme-elevation-250);
background: none;
}
&:hover {
color: var(--theme-elevation-250);
background: none;
}
[dir='RTL'] & {
right: unset;
left: 0.5rem;
}
}
.toast-title {
line-height: base(1);
margin-right: base(1);
}
.payload-toast-item {
padding: base(0.8);
color: var(--theme-elevation-800);
font-style: normal;
font-weight: 600;
display: flex;
gap: 1rem;
align-items: center;
width: 100%;
border-radius: 4px;
border: 1px solid var(--theme-border-color);
background: var(--theme-input-bg);
box-shadow:
0px 10px 4px -8px rgba(0, 2, 4, 0.02),
0px 2px 3px 0px rgba(0, 2, 4, 0.05);
.toast-content {
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
width: 100%;
}
&[data-front='false'] {
.toast-content {
opacity: 0;
[dir='RTL'] & {
right: unset;
left: 0.5rem;
}
}
&[data-expanded='true'] {
.toast-content {
opacity: 1;
}
.toast-title {
line-height: base(1);
margin-right: base(1);
}
.toast-icon {
width: base(0.8);
height: base(0.8);
margin: 0;
display: flex;
align-items: center;
justify-content: center;
& > * {
width: base(1.2);
height: base(1.2);
}
}
&.toast-warning {
color: var(--theme-warning-800);
border-color: var(--theme-warning-250);
background-color: var(--theme-warning-100);
.payload-toast-close-button {
color: var(--theme-warning-600);
&:hover {
color: var(--theme-warning-250);
}
}
}
&.toast-error {
color: var(--theme-error-800);
border-color: var(--theme-error-250);
background-color: var(--theme-error-100);
.payload-toast-close-button {
color: var(--theme-error-600);
&:hover {
color: var(--theme-error-250);
}
}
}
&.toast-success {
color: var(--theme-success-800);
border-color: var(--theme-success-250);
background-color: var(--theme-success-100);
.payload-toast-close-button {
color: var(--theme-success-600);
&:hover {
color: var(--theme-success-250);
}
}
}
&.toast-info {
.payload-toast-item {
padding: base(0.8);
color: var(--theme-elevation-800);
border-color: var(--theme-elevation-250);
background-color: var(--theme-elevation-100);
font-style: normal;
font-weight: 600;
display: flex;
gap: 1rem;
align-items: center;
width: 100%;
border-radius: 4px;
border: 1px solid var(--theme-border-color);
background: var(--theme-input-bg);
box-shadow:
0px 10px 4px -8px rgba(0, 2, 4, 0.02),
0px 2px 3px 0px rgba(0, 2, 4, 0.05);
.payload-toast-close-button {
color: var(--theme-elevation-600);
.toast-content {
transition: opacity 100ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
width: 100%;
}
&:hover {
color: var(--theme-elevation-250);
&[data-front='false'] {
.toast-content {
opacity: 0;
}
}
&[data-expanded='true'] {
.toast-content {
opacity: 1;
}
}
.toast-icon {
width: base(0.8);
height: base(0.8);
margin: 0;
display: flex;
align-items: center;
justify-content: center;
& > * {
width: base(1.2);
height: base(1.2);
}
}
&.toast-warning {
color: var(--theme-warning-800);
border-color: var(--theme-warning-250);
background-color: var(--theme-warning-100);
.payload-toast-close-button {
color: var(--theme-warning-600);
&:hover {
color: var(--theme-warning-250);
}
}
}
&.toast-error {
color: var(--theme-error-800);
border-color: var(--theme-error-250);
background-color: var(--theme-error-100);
.payload-toast-close-button {
color: var(--theme-error-600);
&:hover {
color: var(--theme-error-250);
}
}
}
&.toast-success {
color: var(--theme-success-800);
border-color: var(--theme-success-250);
background-color: var(--theme-success-100);
.payload-toast-close-button {
color: var(--theme-success-600);
&:hover {
color: var(--theme-success-250);
}
}
}
&.toast-info {
color: var(--theme-elevation-800);
border-color: var(--theme-elevation-250);
background-color: var(--theme-elevation-100);
.payload-toast-close-button {
color: var(--theme-elevation-600);
&:hover {
color: var(--theme-elevation-250);
}
}
}
}

View File

@@ -4,106 +4,107 @@
/////////////////////////////
// HEADINGS
/////////////////////////////
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
font-family: var(--font-body);
font-weight: 500;
}
%h1 {
margin: 0;
font-size: base(1.6);
line-height: base(1.8);
@include small-break {
letter-spacing: -0.5px;
font-size: base(1.25);
@layer payload-default {
%h1,
%h2,
%h3,
%h4,
%h5,
%h6 {
font-family: var(--font-body);
font-weight: 500;
}
}
%h2 {
margin: 0;
font-size: base(1.3);
line-height: base(1.6);
%h1 {
margin: 0;
font-size: base(1.6);
line-height: base(1.8);
@include small-break {
font-size: base(0.85);
@include small-break {
letter-spacing: -0.5px;
font-size: base(1.25);
}
}
}
%h3 {
margin: 0;
font-size: base(1);
line-height: base(1.2);
%h2 {
margin: 0;
font-size: base(1.3);
line-height: base(1.6);
@include small-break {
font-size: base(0.65);
line-height: 1.25;
@include small-break {
font-size: base(0.85);
}
}
}
%h4 {
margin: 0;
font-size: base(0.8);
line-height: base(1);
letter-spacing: -0.375px;
}
%h3 {
margin: 0;
font-size: base(1);
line-height: base(1.2);
%h5 {
margin: 0;
font-size: base(0.65);
line-height: base(0.8);
}
@include small-break {
font-size: base(0.65);
line-height: 1.25;
}
}
%h6 {
margin: 0;
font-size: base(0.6);
line-height: base(0.8);
}
%small {
margin: 0;
font-size: 12px;
line-height: 20px;
}
/////////////////////////////
// TYPE STYLES
/////////////////////////////
%large-body {
font-size: base(0.6);
line-height: base(1);
letter-spacing: base(0.02);
@include mid-break {
font-size: base(0.7);
%h4 {
margin: 0;
font-size: base(0.8);
line-height: base(1);
letter-spacing: -0.375px;
}
@include small-break {
font-size: base(0.55);
line-height: base(0.75);
}
}
%body {
font-size: $baseline-body-size;
line-height: $baseline-px;
font-weight: normal;
font-family: var(--font-body);
}
%code {
font-size: base(0.4);
color: var(--theme-elevation-400);
span {
color: var(--theme-elevation-800);
%h5 {
margin: 0;
font-size: base(0.65);
line-height: base(0.8);
}
%h6 {
margin: 0;
font-size: base(0.6);
line-height: base(0.8);
}
%small {
margin: 0;
font-size: 12px;
line-height: 20px;
}
/////////////////////////////
// TYPE STYLES
/////////////////////////////
%large-body {
font-size: base(0.6);
line-height: base(1);
letter-spacing: base(0.02);
@include mid-break {
font-size: base(0.7);
line-height: base(1);
}
@include small-break {
font-size: base(0.55);
line-height: base(0.75);
}
}
%body {
font-size: $baseline-body-size;
line-height: $baseline-px;
font-weight: normal;
font-family: var(--font-body);
}
%code {
font-size: base(0.4);
color: var(--theme-elevation-400);
span {
color: var(--theme-elevation-800);
}
}
}

View File

@@ -1,42 +1,44 @@
@import '../../scss/styles.scss';
.relationship-add-new {
display: flex;
align-items: stretch;
.popup__trigger-wrap {
@layer payload-default {
.relationship-add-new {
display: flex;
align-items: stretch;
height: 100%;
}
&__add-button:not(.relationship-add-new__add-button--unstyled),
&__add-button:not(.relationship-add-new__add-button--unstyled).doc-drawer__toggler {
@include formInput;
margin: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
position: relative;
height: 100%;
margin-left: -1px;
display: flex;
padding: 0 base(0.5);
align-items: center;
display: flex;
cursor: pointer;
}
.popup__trigger-wrap {
display: flex;
align-items: stretch;
height: 100%;
}
&__add-button {
margin: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
position: relative;
height: 100%;
margin-left: -1px;
display: flex;
padding: 0 base(0.5);
align-items: center;
display: flex;
cursor: pointer;
&__add-button:not(.relationship-add-new__add-button--unstyled),
&__add-button:not(.relationship-add-new__add-button--unstyled).doc-drawer__toggler {
@include formInput;
margin: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
position: relative;
height: 100%;
margin-left: -1px;
display: flex;
padding: 0 base(0.5);
align-items: center;
display: flex;
cursor: pointer;
}
&__add-button {
margin: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
position: relative;
height: 100%;
margin-left: -1px;
display: flex;
padding: 0 base(0.5);
align-items: center;
display: flex;
cursor: pointer;
}
}
}

View File

@@ -1,194 +1,196 @@
@import '../../scss/styles.scss';
.app-header {
position: relative;
width: 100%;
height: var(--app-header-height);
z-index: var(--z-modal);
&__mobile-nav-toggler {
display: none;
}
// place the localizer outside the `overflow: hidden` container so that the popup is visible
// this means we need to use a placeholder div so that the space is retained in the DOM
[dir='rtl'] &__localizer {
right: unset;
left: base(4.5);
}
&__localizer.localizer {
position: absolute;
top: 50%;
right: base(4.5);
transform: translate3d(0, -50%, 0);
}
&__localizer-spacing {
visibility: hidden;
}
&__bg {
opacity: 0;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
&--show-bg {
opacity: 1;
}
&__content {
display: flex;
align-items: center;
height: 100%;
padding: 0 var(--gutter-h);
@layer payload-default {
.app-header {
position: relative;
flex-grow: 1;
}
&__wrapper {
display: flex;
gap: calc(var(--base) / 2);
align-items: center;
height: 100%;
flex-grow: 1;
justify-content: space-between;
width: 100%;
}
height: var(--app-header-height);
z-index: var(--z-modal);
&__account {
position: relative;
&__mobile-nav-toggler {
display: none;
}
&:focus:not(:focus-visible) {
// place the localizer outside the `overflow: hidden` container so that the popup is visible
// this means we need to use a placeholder div so that the space is retained in the DOM
[dir='rtl'] &__localizer {
right: unset;
left: base(4.5);
}
&__localizer.localizer {
position: absolute;
top: 50%;
right: base(4.5);
transform: translate3d(0, -50%, 0);
}
&__localizer-spacing {
visibility: hidden;
}
&__bg {
opacity: 0;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
&--show-bg {
opacity: 1;
}
// Use a pseudo element for the accessability so that it doesn't take up DOM space
// Also because the parent element has `overflow: hidden` which would clip an outline
&:focus-visible {
outline: none;
&__content {
display: flex;
align-items: center;
height: 100%;
padding: 0 var(--gutter-h);
position: relative;
flex-grow: 1;
}
&::after {
content: '';
border: var(--accessibility-outline);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
&__wrapper {
display: flex;
gap: calc(var(--base) / 2);
align-items: center;
height: 100%;
flex-grow: 1;
justify-content: space-between;
width: 100%;
}
&__account {
position: relative;
&:focus:not(:focus-visible) {
opacity: 1;
}
// Use a pseudo element for the accessability so that it doesn't take up DOM space
// Also because the parent element has `overflow: hidden` which would clip an outline
&:focus-visible {
outline: none;
&::after {
content: '';
border: var(--accessibility-outline);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
}
}
}
}
&__controls-wrapper {
display: flex;
align-items: center;
flex-grow: 1;
overflow: hidden;
width: 100%;
}
&__step-nav-wrapper {
flex-grow: 0;
overflow: auto;
display: flex;
width: 100%;
&::-webkit-scrollbar {
display: none;
}
}
&__actions-wrapper {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
gap: calc(var(--base) / 2);
margin-right: var(--base);
}
&__gradient-placeholder {
position: absolute;
top: 0;
right: 0;
width: var(--base);
height: var(--base);
background: linear-gradient(to right, transparent, var(--theme-bg));
}
&__actions {
display: flex;
align-items: center;
gap: calc(var(--base) / 2);
flex-shrink: 0;
max-width: 600px;
overflow: auto;
white-space: nowrap;
&::-webkit-scrollbar {
display: none;
}
}
&__last-action {
margin-right: var(--base);
}
@include large-break {
&__actions {
max-width: 500px;
}
}
@include mid-break {
&__gradient-placeholder {
right: var(--base);
&__controls-wrapper {
display: flex;
align-items: center;
flex-grow: 1;
overflow: hidden;
width: 100%;
}
&__actions {
max-width: 300px;
margin-right: var(--base);
}
}
&__step-nav-wrapper {
flex-grow: 0;
overflow: auto;
display: flex;
width: 100%;
@include small-break {
&__localizer.localizer {
right: base(2);
}
&--nav-open {
.app-header__localizer {
&::-webkit-scrollbar {
display: none;
}
}
&__mobile-nav-toggler {
&__actions-wrapper {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
&.nav-toggler--is-open {
opacity: 0.5;
}
}
&__step-header {
// TODO: overflow the step header instead of hide it
display: none;
gap: calc(var(--base) / 2);
margin-right: var(--base);
}
&__gradient-placeholder {
position: absolute;
top: 0;
right: 0;
width: var(--base);
height: var(--base);
background: linear-gradient(to right, transparent, var(--theme-bg));
}
&__actions {
max-width: 150px;
margin-right: 0;
display: flex;
align-items: center;
gap: calc(var(--base) / 2);
flex-shrink: 0;
max-width: 600px;
overflow: auto;
white-space: nowrap;
&::-webkit-scrollbar {
display: none;
}
}
&__last-action {
margin-right: var(--base);
}
@include large-break {
&__actions {
max-width: 500px;
}
}
@include mid-break {
&__gradient-placeholder {
right: var(--base);
}
&__actions {
max-width: 300px;
margin-right: var(--base);
}
}
@include small-break {
&__localizer.localizer {
right: base(2);
}
&--nav-open {
.app-header__localizer {
display: none;
}
}
&__mobile-nav-toggler {
display: flex;
align-items: center;
&.nav-toggler--is-open {
opacity: 0.5;
}
}
&__step-header {
// TODO: overflow the step header instead of hide it
display: none;
}
&__gradient-placeholder {
right: 0;
}
&__actions {
max-width: 150px;
margin-right: 0;
}
}
}
}

View File

@@ -1,32 +1,34 @@
@import '../../scss/styles.scss';
.array-actions {
&__button {
@extend %btn-reset;
cursor: pointer;
border-radius: 100px;
@layer payload-default {
.array-actions {
&__button {
@extend %btn-reset;
cursor: pointer;
border-radius: 100px;
&:hover {
background: var(--theme-elevation-0);
&:hover {
background: var(--theme-elevation-0);
}
}
}
&__actions {
list-style: none;
margin: 0;
padding: 0;
}
&__actions {
list-style: none;
margin: 0;
padding: 0;
}
&__action {
display: flex;
gap: calc(var(--base) / 2);
align-items: center;
&__action {
display: flex;
gap: calc(var(--base) / 2);
align-items: center;
svg {
position: relative;
svg {
position: relative;
.stroke {
stroke-width: 1px;
.stroke {
stroke-width: 1px;
}
}
}
}

View File

@@ -1,5 +1,7 @@
@import '../../scss/styles.scss';
.autosave {
white-space: nowrap;
@layer payload-default {
.autosave {
white-space: nowrap;
}
}

View File

@@ -1,71 +1,73 @@
@import '../../scss/styles.scss';
.banner {
font-size: 1rem;
line-height: base(1);
border: 0;
vertical-align: middle;
background: var(--theme-elevation-100);
color: var(--theme-elevation-800);
border-radius: $style-radius-m;
padding: base(0.5);
margin-bottom: $baseline;
@layer payload-default {
.banner {
font-size: 1rem;
line-height: base(1);
border: 0;
vertical-align: middle;
background: var(--theme-elevation-100);
color: var(--theme-elevation-800);
border-radius: $style-radius-m;
padding: base(0.5);
margin-bottom: $baseline;
&--has-action {
cursor: pointer;
text-decoration: none;
}
&--has-icon {
display: flex;
svg {
display: block;
}
}
&--type-default {
&.button--has-action {
&:hover {
background: var(--theme-elevation-900);
}
&:active {
background: var(--theme-elevation-950);
}
}
}
&--type-error {
background: var(--theme-error-100);
color: var(--theme-error-600);
svg {
@include color-svg(var(--theme-error-600));
&--has-action {
cursor: pointer;
text-decoration: none;
}
&.button--has-action {
&:hover {
background: var(--theme-error-200);
}
&--has-icon {
display: flex;
&:active {
background: var(--theme-error-300);
svg {
display: block;
}
}
}
&--type-success {
background: var(--theme-success-100);
color: var(--theme-success-600);
&--type-default {
&.button--has-action {
&:hover {
background: var(--theme-elevation-900);
}
&.button--has-action {
&:hover {
background: var(--theme-success-200);
&:active {
background: var(--theme-elevation-950);
}
}
}
&--type-error {
background: var(--theme-error-100);
color: var(--theme-error-600);
svg {
@include color-svg(var(--theme-error-600));
}
&:active {
background: var(--theme-success-200);
&.button--has-action {
&:hover {
background: var(--theme-error-200);
}
&:active {
background: var(--theme-error-300);
}
}
}
&--type-success {
background: var(--theme-success-100);
color: var(--theme-success-600);
&.button--has-action {
&:hover {
background: var(--theme-success-200);
}
&:active {
background: var(--theme-success-200);
}
}
}
}

View File

@@ -1,59 +1,61 @@
@import '../../../scss/styles.scss';
.bulk-upload--actions-bar {
display: flex;
padding-inline: var(--gutter-h);
align-items: center;
border-bottom: 1px solid var(--theme-border-color);
position: sticky;
z-index: 1;
top: 0;
background-color: var(--theme-bg);
height: var(--doc-controls-height);
&__navigation {
@layer payload-default {
.bulk-upload--actions-bar {
display: flex;
gap: var(--base);
padding-inline: var(--gutter-h);
align-items: center;
width: 100%;
}
border-bottom: 1px solid var(--theme-border-color);
position: sticky;
z-index: 1;
top: 0;
background-color: var(--theme-bg);
height: var(--doc-controls-height);
&__locationText {
font-variant-numeric: tabular-nums;
margin: 0;
}
&__controls {
display: flex;
gap: calc(var(--base) / 2);
.btn {
background-color: var(--theme-elevation-100);
width: calc(var(--base) * 1.2);
height: calc(var(--base) * 1.2);
&:hover {
background-color: var(--theme-elevation-200);
}
&__label {
display: flex;
}
}
}
&__buttons {
display: flex;
gap: var(--base);
margin-left: auto;
}
@include mid-break {
&__navigation {
justify-content: space-between;
display: flex;
gap: var(--base);
align-items: center;
width: 100%;
}
&__saveButtons {
display: none;
&__locationText {
font-variant-numeric: tabular-nums;
margin: 0;
}
&__controls {
display: flex;
gap: calc(var(--base) / 2);
.btn {
background-color: var(--theme-elevation-100);
width: calc(var(--base) * 1.2);
height: calc(var(--base) * 1.2);
&:hover {
background-color: var(--theme-elevation-200);
}
&__label {
display: flex;
}
}
}
&__buttons {
display: flex;
gap: var(--base);
margin-left: auto;
}
@include mid-break {
&__navigation {
justify-content: space-between;
}
&__saveButtons {
display: none;
}
}
}
}

View File

@@ -1,28 +1,30 @@
.bulk-upload--add-files {
height: 100%;
display: flex;
flex-direction: column;
&__dropArea {
@layer payload-default {
.bulk-upload--add-files {
height: 100%;
padding: calc(var(--base) * 2) var(--gutter-h);
}
.dropzone {
flex-direction: column;
justify-content: center;
display: flex;
gap: var(--base);
background-color: var(--theme-elevation-50);
flex-direction: column;
p {
&__dropArea {
height: 100%;
padding: calc(var(--base) * 2) var(--gutter-h);
}
.dropzone {
flex-direction: column;
justify-content: center;
display: flex;
gap: var(--base);
background-color: var(--theme-elevation-50);
p {
margin: 0;
}
}
&__dragAndDropText {
margin: 0;
text-transform: lowercase;
align-self: center;
}
}
&__dragAndDropText {
margin: 0;
text-transform: lowercase;
align-self: center;
}
}

View File

@@ -1,23 +1,25 @@
@import '../../../scss/styles.scss';
.bulk-upload--file-manager {
display: flex;
height: 100%;
width: 100%;
overflow: hidden;
&__editView {
flex-grow: 1;
@layer payload-default {
.bulk-upload--file-manager {
display: flex;
height: 100%;
max-height: 100%;
overflow: auto;
}
@include mid-break {
flex-direction: column-reverse;
width: 100%;
overflow: hidden;
&__editView {
flex-grow: 1;
height: 100%;
max-height: 100%;
overflow: auto;
}
@include mid-break {
flex-direction: column-reverse;
&__editView {
flex-grow: 1;
}
}
}
}

View File

@@ -1,27 +1,29 @@
.drawer-close-button {
--size: calc(var(--base) * 1.2);
border: 0;
background-color: transparent;
padding: 0;
cursor: pointer;
overflow: hidden;
direction: ltr;
display: flex;
align-items: center;
justify-content: center;
width: var(--size);
height: var(--size);
@layer payload-default {
.drawer-close-button {
--size: calc(var(--base) * 1.2);
border: 0;
background-color: transparent;
padding: 0;
cursor: pointer;
overflow: hidden;
direction: ltr;
display: flex;
align-items: center;
justify-content: center;
width: var(--size);
height: var(--size);
svg {
margin: calc(-1 * var(--size));
width: calc(var(--size) * 2);
height: calc(var(--size) * 2);
svg {
margin: calc(-1 * var(--size));
width: calc(var(--size) * 2);
height: calc(var(--size) * 2);
position: relative;
position: relative;
.stroke {
stroke-width: 1px;
vector-effect: non-scaling-stroke;
.stroke {
stroke-width: 1px;
vector-effect: non-scaling-stroke;
}
}
}
}

View File

@@ -1,9 +1,11 @@
@import '../../../scss/styles.scss';
.collection-edit {
width: 100%;
@layer payload-default {
.collection-edit {
width: 100%;
&__form {
height: auto;
&__form {
height: auto;
}
}
}

View File

@@ -1,277 +1,279 @@
@import '../../../scss/styles.scss';
.file-selections {
--file-gutter-h: calc(var(--gutter-h) / 4);
border-right: 1px solid var(--theme-border-color);
padding: 0;
display: flex;
flex-direction: column;
width: 300px;
overflow: auto;
max-height: 100%;
&__header {
position: sticky;
top: 0;
margin-top: var(--base);
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
background: var(--theme-bg);
flex-wrap: wrap;
p {
margin: 0;
}
}
&__headerTopRow {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--base);
width: 100%;
padding-block: var(--base);
padding-inline: var(--file-gutter-h);
}
&__header__text {
@layer payload-default {
.file-selections {
--file-gutter-h: calc(var(--gutter-h) / 4);
border-right: 1px solid var(--theme-border-color);
padding: 0;
display: flex;
flex-direction: column;
.error-pill {
align-self: flex-start;
}
}
&__filesContainer {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
margin-top: calc(var(--base) / 2);
width: 100%;
padding-inline: var(--file-gutter-h);
.shimmer-effect {
border-radius: var(--style-radius-m);
}
}
&__fileRowContainer {
--rowPadding: calc(var(--base) / 4);
position: relative;
&:last-child {
margin-bottom: calc(var(--base) / 4);
}
}
&__fileRow {
@include btn-reset;
display: flex;
padding: var(--rowPadding);
align-items: center;
gap: calc(var(--base) / 2);
border-radius: var(--style-radius-m);
max-width: 100%;
cursor: pointer;
width: 100%;
&:hover {
background-color: var(--theme-elevation-100);
}
.thumbnail {
width: base(1.2);
height: base(1.2);
flex-shrink: 0;
object-fit: cover;
border-radius: var(--style-radius-s);
}
p {
margin: 0;
}
}
&__fileDetails {
display: flex;
flex-direction: column;
min-width: 0;
}
&__fileRowContainer--active {
.file-selections__fileRow {
background-color: var(--theme-elevation-100);
}
.file-selections__remove {
.icon--x {
opacity: 1;
}
}
}
&__fileRowContainer--error {
.file-selections__fileRow {
background-color: var(--theme-error-100);
}
&.file-selections__fileRowContainer--active .file-selections__fileRow,
.file-selections__fileRow:hover {
background-color: var(--theme-error-200);
}
.file-selections__remove--overlay:hover {
background-color: var(--theme-error-50);
.icon--x {
opacity: 1;
}
}
}
&__errorCount {
margin-left: auto;
position: absolute;
transform: translate(50%, -50%);
top: 0;
right: 0;
}
&__fileName {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&__fileSize {
font-size: calc(var(--base) / 2);
color: var(--theme-elvation-400);
flex-shrink: 0;
}
&__remove {
@include btn-reset;
margin: 0;
margin-left: auto;
.icon--x {
opacity: 0.75;
}
}
&__remove--underlay {
pointer-events: none;
opacity: 0;
}
&__remove--overlay {
position: absolute;
transform: translateY(-50%);
top: 50%;
bottom: 50%;
right: var(--rowPadding);
height: 20px;
border-radius: var(--style-radius-m);
cursor: pointer;
&:hover {
background-color: var(--theme-elevation-200);
}
}
&__header__actions {
display: flex;
gap: var(--base);
}
&__toggler {
display: none;
margin: 0;
padding-block: 0;
}
&__header__mobileDocActions {
display: none;
}
&__animateWrapper {
width: 300px;
overflow: auto;
}
&__mobileBlur {
@include blur-bg;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 100ms cubic-bezier(0, 0.2, 0.2, 1);
}
&__showingFiles {
.file-selections__mobileBlur {
opacity: 1;
}
}
@include mid-break {
--file-gutter-h: var(--gutter-h);
flex-direction: column-reverse;
width: 100%;
position: sticky;
bottom: 0;
flex-shrink: 0;
&__showingFiles {
z-index: 2;
}
&__filesContainer {
@include blur-bg;
}
&__fileRowContainer {
z-index: 1;
}
max-height: 100%;
&__header {
margin-top: 0;
position: sticky;
top: 0;
margin-top: var(--base);
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
background: var(--theme-bg);
flex-wrap: wrap;
p {
margin: 0;
}
}
&__headerTopRow {
border-top: 1px solid var(--theme-border-color);
padding-block: calc(var(--base) * 0.8);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--base);
width: 100%;
padding-block: var(--base);
padding-inline: var(--file-gutter-h);
}
&__header__mobileDocActions {
position: relative;
&__header__text {
display: flex;
width: 100%;
padding-block: calc(var(--base) * 0.8);
padding-inline: var(--file-gutter-h);
border-top: 1px solid var(--theme-border-color);
flex-direction: column;
> div {
display: flex;
justify-content: flex-end;
width: 100%;
button {
flex: 0.5;
.error-pill {
align-self: flex-start;
}
}
&__filesContainer {
display: flex;
flex-direction: column;
gap: calc(var(--base) / 4);
margin-top: calc(var(--base) / 2);
width: 100%;
padding-inline: var(--file-gutter-h);
.shimmer-effect {
border-radius: var(--style-radius-m);
}
}
&__fileRowContainer {
--rowPadding: calc(var(--base) / 4);
position: relative;
&:last-child {
margin-bottom: calc(var(--base) / 4);
}
}
&__fileRow {
@include btn-reset;
display: flex;
padding: var(--rowPadding);
align-items: center;
gap: calc(var(--base) / 2);
border-radius: var(--style-radius-m);
max-width: 100%;
cursor: pointer;
width: 100%;
&:hover {
background-color: var(--theme-elevation-100);
}
.thumbnail {
width: base(1.2);
height: base(1.2);
flex-shrink: 0;
object-fit: cover;
border-radius: var(--style-radius-s);
}
p {
margin: 0;
}
}
&__fileDetails {
display: flex;
flex-direction: column;
min-width: 0;
}
&__fileRowContainer--active {
.file-selections__fileRow {
background-color: var(--theme-elevation-100);
}
.file-selections__remove {
.icon--x {
opacity: 1;
}
}
}
&__toggler {
padding-right: 0;
display: block;
&__fileRowContainer--error {
.file-selections__fileRow {
background-color: var(--theme-error-100);
}
&.file-selections__fileRowContainer--active .file-selections__fileRow,
.file-selections__fileRow:hover {
background-color: var(--theme-error-200);
}
.file-selections__remove--overlay:hover {
background-color: var(--theme-error-50);
.icon--x {
opacity: 1;
}
}
}
.btn {
&__errorCount {
margin-left: auto;
position: absolute;
transform: translate(50%, -50%);
top: 0;
right: 0;
}
&__fileName {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&__fileSize {
font-size: calc(var(--base) / 2);
color: var(--theme-elvation-400);
flex-shrink: 0;
}
&__remove {
@include btn-reset;
margin: 0;
margin-left: auto;
.icon--x {
opacity: 0.75;
}
}
&__remove--underlay {
pointer-events: none;
opacity: 0;
}
&__remove--overlay {
position: absolute;
transform: translateY(-50%);
top: 50%;
bottom: 50%;
right: var(--rowPadding);
height: 20px;
border-radius: var(--style-radius-m);
cursor: pointer;
&:hover {
background-color: var(--theme-elevation-200);
}
}
&__header__actions {
display: flex;
gap: var(--base);
}
&__toggler {
display: none;
margin: 0;
padding-block: 0;
}
&__header__mobileDocActions {
display: none;
}
&__animateWrapper {
overflow: auto;
}
&__mobileBlur {
@include blur-bg;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 100ms cubic-bezier(0, 0.2, 0.2, 1);
}
&__showingFiles {
.file-selections__mobileBlur {
opacity: 1;
}
}
@include mid-break {
--file-gutter-h: var(--gutter-h);
flex-direction: column-reverse;
width: 100%;
position: sticky;
bottom: 0;
flex-shrink: 0;
&__showingFiles {
z-index: 2;
}
&__filesContainer {
@include blur-bg;
}
&__fileRowContainer {
z-index: 1;
}
&__header {
margin-top: 0;
}
&__headerTopRow {
border-top: 1px solid var(--theme-border-color);
padding-block: calc(var(--base) * 0.8);
}
&__header__mobileDocActions {
position: relative;
display: flex;
width: 100%;
padding-block: calc(var(--base) * 0.8);
padding-inline: var(--file-gutter-h);
border-top: 1px solid var(--theme-border-color);
> div {
display: flex;
justify-content: flex-end;
width: 100%;
button {
flex: 0.5;
}
}
}
&__toggler {
padding-right: 0;
display: block;
}
.btn {
margin: 0;
}
}
}
}

View File

@@ -1,12 +1,14 @@
.bulk-upload--drawer-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: calc(var(--base) * 2.5) var(--gutter-h);
height: 48px;
border-bottom: 1px solid var(--theme-border-color);
@layer payload-default {
.bulk-upload--drawer-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: calc(var(--base) * 2.5) var(--gutter-h);
height: 48px;
border-bottom: 1px solid var(--theme-border-color);
h2 {
margin: 0;
h2 {
margin: 0;
}
}
}

View File

@@ -1,277 +1,279 @@
@import '../../scss/styles.scss';
a.btn {
display: inline-block;
}
@layer payload-default {
a.btn {
display: inline-block;
}
.btn--withPopup {
margin-block: 24px;
.btn {
margin: 0;
}
}
.btn--withPopup {
margin-block: 24px;
.btn {
margin: 0;
}
}
// colors
&--style-primary {
--color: var(--theme-elevation-0);
--bg-color: var(--theme-elevation-800);
--box-shadow: none;
--hover-bg: var(--theme-elevation-600);
--hover-color: var(--color);
.btn {
// colors
&--style-primary {
--color: var(--theme-elevation-0);
--bg-color: var(--theme-elevation-800);
--box-shadow: none;
--hover-bg: var(--theme-elevation-600);
--hover-color: var(--color);
&.btn--disabled {
--bg-color: var(--theme-elevation-200);
--color: var(--theme-elevation-800);
--hover-bg: var(--bg-color);
--hover-color: var(--color);
}
}
&.btn--disabled {
--bg-color: var(--theme-elevation-200);
&--style-secondary {
--color: var(--theme-text);
--bg-color: transparent;
--box-shadow: inset 0 0 0 1px var(--theme-elevation-800);
--hover-color: var(--theme-elevation-600);
--hover-box-shadow: inset 0 0 0 1px var(--theme-elevation-400);
&.btn--disabled {
--color: var(--theme-elevation-200);
--box-shadow: inset 0 0 0 1px var(--theme-elevation-200);
--hover-box-shadow: inset 0 0 0 1px var(--theme-elevation-200);
--hover-color: var(--color);
}
}
&--style-pill {
--bg-color: var(--theme-elevation-150);
--color: var(--theme-elevation-800);
--hover-bg: var(--bg-color);
--hover-color: var(--color);
--hover-bg: var(--theme-elevation-100);
&.btn--disabled {
--color: var(--theme-elevation-600);
--hover-bg: var(--bg-color);
--hover-color: var(--color);
}
}
}
&--style-secondary {
--color: var(--theme-text);
--bg-color: transparent;
--box-shadow: inset 0 0 0 1px var(--theme-elevation-800);
--hover-color: var(--theme-elevation-600);
--hover-box-shadow: inset 0 0 0 1px var(--theme-elevation-400);
.btn--withPopup {
.popup-button {
color: var(--color, inherit);
background-color: var(--bg-color);
box-shadow: var(--box-shadow);
border-radius: $style-radius-m;
border-left: 1px solid var(--theme-bg);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
align-items: center;
&.btn--disabled {
--color: var(--theme-elevation-200);
--box-shadow: inset 0 0 0 1px var(--theme-elevation-200);
--hover-box-shadow: inset 0 0 0 1px var(--theme-elevation-200);
--hover-color: var(--color);
&:hover,
&:focus-visible,
&:focus,
&:active {
background-color: var(--hover-bg);
color: var(--hover-color);
box-shadow: var(--hover-box-shadow);
}
}
}
&--style-pill {
--bg-color: var(--theme-elevation-150);
--color: var(--theme-elevation-800);
--hover-color: var(--color);
--hover-bg: var(--theme-elevation-100);
&.btn--disabled {
--color: var(--theme-elevation-600);
--hover-bg: var(--bg-color);
--hover-color: var(--color);
}
}
}
.btn--withPopup {
.popup-button {
color: var(--color, inherit);
background-color: var(--bg-color);
box-shadow: var(--box-shadow);
border-radius: $style-radius-m;
border-left: 1px solid var(--theme-bg);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
align-items: center;
.btn,
.btn--withPopup .btn {
&:hover,
&:focus-visible,
&:focus,
&:active {
background-color: var(--hover-bg);
color: var(--hover-color);
box-shadow: var(--hover-box-shadow);
background-color: var(--hover-bg);
}
}
}
.btn,
.btn--withPopup .btn {
&:hover,
&:focus-visible,
&:focus,
&:active {
color: var(--hover-color);
box-shadow: var(--hover-box-shadow);
background-color: var(--hover-bg);
}
}
.btn--disabled,
.btn--disabled .btn {
cursor: not-allowed;
}
.btn {
border-radius: $style-radius-s;
font-size: var(--base-body-size);
margin-block: base(1.2);
line-height: base(1.2);
border: 0;
cursor: pointer;
font-weight: normal;
text-decoration: none;
transition-property: border, color, box-shadow, background;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
color: var(--color, inherit);
background-color: var(--bg-color, transparent);
box-shadow: var(--box-shadow, none);
.icon {
@include color-svg(var(--color, currentColor));
width: 100%;
height: 100%;
.btn--disabled,
.btn--disabled .btn {
cursor: not-allowed;
}
&__content {
display: flex;
align-items: center;
justify-content: center;
}
.btn {
border-radius: $style-radius-s;
font-size: var(--base-body-size);
margin-block: base(1.2);
line-height: base(1.2);
border: 0;
cursor: pointer;
font-weight: normal;
text-decoration: none;
transition-property: border, color, box-shadow, background;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
&__icon {
width: base(1.2);
height: base(1.2);
display: flex;
align-items: center;
justify-content: center;
border: 1px solid;
border-radius: 100%;
padding: base(0.1);
color: inherit;
color: var(--color, inherit);
background-color: var(--bg-color, transparent);
box-shadow: var(--box-shadow, none);
.icon {
@include color-svg(var(--color, currentColor));
width: 100%;
height: 100%;
}
&.btn--size-small {
padding: base(0.2);
&__content {
display: flex;
align-items: center;
justify-content: center;
}
}
&--withPopup {
display: flex;
}
&__icon {
width: base(1.2);
height: base(1.2);
display: flex;
align-items: center;
justify-content: center;
border: 1px solid;
border-radius: 100%;
padding: base(0.1);
color: inherit;
&--has-tooltip {
position: relative;
}
.icon {
width: 100%;
height: 100%;
}
&--icon-style-without-border {
.btn__icon {
border: none;
}
}
&--icon-style-none {
.btn__icon {
border: none;
}
}
&--size-small {
padding: 0 base(0.4);
&.btn--icon-position-left {
padding-inline-start: base(0.1);
padding-inline-end: base(0.4);
.btn__content {
flex-direction: row-reverse;
&.btn--size-small {
padding: base(0.2);
}
}
&.btn--icon-position-right {
padding-inline-start: base(0.4);
padding-inline-end: base(0.1);
&--withPopup {
display: flex;
}
}
&--size-medium {
padding: base(0.2) base(0.6);
&--has-tooltip {
position: relative;
}
&.btn--icon-position-left {
padding-inline-start: base(0.4);
padding-inline-end: base(0.6);
.btn__content {
gap: base(0.2);
flex-direction: row-reverse;
&--icon-style-without-border {
.btn__icon {
border: none;
}
}
&.btn--icon-position-right {
padding-inline-start: base(0.6);
padding-inline-end: base(0.4);
.btn__content {
gap: base(0.2);
}
}
}
&--size-large {
padding: base(0.4) base(0.8);
&.btn--icon-position-left {
padding-inline-start: base(0.6);
padding-inline-end: base(0.8);
.btn__content {
gap: base(0.4);
flex-direction: row-reverse;
&--icon-style-none {
.btn__icon {
border: none;
}
}
&.btn--icon-position-right {
padding-inline-start: base(0.8);
padding-inline-end: base(0.6);
&--size-small {
padding: 0 base(0.4);
&.btn--icon-position-left {
padding-inline-start: base(0.1);
padding-inline-end: base(0.4);
.btn__content {
flex-direction: row-reverse;
}
}
&.btn--icon-position-right {
padding-inline-start: base(0.4);
padding-inline-end: base(0.1);
}
}
&--size-medium {
padding: base(0.2) base(0.6);
&.btn--icon-position-left {
padding-inline-start: base(0.4);
padding-inline-end: base(0.6);
.btn__content {
gap: base(0.2);
flex-direction: row-reverse;
}
}
&.btn--icon-position-right {
padding-inline-start: base(0.6);
padding-inline-end: base(0.4);
.btn__content {
gap: base(0.2);
}
}
}
&--size-large {
padding: base(0.4) base(0.8);
&.btn--icon-position-left {
padding-inline-start: base(0.6);
padding-inline-end: base(0.8);
.btn__content {
gap: base(0.4);
flex-direction: row-reverse;
}
}
&.btn--icon-position-right {
padding-inline-start: base(0.8);
padding-inline-end: base(0.6);
.btn__content {
gap: base(0.4);
}
}
}
&--withPopup .btn {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
&--style-icon-label,
&--style-icon-label.btn--icon-position-left,
&--style-icon-label.btn--icon-position-right {
padding: 0;
font-weight: 600;
.btn__content {
gap: base(0.4);
}
}
}
&--withPopup .btn {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
&--style-icon-label,
&--style-icon-label.btn--icon-position-left,
&--style-icon-label.btn--icon-position-right {
padding: 0;
font-weight: 600;
.btn__content {
gap: base(0.4);
}
}
&--style-none {
padding: 0;
}
&:focus:not(:focus-visible) {
.btn__icon {
@include color-svg(var(--theme-elevation-800));
background: var(--theme-elevation-150);
&--style-none {
padding: 0;
}
outline: none;
}
&:focus:not(:focus-visible) {
.btn__icon {
@include color-svg(var(--theme-elevation-800));
background: var(--theme-elevation-150);
}
&:active {
.btn__icon {
@include color-svg(var(--theme-elevation-0));
background: var(--theme-elevation-700);
outline: none;
}
}
&:focus-visible {
outline: var(--accessibility-outline);
outline-offset: var(--accessibility-outline-offset);
}
&:active {
.btn__icon {
@include color-svg(var(--theme-elevation-0));
background: var(--theme-elevation-700);
}
}
&.btn--disabled {
cursor: not-allowed;
&:focus-visible {
outline: var(--accessibility-outline);
outline-offset: var(--accessibility-outline-offset);
}
&.btn--disabled {
cursor: not-allowed;
}
}
}

View File

@@ -1,71 +1,73 @@
@import '../../scss/styles';
.card {
background: var(--theme-elevation-50);
padding: base(0.8);
width: 100%;
min-height: base(4);
position: relative;
border-radius: var(--style-radius-m);
border: 1px solid var(--theme-border-color);
transition-property: border, box-shadow, background;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
display: flex;
justify-content: space-between;
align-self: start;
gap: base(0.8);
&__title {
@extend %h5;
letter-spacing: 0;
font-weight: 600;
line-height: base(0.8);
@layer payload-default {
.card {
background: var(--theme-elevation-50);
padding: base(0.8);
width: 100%;
margin: base(0.1) 0;
}
&__actions {
min-height: base(4);
position: relative;
z-index: 2;
display: inline-flex;
.btn {
margin: 0;
flex-shrink: 0;
border-radius: var(--style-radius-m);
border: 1px solid var(--theme-border-color);
transition-property: border, box-shadow, background;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
display: flex;
justify-content: space-between;
align-self: start;
gap: base(0.8);
&__title {
@extend %h5;
letter-spacing: 0;
font-weight: 600;
line-height: base(0.8);
width: 100%;
margin: base(0.1) 0;
}
.btn__icon {
border: 1px solid var(--theme-border-color);
transition-property: border, box-shadow, color, background;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
&__actions {
position: relative;
z-index: 2;
display: inline-flex;
.btn {
margin: 0;
flex-shrink: 0;
}
&:hover {
border: 1px solid var(--theme-elevation-500);
background-color: var(--theme-elevation-0);
color: currentColor;
@include shadow-sm;
.btn__icon {
border: 1px solid var(--theme-border-color);
transition-property: border, box-shadow, color, background;
transition-duration: 100ms;
transition-timing-function: cubic-bezier(0, 0.2, 0.2, 1);
&:hover {
border: 1px solid var(--theme-elevation-500);
background-color: var(--theme-elevation-0);
color: currentColor;
@include shadow-sm;
}
}
}
}
&--has-onclick {
cursor: pointer;
&--has-onclick {
cursor: pointer;
&:hover {
background: var(--theme-elevation-50);
border: 1px solid var(--theme-elevation-250);
box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05);
&:hover {
background: var(--theme-elevation-50);
border: 1px solid var(--theme-elevation-250);
box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05);
}
}
&__click {
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
position: absolute;
margin: 0;
}
}
&__click {
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
position: absolute;
margin: 0;
}
}

View File

@@ -1,21 +1,23 @@
@import '../../scss/styles';
.code-editor {
direction: ltr;
@include formInput;
height: auto;
padding: 0;
@layer payload-default {
.code-editor {
direction: ltr;
@include formInput;
height: auto;
padding: 0;
.monaco-editor {
.view-overlays .current-line {
max-width: calc(100% - 14px);
border-width: 0px;
}
&:focus-within {
.monaco-editor {
.view-overlays .current-line {
border-right: 0;
border-width: 1px;
max-width: calc(100% - 14px);
border-width: 0px;
}
&:focus-within {
.view-overlays .current-line {
border-right: 0;
border-width: 1px;
}
}
}
}

View File

@@ -1,158 +1,160 @@
@import '../../scss/styles.scss';
.collapsible {
--toggle-pad-h: #{base(0.75)};
--toggle-pad-v: #{base(0.6)};
@layer payload-default {
.collapsible {
--toggle-pad-h: #{base(0.75)};
--toggle-pad-v: #{base(0.6)};
border-radius: $style-radius-m;
border-radius: $style-radius-m;
&__toggle-wrap {
position: relative;
padding: base(0.4) base(0.4) base(0.4) base(0.8);
display: flex;
align-items: center;
justify-content: space-between;
background: var(--theme-elevation-50);
line-height: base(1.2);
gap: base(0.2);
border-top-right-radius: $style-radius-m;
border-top-left-radius: $style-radius-m;
width: 100%;
&:hover {
background: var(--theme-elevation-100);
}
&:has(.collapsible__drag) {
padding-inline-start: base(0.4);
}
}
&__drag {
display: flex;
opacity: 0.5;
top: var(--toggle-pad-v);
width: base(1.2);
height: base(1.2);
padding: base(0.1);
icon {
&__toggle-wrap {
position: relative;
padding: base(0.4) base(0.4) base(0.4) base(0.8);
display: flex;
align-items: center;
justify-content: space-between;
background: var(--theme-elevation-50);
line-height: base(1.2);
gap: base(0.2);
border-top-right-radius: $style-radius-m;
border-top-left-radius: $style-radius-m;
width: 100%;
height: 100%;
}
}
&__toggle {
@extend %btn-reset;
@extend %body;
text-align: left;
cursor: pointer;
border-top-right-radius: $style-radius-m;
border-top-left-radius: $style-radius-m;
width: 100%;
height: 100%;
color: transparent;
position: absolute;
top: 0;
left: 0;
span {
user-select: none;
}
}
&--style-default {
border: 1px solid var(--theme-elevation-200);
&:hover {
border: 1px solid var(--theme-elevation-300);
}
> .collapsible__toggle-wrap {
.row-label {
color: var(--theme-text);
}
}
}
&--style-error {
border: 1px solid var(--theme-error-400);
> .collapsible__toggle-wrap {
background-color: var(--theme-error-100);
&:hover {
background: var(--theme-error-150);
background: var(--theme-elevation-100);
}
.row-label {
color: var(--theme-error-950);
&:has(.collapsible__drag) {
padding-inline-start: base(0.4);
}
}
}
&__header-wrap {
top: 0;
right: base(3);
bottom: 0;
left: 0;
pointer-events: none;
width: 100%;
overflow: hidden;
max-width: 100%;
}
&__header-wrap--has-drag-handle {
left: base(1);
}
&--collapsed {
.collapsible__toggle-wrap {
border-bottom-right-radius: $style-radius-m;
border-bottom-left-radius: $style-radius-m;
}
}
&__actions-wrap {
pointer-events: none;
display: flex;
gap: base(0.2);
margin-inline-end: base(0.2);
}
&__actions {
pointer-events: all;
display: flex;
align-items: center;
justify-content: center;
width: base(1.2);
height: base(1.2);
&.icon {
&__drag {
display: flex;
opacity: 0.5;
top: var(--toggle-pad-v);
width: base(1.2);
height: base(1.2);
padding: base(0.1);
icon {
width: 100%;
height: 100%;
}
}
}
&__indicator {
display: flex;
align-items: center;
justify-content: center;
width: base(1.2);
height: base(1.2);
&__toggle {
@extend %btn-reset;
@extend %body;
text-align: left;
cursor: pointer;
border-top-right-radius: $style-radius-m;
border-top-left-radius: $style-radius-m;
width: 100%;
height: 100%;
color: transparent;
position: absolute;
top: 0;
left: 0;
&.icon {
padding: base(0.1);
span {
user-select: none;
}
}
}
&__content {
background-color: var(--theme-elevation-0);
border-bottom-left-radius: $style-radius-m;
border-bottom-right-radius: $style-radius-m;
padding: var(--base);
}
&--style-default {
border: 1px solid var(--theme-elevation-200);
&:hover {
border: 1px solid var(--theme-elevation-300);
}
> .collapsible__toggle-wrap {
.row-label {
color: var(--theme-text);
}
}
}
&--style-error {
border: 1px solid var(--theme-error-400);
> .collapsible__toggle-wrap {
background-color: var(--theme-error-100);
&:hover {
background: var(--theme-error-150);
}
.row-label {
color: var(--theme-error-950);
}
}
}
&__header-wrap {
top: 0;
right: base(3);
bottom: 0;
left: 0;
pointer-events: none;
width: 100%;
overflow: hidden;
max-width: 100%;
}
&__header-wrap--has-drag-handle {
left: base(1);
}
&--collapsed {
.collapsible__toggle-wrap {
border-bottom-right-radius: $style-radius-m;
border-bottom-left-radius: $style-radius-m;
}
}
&__actions-wrap {
pointer-events: none;
display: flex;
gap: base(0.2);
margin-inline-end: base(0.2);
}
&__actions {
pointer-events: all;
display: flex;
align-items: center;
justify-content: center;
width: base(1.2);
height: base(1.2);
&.icon {
padding: base(0.1);
}
}
&__indicator {
display: flex;
align-items: center;
justify-content: center;
width: base(1.2);
height: base(1.2);
&.icon {
padding: base(0.1);
}
}
@include small-break {
&__content {
padding: var(--gutter-h);
background-color: var(--theme-elevation-0);
border-bottom-left-radius: $style-radius-m;
border-bottom-right-radius: $style-radius-m;
padding: var(--base);
}
@include small-break {
&__content {
padding: var(--gutter-h);
}
}
}
}

View File

@@ -1,46 +1,48 @@
@import '../../scss/styles.scss';
.column-selector {
display: flex;
flex-wrap: wrap;
background: var(--theme-elevation-50);
padding: base(1) base(1) base(0.5);
@layer payload-default {
.column-selector {
display: flex;
flex-wrap: wrap;
background: var(--theme-elevation-50);
padding: base(1) base(1) base(0.5);
&__column {
margin-right: base(0.5);
margin-bottom: base(0.5);
background-color: transparent;
box-shadow: 0 0 0 1px var(--theme-elevation-150);
&__column {
margin-right: base(0.5);
margin-bottom: base(0.5);
background-color: transparent;
box-shadow: 0 0 0 1px var(--theme-elevation-150);
&.column-selector__column {
cursor: pointer;
&.column-selector__column {
cursor: pointer;
&:hover {
background-color: var(--theme-elevation-100);
&:hover {
background-color: var(--theme-elevation-100);
}
}
}
&.column-selector__column--active {
background-color: var(--theme-elevation-0);
box-shadow:
0 0px 1px 1px var(--theme-elevation-150),
0 2px 4px -2px rgba(0, 0, 0, 0.1);
&:hover {
&.column-selector__column--active {
background-color: var(--theme-elevation-0);
box-shadow:
0 0px 1px 1px var(--theme-elevation-250),
0 3px 4px -1px rgba(0, 0, 0, 0.1);
0 0px 1px 1px var(--theme-elevation-150),
0 2px 4px -2px rgba(0, 0, 0, 0.1);
&:hover {
background-color: var(--theme-elevation-0);
box-shadow:
0 0px 1px 1px var(--theme-elevation-250),
0 3px 4px -1px rgba(0, 0, 0, 0.1);
}
}
}
}
// TODO: delete this once all icons have been migrated to viewbox edge-to-edge
.pill__icon {
padding: 0;
}
// TODO: delete this once all icons have been migrated to viewbox edge-to-edge
.pill__icon {
padding: 0;
}
@include small-break {
padding: calc(var(--base) / 2) calc(var(--base) / 2) 0;
@include small-break {
padding: calc(var(--base) / 2) calc(var(--base) / 2) 0;
}
}
}

View File

@@ -1,26 +1,28 @@
@import '../../scss/styles.scss';
.copy-to-clipboard {
@extend %btn-reset;
position: relative;
cursor: pointer;
vertical-align: middle;
border-radius: 100%;
@layer payload-default {
.copy-to-clipboard {
@extend %btn-reset;
position: relative;
cursor: pointer;
vertical-align: middle;
border-radius: 100%;
textarea {
position: absolute;
opacity: 0;
z-index: -1;
height: 0px;
width: 0px;
}
textarea {
position: absolute;
opacity: 0;
z-index: -1;
height: 0px;
width: 0px;
}
&:focus,
&:active {
outline: none;
}
&:focus,
&:active {
outline: none;
}
&:focus-visible {
outline: var(--accessibility-outline);
&:focus-visible {
outline: var(--accessibility-outline);
}
}
}

View File

@@ -2,386 +2,388 @@
$cal-icon-width: 18px;
[dir='rtl'] {
.date-time-picker {
.react-datepicker__input-container input {
padding-right: base(3.4);
@layer payload-default {
[dir='rtl'] {
.date-time-picker {
.react-datepicker__input-container input {
padding-right: base(3.4);
}
}
}
}
.date-time-picker {
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box,
.react-datepicker__time-container {
width: 120px;
}
.date-time-picker {
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box,
.react-datepicker__time-container {
width: 120px;
}
&__icon-wrap {
position: relative;
z-index: 1;
}
&__icon-wrap {
position: relative;
z-index: 1;
}
.icon--calendar,
&__clear-button {
position: absolute;
}
.icon--calendar,
&__clear-button {
position: absolute;
}
.icon--calendar,
.icon--x {
@include color-svg(var(--theme-elevation-800));
height: auto;
}
.icon--calendar,
.icon--x {
@include color-svg(var(--theme-elevation-800));
height: auto;
}
&__clear-button {
top: base(0.5);
right: base(2);
}
&__clear-button {
top: base(0.5);
right: base(2);
}
.icon--calendar {
top: base(0.625);
right: base(0.75);
width: $cal-icon-width;
pointer-events: none;
}
.icon--calendar {
top: base(0.625);
right: base(0.75);
width: $cal-icon-width;
pointer-events: none;
}
.icon--x {
width: base(1);
}
.icon--x {
width: base(1);
}
&__clear-button {
appearance: none;
background-color: transparent;
border: none;
outline: none;
padding: 0;
cursor: pointer;
}
&__clear-button {
appearance: none;
background-color: transparent;
border: none;
outline: none;
padding: 0;
cursor: pointer;
}
&__appearance--timeOnly {
.react-datepicker {
width: 100%;
&__appearance--timeOnly {
.react-datepicker {
width: 100%;
&__month-container,
&__navigation--previous,
&__navigation--next {
display: none;
visibility: hidden;
}
&__month-container,
&__navigation--previous,
&__navigation--next {
display: none;
visibility: hidden;
}
&-popper,
&__time-container,
&__time-box {
width: base(6);
}
&-popper,
&__time-container,
&__time-box {
width: base(6);
}
&__time-container {
.react-datepicker__time {
.react-datepicker__time-box {
width: 100%;
&__time-container {
.react-datepicker__time {
.react-datepicker__time-box {
width: 100%;
}
}
}
}
}
}
.react-datepicker-wrapper {
display: block;
}
.react-datepicker-wrapper {
display: block;
}
.react-datepicker-wrapper,
.react-datepicker__input-container {
width: 100%;
}
.react-datepicker-wrapper,
.react-datepicker__input-container {
width: 100%;
}
.react-datepicker__input-container input {
@include formInput;
padding-right: calc(#{base(0.75)} + #{$cal-icon-width});
}
&--has-error {
.react-datepicker__input-container input {
background-color: var(--theme-error-200);
@include formInput;
padding-right: calc(#{base(0.75)} + #{$cal-icon-width});
}
}
.react-datepicker {
@include shadow-lg;
border: 1px solid var(--theme-elevation-100);
background: var(--theme-input-bg);
display: inline-flex;
font-family: var(--font-body);
font-weight: 100;
border-radius: 0;
color: var(--theme-elevation-800);
&--has-error {
.react-datepicker__input-container input {
background-color: var(--theme-error-200);
}
}
&__header {
padding-top: 0;
text-transform: none;
text-align: center;
.react-datepicker {
@include shadow-lg;
border: 1px solid var(--theme-elevation-100);
background: var(--theme-input-bg);
display: inline-flex;
font-family: var(--font-body);
font-weight: 100;
border-radius: 0;
border: none;
background-color: var(--theme-input-bg);
color: var(--theme-elevation-800);
&--time {
&__header {
padding-top: 0;
text-transform: none;
text-align: center;
border-radius: 0;
border: none;
background-color: var(--theme-input-bg);
&--time {
padding: 10px 0;
border-bottom: 1px solid var(--theme-elevation-150);
font-weight: 600;
}
}
&__navigation {
background: none;
line-height: 1.7rem;
text-align: center;
cursor: pointer;
position: absolute;
top: 10px;
width: 0;
padding: 0;
border: 0.45rem solid transparent;
z-index: 1;
height: 10px;
width: 10px;
text-indent: -999em;
overflow: hidden;
top: 15px;
&--next {
border-left-color: var(--theme-elevation-400);
&:focus {
border-left-color: var(--theme-elevation-500);
outline: none;
}
}
&--previous {
border-right-color: var(--theme-elevation-400);
&:focus {
border-right-color: var(--theme-elevation-500);
outline: none;
}
}
}
&__current-month,
&__header,
&-year-header,
&__day-name,
&__day,
&__time-name,
&-time__header {
color: var(--theme-elevation-1000);
}
&__current-month {
display: none;
}
&__header__dropdown,
&-year-header {
padding: 10px 0;
border-bottom: 1px solid var(--theme-elevation-150);
font-weight: 600;
}
}
&__navigation {
background: none;
line-height: 1.7rem;
text-align: center;
cursor: pointer;
position: absolute;
top: 10px;
width: 0;
padding: 0;
border: 0.45rem solid transparent;
z-index: 1;
height: 10px;
width: 10px;
text-indent: -999em;
overflow: hidden;
top: 15px;
&--next {
border-left-color: var(--theme-elevation-400);
&:focus {
border-left-color: var(--theme-elevation-500);
outline: none;
}
}
&--previous {
border-right-color: var(--theme-elevation-400);
&:focus {
border-right-color: var(--theme-elevation-500);
outline: none;
}
}
}
&__current-month,
&__header,
&-year-header,
&__day-name,
&__day,
&__time-name,
&-time__header {
color: var(--theme-elevation-1000);
}
&__current-month {
display: none;
}
&__header__dropdown,
&-year-header {
padding: 10px 0;
font-weight: bold;
}
&__month-container {
border-right: 1px solid var(--theme-elevation-150);
}
&__time,
&__time-container,
.react-datepicker__time-container .react-datepicker__time {
background: none;
}
&__time-container {
border-left: none;
}
&__month-text {
padding: base(0.3);
margin: base(0.15);
font-size: base(0.55);
&:hover {
background: var(--theme-elevation-100);
}
}
&__month-select,
&__year-select {
min-width: 70px;
border: none;
background: none;
outline: none;
cursor: pointer;
option {
background-color: var(--theme-elevation-50);
}
}
&__day-names {
background-color: var(--theme-elevation-100);
}
&__day {
box-shadow: inset 0px 0px 0px 1px var(--theme-elevation-150);
font-size: base(0.55);
&:hover {
background: var(--theme-elevation-100);
}
&:focus {
outline: 0;
background: var(--theme-elevation-400);
}
&--selected {
font-weight: bold;
&:focus {
background-color: var(--theme-elevation-150);
}
}
&--keyboard-selected {
color: var(--theme-elevation-0);
font-weight: bold;
&:focus {
background-color: var(--theme-elevation-150);
box-shadow:
inset 0px 0px 0px 1px var(--theme-elevation-800),
0px 0px 0px 1px var(--theme-elevation-800);
}
}
&--today {
font-weight: bold;
}
}
&__day,
&__day-name {
width: base(1.5);
margin: base(0.15);
line-height: base(1.25);
}
}
.react-datepicker-popper {
z-index: 10;
border: none;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list {
max-height: 100%;
}
.react-datepicker__day--keyboard-selected,
.react-datepicker__month-text--keyboard-selected,
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item--selected {
box-shadow: none;
background-color: var(--theme-elevation-150);
font-weight: bold;
color: var(--theme-elevation-800);
border-radius: 0;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item--selected,
.react-datepicker__day--selected,
.react-datepicker__day--in-selecting-range,
.react-datepicker__day--in-range,
.react-datepicker__month-text--selected,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__month-text--in-range {
box-shadow: none;
background-color: var(--theme-elevation-150);
color: var(--theme-elevation-800);
font-weight: bold;
border-radius: 0;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item:hover {
background: var(--theme-elevation-100);
}
.react-datepicker__day:hover,
.react-datepicker__month-text:hover {
border-radius: 0;
}
.react-datepicker__navigation--next--with-time:not(
.react-datepicker__navigation--next--with-today-button
) {
right: 130px;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item {
line-height: 20px;
font-size: base(0.5);
}
&__appearance--dayOnly,
&__appearance--monthOnly {
.react-datepicker {
&__month-container {
border-right: none;
border-right: 1px solid var(--theme-elevation-150);
}
}
}
@include small-break {
.react-datepicker {
flex-direction: column;
}
.react-datepicker__month-container {
border-right: 0;
}
.react-datepicker__time-container {
width: auto;
}
.react-datepicker__header--time {
background-color: var(--theme-elevation-100);
padding: 8px 0;
border-bottom: none;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {
height: 120px;
width: unset;
> ul {
height: 120px;
&__time,
&__time-container,
.react-datepicker__time-container .react-datepicker__time {
background: none;
}
&__time-container {
border-left: none;
}
&__month-text {
padding: base(0.3);
margin: base(0.15);
font-size: base(0.55);
&:hover {
background: var(--theme-elevation-100);
}
}
&__month-select,
&__year-select {
min-width: 70px;
border: none;
background: none;
outline: none;
cursor: pointer;
option {
background-color: var(--theme-elevation-50);
}
}
&__day-names {
background-color: var(--theme-elevation-100);
}
&__day {
box-shadow: inset 0px 0px 0px 1px var(--theme-elevation-150);
font-size: base(0.55);
&:hover {
background: var(--theme-elevation-100);
}
&:focus {
outline: 0;
background: var(--theme-elevation-400);
}
&--selected {
font-weight: bold;
&:focus {
background-color: var(--theme-elevation-150);
}
}
&--keyboard-selected {
color: var(--theme-elevation-0);
font-weight: bold;
&:focus {
background-color: var(--theme-elevation-150);
box-shadow:
inset 0px 0px 0px 1px var(--theme-elevation-800),
0px 0px 0px 1px var(--theme-elevation-800);
}
}
&--today {
font-weight: bold;
}
}
&__day,
&__day-name {
width: base(1.5);
margin: base(0.15);
line-height: base(1.25);
}
}
.react-datepicker-popper {
z-index: 10;
border: none;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list {
max-height: 100%;
}
.react-datepicker__day--keyboard-selected,
.react-datepicker__month-text--keyboard-selected,
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item--selected {
box-shadow: none;
background-color: var(--theme-elevation-150);
font-weight: bold;
color: var(--theme-elevation-800);
border-radius: 0;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item--selected,
.react-datepicker__day--selected,
.react-datepicker__day--in-selecting-range,
.react-datepicker__day--in-range,
.react-datepicker__month-text--selected,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__month-text--in-range {
box-shadow: none;
background-color: var(--theme-elevation-150);
color: var(--theme-elevation-800);
font-weight: bold;
border-radius: 0;
}
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item:hover {
background: var(--theme-elevation-100);
}
.react-datepicker__day:hover,
.react-datepicker__month-text:hover {
border-radius: 0;
}
.react-datepicker__navigation--next--with-time:not(
.react-datepicker__navigation--next--with-today-button
) {
right: 0px;
right: 130px;
}
&__input-wrapper {
.icon {
top: calc(50% - #{base(0.25)});
.react-datepicker__time-container
.react-datepicker__time
.react-datepicker__time-box
ul.react-datepicker__time-list
li.react-datepicker__time-list-item {
line-height: 20px;
font-size: base(0.5);
}
&__appearance--dayOnly,
&__appearance--monthOnly {
.react-datepicker {
&__month-container {
border-right: none;
}
}
}
@include small-break {
.react-datepicker {
flex-direction: column;
}
.react-datepicker__month-container {
border-right: 0;
}
.react-datepicker__time-container {
width: auto;
}
.react-datepicker__header--time {
background-color: var(--theme-elevation-100);
padding: 8px 0;
border-bottom: none;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {
height: 120px;
width: unset;
> ul {
height: 120px;
}
}
.react-datepicker__navigation--next--with-time:not(
.react-datepicker__navigation--next--with-today-button
) {
right: 0px;
}
&__input-wrapper {
.icon {
top: calc(50% - #{base(0.25)});
}
}
}
}

View File

@@ -1,42 +1,44 @@
@import '../../scss/styles.scss';
.delete-document {
@include blur-bg;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
&__toggle {
@extend %btn-reset;
}
&__wrapper {
z-index: 1;
position: relative;
@layer payload-default {
.delete-document {
@include blur-bg;
display: flex;
flex-direction: column;
gap: base(0.8);
padding: base(2);
max-width: base(36);
}
align-items: center;
justify-content: center;
height: 100%;
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
> * {
margin: 0;
&__toggle {
@extend %btn-reset;
}
}
&__controls {
display: flex;
gap: base(0.4);
&__wrapper {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
gap: base(0.8);
padding: base(2);
max-width: base(36);
}
.btn {
margin: 0;
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
> * {
margin: 0;
}
}
&__controls {
display: flex;
gap: base(0.4);
.btn {
margin: 0;
}
}
}
}

View File

@@ -1,38 +1,40 @@
@import '../../scss/styles.scss';
.delete-documents {
@include blur-bg;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
&__wrapper {
z-index: 1;
position: relative;
@layer payload-default {
.delete-documents {
@include blur-bg;
display: flex;
flex-direction: column;
gap: base(0.8);
padding: base(2);
max-width: base(36);
}
align-items: center;
justify-content: center;
height: 100%;
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
> * {
margin: 0;
&__wrapper {
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
gap: base(0.8);
padding: base(2);
max-width: base(36);
}
}
&__controls {
display: flex;
gap: base(0.4);
&__content {
display: flex;
flex-direction: column;
gap: base(0.4);
.btn {
margin: 0;
> * {
margin: 0;
}
}
&__controls {
display: flex;
gap: base(0.4);
.btn {
margin: 0;
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More