|
|
@@ -1,19 +1,29 @@
|
|
|
-@import 'editor-overlay';
|
|
|
+@use '~/styles/mixins' as ms;
|
|
|
+@use '~/styles/bootstrap/init' as bs;
|
|
|
+
|
|
|
+
|
|
|
+.editor-container :global {
|
|
|
+ // overlay in .editor-container
|
|
|
+ .overlay {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: 7; // forward than .CodeMirror-vscrollbar
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ // loading keymap
|
|
|
+ @include ms.overlay-processing-style(overlay-loading-keymap, 2.5em, 0.3em);
|
|
|
|
|
|
-.editor-container {
|
|
|
// for Dropzone
|
|
|
.dropzone {
|
|
|
- @mixin insertSimpleLineIcons($code) {
|
|
|
- &:before {
|
|
|
- margin-right: 0.2em;
|
|
|
- font-family: 'simple-line-icons';
|
|
|
- content: $code;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
position: relative; // against .overlay position: absolute
|
|
|
|
|
|
- @include overlay-processing-style(overlay-dropzone-active, 2.5em, 0.5em);
|
|
|
+ @include ms.overlay-processing-style(overlay-dropzone-active, 2.5em, 0.5em);
|
|
|
|
|
|
// unuploadable or rejected
|
|
|
&.dropzone-unuploadable,
|
|
|
@@ -22,14 +32,14 @@
|
|
|
background: rgba(200, 200, 200, 0.8);
|
|
|
|
|
|
.overlay-content {
|
|
|
- color: $gray-700;
|
|
|
+ color: bs.$gray-300;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// uploading
|
|
|
&.dropzone-uploading {
|
|
|
- @include overlay-processing-style(overlay-dropzone-active, 2.5em, 0.5em);
|
|
|
+ @include ms.overlay-processing-style(overlay-dropzone-active, 2.5em, 0.5em);
|
|
|
}
|
|
|
|
|
|
// unuploadable
|
|
|
@@ -37,7 +47,7 @@
|
|
|
.overlay.overlay-dropzone-active {
|
|
|
.overlay-content {
|
|
|
// insert content
|
|
|
- @include insertSimpleLineIcons('\e617'); // icon-exclamation
|
|
|
+ @include ms.insertSimpleLineIcons('\e617'); // icon-exclamation
|
|
|
|
|
|
&:after {
|
|
|
content: 'File uploading is disabled';
|
|
|
@@ -51,18 +61,18 @@
|
|
|
// accepted
|
|
|
&.dropzone-accepted:not(.dropzone-rejected) {
|
|
|
.overlay.overlay-dropzone-active {
|
|
|
- border: 4px dashed $gray-300;
|
|
|
+ border: 4px dashed bs.$gray-300;
|
|
|
|
|
|
.overlay-content {
|
|
|
// insert content
|
|
|
- @include insertSimpleLineIcons('\e084'); // icon-cloud-upload
|
|
|
+ @include ms.insertSimpleLineIcons('\e084'); // icon-cloud-upload
|
|
|
|
|
|
&:after {
|
|
|
content: 'Drop here to upload';
|
|
|
}
|
|
|
|
|
|
// style
|
|
|
- color: $secondary;
|
|
|
+ color: bs.$secondary;
|
|
|
background: rgba(200, 200, 200, 0.8);
|
|
|
}
|
|
|
}
|
|
|
@@ -73,7 +83,7 @@
|
|
|
.overlay.overlay-dropzone-active {
|
|
|
.overlay-content {
|
|
|
// insert content
|
|
|
- @include insertSimpleLineIcons('\e032'); // icon-picture
|
|
|
+ @include ms.insertSimpleLineIcons('\e032'); // icon-picture
|
|
|
|
|
|
&:after {
|
|
|
content: 'Only an image file is allowed';
|
|
|
@@ -87,7 +97,7 @@
|
|
|
.overlay.overlay-dropzone-active {
|
|
|
.overlay-content {
|
|
|
// insert content
|
|
|
- @include insertSimpleLineIcons('\e617'); // icon-exclamation
|
|
|
+ @include ms.insertSimpleLineIcons('\e617'); // icon-exclamation
|
|
|
|
|
|
&:after {
|
|
|
content: 'Only 1 file is allowed';
|
|
|
@@ -106,7 +116,7 @@
|
|
|
padding-bottom: 3px;
|
|
|
font-size: small;
|
|
|
border: none;
|
|
|
- border-top: 1px dotted $gray-300;
|
|
|
+ border-top: 1px dotted bs.$gray-300;
|
|
|
border-bottom: none;
|
|
|
|
|
|
&:hover,
|
|
|
@@ -114,4 +124,40 @@
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // for Navbar editor
|
|
|
+ .navbar-editor {
|
|
|
+ height: 30px;
|
|
|
+ padding: 0;
|
|
|
+
|
|
|
+ border-bottom: 1px solid transparent;
|
|
|
+
|
|
|
+ li {
|
|
|
+ display: inline-block;
|
|
|
+ i {
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ button {
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0 2px;
|
|
|
+ font-size: 1rem;
|
|
|
+ line-height: 1;
|
|
|
+ background-color: transparent;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ img {
|
|
|
+ vertical-align: bottom;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.modal-gfm-cheatsheet :global {
|
|
|
+ .modal-body {
|
|
|
+ .hljs {
|
|
|
+ font-family: bs.$font-family-monospace;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|