+@use "sass:math";
+
+@use "mixins";
+@use "vars";
+
// System wide notifications
.notification {
position: fixed;
top: 0;
right: 0;
- margin: $-xl;
- padding: $-m $-l;
+ margin: vars.$xl;
+ padding: vars.$m vars.$l;
background-color: #FFF;
- @include lightDark(background-color, #fff, #444);
+ @include mixins.lightDark(background-color, #fff, #444);
border-radius: 4px;
border-inline-start: 6px solid currentColor;
- box-shadow: $bs-large;
+ box-shadow: vars.$bs-large;
z-index: 999999;
cursor: pointer;
max-width: 360px;
svg {
width: 2.8rem;
height: 2.8rem;
- padding-inline-end: $-s;
+ padding-inline-end: vars.$s;
fill: currentColor;
}
.dismiss {
margin-top: -8px;
svg {
height: 1.0rem;
- @include lightDark(color, #444, #888);
+ @include mixins.lightDark(color, #444, #888);
}
}
span {
vertical-align: middle;
line-height: 1.3;
- @include whenDark {
+ @include mixins.whenDark {
color: #BBB;
}
}
&.pos {
- color: $positive;
+ color: var(--color-positive);
}
&.neg {
- color: $negative;
+ color: var(--color-negative);
}
&.warning {
- color: $warning;
+ color: var(--color-warning);
}
&.showing {
transform: translateX(0);
transform: rotate(90deg);
}
svg[data-icon="caret-right"] + * {
- margin-inline-start: $-xxs;
+ margin-inline-start: vars.$xxs;
}
}
[overlay], .popup-background {
- @include lightDark(background-color, rgba(0, 0, 0, 0.333), rgba(0, 0, 0, 0.6));
+ @include mixins.lightDark(background-color, rgba(0, 0, 0, 0.333), rgba(0, 0, 0, 0.6));
position: fixed;
z-index: 95536;
width: 100%;
}
.popup-body {
- @include lightDark(background-color, #fff, #333);
+ @include mixins.lightDark(background-color, #fff, #333);
max-height: 90%;
max-width: 1200px;
width: 90%;
z-index: 999;
display: flex;
flex-direction: column;
+ position: relative;
&.small {
margin: 2% auto;
width: 800px;
border-radius: 0;
box-shadow: none;
color: #FFF;
- padding: $-xs $-m;
+ padding: vars.$xs vars.$m;
+ cursor: pointer;
}
.popup-header button:not(.popup-header-close) {
background-color: var(--color-primary-light);
min-height: 41px;
button {
- padding: 10px $-m;
+ padding: 10px vars.$m;
}
}
flex: 0;
.popup-title {
color: #FFF;
- margin-right: auto;
- padding: 8px $-m;
+ margin-inline-end: auto;
+ padding: 8px vars.$m;
}
&.flex-container-row {
display: flex !important;
flex: 1;
}
+.dropzone-overlay {
+ position: absolute;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 1.333rem;
+ width: 98%;
+ height: 98%;
+ left: 1%;
+ top: 1%;
+ border-radius: 4px;
+ border: 1px dashed var(--color-primary);
+ font-style: italic;
+ box-sizing: content-box;
+ background-clip: padding-box;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23a9a9a9' fill-opacity='0.52' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
+ background-color: var(--color-primary);
+ color: #FFF;
+ opacity: .8;
+ z-index: 9;
+ pointer-events: none;
+ animation: dzAnimIn 240ms ease-in-out;
+}
+
+.dropzone-landing-area {
+ background-color: var(--color-primary-light);
+ padding: vars.$m vars.$l;
+ width: 100%;
+ border: 1px dashed var(--color-primary);
+ color: var(--color-primary);
+ border-radius: 4px;
+}
+
+@keyframes dzAnimIn {
+ 0% {
+ opacity: 0;
+ transform: scale(.7);
+ }
+ 60% {
+ transform: scale(1.1);
+ }
+ 100% {
+ transform: scale(1);
+ opacity: .8;
+ }
+}
+
+@keyframes dzFileItemIn {
+ 0% {
+ opacity: .5;
+ transform: translateY(28px);
+ }
+ 100% {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+@keyframes dzFileItemOut {
+ 0% {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ 100% {
+ opacity: .5;
+ transform: translateY(28px);
+ }
+}
+
+.dropzone-file-item {
+ width: 260px;
+ height: 80px;
+ position: relative;
+ display: flex;
+ margin: 1rem;
+ flex-direction: row;
+ @include mixins.lightDark(background, #FFF, #444);
+ box-shadow: vars.$bs-large;
+ border-radius: 4px;
+ overflow: hidden;
+ padding-bottom: 3px;
+ animation: dzFileItemIn ease-in-out 240ms;
+ transition: transform ease-in-out 120ms, box-shadow ease-in-out 120ms;
+ cursor: pointer;
+ &:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 3px 8px 1px rgba(22, 22, 22, 0.2);
+ }
+}
+.dropzone-file-item.dismiss {
+ animation: dzFileItemOut ease-in-out 240ms;
+}
+.dropzone-file-item .loading-container {
+ text-align: start !important;
+ margin: 0;
+}
+.dropzone-file-item-image-wrap {
+ width: 80px;
+ position: relative;
+ background-color: var(--color-primary-light);
+ img {
+ object-fit: cover;
+ width: 100%;
+ height: 100%;
+ opacity: .8;
+ }
+}
+.dropzone-file-item-text-wrap {
+ flex: 1;
+ display: block;
+ padding: 1rem;
+ overflow: auto;
+}
+.dropzone-file-item-progress {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ font-size: 0;
+ height: 3px;
+ background-color: var(--color-primary);
+ transition: width ease-in-out 240ms;
+}
+.dropzone-file-item-label {
+ line-height: 1.2;
+ margin-bottom: .2rem;
+}
+.dropzone-file-item-label,
+.dropzone-file-item-status {
+ align-items: center;
+ font-size: .8rem;
+ font-weight: 700;
+}
+.dropzone-file-item-status[data-status] {
+ display: flex;
+ font-size: .6rem;
+ font-weight: 500;
+ line-height: 1.2;
+}
+.dropzone-file-item-status[data-status="success"] {
+ color: var(--color-positive);
+}
+.dropzone-file-item-status[data-status="error"] {
+ color: var(--color-negative);
+}
+.dropzone-file-item-status[data-status] + .dropzone-file-item-label {
+ display: none;
+}
+
.image-manager-body {
min-height: 70vh;
}
+.image-manager-filter-bar {
+ position: sticky;
+ top: 0;
+ z-index: 5;
+ @include mixins.lightDark(background-color, rgba(255, 255, 255, 0.85), rgba(80, 80, 80, 0.85));
+}
+.image-manager-filter-bar-bg {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ opacity: .15;
+ z-index: -1;
+}
-.dropzone-container {
- position: relative;
- @include lightDark(background-color, #eee, #222);
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23a9a9a9' fill-opacity='0.52' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
+.image-manager-filters {
+ box-shadow: vars.$bs-med;
+ border-radius: 4px;
+ overflow: hidden;
+ border-bottom: 0 !important;
+ @include mixins.whenDark {
+ border: 1px solid #000 !important;
+ }
+ button {
+ line-height: 0;
+ @include mixins.lightDark(background-color, #FFF, #333);
+ }
+ svg {
+ margin: 0;
+ }
+}
+
+.image-manager-list {
+ padding: 3px;
+ display: grid;
+ grid-template-columns: repeat( auto-fill, minmax(max(140px, 17%), 1fr) );
+ gap: 3px;
+ z-index: 3;
+ > div {
+ aspect-ratio: 1;
+ }
}
.image-manager-list .image {
display: block;
position: relative;
border-radius: 0;
- float: left;
margin: 0;
+ width: 100%;
+ text-align: start;
+ padding: 0;
cursor: pointer;
- width: math.div(100%, 6);
- height: auto;
- @include lightDark(border-color, #ddd, #000);
- box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
- transition: all cubic-bezier(.4, 0, 1, 1) 160ms;
+ aspect-ratio: 1;
+ @include mixins.lightDark(border-color, #ddd, #000);
+ transition: all linear 80ms;
overflow: hidden;
&.selected {
- transform: scale3d(0.92, 0.92, 0.92);
- outline: currentColor 2px solid;
+ background-color: var(--color-primary-light);
+ outline: currentColor 3px solid;
+ border-radius: 3px;
+ transform: scale3d(0.95, 0.95, 0.95);
}
img {
width: 100%;
max-width: 100%;
display: block;
+ object-fit: cover;
+ height: auto;
}
.image-meta {
+ opacity: 0;
position: absolute;
width: 100%;
bottom: 0;
left: 0;
color: #EEE;
- background-color: rgba(0, 0, 0, 0.4);
+ background-color: rgba(0, 0, 0, 0.7);
font-size: 10px;
padding: 3px 4px;
+ pointer-events: none;
+ transition: opacity ease-in-out 80ms;
span {
display: block;
}
}
- @include smaller-than($xl) {
- width: math.div(100%, 4);
+ &.selected .image-meta,
+ &:hover .image-meta,
+ &:focus .image-meta {
+ opacity: 1;
}
- @include smaller-than($m) {
+ @include mixins.smaller-than(vars.$bp-m) {
.image-meta {
display: none;
}
}
.image-manager .load-more {
- display: block;
text-align: center;
- @include lightDark(background-color, #EEE, #444);
- padding: $-s $-m;
- color: #AAA;
+ padding: vars.$s vars.$m;
clear: both;
- font-size: 20px;
- cursor: pointer;
- font-style: italic;
+ .loading-container {
+ margin: 0;
+ }
}
.image-manager .loading-container {
text-align: center;
}
+.image-manager-list .image-manager-list-warning {
+ grid-column: 1 / -1;
+ aspect-ratio: auto;
+}
+
+.image-manager-warning {
+ @include mixins.lightDark(background, #FFF, #333);
+ color: var(--color-warning);
+ font-weight: bold;
+ border-inline: 3px solid var(--color-warning);
+}
+
.image-manager-sidebar {
width: 300px;
+ margin: 0 auto;
overflow-y: auto;
overflow-x: hidden;
border-inline-start: 1px solid #DDD;
- @include lightDark(border-color, #ddd, #000);
+ @include mixins.lightDark(border-color, #ddd, #000);
.inner {
min-height: auto;
- padding: $-m;
+ padding: vars.$m;
}
- img {
+ .image-manager-viewer img {
max-width: 100%;
max-height: 180px;
display: block;
- margin: 0 auto $-m auto;
+ margin: 0 auto vars.$m auto;
box-shadow: 0 1px 21px 1px rgba(76, 76, 76, 0.3);
}
.image-manager-viewer {
display: inline-block;
}
}
- .dropzone-container {
- border-bottom: 1px solid #DDD;
- @include lightDark(border-color, #ddd, #000);
- }
}
-
-.image-manager-list {
- overflow-y: scroll;
- flex: 1;
+@include mixins.smaller-than(vars.$bp-m) {
+ .image-manager-sidebar {
+ border-inline-start: 0;
+ }
}
.image-manager-content {
display: flex;
flex-direction: column;
flex: 1;
+ overflow-y: scroll;
.container {
width: 100%;
}
}
}
-// Dropzone
-/*
- * The MIT License
- */
-.dz-message {
- font-size: 1em;
- line-height: 2.85;
- font-style: italic;
- color: #888;
- text-align: center;
- cursor: pointer;
- padding: $-l $-m;
- transition: all ease-in-out 120ms;
-}
-
-.dz-drag-hover .dz-message {
- background-color: rgb(16, 126, 210);
- color: #EEE;
-}
-
-@keyframes passing-through {
- 0% {
- opacity: 0;
- transform: translateY(40px);
- }
- 30%, 70% {
- opacity: 1;
- transform: translateY(0px);
- }
- 100% {
- opacity: 0;
- transform: translateY(-40px);
- }
-}
-
-@keyframes slide-in {
- 0% {
- opacity: 0;
- transform: translateY(40px);
- }
- 30% {
- opacity: 1;
- transform: translateY(0px);
- }
-}
-
-@keyframes pulse {
- 0% {
- transform: scale(1);
+.tab-container.bordered [role="tablist"] button[role="tab"] {
+ border-inline-end: 1px solid #DDD;
+ @include mixins.lightDark(border-inline-end-color, #DDD, #000);
+ &:last-child {
+ border-inline-end: none;
}
- 10% {
- transform: scale(1.1);
- }
- 20% {
- transform: scale(1);
- }
-}
-
-.dropzone, .dropzone * {
- box-sizing: border-box;
-}
-
-.dz-preview {
- position: relative;
- display: inline-block;
- vertical-align: top;
- margin: 12px;
- min-height: 80px;
-}
-
-.dz-preview:hover {
- z-index: 1000;
-}
-
-.dz-preview:hover .dz-details {
- opacity: 1;
-}
-
-.dz-preview.dz-file-preview .dz-image {
- border-radius: 4px;
- background: #e9e9e9;
-}
-
-.dz-preview.dz-file-preview .dz-details {
- opacity: 1;
-}
-
-.dz-preview.dz-image-preview {
- background: white;
-}
-
-.dz-preview.dz-image-preview .dz-details {
- transition: opacity 0.2s linear;
-}
-
-.dz-preview .dz-remove {
- font-size: 13px;
- text-align: center;
- display: block;
- cursor: pointer;
- border: none;
- margin-top: 3px;
-}
-
-.dz-preview .dz-remove:hover {
- text-decoration: underline;
-}
-
-.dz-preview:hover .dz-details {
- opacity: 1;
}
-.dz-preview .dz-details {
- z-index: 20;
- position: absolute;
- top: 0;
- left: 0;
- opacity: 0;
- font-size: 10px;
- min-width: 100%;
- max-width: 100%;
- padding: 6px 3px;
- text-align: center;
- color: rgba(0, 0, 0, 0.9);
- line-height: 150%;
-}
-
-.dz-preview .dz-details .dz-size {
- margin-bottom: 0.5em;
- font-size: 12px;
-}
-
-.dz-preview .dz-details .dz-filename {
- white-space: nowrap;
-}
-
-.dz-preview .dz-details .dz-filename:hover span {
- border: 1px solid rgba(200, 200, 200, 0.8);
- background-color: rgba(255, 255, 255, 0.8);
-}
-
-.dz-preview .dz-details .dz-filename:not(:hover) {
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.dz-preview .dz-details .dz-filename:not(:hover) span {
- border: 1px solid transparent;
-}
-
-.dz-preview .dz-details .dz-filename span {
- background-color: rgba(255, 255, 255, 0.4);
- padding: 0 0.4em;
- border-radius: 3px;
-}
-
-.dz-preview:hover .dz-image img {
- filter: blur(8px);
-}
-
-.dz-preview .dz-image {
- border-radius: 4px;
- overflow: hidden;
- width: 80px;
- height: 80px;
- position: relative;
- display: block;
- z-index: 10;
-}
-
-.dz-preview .dz-image img {
- display: block;
-}
-
-.dz-preview.dz-success .dz-success-mark {
- animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
-}
-
-.dz-preview.dz-error .dz-error-mark {
- opacity: 1;
- animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
-}
-
-.dz-preview .dz-success-mark, .dz-preview .dz-error-mark {
- pointer-events: none;
- opacity: 0;
- z-index: 1001;
- position: absolute;
- display: block;
- top: 50%;
- left: 50%;
- margin-inline-start: -27px;
- margin-top: -35px;
-}
-
-.dz-preview .dz-success-mark svg, .dz-preview .dz-error-mark svg {
- display: block;
- width: 54px;
- height: 54px;
-}
-
-.dz-preview.dz-processing .dz-progress {
- opacity: 1;
- transition: all 0.2s linear;
-}
-
-.dz-preview.dz-complete .dz-progress {
- opacity: 0;
- transition: opacity 0.4s ease-in;
-}
-
-.dz-preview:not(.dz-processing) .dz-progress {
- animation: pulse 6s ease infinite;
-}
-
-.dz-preview .dz-progress {
- opacity: 1;
- z-index: 1000;
- pointer-events: none;
- position: absolute;
- height: 16px;
- left: 50%;
- top: 50%;
- margin-top: -8px;
- width: 80px;
- margin-inline-start: -40px;
- background: rgba(255, 255, 255, 0.9);
- transform: scale(1);
- border-radius: 8px;
- overflow: hidden;
-}
-
-.dz-preview .dz-progress .dz-upload {
- background: #333;
- background: linear-gradient(to bottom, #666, #444);
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- width: 0;
- transition: width 300ms ease-in-out;
-}
-
-.dz-preview.dz-error .dz-error-message {
- display: block;
-}
-
-.dz-preview.dz-error {
- .dz-image, .dz-details {
- &:hover ~ .dz-error-message {
- opacity: 1;
- pointer-events: auto;
- }
- }
-}
-
-.dz-preview .dz-error-message {
- pointer-events: none;
- z-index: 1000;
- position: absolute;
- display: block;
- display: none;
- opacity: 0;
- transition: opacity 0.3s ease;
- border-radius: 4px;
- font-size: 12px;
- line-height: 1.2;
- top: 88px;
- left: -12px;
- width: 160px;
- background: $negative;
- padding: $-xs;
- color: white;
-}
-
-.dz-preview .dz-error-message:after {
- content: '';
- position: absolute;
- top: -6px;
- left: 44px;
- width: 0;
- height: 0;
- border-inline-start: 6px solid transparent;
- border-inline-end: 6px solid transparent;
- border-bottom: 6px solid $negative;
-}
-
-
.tab-container [role="tablist"] {
display: flex;
align-items: end;
justify-items: start;
text-align: start;
border-bottom: 1px solid #DDD;
- @include lightDark(border-color, #ddd, #444);
- margin-bottom: $-m;
+ @include mixins.lightDark(border-color, #ddd, #444);
+ margin-bottom: vars.$m;
}
-.tab-container [role="tablist"] button[role="tab"],
-.image-manager [role="tablist"] button[role="tab"] {
+.tab-container [role="tablist"] button[role="tab"] {
display: inline-block;
- padding: $-s;
- @include lightDark(color, rgba(0, 0, 0, .5), rgba(255, 255, 255, .5));
+ padding: vars.$s;
+ @include mixins.lightDark(color, rgba(0, 0, 0, .5), rgba(255, 255, 255, .5));
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
&[aria-selected="true"] {
- color: var(--color-primary) !important;
- border-bottom-color: var(--color-primary) !important;
+ color: var(--color-link) !important;
+ border-bottom-color: var(--color-link) !important;
+ outline: 0 !important;
}
&:hover, &:focus {
- @include lightDark(color, rgba(0, 0, 0, .8), rgba(255, 255, 255, .8));
- @include lightDark(border-bottom-color, rgba(0, 0, 0, .2), rgba(255, 255, 255, .2));
+ @include mixins.lightDark(color, rgba(0, 0, 0, .8), rgba(255, 255, 255, .8));
+ @include mixins.lightDark(border-bottom-color, rgba(0, 0, 0, .2), rgba(255, 255, 255, .2));
+ }
+ &:focus {
+ outline: 1px dotted var(--color-primary);
+ outline-offset: -2px;
}
}
.tab-container [role="tablist"].controls-card {
margin-bottom: 0;
border-bottom: 0;
- padding: 0 $-xs;
+ padding: 0 vars.$xs;
+}
+.tab-container [role="tabpanel"].no-outline:focus {
+ outline: none;
}
.image-picker .none {
.code-editor .lang-options button {
display: block;
- padding: $-xs $-m;
+ padding: vars.$xs vars.$m;
border-bottom: 1px solid;
- @include lightDark(color, #333, #AAA);
- @include lightDark(border-bottom-color, #EEE, #000);
+ @include mixins.lightDark(color, #333, #AAA);
+ @include mixins.lightDark(border-bottom-color, #EEE, #000);
cursor: pointer;
width: 100%;
text-align: left;
- font-family: $mono;
+ font-family: var(--font-code);
font-size: 0.7rem;
- padding-left: 24px + $-xs;
+ padding-left: 24px + vars.$xs;
&:hover, &.active {
background-color: var(--color-primary-light);
color: var(--color-primary);
background-color: var(--color-primary-light);
width: 100%;
color: var(--color-primary);
- padding: $-xxs $-s;
+ padding: vars.$xxs vars.$s;
margin-bottom: 0;
}
border-radius: 0;
border: 0;
border-bottom: 1px solid #DDD;
- padding: $-xs $-s;
+ padding: vars.$xs vars.$s;
height: auto;
}
.code-editor-main {
flex: 1;
min-width: 0;
- .CodeMirror {
+ .cm-editor {
margin-bottom: 0;
z-index: 1;
max-width: 100%;
height: 80vh;
}
-@include smaller-than($s) {
+@include mixins.smaller-than(vars.$bp-s) {
.code-editor .lang-options {
display: none;
}
}
}
+.comments-container {
+ padding-inline: vars.$xl;
+ @include mixins.smaller-than(vars.$bp-m) {
+ padding-inline: vars.$xs;
+ }
+}
.comment-box {
border-radius: 4px;
border: 1px solid #DDD;
- @include lightDark(border-color, #ddd, #000);
- @include lightDark(background-color, #FFF, #222);
+ @include mixins.lightDark(border-color, #ddd, #000);
+ @include mixins.lightDark(background-color, #FFF, #222);
.content {
font-size: 0.666em;
+ padding: vars.$xs vars.$s;
p, ul, ol {
- font-size: $fs-m;
+ font-size: vars.$fs-m;
margin: .5em 0;
}
}
&:hover .actions, &:focus-within .actions {
opacity: 1;
}
+ .actions button:focus {
+ outline: 1px dotted var(--color-primary);
+ }
+ @include mixins.smaller-than(vars.$bp-m) {
+ .actions {
+ opacity: 1;
+ }
+ }
}
.comment-box .header {
- .meta {
- img, a, span {
- display: inline-block;
- vertical-align: top;
- }
- a, span {
- padding: $-xxs 0 $-xxs 0;
- line-height: 1.6;
- }
- a { color: #666; }
- span {
- padding-inline-start: $-xxs;
- }
+ border-bottom: 1px solid #DDD;
+ padding: vars.$xs vars.$s;
+ @include mixins.lightDark(border-color, #DDD, #000);
+ a {
+ color: inherit;
}
.text-muted {
color: #999;
}
+ .meta a, .meta span {
+ white-space: nowrap;
+ }
+ .right-meta .text-muted {
+ opacity: .8;
+ }
+}
+
+.comment-thread-indicator {
+ border-inline-start: 3px dotted #DDD;
+ @include mixins.lightDark(border-color, #DDD, #444);
+ margin-inline-start: vars.$xs;
+ width: vars.$l;
+ height: calc(100% - vars.$m);
+}
+
+.comment-reference-indicator-wrap a {
+ float: left;
+ margin-top: vars.$xs;
+ font-size: 12px;
+ display: inline-block;
+ font-weight: bold;
+ position: relative;
+ border-radius: 4px;
+ overflow: hidden;
+ padding: 2px 6px 2px 0;
+ margin-inline-end: vars.$xs;
+ color: var(--color-link);
+ span {
+ display: none;
+ }
+ &.outdated span {
+ display: inline;
+ }
+ &.outdated.missing {
+ color: var(--color-warning);
+ pointer-events: none;
+ }
+ svg {
+ width: 24px;
+ margin-inline-end: 0;
+ }
+ &:after {
+ background-color: currentColor;
+ content: '';
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ opacity: 0.15;
+ }
+ &[href="#"] {
+ color: #444;
+ pointer-events: none;
+ }
+}
+
+.comment-branch .comment-box {
+ margin-bottom: vars.$m;
+}
+
+.comment-branch .comment-branch .comment-branch .comment-branch .comment-thread-indicator {
+ display: none;
+}
+
+.comment-reply {
+ display: none;
+ margin: 0 !important;
+ margin-bottom: -(vars.$xxs) !important;
+}
+
+.comment-branch .comment-branch .comment-branch .comment-branch .comment-reply {
+ display: block;
+}
+
+.comment-container .empty-state {
+ display: none;
+}
+.comment-container:not(:has([component="page-comment"])) .empty-state {
+ display: block;
+}
+
+.comment-container-compact .comment-box {
+ margin-bottom: vars.$xs;
+ .meta {
+ font-size: 0.8rem;
+ }
+ .header {
+ padding: vars.$xs;
+ }
+ .right-meta {
+ display: none;
+ }
+ .content {
+ padding: vars.$xs vars.$s;
+ }
+}
+.comment-container-compact .comment-thread-indicator {
+ width: vars.$m;
+}
+
+.comment-container-super-compact .comment-box {
+ .meta {
+ font-size: 12px;
+ }
+ .avatar {
+ width: 22px;
+ height: 22px;
+ margin-inline-end: 2px !important;
+ }
+ .content {
+ padding: vars.$xxs vars.$s;
+ line-height: 1.2;
+ }
+ .content p {
+ font-size: 12px;
+ }
+}
+
+.comment-container-super-compact .comment-thread-indicator {
+ width: (vars.$xs + 3px);
+ margin-inline-start: 3px;
}
#tag-manager .drag-card {
display: flex;
flex-direction: column;
border-inline-start: 1px solid;
- @include lightDark(border-color, #ddd, #000);
+ @include mixins.lightDark(border-color, #ddd, #000);
}
.template-item-actions button {
cursor: pointer;
flex: 1;
- @include lightDark(background-color, #FFF, #222);
+ @include mixins.lightDark(background-color, #FFF, #222);
border: 0;
border-top: 1px solid;
- @include lightDark(border-color, #DDD, #000);
+ @include mixins.lightDark(border-color, #DDD, #000);
}
.template-item-actions button svg {
margin: 0;
border: 1px solid transparent;
border-radius: 4px;
line-height: normal;
- padding: $-xs;
+ padding: vars.$xs;
&:hover {
border-color: #DDD;
}
}
.dropdown-search-toggle-select {
display: flex;
- gap: $-s;
+ gap: vars.$s;
line-height: normal;
.svg-icon {
height: 26px;
}
.dropdown-search-dropdown {
- box-shadow: $bs-med;
+ box-shadow: vars.$bs-med;
overflow: hidden;
min-height: 100px;
width: 240px;
z-index: 80;
right: 0;
top: 0;
- margin-top: $-m;
- @include rtl {
+ margin-top: vars.$m;
+ @include mixins.rtl {
right: auto;
- left: -$-m;
+ left: -(vars.$m);
}
.dropdown-search-search .svg-icon {
position: absolute;
- left: $-s;
- @include rtl {
- right: $-s;
+ left: vars.$s;
+ @include mixins.rtl {
+ right: vars.$s;
left: auto;
}
top: 11px;
text-align: start;
}
.dropdown-search-item {
- padding: $-s $-m;
+ padding: vars.$s vars.$m;
&:hover,&:focus {
background-color: #F2F2F2;
text-decoration: none;
}
}
input, input:focus {
- padding-inline-start: $-xl;
+ padding-inline-start: vars.$xl;
border-radius: 0;
border: 0;
border-bottom: 1px solid #DDD;
}
}
-@include smaller-than($m) {
+@include mixins.smaller-than(vars.$bp-l) {
.dropdown-search-dropdown {
- position: fixed;
- right: auto;
- left: $-m;
+ inset-inline: vars.$m auto;
}
.dropdown-search-dropdown .dropdown-search-list {
max-height: 240px;
}
.item-list-row {
border: 1.5px solid;
- @include lightDark(border-color, #E2E2E2, #444);
+ @include mixins.lightDark(border-color, #E2E2E2, #444);
border-bottom-width: 0;
label {
padding-bottom: 0;
}
&:hover {
- @include lightDark(background-color, #F6F6F6, #333);
+ @include mixins.lightDark(background-color, #F6F6F6, #333);
}
}
.item-list-row:first-child {
display: inline-block;
}
.status-indicator-active {
- background-color: $positive;
+ background-color: var(--color-positive);
}
.status-indicator-inactive {
- background-color: $negative;
+ background-color: var(--color-negative);
}
.shortcut-container {
}
.shortcut-hint {
position: fixed;
- padding: $-xxs $-xxs;
+ padding: vars.$xxs vars.$xxs;
font-size: .85rem;
font-weight: 700;
line-height: 1;
.back-to-top {
background-color: var(--color-primary);
position: fixed;
- bottom: $-m;
- right: $-l;
+ bottom: vars.$m;
+ right: vars.$l;
padding: 5px 7px;
cursor: pointer;
color: #FFF;
vertical-align: top;
line-height: 2;
}
+}
+
+// Sortable scroll boxes
+.scroll-box {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ max-height: 280px;
+ overflow-y: scroll;
+ border: 1px solid;
+ @include mixins.lightDark(border-color, #DDD, #000);
+ border-radius: 3px;
+ min-height: 20px;
+ @include mixins.lightDark(background-color, #EEE, #000);
+}
+.scroll-box-item {
+ border-bottom: 1px solid;
+ border-top: 1px solid;
+ @include mixins.lightDark(border-color, #DDD, #000);
+ margin-top: -1px;
+ @include mixins.lightDark(background-color, #FFF, #222);
+ display: flex;
+ align-items: flex-start;
+ padding: 1px;
+ &:last-child {
+ border-bottom: 0;
+ }
+ &:hover {
+ cursor: pointer;
+ @include mixins.lightDark(background-color, #f8f8f8, #333);
+ }
+ &.items-center {
+ align-items: center;
+ }
+ .handle {
+ color: #AAA;
+ cursor: grab;
+ }
+ button {
+ opacity: .6;
+ line-height: 1;
+ }
+ .handle svg {
+ margin: 0;
+ }
+ > * {
+ padding: vars.$xs vars.$m;
+ }
+ .handle + * {
+ padding-left: 0;
+ }
+ &:hover .handle {
+ @include mixins.lightDark(color, #444, #FFF);
+ }
+ &:hover button {
+ opacity: 1;
+ }
+ a:hover {
+ text-decoration: none;
+ }
+}
+
+input.scroll-box-search, .scroll-box-header-item {
+ font-size: 0.8rem;
+ border: 1px solid;
+ @include mixins.lightDark(border-color, #DDD, #000);
+ @include mixins.lightDark(background-color, #FFF, #222);
+ margin-bottom: -1px;
+ border-radius: 3px 3px 0 0;
+ width: 100%;
+ max-width: 100%;
+ height: auto;
+ line-height: 1.4;
+ color: #666;
+}
+
+.scroll-box-search + .scroll-box,
+.scroll-box-header-item + .scroll-box {
+ border-radius: 0 0 3px 3px;
+}
+
+.scroll-box.configured-option-list [data-action="add"] {
+ display: none;
+}
+.scroll-box.available-option-list [data-action="remove"],
+.scroll-box.available-option-list [data-action="move_up"],
+.scroll-box.available-option-list [data-action="move_down"],
+{
+ display: none;
+}
+
+.scroll-box > li.empty-state {
+ display: none;
+}
+.scroll-box > li.empty-state:last-child {
+ display: list-item;
+}
+
+details.section-expander summary {
+ border-top: 1px solid #DDD;
+ @include mixins.lightDark(border-color, #DDD, #000);
+ font-weight: bold;
+ font-size: 12px;
+ color: #888;
+ cursor: pointer;
+ padding-block: vars.$xs;
+}
+details.section-expander:open summary {
+ margin-bottom: vars.$s;
+}
+details.section-expander {
+ border-bottom: 1px solid #DDD;
+ @include mixins.lightDark(border-color, #DDD, #000);
}
\ No newline at end of file