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:
@@ -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.
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
@layer payload-default, payload;
|
||||
|
||||
@import 'styles';
|
||||
@import './toasts.scss';
|
||||
@import './colors.scss';
|
||||
|
||||
@layer payload-default {
|
||||
:root {
|
||||
--base-px: 20;
|
||||
--base-body-size: 13;
|
||||
@@ -201,3 +204,4 @@ dialog {
|
||||
}
|
||||
|
||||
// @import '~payload-user-css'; TODO: re-enable this
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
:root {
|
||||
--color-base-0: rgb(255, 255, 255);
|
||||
--color-base-50: rgb(245, 245, 245);
|
||||
@@ -267,3 +268,4 @@ html[data-theme='dark'] {
|
||||
--theme-error-900: var(--color-error-100);
|
||||
--theme-error-950: var(--color-error-50);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
%btn-reset {
|
||||
border: 0;
|
||||
background: none;
|
||||
@@ -6,6 +7,7 @@
|
||||
padding: 0;
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin btn-reset {
|
||||
border: 0;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@import 'vars';
|
||||
@import 'queries';
|
||||
|
||||
@layer payload-default {
|
||||
.Toastify {
|
||||
.Toastify__toast-container {
|
||||
left: base(5);
|
||||
@@ -57,3 +58,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import './styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.payload-toast-container {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@@ -140,3 +141,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/////////////////////////////
|
||||
// HEADINGS
|
||||
/////////////////////////////
|
||||
|
||||
@layer payload-default {
|
||||
%h1,
|
||||
%h2,
|
||||
%h3,
|
||||
@@ -107,3 +107,4 @@
|
||||
color: var(--theme-elevation-800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.query-inspector {
|
||||
--string-color: #11b102;
|
||||
--number-color: #62c3f3;
|
||||
@@ -121,3 +122,4 @@ html[data-theme='light'] {
|
||||
--number-color: #2e9cd3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.payload-settings {
|
||||
position: relative;
|
||||
margin-bottom: calc(var(--base) * 2);
|
||||
@@ -44,3 +45,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.create-first-user {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -17,3 +18,4 @@
|
||||
.emailAndUsername {
|
||||
margin-bottom: var(--base);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.dashboard {
|
||||
width: 100%;
|
||||
--gap: var(--base);
|
||||
@@ -65,3 +66,4 @@
|
||||
--cols: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.auth-fields {
|
||||
padding: calc(var(--base) * 2);
|
||||
background: var(--theme-elevation-50);
|
||||
@@ -74,3 +75,4 @@
|
||||
.highlight {
|
||||
animation: highlight 10s;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.collection-edit {
|
||||
width: 100%;
|
||||
|
||||
@@ -19,3 +20,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.collection-list {
|
||||
width: 100%;
|
||||
|
||||
@@ -175,3 +176,4 @@
|
||||
margin-bottom: base(2.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.live-preview-iframe {
|
||||
background-color: white;
|
||||
border: 0;
|
||||
@@ -5,3 +6,4 @@
|
||||
height: 100%;
|
||||
transform-origin: top left;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.live-preview-window {
|
||||
background-color: var(--theme-bg);
|
||||
width: 60%;
|
||||
@@ -39,3 +40,4 @@
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.live-preview-toolbar-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -57,3 +58,4 @@
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.toolbar-input {
|
||||
width: 50px;
|
||||
height: var(--base);
|
||||
@@ -8,3 +9,4 @@
|
||||
border-radius: 2px;
|
||||
font-size: small;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.live-preview-toolbar {
|
||||
display: flex;
|
||||
background-color: var(--theme-bg);
|
||||
@@ -39,3 +40,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
@layer payload-default {
|
||||
.toolbar-area {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.live-preview {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
@@ -64,3 +65,4 @@ html[data-theme='dark'] {
|
||||
--gradient: linear-gradient(to left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.login__form {
|
||||
&__inputWrap {
|
||||
display: flex;
|
||||
@@ -6,3 +7,4 @@
|
||||
margin-bottom: calc(var(--base) / 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.login {
|
||||
&__brand {
|
||||
display: flex;
|
||||
@@ -6,3 +7,4 @@
|
||||
margin-bottom: calc(var(--base) * 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.logout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -21,3 +22,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.not-found {
|
||||
margin-top: var(--base);
|
||||
display: flex;
|
||||
@@ -53,3 +54,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.reset-password {
|
||||
&__wrap {
|
||||
z-index: 1;
|
||||
@@ -29,3 +30,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.unauthorized {
|
||||
margin-top: var(--base);
|
||||
|
||||
@@ -34,3 +35,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.verify {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -12,3 +13,4 @@
|
||||
margin-bottom: calc(var(--base) * 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.view-version {
|
||||
width: 100%;
|
||||
padding-bottom: var(--spacing-view-bottom);
|
||||
@@ -68,3 +69,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
@layer payload-default {
|
||||
.field-diff-label {
|
||||
margin-bottom: calc(var(--base) * 0.25);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.iterable-diff {
|
||||
margin-bottom: calc(var(--base) * 2);
|
||||
|
||||
@@ -32,3 +33,4 @@
|
||||
// margin: base(0.125) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.nested-diff {
|
||||
&__wrap--gutter {
|
||||
[dir='ltr'] & {
|
||||
@@ -10,3 +11,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.relationship-diff {
|
||||
&__locale-label {
|
||||
[dir='ltr'] & {
|
||||
@@ -11,3 +12,4 @@
|
||||
// border-radius: $style-radius-m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.select-diff {
|
||||
&__locale-label {
|
||||
[dir='ltr'] & {
|
||||
@@ -11,3 +12,4 @@
|
||||
// border-radius: $style-radius-m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.text-diff {
|
||||
&__locale-label {
|
||||
[dir='ltr'] & {
|
||||
@@ -11,3 +12,4 @@
|
||||
// border-radius: $style-radius-m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.render-field-diffs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -16,3 +17,4 @@
|
||||
gap: calc(var(--base) / 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../.././scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.restore-version {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -75,3 +76,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.compare-version {
|
||||
&__error-loading {
|
||||
border: 1px solid var(--theme-error-500);
|
||||
@@ -11,3 +12,4 @@
|
||||
margin-bottom: calc(var(--base) * 0.25);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.select-version-locales {
|
||||
flex-grow: 1;
|
||||
|
||||
@@ -5,3 +6,4 @@
|
||||
margin-bottom: calc(var(--base) * 0.25);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.versions {
|
||||
width: 100%;
|
||||
margin-bottom: calc(var(--base) * 2);
|
||||
@@ -106,3 +107,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@layer payload-default {
|
||||
.plugin-seo__field {
|
||||
.field-label {
|
||||
display: inline !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles';
|
||||
|
||||
@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;
|
||||
@@ -160,3 +161,4 @@ html[data-theme='dark'] {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.inline-block-container {
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -86,3 +87,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.test-recorder-output {
|
||||
margin: 20px auto 20px auto;
|
||||
width: 100%;
|
||||
@@ -49,3 +50,4 @@
|
||||
#test-recorder-button-snapshot {
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.tree-view-output {
|
||||
display: block;
|
||||
background: #222;
|
||||
@@ -76,3 +77,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.table-cell-action-button-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -71,3 +72,4 @@ html[data-theme='light'] {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.LexicalEditorTheme {
|
||||
&__table {
|
||||
border-collapse: collapse;
|
||||
@@ -180,3 +181,4 @@ html[data-theme='dark'] {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.LexicalEditorTheme__hr {
|
||||
padding: 2px 2px;
|
||||
border: none;
|
||||
@@ -18,3 +19,4 @@
|
||||
outline: 2px solid var(--theme-success-250);
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.link-editor {
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
@@ -84,3 +85,4 @@ html[data-theme='light'] {
|
||||
0px -4px 16px 0px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.lexical-relationship {
|
||||
@extend %body;
|
||||
@include shadow-sm;
|
||||
@@ -92,3 +93,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
html[data-theme='dark'] {
|
||||
.fixed-toolbar {
|
||||
&__dropdown-items {
|
||||
@@ -108,3 +109,4 @@ html[data-theme='dark'] {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.inline-toolbar-popup {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -54,3 +55,4 @@ html[data-theme='light'] {
|
||||
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.lexical-upload {
|
||||
@extend %body;
|
||||
@include shadow-sm;
|
||||
@@ -148,3 +149,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.rich-text-lexical {
|
||||
& > .field-error.tooltip {
|
||||
right: auto;
|
||||
@@ -29,3 +30,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.rich-text-lexical {
|
||||
.editor {
|
||||
position: relative;
|
||||
@@ -61,3 +62,4 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.slash-menu-popup {
|
||||
background: var(--theme-input-bg);
|
||||
width: 200px;
|
||||
@@ -65,3 +66,4 @@ html[data-theme='light'] {
|
||||
0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.add-block-menu {
|
||||
all: unset; // reset all default button styles
|
||||
border-radius: $style-radius-m;
|
||||
@@ -31,3 +32,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.draggable-block-menu {
|
||||
border-radius: $style-radius-m;
|
||||
padding: 0;
|
||||
@@ -74,3 +75,4 @@
|
||||
margin-bottom 0.08s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.LexicalEditorTheme {
|
||||
&__ltr {
|
||||
text-align: left;
|
||||
@@ -390,3 +391,4 @@ html[data-theme='dark'] {
|
||||
color: var(--theme-warning-600);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
$lexical-contenteditable-top-padding: 8px;
|
||||
$lexical-contenteditable-bottom-padding: 8px;
|
||||
|
||||
@layer payload-default {
|
||||
.ContentEditable__root {
|
||||
border: 0;
|
||||
font-size: 15px;
|
||||
@@ -90,3 +91,4 @@ html[data-theme='dark'] {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
@import './toasts.scss';
|
||||
@import './colors.scss';
|
||||
|
||||
@layer payload-default {
|
||||
:root {
|
||||
--base-px: 20;
|
||||
--base-body-size: 13;
|
||||
@@ -201,3 +202,4 @@ dialog {
|
||||
}
|
||||
|
||||
// @import '~payload-user-css'; TODO: re-enable this
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
:root {
|
||||
--color-base-0: rgb(255, 255, 255);
|
||||
--color-base-50: rgb(245, 245, 245);
|
||||
@@ -267,3 +268,4 @@ html[data-theme='dark'] {
|
||||
--theme-error-900: var(--color-error-100);
|
||||
--theme-error-950: var(--color-error-50);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
%btn-reset {
|
||||
border: 0;
|
||||
background: none;
|
||||
@@ -6,6 +7,7 @@
|
||||
padding: 0;
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin btn-reset {
|
||||
border: 0;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@import 'vars';
|
||||
@import 'queries';
|
||||
|
||||
@layer payload-default {
|
||||
.Toastify {
|
||||
.Toastify__toast-container {
|
||||
left: base(5);
|
||||
@@ -57,3 +57,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import './styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.payload-toast-container {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@@ -140,3 +141,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/////////////////////////////
|
||||
// HEADINGS
|
||||
/////////////////////////////
|
||||
|
||||
@layer payload-default {
|
||||
%h1,
|
||||
%h2,
|
||||
%h3,
|
||||
@@ -107,3 +107,4 @@
|
||||
color: var(--theme-elevation-800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@import '../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.rich-text__button {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
@@ -13,3 +13,4 @@
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.icon--indent-left {
|
||||
height: $baseline;
|
||||
width: $baseline;
|
||||
@@ -14,3 +15,4 @@
|
||||
fill: var(--theme-elevation-800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.icon--indent-right {
|
||||
height: $baseline;
|
||||
width: $baseline;
|
||||
@@ -14,3 +15,4 @@
|
||||
fill: var(--theme-elevation-800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.icon--link {
|
||||
width: $baseline;
|
||||
height: $baseline;
|
||||
@@ -9,3 +10,4 @@
|
||||
stroke-width: $style-stroke-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.icon--relationship {
|
||||
height: $baseline;
|
||||
width: $baseline;
|
||||
@@ -10,3 +11,4 @@
|
||||
stroke-width: $style-stroke-width-m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.icon--upload {
|
||||
height: $baseline;
|
||||
width: $baseline;
|
||||
@@ -9,3 +10,4 @@
|
||||
stroke: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@import '../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.rich-text {
|
||||
margin-bottom: base(2);
|
||||
display: flex;
|
||||
@@ -211,3 +211,4 @@ html[data-theme='dark'] {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@import 'styles';
|
||||
@import './toasts.scss';
|
||||
@import './colors.scss';
|
||||
|
||||
@layer payload-default {
|
||||
:root {
|
||||
--base-px: 20;
|
||||
--base-body-size: 13;
|
||||
@@ -201,3 +201,4 @@ dialog {
|
||||
}
|
||||
|
||||
// @import '~payload-user-css'; TODO: re-enable this
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
:root {
|
||||
--color-base-0: rgb(255, 255, 255);
|
||||
--color-base-50: rgb(245, 245, 245);
|
||||
@@ -267,3 +268,4 @@ html[data-theme='dark'] {
|
||||
--theme-error-900: var(--color-error-100);
|
||||
--theme-error-950: var(--color-error-50);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
%btn-reset {
|
||||
border: 0;
|
||||
background: none;
|
||||
@@ -6,6 +7,7 @@
|
||||
padding: 0;
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin btn-reset {
|
||||
border: 0;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@import 'vars';
|
||||
@import 'queries';
|
||||
|
||||
@layer payload-default {
|
||||
.Toastify {
|
||||
.Toastify__toast-container {
|
||||
left: base(5);
|
||||
@@ -57,3 +57,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@import './styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.payload-toast-container {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@@ -140,3 +140,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/////////////////////////////
|
||||
// HEADINGS
|
||||
/////////////////////////////
|
||||
|
||||
@layer payload-default {
|
||||
%h1,
|
||||
%h2,
|
||||
%h3,
|
||||
@@ -107,3 +107,4 @@
|
||||
color: var(--theme-elevation-800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.relationship-add-new {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
@@ -40,3 +41,4 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.app-header {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@@ -192,3 +193,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.array-actions {
|
||||
&__button {
|
||||
@extend %btn-reset;
|
||||
@@ -31,3 +32,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.autosave {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.banner {
|
||||
font-size: 1rem;
|
||||
line-height: base(1);
|
||||
@@ -70,3 +71,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.bulk-upload--actions-bar {
|
||||
display: flex;
|
||||
padding-inline: var(--gutter-h);
|
||||
@@ -57,3 +58,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.bulk-upload--add-files {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -26,3 +27,4 @@
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.bulk-upload--file-manager {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
@@ -21,3 +22,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.drawer-close-button {
|
||||
--size: calc(var(--base) * 1.2);
|
||||
border: 0;
|
||||
@@ -25,3 +26,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.collection-edit {
|
||||
width: 100%;
|
||||
|
||||
@@ -7,3 +8,4 @@
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.file-selections {
|
||||
--file-gutter-h: calc(var(--gutter-h) / 4);
|
||||
border-right: 1px solid var(--theme-border-color);
|
||||
@@ -275,3 +276,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@layer payload-default {
|
||||
.bulk-upload--drawer-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -10,3 +11,4 @@
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
a.btn {
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -275,3 +276,4 @@ a.btn {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.card {
|
||||
background: var(--theme-elevation-50);
|
||||
padding: base(0.8);
|
||||
@@ -69,3 +70,4 @@
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles';
|
||||
|
||||
@layer payload-default {
|
||||
.code-editor {
|
||||
direction: ltr;
|
||||
@include formInput;
|
||||
@@ -20,3 +21,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.collapsible {
|
||||
--toggle-pad-h: #{base(0.75)};
|
||||
--toggle-pad-v: #{base(0.6)};
|
||||
@@ -156,3 +157,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.column-selector {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -44,3 +45,4 @@
|
||||
padding: calc(var(--base) / 2) calc(var(--base) / 2) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.copy-to-clipboard {
|
||||
@extend %btn-reset;
|
||||
position: relative;
|
||||
@@ -24,3 +25,4 @@
|
||||
outline: var(--accessibility-outline);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
$cal-icon-width: 18px;
|
||||
|
||||
@layer payload-default {
|
||||
[dir='rtl'] {
|
||||
.date-time-picker {
|
||||
.react-datepicker__input-container input {
|
||||
@@ -386,3 +387,4 @@ $cal-icon-width: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.delete-document {
|
||||
@include blur-bg;
|
||||
display: flex;
|
||||
@@ -40,3 +41,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@import '../../scss/styles.scss';
|
||||
|
||||
@layer payload-default {
|
||||
.delete-documents {
|
||||
@include blur-bg;
|
||||
display: flex;
|
||||
@@ -36,3 +37,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user