fix(ui): add missing styles under the payload-default css layer (#8723)
This commit is contained in:
@@ -1,93 +1,95 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.doc-tab {
|
@layer payload-default {
|
||||||
@extend %h5;
|
.doc-tab {
|
||||||
position: relative;
|
@extend %h5;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
// Use a pseudo element for the accessability so that it doesn't take up DOM space
|
// 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
|
// Also because the parent element has `overflow: hidden` which would clip an outline
|
||||||
&:focus-visible::after {
|
&:focus-visible::after {
|
||||||
content: '';
|
content: '';
|
||||||
border: var(--accessibility-outline);
|
border: var(--accessibility-outline);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus:not(:focus-visible) {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: var(--style-radius-s);
|
|
||||||
background-color: var(--theme-elevation-50);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
&::before {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.doc-tab__count {
|
|
||||||
background-color: var(--theme-elevation-150);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&--active {
|
|
||||||
font-weight: 600;
|
|
||||||
&::before {
|
|
||||||
opacity: 1;
|
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.doc-tab {
|
|
||||||
&__count {
|
|
||||||
background-color: var(--theme-elevation-250);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus:not(:focus-visible) {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: var(--style-radius-s);
|
||||||
|
background-color: var(--theme-elevation-50);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
&::before {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-tab__count {
|
||||||
|
background-color: var(--theme-elevation-150);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--active {
|
||||||
|
font-weight: 600;
|
||||||
|
&::before {
|
||||||
|
opacity: 1;
|
||||||
|
background-color: var(--theme-elevation-100);
|
||||||
|
}
|
||||||
|
|
||||||
.doc-tab {
|
.doc-tab {
|
||||||
&__count {
|
&__count {
|
||||||
background-color: var(--theme-elevation-250);
|
background-color: var(--theme-elevation-250);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.doc-tab {
|
||||||
|
&__count {
|
||||||
|
background-color: var(--theme-elevation-250);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__label {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
line-height: base(1.2);
|
||||||
|
padding: base(0.2) base(0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__count {
|
||||||
|
line-height: base(0.8);
|
||||||
|
min-width: base(0.8);
|
||||||
|
text-align: center;
|
||||||
|
background-color: var(--theme-elevation-100);
|
||||||
|
border-radius: var(--style-radius-s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__label {
|
|
||||||
display: flex;
|
|
||||||
position: relative;
|
|
||||||
align-items: center;
|
|
||||||
gap: 4px;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
line-height: base(1.2);
|
|
||||||
padding: base(0.2) base(0.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
&__count {
|
|
||||||
line-height: base(0.8);
|
|
||||||
min-width: base(0.8);
|
|
||||||
text-align: center;
|
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
border-radius: var(--style-radius-s);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +1,54 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.doc-tabs {
|
@layer payload-default {
|
||||||
display: flex;
|
.doc-tabs {
|
||||||
|
|
||||||
&__tabs {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: calc(var(--base) / 2);
|
|
||||||
list-style: none;
|
|
||||||
align-items: center;
|
|
||||||
margin: 0;
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include mid-break {
|
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
overflow: auto;
|
|
||||||
|
|
||||||
// this container has a gradient overlay as visual indication of `overflow: scroll`
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
position: sticky;
|
|
||||||
right: 0;
|
|
||||||
width: calc(var(--base) * 2);
|
|
||||||
height: calc(var(--base) * 2);
|
|
||||||
background: linear-gradient(to right, transparent, var(--theme-bg));
|
|
||||||
flex-shrink: 0;
|
|
||||||
z-index: 1111;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__tabs {
|
&__tabs {
|
||||||
|
display: flex;
|
||||||
|
gap: calc(var(--base) / 2);
|
||||||
|
list-style: none;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include mid-break {
|
||||||
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
overflow: auto;
|
||||||
}
|
|
||||||
|
|
||||||
@include small-break {
|
// this container has a gradient overlay as visual indication of `overflow: scroll`
|
||||||
&__tabs-container {
|
&::-webkit-scrollbar {
|
||||||
margin-right: var(--gutter-h);
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: sticky;
|
||||||
|
right: 0;
|
||||||
|
width: calc(var(--base) * 2);
|
||||||
|
height: calc(var(--base) * 2);
|
||||||
|
background: linear-gradient(to right, transparent, var(--theme-bg));
|
||||||
|
flex-shrink: 0;
|
||||||
|
z-index: 1111;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__tabs {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__tabs {
|
@include small-break {
|
||||||
gap: var(--gutter-h);
|
&__tabs-container {
|
||||||
|
margin-right: var(--gutter-h);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__tabs {
|
||||||
|
gap: var(--gutter-h);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +1,54 @@
|
|||||||
@import '../../scss/styles.scss';
|
@import '../../scss/styles.scss';
|
||||||
|
|
||||||
.doc-header {
|
@layer payload-default {
|
||||||
width: 100%;
|
.doc-header {
|
||||||
margin-top: base(0.4);
|
|
||||||
padding-bottom: calc(var(--base) * 1.2);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
gap: calc(var(--base) / 2);
|
|
||||||
|
|
||||||
&::after {
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
height: 1px;
|
|
||||||
background: var(--theme-elevation-100);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
left: 0;
|
margin-top: base(0.4);
|
||||||
top: calc(100% - 1px);
|
padding-bottom: calc(var(--base) * 1.2);
|
||||||
}
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
&__title {
|
position: relative;
|
||||||
flex-grow: 1;
|
display: flex;
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
margin: 0;
|
|
||||||
padding-bottom: base(0.4);
|
|
||||||
line-height: 1;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include mid-break {
|
|
||||||
padding-left: 0;
|
|
||||||
padding-right: 0;
|
|
||||||
margin-top: base(0.25);
|
|
||||||
padding-bottom: calc(var(--base) / 1.5);
|
|
||||||
flex-direction: column;
|
|
||||||
gap: calc(var(--base) / 2);
|
gap: calc(var(--base) / 2);
|
||||||
padding-bottom: calc(var(--base) / 2);
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
height: 1px;
|
||||||
|
background: var(--theme-elevation-100);
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: calc(100% - 1px);
|
||||||
|
}
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
width: 100%;
|
flex-grow: 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
margin: 0;
|
||||||
|
padding-bottom: base(0.4);
|
||||||
|
line-height: 1;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include mid-break {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
margin-top: base(0.25);
|
||||||
|
padding-bottom: calc(var(--base) / 1.5);
|
||||||
|
flex-direction: column;
|
||||||
|
gap: calc(var(--base) / 2);
|
||||||
|
padding-bottom: calc(var(--base) / 2);
|
||||||
|
|
||||||
|
&__title {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include small-break {
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include small-break {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,39 @@
|
|||||||
@import '../../scss/styles.scss';
|
@import '../../scss/styles.scss';
|
||||||
|
|
||||||
.document-locked {
|
@layer payload-default {
|
||||||
@include blur-bg;
|
.document-locked {
|
||||||
display: flex;
|
@include blur-bg;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
&__wrapper {
|
|
||||||
z-index: 1;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
gap: var(--base);
|
justify-content: center;
|
||||||
padding: base(2);
|
height: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
&__content {
|
&__wrapper {
|
||||||
display: flex;
|
z-index: 1;
|
||||||
flex-direction: column;
|
position: relative;
|
||||||
gap: var(--base);
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
> * {
|
gap: var(--base);
|
||||||
margin: 0;
|
padding: base(2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__controls {
|
&__content {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--base);
|
flex-direction: column;
|
||||||
|
gap: var(--base);
|
||||||
|
|
||||||
.btn {
|
> * {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__controls {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--base);
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,39 @@
|
|||||||
@import '../../scss/styles.scss';
|
@import '../../scss/styles.scss';
|
||||||
|
|
||||||
.document-take-over {
|
@layer payload-default {
|
||||||
@include blur-bg;
|
.document-take-over {
|
||||||
display: flex;
|
@include blur-bg;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
&__wrapper {
|
|
||||||
z-index: 1;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
gap: var(--base);
|
justify-content: center;
|
||||||
padding: base(2);
|
height: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
&__content {
|
&__wrapper {
|
||||||
display: flex;
|
z-index: 1;
|
||||||
flex-direction: column;
|
position: relative;
|
||||||
gap: var(--base);
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
> * {
|
gap: var(--base);
|
||||||
margin: 0;
|
padding: base(2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__controls {
|
&__content {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--base);
|
flex-direction: column;
|
||||||
|
gap: var(--base);
|
||||||
|
|
||||||
.btn {
|
> * {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__controls {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--base);
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
.form-header {
|
@layer payload-default {
|
||||||
display: flex;
|
.form-header {
|
||||||
flex-direction: column;
|
display: flex;
|
||||||
gap: calc(var(--base) * .5);
|
flex-direction: column;
|
||||||
margin-bottom: var(--base);
|
gap: calc(var(--base) * 0.5);
|
||||||
|
margin-bottom: var(--base);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,39 @@
|
|||||||
@import '../../scss/styles.scss';
|
@import '../../scss/styles.scss';
|
||||||
|
|
||||||
.leave-without-saving {
|
@layer payload-default {
|
||||||
@include blur-bg;
|
.leave-without-saving {
|
||||||
display: flex;
|
@include blur-bg;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
&__wrapper {
|
|
||||||
z-index: 1;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
gap: base(0.8);
|
justify-content: center;
|
||||||
padding: base(2);
|
height: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
&__content {
|
&__wrapper {
|
||||||
display: flex;
|
z-index: 1;
|
||||||
flex-direction: column;
|
position: relative;
|
||||||
gap: base(0.4);
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
> * {
|
gap: base(0.8);
|
||||||
margin: 0;
|
padding: base(2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__controls {
|
&__content {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: base(0.4);
|
flex-direction: column;
|
||||||
|
gap: base(0.4);
|
||||||
|
|
||||||
.btn {
|
> * {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__controls {
|
||||||
|
display: flex;
|
||||||
|
gap: base(0.4);
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,27 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.nav {
|
@layer payload-default {
|
||||||
position: sticky;
|
.nav {
|
||||||
top: 0;
|
position: sticky;
|
||||||
left: 0;
|
top: 0;
|
||||||
flex-shrink: 0;
|
left: 0;
|
||||||
height: 100vh;
|
flex-shrink: 0;
|
||||||
width: var(--nav-width);
|
height: 100vh;
|
||||||
border-right: 1px solid var(--theme-elevation-100);
|
width: var(--nav-width);
|
||||||
opacity: 0;
|
border-right: 1px solid var(--theme-elevation-100);
|
||||||
|
opacity: 0;
|
||||||
|
|
||||||
[dir='rtl'] & {
|
[dir='rtl'] & {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-left: 1px solid var(--theme-elevation-100);
|
border-left: 1px solid var(--theme-elevation-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
&--nav-animate {
|
&--nav-animate {
|
||||||
transition: opacity var(--nav-trans-time) ease-in-out;
|
transition: opacity var(--nav-trans-time) ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--nav-open {
|
&--nav-open {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,160 +1,162 @@
|
|||||||
@import '../../scss/styles.scss';
|
@import '../../scss/styles.scss';
|
||||||
|
|
||||||
.nav {
|
@layer payload-default {
|
||||||
position: sticky;
|
.nav {
|
||||||
top: 0;
|
position: sticky;
|
||||||
left: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
height: 100vh;
|
|
||||||
width: var(--nav-width);
|
|
||||||
border-right: 1px solid var(--theme-elevation-100);
|
|
||||||
opacity: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
[dir='rtl'] & {
|
|
||||||
border-right: none;
|
|
||||||
border-left: 1px solid var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
|
|
||||||
&--nav-animate {
|
|
||||||
transition: opacity var(--nav-trans-time) ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--nav-open {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__header {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100vw;
|
left: 0;
|
||||||
height: var(--app-header-height);
|
flex-shrink: 0;
|
||||||
}
|
height: 100vh;
|
||||||
|
width: var(--nav-width);
|
||||||
|
border-right: 1px solid var(--theme-elevation-100);
|
||||||
|
opacity: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
&__header-content {
|
[dir='rtl'] & {
|
||||||
z-index: 1;
|
border-right: none;
|
||||||
position: relative;
|
border-left: 1px solid var(--theme-elevation-100);
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__mobile-close {
|
|
||||||
display: none;
|
|
||||||
background: none;
|
|
||||||
border: 0;
|
|
||||||
outline: 0;
|
|
||||||
padding: base(0.8) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__scroll {
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
padding: var(--app-header-height) base(1) base(2) base(1);
|
|
||||||
overflow-y: auto;
|
|
||||||
|
|
||||||
// remove the scrollbar here to prevent layout shift as nav groups are toggled
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__wrap {
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
flex-grow: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__label {
|
|
||||||
color: var(--theme-elevation-400);
|
|
||||||
}
|
|
||||||
|
|
||||||
&__controls {
|
|
||||||
margin-top: auto;
|
|
||||||
margin-bottom: 0;
|
|
||||||
|
|
||||||
> * {
|
|
||||||
margin-top: base(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus-visible {
|
&--nav-animate {
|
||||||
outline: var(--accessibility-outline);
|
transition: opacity var(--nav-trans-time) ease-in-out;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__log-out {
|
&--nav-open {
|
||||||
&:hover {
|
opacity: 1;
|
||||||
g {
|
|
||||||
transform: translateX(-#{base(0.125)});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
&__header {
|
||||||
a {
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: var(--app-header-height);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__header-content {
|
||||||
|
z-index: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-block: base(0.125);
|
height: 100%;
|
||||||
padding-inline-start: 0;
|
width: 100%;
|
||||||
padding-inline-end: base(1.5);
|
|
||||||
display: flex;
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
&:focus:not(:focus-visible) {
|
|
||||||
box-shadow: none;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus-visible {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
font-weight: normal;
|
|
||||||
padding-left: 0;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__link {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__link-indicator {
|
|
||||||
position: absolute;
|
|
||||||
display: block;
|
|
||||||
// top: 0;
|
|
||||||
inset-inline-start: base(-1);
|
|
||||||
width: 2px;
|
|
||||||
height: 16px;
|
|
||||||
border-start-end-radius: 2px;
|
|
||||||
border-end-end-radius: 2px;
|
|
||||||
background: var(--theme-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include mid-break {
|
|
||||||
&__scroll {
|
|
||||||
padding: var(--app-header-height) base(0.5) base(2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include small-break {
|
|
||||||
&__scroll {
|
|
||||||
padding: var(--app-header-height) var(--gutter-h) base(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
nav a {
|
|
||||||
font-size: base(0.875);
|
|
||||||
line-height: base(1.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__mobile-close {
|
&__mobile-close {
|
||||||
|
display: none;
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
|
outline: 0;
|
||||||
|
padding: base(0.8) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__scroll {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: var(--app-header-height) base(1) base(2) base(1);
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
// remove the scrollbar here to prevent layout shift as nav groups are toggled
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__wrap {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__label {
|
||||||
|
color: var(--theme-elevation-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__controls {
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
margin-top: base(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:focus-visible {
|
||||||
|
outline: var(--accessibility-outline);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__log-out {
|
||||||
|
&:hover {
|
||||||
|
g {
|
||||||
|
transform: translateX(-#{base(0.125)});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
a {
|
||||||
|
position: relative;
|
||||||
|
padding-block: base(0.125);
|
||||||
|
padding-inline-start: 0;
|
||||||
|
padding-inline-end: base(1.5);
|
||||||
|
display: flex;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:focus:not(:focus-visible) {
|
||||||
|
box-shadow: none;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus-visible {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
font-weight: normal;
|
||||||
|
padding-left: 0;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__link-indicator {
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
// top: 0;
|
||||||
|
inset-inline-start: base(-1);
|
||||||
|
width: 2px;
|
||||||
|
height: 16px;
|
||||||
|
border-start-end-radius: 2px;
|
||||||
|
border-end-end-radius: 2px;
|
||||||
|
background: var(--theme-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include mid-break {
|
||||||
|
&__scroll {
|
||||||
|
padding: var(--app-header-height) base(0.5) base(2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include small-break {
|
||||||
|
&__scroll {
|
||||||
|
padding: var(--app-header-height) var(--gutter-h) base(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
font-size: base(0.875);
|
||||||
|
line-height: base(1.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__mobile-close {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,55 +1,57 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.template-default {
|
@layer payload-default {
|
||||||
min-height: 100vh;
|
|
||||||
display: grid;
|
|
||||||
position: relative;
|
|
||||||
isolation: isolate;
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion) {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--nav-animate {
|
|
||||||
transition: grid-template-columns var(--nav-trans-time) linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--nav-open {
|
|
||||||
.template-default {
|
|
||||||
&__nav-overlay {
|
|
||||||
transition: opacity var(--nav-trans-time) linear;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1441px) {
|
|
||||||
.template-default {
|
.template-default {
|
||||||
grid-template-columns: 0 auto;
|
min-height: 100vh;
|
||||||
|
display: grid;
|
||||||
|
position: relative;
|
||||||
|
isolation: isolate;
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion) {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--nav-animate {
|
||||||
|
transition: grid-template-columns var(--nav-trans-time) linear;
|
||||||
|
}
|
||||||
|
|
||||||
&--nav-open {
|
&--nav-open {
|
||||||
grid-template-columns: var(--nav-width) auto;
|
.template-default {
|
||||||
|
&__nav-overlay {
|
||||||
|
transition: opacity var(--nav-trans-time) linear;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1440px) {
|
@media (min-width: 1441px) {
|
||||||
.template-default--nav-hydrated.template-default--nav-open {
|
.template-default {
|
||||||
grid-template-columns: var(--nav-width) auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.template-default {
|
|
||||||
grid-template-columns: 1fr auto;
|
|
||||||
|
|
||||||
.nav {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--nav-hydrated {
|
|
||||||
grid-template-columns: 0 auto;
|
grid-template-columns: 0 auto;
|
||||||
|
|
||||||
|
&--nav-open {
|
||||||
|
grid-template-columns: var(--nav-width) auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1440px) {
|
||||||
|
.template-default--nav-hydrated.template-default--nav-open {
|
||||||
|
grid-template-columns: var(--nav-width) auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.template-default {
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
display: unset;
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--nav-hydrated {
|
||||||
|
grid-template-columns: 0 auto;
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: unset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,76 +1,78 @@
|
|||||||
@import '../../scss/styles.scss';
|
@import '../../scss/styles.scss';
|
||||||
|
|
||||||
.template-default {
|
@layer payload-default {
|
||||||
background-color: var(--theme-bg);
|
.template-default {
|
||||||
color: var(--theme-text);
|
|
||||||
|
|
||||||
[dir='rtl'] &__nav-toggler-wrapper {
|
|
||||||
left: unset;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__nav-toggler-wrapper {
|
|
||||||
position: sticky;
|
|
||||||
z-index: var(--z-modal);
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
height: 0;
|
|
||||||
width: var(--gutter-h);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__nav-toggler-container {
|
|
||||||
height: var(--app-header-height);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__nav-toggler {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__wrap {
|
|
||||||
min-width: 0;
|
|
||||||
width: 100%;
|
|
||||||
flex-grow: 1;
|
|
||||||
position: relative;
|
|
||||||
background-color: var(--theme-bg);
|
background-color: var(--theme-bg);
|
||||||
&:before {
|
color: var(--theme-text);
|
||||||
content: '';
|
|
||||||
display: block;
|
[dir='rtl'] &__nav-toggler-wrapper {
|
||||||
position: absolute;
|
left: unset;
|
||||||
inset: 0;
|
right: 0;
|
||||||
background-color: inherit;
|
|
||||||
opacity: 0;
|
|
||||||
z-index: var(--z-status);
|
|
||||||
visibility: hidden;
|
|
||||||
transition: all var(--nav-trans-time) linear;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@include mid-break {
|
|
||||||
&__nav-toggler-wrapper {
|
&__nav-toggler-wrapper {
|
||||||
.hamburger {
|
position: sticky;
|
||||||
left: unset;
|
z-index: var(--z-modal);
|
||||||
}
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
height: 0;
|
||||||
|
width: var(--gutter-h);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@include small-break {
|
&__nav-toggler-container {
|
||||||
&__nav-toggler-wrapper {
|
height: var(--app-header-height);
|
||||||
width: unset;
|
display: flex;
|
||||||
justify-content: unset;
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.hamburger {
|
&__nav-toggler {
|
||||||
display: none;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__wrap {
|
||||||
|
min-width: 0;
|
||||||
|
width: 100%;
|
||||||
|
flex-grow: 1;
|
||||||
|
position: relative;
|
||||||
|
background-color: var(--theme-bg);
|
||||||
|
&:before {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-color: inherit;
|
||||||
|
opacity: 0;
|
||||||
|
z-index: var(--z-status);
|
||||||
|
visibility: hidden;
|
||||||
|
transition: all var(--nav-trans-time) linear;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.template-default {
|
@include mid-break {
|
||||||
&__wrap {
|
&__nav-toggler-wrapper {
|
||||||
min-width: 100%;
|
.hamburger {
|
||||||
|
left: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include small-break {
|
||||||
|
&__nav-toggler-wrapper {
|
||||||
|
width: unset;
|
||||||
|
justify-content: unset;
|
||||||
|
|
||||||
|
.hamburger {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.template-default {
|
||||||
|
&__wrap {
|
||||||
|
min-width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,30 @@
|
|||||||
@import '../../scss/styles';
|
@import '../../scss/styles';
|
||||||
|
|
||||||
.template-minimal {
|
@layer payload-default {
|
||||||
display: flex;
|
.template-minimal {
|
||||||
width: 100%;
|
display: flex;
|
||||||
justify-content: center;
|
width: 100%;
|
||||||
align-items: center;
|
justify-content: center;
|
||||||
padding: base(3) $baseline;
|
align-items: center;
|
||||||
margin-left: auto;
|
padding: base(3) $baseline;
|
||||||
margin-right: auto;
|
margin-left: auto;
|
||||||
min-height: 100%;
|
margin-right: auto;
|
||||||
background-color: var(--theme-bg-color);
|
min-height: 100%;
|
||||||
color: var(--theme-text);
|
background-color: var(--theme-bg-color);
|
||||||
|
color: var(--theme-text);
|
||||||
|
|
||||||
&--width-normal {
|
&--width-normal {
|
||||||
.template-minimal__wrap {
|
.template-minimal__wrap {
|
||||||
max-width: base(24);
|
max-width: base(24);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&--width-wide {
|
&--width-wide {
|
||||||
.template-minimal__wrap {
|
.template-minimal__wrap {
|
||||||
max-width: base(48);
|
max-width: base(48);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,90 +1,92 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.query-inspector {
|
@layer payload-default {
|
||||||
&__json-children {
|
.query-inspector {
|
||||||
position: relative;
|
&__json-children {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-left: 1px dashed var(--theme-elevation-200);
|
border-left: 1px dashed var(--theme-elevation-200);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__list-wrap {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__list-toggle {
|
|
||||||
all: unset;
|
|
||||||
width: 100%;
|
|
||||||
text-align: left;
|
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 3px;
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
gap: 10px;
|
|
||||||
align-items: center;
|
|
||||||
left: -3px;
|
|
||||||
width: calc(100% + 3px);
|
|
||||||
|
|
||||||
svg {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg .stroke {
|
|
||||||
stroke: var(--theme-elevation-400);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
|
|
||||||
&--empty {
|
|
||||||
cursor: default;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__toggle-row-icon {
|
|
||||||
&--open {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
&--closed {
|
|
||||||
transform: rotate(-90deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__value-type {
|
|
||||||
&--number {
|
|
||||||
.query-inspector__value {
|
|
||||||
color: var(--number-color);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--string {
|
&__list-wrap {
|
||||||
.query-inspector__value {
|
position: relative;
|
||||||
color: var(--string-color);
|
}
|
||||||
|
|
||||||
|
&__list-toggle {
|
||||||
|
all: unset;
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 3px;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
align-items: center;
|
||||||
|
left: -3px;
|
||||||
|
width: calc(100% + 3px);
|
||||||
|
|
||||||
|
svg {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
svg .stroke {
|
||||||
|
stroke: var(--theme-elevation-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--theme-elevation-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
&--empty {
|
||||||
|
cursor: default;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__row-line--nested {
|
&__toggle-row-icon {
|
||||||
margin-left: 25px;
|
&--open {
|
||||||
}
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
&--closed {
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__bracket {
|
&__value-type {
|
||||||
position: relative;
|
&--number {
|
||||||
|
.query-inspector__value {
|
||||||
|
color: var(--number-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--position-end {
|
&--string {
|
||||||
left: 5px;
|
.query-inspector__value {
|
||||||
width: calc(100% - 5px);
|
color: var(--string-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__row-line--nested {
|
||||||
|
margin-left: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__bracket {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&--position-end {
|
||||||
|
left: 5px;
|
||||||
|
width: calc(100% - 5px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
span.unknownConverted {
|
@layer payload-default {
|
||||||
text-transform: uppercase;
|
span.unknownConverted {
|
||||||
font-family: 'Roboto Mono', monospace;
|
text-transform: uppercase;
|
||||||
letter-spacing: 2px;
|
font-family: 'Roboto Mono', monospace;
|
||||||
font-size: calc(var(--base) * 0.5);
|
letter-spacing: 2px;
|
||||||
margin: 0 0 var(--base);
|
font-size: calc(var(--base) * 0.5);
|
||||||
background: red;
|
margin: 0 0 var(--base);
|
||||||
color: white;
|
|
||||||
display: inline-block;
|
|
||||||
|
|
||||||
div {
|
|
||||||
background: red;
|
background: red;
|
||||||
|
color: white;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
div {
|
||||||
|
background: red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
span.unknownConverted {
|
@layer payload-default {
|
||||||
text-transform: uppercase;
|
span.unknownConverted {
|
||||||
font-family: 'Roboto Mono', monospace;
|
text-transform: uppercase;
|
||||||
letter-spacing: 2px;
|
font-family: 'Roboto Mono', monospace;
|
||||||
font-size: calc(var(--base) * 0.5);
|
letter-spacing: 2px;
|
||||||
margin: 0 0 var(--base);
|
font-size: calc(var(--base) * 0.5);
|
||||||
background: red;
|
margin: 0 0 var(--base);
|
||||||
color: white;
|
|
||||||
display: inline-block;
|
|
||||||
|
|
||||||
div {
|
|
||||||
background: red;
|
background: red;
|
||||||
|
color: white;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
div {
|
||||||
|
background: red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +1,46 @@
|
|||||||
@import '../../../../scss/styles';
|
@import '../../../../scss/styles';
|
||||||
|
|
||||||
.toolbar-popup__button {
|
@layer payload-default {
|
||||||
display: flex;
|
.toolbar-popup__button {
|
||||||
align-items: center;
|
display: flex;
|
||||||
vertical-align: middle;
|
align-items: center;
|
||||||
justify-content: center;
|
vertical-align: middle;
|
||||||
height: 30px;
|
justify-content: center;
|
||||||
width: 30px;
|
height: 30px;
|
||||||
border: 0;
|
width: 30px;
|
||||||
background: none;
|
border: 0;
|
||||||
border-radius: $style-radius-m;
|
background: none;
|
||||||
cursor: pointer;
|
border-radius: $style-radius-m;
|
||||||
padding: 0;
|
cursor: pointer;
|
||||||
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
|
padding: 0;
|
||||||
|
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
|
||||||
|
|
||||||
&.spaced {
|
&.spaced {
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:not(.disabled) {
|
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
background-color: var(--theme-elevation-150);
|
|
||||||
color: var(--theme-text);
|
|
||||||
&:hover {
|
|
||||||
background-color: var(--theme-elevation-200);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
&:hover:not(.disabled) {
|
||||||
opacity: 1;
|
background-color: var(--theme-elevation-100);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&.disabled {
|
&.active {
|
||||||
cursor: not-allowed;
|
background-color: var(--theme-elevation-150);
|
||||||
|
color: var(--theme-text);
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--theme-elevation-200);
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
opacity: 0.2;
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,119 +1,121 @@
|
|||||||
@import '../../../../scss/styles';
|
@import '../../../../scss/styles';
|
||||||
|
|
||||||
.toolbar-popup__dropdown {
|
@layer payload-default {
|
||||||
display: flex;
|
.toolbar-popup__dropdown {
|
||||||
align-items: center;
|
|
||||||
vertical-align: middle;
|
|
||||||
justify-content: center;
|
|
||||||
gap: base(0.2);
|
|
||||||
height: base(1.5);
|
|
||||||
border: 0;
|
|
||||||
background: none;
|
|
||||||
border-radius: $style-radius-m;
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
padding: 0 base(0.4) 0 base(0.3);
|
|
||||||
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
|
|
||||||
|
|
||||||
&-label {
|
|
||||||
color: var(--theme-elevation-600);
|
|
||||||
padding-block: 0;
|
|
||||||
padding-inline: base(0.2) base(0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:disabled {
|
|
||||||
cursor: not-allowed;
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:not([disabled]) {
|
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
|
|
||||||
.active {
|
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
|
|
||||||
.toolbar-popup__dropdown-caret {
|
|
||||||
&:after {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&-caret {
|
|
||||||
width: base(0.4);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
vertical-align: middle;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
transform: rotate(45deg);
|
gap: base(0.2);
|
||||||
&:after {
|
height: base(1.5);
|
||||||
display: block;
|
border: 0;
|
||||||
content: ' ';
|
background: none;
|
||||||
position: absolute;
|
|
||||||
|
|
||||||
/* Vector 3 */
|
|
||||||
|
|
||||||
width: 4px;
|
|
||||||
height: 4px;
|
|
||||||
transform: translateY(-2px);
|
|
||||||
border: solid 1px var(--theme-elevation-600);
|
|
||||||
border-width: 0 1px 1px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&-items {
|
|
||||||
position: absolute;
|
|
||||||
background: var(--theme-elevation-0);
|
|
||||||
border-radius: $style-radius-m;
|
border-radius: $style-radius-m;
|
||||||
min-width: 132.5px;
|
cursor: pointer;
|
||||||
max-width: 200px;
|
position: relative;
|
||||||
z-index: 100;
|
padding: 0 base(0.4) 0 base(0.3);
|
||||||
|
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
|
||||||
|
|
||||||
.toolbar-popup__dropdown-item {
|
&-label {
|
||||||
all: unset; // reset all default button styles
|
color: var(--theme-elevation-600);
|
||||||
cursor: pointer;
|
padding-block: 0;
|
||||||
color: var(--theme-elevation-900);
|
padding-inline: base(0.2) base(0.4);
|
||||||
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
|
}
|
||||||
|
|
||||||
.text {
|
&:disabled {
|
||||||
overflow: hidden;
|
cursor: not-allowed;
|
||||||
white-space: nowrap;
|
opacity: 0.2;
|
||||||
text-overflow: ellipsis;
|
}
|
||||||
|
|
||||||
|
&:hover:not([disabled]) {
|
||||||
|
background-color: var(--theme-elevation-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: var(--theme-elevation-100);
|
||||||
|
|
||||||
|
.toolbar-popup__dropdown-caret {
|
||||||
|
&:after {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:hover:not([disabled]),
|
&-caret {
|
||||||
&.active {
|
width: base(0.4);
|
||||||
background-color: var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
&.disabled {
|
|
||||||
cursor: not-allowed;
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
padding-left: 6.25px;
|
|
||||||
padding-right: 6.25px;
|
|
||||||
width: 100%;
|
|
||||||
height: 30px;
|
|
||||||
border-radius: $style-radius-m;
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6.25px;
|
justify-content: center;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
&:after {
|
||||||
|
display: block;
|
||||||
|
content: ' ';
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
.icon {
|
/* Vector 3 */
|
||||||
min-width: 20px;
|
|
||||||
height: 20px;
|
width: 4px;
|
||||||
color: var(--theme-elevation-600);
|
height: 4px;
|
||||||
|
transform: translateY(-2px);
|
||||||
|
border: solid 1px var(--theme-elevation-600);
|
||||||
|
border-width: 0 1px 1px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-items {
|
||||||
|
position: absolute;
|
||||||
|
background: var(--theme-elevation-0);
|
||||||
|
border-radius: $style-radius-m;
|
||||||
|
min-width: 132.5px;
|
||||||
|
max-width: 200px;
|
||||||
|
z-index: 100;
|
||||||
|
|
||||||
|
.toolbar-popup__dropdown-item {
|
||||||
|
all: unset; // reset all default button styles
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--theme-elevation-900);
|
||||||
|
transition: background-color 0.15s cubic-bezier(0, 0.2, 0.2, 1);
|
||||||
|
|
||||||
|
.text {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover:not([disabled]),
|
||||||
|
&.active {
|
||||||
|
background-color: var(--theme-elevation-100);
|
||||||
|
}
|
||||||
|
&.disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
padding-left: 6.25px;
|
||||||
|
padding-right: 6.25px;
|
||||||
|
width: 100%;
|
||||||
|
height: 30px;
|
||||||
|
border-radius: $style-radius-m;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6.25px;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
min-width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
color: var(--theme-elevation-600);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme='light'] {
|
||||||
|
.toolbar-popup__dropdown {
|
||||||
|
&-items {
|
||||||
|
position: absolute;
|
||||||
|
@include shadow-m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='light'] {
|
|
||||||
.toolbar-popup__dropdown {
|
|
||||||
&-items {
|
|
||||||
position: absolute;
|
|
||||||
@include shadow-m;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-blockquote {
|
@layer payload-default {
|
||||||
&[data-slate-node='element'] {
|
.rich-text-blockquote {
|
||||||
margin: base(0.625) 0;
|
&[data-slate-node='element'] {
|
||||||
padding-left: base(0.625);
|
margin: base(0.625) 0;
|
||||||
border-left: 1px solid var(--theme-elevation-200);
|
padding-left: base(0.625);
|
||||||
|
border-left: 1px solid var(--theme-elevation-200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,88 +1,90 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-link {
|
@layer payload-default {
|
||||||
position: relative;
|
.rich-text-link {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
.popup {
|
.popup {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
.popup__hide-scrollbar,
|
.popup__hide-scrollbar,
|
||||||
.popup__scroll-container {
|
.popup__scroll-container {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup__scroll-content {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup__scroll-content {
|
.icon--x line {
|
||||||
white-space: pre;
|
stroke-width: 2px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.icon--x line {
|
&__popup {
|
||||||
stroke-width: 2px;
|
@extend %body;
|
||||||
}
|
font-family: var(--font-body);
|
||||||
|
display: flex;
|
||||||
|
|
||||||
&__popup {
|
button {
|
||||||
@extend %body;
|
@extend %btn-reset;
|
||||||
font-family: var(--font-body);
|
font-weight: 600;
|
||||||
display: flex;
|
cursor: pointer;
|
||||||
|
margin: 0;
|
||||||
button {
|
}
|
||||||
@extend %btn-reset;
|
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__link-label {
|
&__link-label {
|
||||||
max-width: base(8);
|
max-width: base(8);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--popup-button-highlight);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.rich-text-link__popup {
|
|
||||||
display: flex;
|
|
||||||
gap: calc(var(--base) * 0.25);
|
|
||||||
button {
|
|
||||||
&:hover {
|
|
||||||
.btn__icon {
|
|
||||||
background-color: var(--popup-button-highlight);
|
background-color: var(--popup-button-highlight);
|
||||||
.fill {
|
}
|
||||||
fill: var(--theme-text);
|
}
|
||||||
}
|
}
|
||||||
.stroke {
|
|
||||||
stroke: var(--theme-text);
|
.rich-text-link__popup {
|
||||||
|
display: flex;
|
||||||
|
gap: calc(var(--base) * 0.25);
|
||||||
|
button {
|
||||||
|
&:hover {
|
||||||
|
.btn__icon {
|
||||||
|
background-color: var(--popup-button-highlight);
|
||||||
|
.fill {
|
||||||
|
fill: var(--theme-text);
|
||||||
|
}
|
||||||
|
.stroke {
|
||||||
|
stroke: var(--theme-text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.rich-text-link__popup-toggler {
|
.rich-text-link__popup-toggler {
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: var(--theme-success-600);
|
color: var(--theme-success-600);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 1px dotted;
|
border-bottom: 1px dotted;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-within {
|
&:focus-within {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--open {
|
&--open {
|
||||||
z-index: var(--z-popup);
|
z-index: var(--z-popup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +1,51 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-link-edit-modal {
|
@layer payload-default {
|
||||||
&__template {
|
.rich-text-link-edit-modal {
|
||||||
position: relative;
|
&__template {
|
||||||
z-index: 1;
|
|
||||||
padding-top: base(1);
|
|
||||||
padding-bottom: base(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
&__header {
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: $baseline;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin-top: base(2.5);
|
|
||||||
margin-bottom: base(1);
|
|
||||||
|
|
||||||
@include mid-break {
|
|
||||||
margin-top: base(1.5);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__header-text {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__header-close {
|
|
||||||
border: 0;
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
overflow: hidden;
|
|
||||||
width: base(1);
|
|
||||||
height: base(1);
|
|
||||||
|
|
||||||
svg {
|
|
||||||
width: base(2);
|
|
||||||
height: base(2);
|
|
||||||
position: relative;
|
position: relative;
|
||||||
inset-inline-start: base(-0.5);
|
z-index: 1;
|
||||||
top: base(-0.5);
|
padding-top: base(1);
|
||||||
|
padding-bottom: base(2);
|
||||||
|
}
|
||||||
|
|
||||||
.stroke {
|
&__header {
|
||||||
stroke-width: 2px;
|
width: 100%;
|
||||||
vector-effect: non-scaling-stroke;
|
margin-bottom: $baseline;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: base(2.5);
|
||||||
|
margin-bottom: base(1);
|
||||||
|
|
||||||
|
@include mid-break {
|
||||||
|
margin-top: base(1.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__header-text {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__header-close {
|
||||||
|
border: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
overflow: hidden;
|
||||||
|
width: base(1);
|
||||||
|
height: base(1);
|
||||||
|
|
||||||
|
svg {
|
||||||
|
width: base(2);
|
||||||
|
height: base(2);
|
||||||
|
position: relative;
|
||||||
|
inset-inline-start: base(-0.5);
|
||||||
|
top: base(-0.5);
|
||||||
|
|
||||||
|
.stroke {
|
||||||
|
stroke-width: 2px;
|
||||||
|
vector-effect: non-scaling-stroke;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-ol {
|
@layer payload-default {
|
||||||
&[data-slate-node='element'] {
|
.rich-text-ol {
|
||||||
margin: base(0.625) 0;
|
&[data-slate-node='element'] {
|
||||||
|
margin: base(0.625) 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.relationship-rich-text-button {
|
@layer payload-default {
|
||||||
display: flex;
|
.relationship-rich-text-button {
|
||||||
align-items: center;
|
display: flex;
|
||||||
height: 100%;
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,93 +1,95 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-relationship {
|
@layer payload-default {
|
||||||
@extend %body;
|
.rich-text-relationship {
|
||||||
@include shadow-sm;
|
@extend %body;
|
||||||
padding: base(0.75);
|
@include shadow-sm;
|
||||||
display: flex;
|
padding: base(0.75);
|
||||||
align-items: center;
|
|
||||||
background: var(--theme-input-bg);
|
|
||||||
border: 1px solid var(--theme-elevation-100);
|
|
||||||
max-width: base(15);
|
|
||||||
font-family: var(--font-body);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border: 1px solid var(--theme-elevation-150);
|
|
||||||
}
|
|
||||||
|
|
||||||
&[data-slate-node='element'] {
|
|
||||||
margin: base(0.625) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__label {
|
|
||||||
margin-bottom: 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rich-text-relationship__doc-drawer-toggler {
|
|
||||||
text-decoration: underline;
|
|
||||||
pointer-events: all;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__actions {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-shrink: 0;
|
background: var(--theme-input-bg);
|
||||||
margin-left: base(0.5);
|
border: 1px solid var(--theme-elevation-100);
|
||||||
|
max-width: base(15);
|
||||||
|
font-family: var(--font-body);
|
||||||
|
|
||||||
& > *:not(:last-child) {
|
&:hover {
|
||||||
margin-right: base(0.25);
|
border: 1px solid var(--theme-elevation-150);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__removeButton {
|
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
line {
|
|
||||||
stroke-width: $style-stroke-width-m;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled {
|
&[data-slate-node='element'] {
|
||||||
color: var(--theme-elevation-300);
|
margin: base(0.625) 0;
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__doc-drawer-toggler,
|
&__label {
|
||||||
&__list-drawer-toggler {
|
margin-bottom: base(0.25);
|
||||||
& > * {
|
}
|
||||||
|
|
||||||
|
&__title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled {
|
&__label,
|
||||||
color: var(--theme-elevation-300);
|
&__title {
|
||||||
pointer-events: none;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rich-text-relationship__doc-drawer-toggler {
|
||||||
|
text-decoration: underline;
|
||||||
|
pointer-events: all;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: base(0.5);
|
||||||
|
|
||||||
|
& > *:not(:last-child) {
|
||||||
|
margin-right: base(0.25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__removeButton {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
line {
|
||||||
|
stroke-width: $style-stroke-width-m;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
color: var(--theme-elevation-300);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__doc-drawer-toggler,
|
||||||
|
&__list-drawer-toggler {
|
||||||
|
& > * {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
color: var(--theme-elevation-300);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
@import '../../../scss/styles.scss';
|
@import '../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-ul {
|
@layer payload-default {
|
||||||
&[data-slate-node='element'] {
|
.rich-text-ul {
|
||||||
margin: base(0.625) 0;
|
&[data-slate-node='element'] {
|
||||||
|
margin: base(0.625) 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.upload-rich-text-button {
|
@layer payload-default {
|
||||||
display: flex;
|
.upload-rich-text-button {
|
||||||
align-items: center;
|
display: flex;
|
||||||
height: 100%;
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,147 +1,149 @@
|
|||||||
@import '../../../../scss/styles.scss';
|
@import '../../../../scss/styles.scss';
|
||||||
|
|
||||||
.rich-text-upload {
|
@layer payload-default {
|
||||||
@extend %body;
|
.rich-text-upload {
|
||||||
@include shadow-sm;
|
@extend %body;
|
||||||
max-width: base(15);
|
@include shadow-sm;
|
||||||
display: flex;
|
max-width: base(15);
|
||||||
align-items: center;
|
|
||||||
background: var(--theme-input-bg);
|
|
||||||
border: 1px solid var(--theme-elevation-100);
|
|
||||||
position: relative;
|
|
||||||
font-family: var(--font-body);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border: 1px solid var(--theme-elevation-150);
|
|
||||||
}
|
|
||||||
|
|
||||||
&[data-slate-node='element'] {
|
|
||||||
margin: base(0.625) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__card {
|
|
||||||
@include soft-shadow-bottom;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
width: 100%;
|
background: var(--theme-input-bg);
|
||||||
}
|
border: 1px solid var(--theme-elevation-100);
|
||||||
|
|
||||||
&__topRow {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__thumbnail {
|
|
||||||
width: base(3.25);
|
|
||||||
height: auto;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
font-family: var(--font-body);
|
||||||
flex-shrink: 0;
|
|
||||||
|
|
||||||
img,
|
&:hover {
|
||||||
svg {
|
border: 1px solid var(--theme-elevation-150);
|
||||||
position: absolute;
|
}
|
||||||
object-fit: cover;
|
|
||||||
|
&[data-slate-node='element'] {
|
||||||
|
margin: base(0.625) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__card {
|
||||||
|
@include soft-shadow-bottom;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
background-color: var(--theme-elevation-800);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__topRowRightPanel {
|
|
||||||
flex-grow: 1;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: base(0.75);
|
|
||||||
justify-content: space-between;
|
|
||||||
max-width: calc(100% - #{base(3.25)});
|
|
||||||
}
|
|
||||||
|
|
||||||
&__actions {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
flex-shrink: 0;
|
|
||||||
margin-left: base(0.5);
|
|
||||||
|
|
||||||
.rich-text-upload__doc-drawer-toggler {
|
|
||||||
pointer-events: all;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& > *:not(:last-child) {
|
&__topRow {
|
||||||
margin-right: base(0.25);
|
display: flex;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__removeButton {
|
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
line {
|
|
||||||
stroke-width: $style-stroke-width-m;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled {
|
&__thumbnail {
|
||||||
color: var(--theme-elevation-300);
|
width: base(3.25);
|
||||||
pointer-events: none;
|
height: auto;
|
||||||
}
|
position: relative;
|
||||||
}
|
overflow: hidden;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&__upload-drawer-toggler {
|
img,
|
||||||
background-color: transparent;
|
svg {
|
||||||
border: none;
|
position: absolute;
|
||||||
padding: 0;
|
object-fit: cover;
|
||||||
margin: 0;
|
width: 100%;
|
||||||
outline: none;
|
height: 100%;
|
||||||
line-height: inherit;
|
background-color: var(--theme-elevation-800);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__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: base(0.5);
|
|
||||||
border-top: 1px solid var(--theme-elevation-100);
|
|
||||||
}
|
|
||||||
|
|
||||||
h5 {
|
|
||||||
white-space: nowrap;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__wrap {
|
|
||||||
padding: base(0.5) base(0.5) base(0.5) base(1);
|
|
||||||
text-align: left;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--selected {
|
|
||||||
box-shadow: $focus-box-shadow;
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include small-break {
|
|
||||||
&__topRowRightPanel {
|
&__topRowRightPanel {
|
||||||
padding: base(0.75) base(0.5);
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: base(0.75);
|
||||||
|
justify-content: space-between;
|
||||||
|
max-width: calc(100% - #{base(3.25)});
|
||||||
|
}
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: base(0.5);
|
||||||
|
|
||||||
|
.rich-text-upload__doc-drawer-toggler {
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > *:not(:last-child) {
|
||||||
|
margin-right: 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: base(0.5);
|
||||||
|
border-top: 1px solid var(--theme-elevation-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__wrap {
|
||||||
|
padding: base(0.5) base(0.5) base(0.5) base(1);
|
||||||
|
text-align: left;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--selected {
|
||||||
|
box-shadow: $focus-box-shadow;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include small-break {
|
||||||
|
&__topRowRightPanel {
|
||||||
|
padding: base(0.75) base(0.5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user