2024-06-05 20:04:49 +08:00
|
|
|
// Common variables
|
|
|
|
:root {
|
|
|
|
--editor-color-primary: #206ea7;
|
|
|
|
}
|
|
|
|
|
2024-05-30 19:25:25 +08:00
|
|
|
// Main UI elements
|
2024-07-01 17:44:23 +08:00
|
|
|
.editor-container {
|
|
|
|
background-color: #FFF;
|
|
|
|
position: relative;
|
|
|
|
&.fullscreen {
|
|
|
|
z-index: 500;
|
|
|
|
}
|
|
|
|
}
|
2024-05-30 19:25:25 +08:00
|
|
|
.editor-toolbar-main {
|
|
|
|
display: flex;
|
2024-06-19 23:14:20 +08:00
|
|
|
flex-wrap: wrap;
|
2024-07-01 22:10:22 +08:00
|
|
|
justify-content: center;
|
|
|
|
border-top: 1px solid #DDD;
|
|
|
|
border-bottom: 1px solid #DDD;
|
2024-05-30 19:25:25 +08:00
|
|
|
}
|
|
|
|
|
2024-07-01 17:44:23 +08:00
|
|
|
body.editor-is-fullscreen {
|
|
|
|
overflow: hidden;
|
|
|
|
.edit-area {
|
|
|
|
z-index: 20;
|
|
|
|
}
|
|
|
|
}
|
2024-07-01 22:10:22 +08:00
|
|
|
.editor-content-area {
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-content-wrap {
|
2024-09-08 01:39:58 +08:00
|
|
|
position: relative;
|
2024-07-01 22:10:22 +08:00
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
2024-07-01 17:44:23 +08:00
|
|
|
|
2024-05-30 19:25:25 +08:00
|
|
|
// Buttons
|
|
|
|
.editor-button {
|
|
|
|
font-size: 12px;
|
2024-07-04 23:16:16 +08:00
|
|
|
padding: 4px;
|
2024-05-30 19:25:25 +08:00
|
|
|
color: #444;
|
2024-07-01 22:10:22 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-07-04 23:16:16 +08:00
|
|
|
margin: 2px;
|
2024-05-30 19:25:25 +08:00
|
|
|
}
|
|
|
|
.editor-button:hover {
|
|
|
|
background-color: #EEE;
|
|
|
|
cursor: pointer;
|
|
|
|
color: #000;
|
|
|
|
}
|
2024-06-23 18:36:48 +08:00
|
|
|
.editor-button[disabled] {
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: .6;
|
|
|
|
}
|
2024-05-30 19:25:25 +08:00
|
|
|
.editor-button-active, .editor-button-active:hover {
|
|
|
|
background-color: #ceebff;
|
|
|
|
color: #000;
|
|
|
|
}
|
2024-08-02 18:16:54 +08:00
|
|
|
.editor-button-long {
|
|
|
|
display: flex !important;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: start;
|
|
|
|
gap: .5rem;
|
|
|
|
}
|
|
|
|
.editor-button-text {
|
|
|
|
font-weight: 400;
|
|
|
|
color: #000;
|
2024-09-09 21:06:41 +08:00
|
|
|
font-size: 14px;
|
|
|
|
flex: 1;
|
|
|
|
padding-inline-end: 4px;
|
2024-08-02 18:16:54 +08:00
|
|
|
}
|
2024-05-30 19:25:25 +08:00
|
|
|
.editor-button-format-preview {
|
|
|
|
padding: 4px 6px;
|
|
|
|
display: block;
|
|
|
|
}
|
2024-09-09 21:06:41 +08:00
|
|
|
.editor-button-long .editor-button-icon {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
}
|
2024-06-20 03:00:29 +08:00
|
|
|
.editor-button-icon svg {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2024-07-01 22:10:22 +08:00
|
|
|
color: inherit;
|
|
|
|
fill: currentColor;
|
2024-07-04 23:16:16 +08:00
|
|
|
display: block;
|
2024-06-20 03:00:29 +08:00
|
|
|
}
|
2024-09-09 21:06:41 +08:00
|
|
|
.editor-menu-button-icon {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
svg {
|
|
|
|
fill: #888;
|
|
|
|
}
|
|
|
|
}
|
2024-08-17 17:48:34 +08:00
|
|
|
.editor-button-with-menu-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 0;
|
|
|
|
align-items: stretch;
|
|
|
|
border-radius: 4px;
|
|
|
|
.editor-dropdown-menu-container {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.editor-dropdown-menu-container > .editor-dropdown-menu {
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
.editor-dropdown-menu-container > .editor-button {
|
|
|
|
padding-inline: 4px;
|
|
|
|
margin-inline-start: -3px;
|
|
|
|
svg {
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
outline: 1px solid #DDD;
|
|
|
|
outline-offset: -3px;
|
|
|
|
}
|
|
|
|
}
|
2024-05-30 19:25:25 +08:00
|
|
|
|
|
|
|
// Containers
|
|
|
|
.editor-dropdown-menu-container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.editor-dropdown-menu {
|
|
|
|
position: absolute;
|
|
|
|
background-color: #FFF;
|
|
|
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
|
|
|
|
z-index: 99;
|
|
|
|
min-width: 120px;
|
2024-07-04 23:16:16 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2024-05-30 19:25:25 +08:00
|
|
|
}
|
2024-08-02 18:16:54 +08:00
|
|
|
.editor-dropdown-menu-vertical {
|
2024-05-30 19:25:25 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-07-04 23:16:16 +08:00
|
|
|
align-items: stretch;
|
2024-09-09 21:06:41 +08:00
|
|
|
min-width: 160px;
|
2024-05-30 19:25:25 +08:00
|
|
|
}
|
2024-08-02 18:16:54 +08:00
|
|
|
.editor-dropdown-menu-vertical .editor-button {
|
2024-05-30 19:25:25 +08:00
|
|
|
border-bottom: 0;
|
|
|
|
text-align: start;
|
2024-07-04 23:16:16 +08:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2024-08-02 18:16:54 +08:00
|
|
|
.editor-dropdown-menu-vertical > .editor-dropdown-menu-container .editor-dropdown-menu {
|
2024-07-04 23:16:16 +08:00
|
|
|
inset-inline-start: 100%;
|
|
|
|
top: 0;
|
2024-05-30 19:25:25 +08:00
|
|
|
}
|
|
|
|
|
2024-09-09 21:06:41 +08:00
|
|
|
.editor-separator {
|
|
|
|
display: block;
|
|
|
|
height: 1px;
|
|
|
|
background-color: #DDD;
|
|
|
|
opacity: .8;
|
|
|
|
}
|
|
|
|
|
2024-07-04 23:16:16 +08:00
|
|
|
.editor-format-menu-toggle {
|
|
|
|
width: 130px;
|
|
|
|
height: 32px;
|
2024-09-09 21:06:41 +08:00
|
|
|
font-size: 13px;
|
2024-07-04 23:16:16 +08:00
|
|
|
overflow: hidden;
|
|
|
|
padding-inline: 12px;
|
|
|
|
justify-content: start;
|
|
|
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M7.41 8L12 12.58 16.59 8 18 9.41l-6 6-6-6z"/></svg>');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 98% 50%;
|
|
|
|
background-size: 28px;
|
|
|
|
}
|
2024-05-30 19:25:25 +08:00
|
|
|
.editor-format-menu .editor-dropdown-menu {
|
2024-07-04 23:16:16 +08:00
|
|
|
min-width: 300px;
|
|
|
|
.editor-dropdown-menu {
|
|
|
|
min-width: 220px;
|
|
|
|
}
|
2024-09-09 21:06:41 +08:00
|
|
|
.editor-button-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-07-04 23:16:16 +08:00
|
|
|
}
|
|
|
|
.editor-format-menu .editor-dropdown-menu .editor-dropdown-menu-container > .editor-button {
|
|
|
|
padding: 8px 10px;
|
2024-06-01 23:49:47 +08:00
|
|
|
}
|
|
|
|
|
2024-06-27 23:28:06 +08:00
|
|
|
.editor-overflow-container {
|
|
|
|
display: flex;
|
2024-07-04 23:16:16 +08:00
|
|
|
border-inline: 1px solid #DDD;
|
|
|
|
padding-inline: 4px;
|
|
|
|
&:first-child {
|
|
|
|
border-inline-start: none;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-inline-end: none;
|
|
|
|
}
|
|
|
|
+ .editor-overflow-container {
|
|
|
|
border-inline-start: none;
|
|
|
|
}
|
2024-06-27 23:28:06 +08:00
|
|
|
}
|
|
|
|
|
2024-07-01 02:52:09 +08:00
|
|
|
.editor-context-toolbar {
|
|
|
|
position: fixed;
|
|
|
|
background-color: #FFF;
|
|
|
|
border: 1px solid #DDD;
|
|
|
|
padding: .2rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
|
2024-07-04 23:16:16 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2024-07-01 02:52:09 +08:00
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
z-index: -1;
|
|
|
|
display: block;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
position: absolute;
|
|
|
|
background-color: #FFF;
|
|
|
|
border-top: 1px solid #DDD;
|
|
|
|
border-left: 1px solid #DDD;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -4px;
|
|
|
|
top: -5px;
|
|
|
|
}
|
2024-07-20 01:12:51 +08:00
|
|
|
&.is-above:before {
|
|
|
|
top: calc(100% - 5px);
|
|
|
|
transform: rotate(225deg);
|
|
|
|
}
|
2024-07-01 02:52:09 +08:00
|
|
|
}
|
|
|
|
|
2024-06-01 23:49:47 +08:00
|
|
|
// Modals
|
|
|
|
.editor-modal-wrapper {
|
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
z-index: 999;
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.editor-modal {
|
|
|
|
background-color: #FFF;
|
|
|
|
border-radius: 4px;
|
2024-07-10 03:49:47 +08:00
|
|
|
overflow: hidden;
|
|
|
|
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
|
2024-06-01 23:49:47 +08:00
|
|
|
}
|
|
|
|
.editor-modal-header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2024-07-10 03:49:47 +08:00
|
|
|
align-items: stretch;
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: #FFF;
|
2024-06-01 23:49:47 +08:00
|
|
|
}
|
|
|
|
.editor-modal-title {
|
2024-07-10 03:49:47 +08:00
|
|
|
padding: 8px $-m;
|
|
|
|
}
|
|
|
|
.editor-modal-close {
|
|
|
|
color: #FFF;
|
|
|
|
padding: 8px $-m;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
|
|
}
|
|
|
|
svg {
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
fill: currentColor;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-modal-body {
|
|
|
|
padding: $-m;
|
2024-06-05 20:04:49 +08:00
|
|
|
}
|
|
|
|
|
2024-06-13 02:51:42 +08:00
|
|
|
// Specific UI elements
|
|
|
|
.editor-color-select-row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.editor-color-select-option {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
cursor: pointer;
|
2024-09-09 21:06:41 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-06-13 02:51:42 +08:00
|
|
|
}
|
|
|
|
.editor-color-select-option:hover {
|
|
|
|
border-radius: 3px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
z-index: 3;
|
|
|
|
box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.25);
|
|
|
|
}
|
2024-09-09 21:06:41 +08:00
|
|
|
.editor-color-select-option[data-color=""] svg {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
fill: #888;
|
|
|
|
}
|
2024-06-21 23:18:44 +08:00
|
|
|
.editor-table-creator-row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.editor-table-creator-cell {
|
|
|
|
border: 1px solid #DDD;
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
cursor: pointer;
|
|
|
|
&.active {
|
|
|
|
background-color: var(--editor-color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-table-creator-display {
|
|
|
|
text-align: center;
|
|
|
|
padding: 0.2em;
|
|
|
|
}
|
2024-06-13 02:51:42 +08:00
|
|
|
|
2024-06-05 20:04:49 +08:00
|
|
|
// In-editor elements
|
|
|
|
.editor-image-wrap {
|
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
2024-09-08 20:37:13 +08:00
|
|
|
.editor-node-resizer {
|
2024-06-05 20:04:49 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2024-06-06 00:18:58 +08:00
|
|
|
display: inline-block;
|
2024-09-08 01:39:58 +08:00
|
|
|
outline: 2px dashed var(--editor-color-primary);
|
2024-06-05 20:04:49 +08:00
|
|
|
}
|
2024-09-08 20:37:13 +08:00
|
|
|
.editor-node-resizer-handle {
|
2024-06-05 20:04:49 +08:00
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
2024-06-06 00:18:58 +08:00
|
|
|
border: 2px solid var(--editor-color-primary);
|
2024-09-08 01:39:58 +08:00
|
|
|
z-index: 3;
|
2024-06-06 00:18:58 +08:00
|
|
|
background-color: #FFF;
|
2024-06-05 20:04:49 +08:00
|
|
|
user-select: none;
|
|
|
|
&.nw {
|
|
|
|
inset-inline-start: -5px;
|
|
|
|
inset-block-start: -5px;
|
|
|
|
cursor: nw-resize;
|
|
|
|
}
|
|
|
|
&.ne {
|
|
|
|
inset-inline-end: -5px;
|
|
|
|
inset-block-start: -5px;
|
|
|
|
cursor: ne-resize;
|
|
|
|
}
|
|
|
|
&.se {
|
|
|
|
inset-inline-end: -5px;
|
|
|
|
inset-block-end: -5px;
|
|
|
|
cursor: se-resize;
|
|
|
|
}
|
|
|
|
&.sw {
|
|
|
|
inset-inline-start: -5px;
|
|
|
|
inset-block-end: -5px;
|
|
|
|
cursor: sw-resize;
|
|
|
|
}
|
|
|
|
}
|
2024-09-08 20:37:13 +08:00
|
|
|
.editor-node-resizer-ghost {
|
2024-09-08 01:39:58 +08:00
|
|
|
opacity: 0.5;
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 2;
|
|
|
|
pointer-events: none;
|
2024-09-08 20:37:13 +08:00
|
|
|
background-color: var(--editor-color-primary);
|
2024-09-08 01:39:58 +08:00
|
|
|
}
|
2024-09-08 20:37:13 +08:00
|
|
|
.editor-node-resizer.active .editor-node-resizer-ghost {
|
2024-09-08 01:39:58 +08:00
|
|
|
display: block;
|
|
|
|
}
|
2024-06-21 20:47:47 +08:00
|
|
|
|
2024-06-26 20:52:00 +08:00
|
|
|
.editor-table-marker {
|
2024-06-21 20:47:47 +08:00
|
|
|
position: fixed;
|
|
|
|
background-color: var(--editor-color-primary);
|
|
|
|
z-index: 99;
|
|
|
|
user-select: none;
|
|
|
|
opacity: 0;
|
2024-06-26 20:52:00 +08:00
|
|
|
&:hover, &.active {
|
2024-06-21 20:47:47 +08:00
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-table-marker-column {
|
|
|
|
width: 4px;
|
|
|
|
cursor: col-resize;
|
|
|
|
}
|
|
|
|
.editor-table-marker-row {
|
|
|
|
height: 4px;
|
|
|
|
cursor: row-resize;
|
2024-06-23 18:36:48 +08:00
|
|
|
}
|
|
|
|
|
2024-07-03 00:34:03 +08:00
|
|
|
.editor-code-block-wrap {
|
|
|
|
user-select: none;
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2024-07-16 23:36:08 +08:00
|
|
|
&.selected .cm-editor {
|
|
|
|
border: 1px dashed var(--editor-color-primary);
|
|
|
|
}
|
2024-07-03 00:34:03 +08:00
|
|
|
}
|
2024-07-19 19:09:41 +08:00
|
|
|
.editor-diagram.selected {
|
|
|
|
outline: 2px dashed var(--editor-color-primary);
|
|
|
|
}
|
2024-07-03 00:34:03 +08:00
|
|
|
|
2024-09-08 20:37:13 +08:00
|
|
|
.editor-media-wrap {
|
2024-09-09 19:28:01 +08:00
|
|
|
display: inline-block;
|
2024-09-08 20:37:13 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
iframe {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2024-09-09 19:28:01 +08:00
|
|
|
&.align-left {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
&.align-right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
&.align-center {
|
|
|
|
display: block;
|
|
|
|
margin-inline: auto;
|
|
|
|
}
|
2024-09-08 20:37:13 +08:00
|
|
|
}
|
|
|
|
|
2024-07-30 21:42:19 +08:00
|
|
|
/**
|
|
|
|
* Fake task list checkboxes
|
|
|
|
*/
|
|
|
|
.editor-content-area .task-list-item {
|
|
|
|
margin-left: 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.editor-content-area .task-list-item > input[type="checkbox"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.editor-content-area .task-list-item:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
border: 2px solid #CCC;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
border-radius: 2px;
|
|
|
|
margin-right: 8px;
|
|
|
|
vertical-align: text-top;
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
left: -24px;
|
|
|
|
top: 4px;
|
|
|
|
}
|
|
|
|
.editor-content-area .task-list-item[checked]:before {
|
|
|
|
background-color: #CCC;
|
|
|
|
background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFFFFF" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m8.4856 20.274-6.736-6.736 2.9287-2.7823 3.8073 3.8073 10.836-10.836 2.9287 2.9287z" stroke-width="1.4644"/></svg>');
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
|
2024-09-09 21:06:41 +08:00
|
|
|
/**
|
|
|
|
* Form elements
|
|
|
|
*/
|
2024-07-10 03:49:47 +08:00
|
|
|
.editor-form-field-wrapper {
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
.editor-form-field-input {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 250px;
|
|
|
|
border: 1px solid #DDD;
|
|
|
|
padding: .5rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
color: #444;
|
|
|
|
}
|
|
|
|
textarea.editor-form-field-input {
|
|
|
|
font-family: var(--font-code);
|
|
|
|
width: 350px;
|
|
|
|
height: 250px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
.editor-form-field-label {
|
|
|
|
color: #444;
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
.editor-form-actions {
|
|
|
|
display: flex;
|
|
|
|
justify-content: end;
|
|
|
|
gap: $-s;
|
|
|
|
margin-top: $-m;
|
|
|
|
}
|
|
|
|
.editor-form-actions > button {
|
|
|
|
display: block;
|
|
|
|
font-size: 0.85rem;
|
|
|
|
line-height: 1.4em;
|
|
|
|
padding: $-xs*1.3 $-m;
|
|
|
|
font-weight: 400;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
box-shadow: none;
|
|
|
|
&:focus {
|
|
|
|
outline: 1px dotted currentColor;
|
|
|
|
outline-offset: -$-xs;
|
|
|
|
box-shadow: none;
|
|
|
|
filter: brightness(90%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-form-action-primary {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: #FFF;
|
|
|
|
border: 1px solid var(--color-primary);
|
|
|
|
&:hover {
|
|
|
|
@include lightDark(box-shadow, $bs-light, $bs-dark);
|
|
|
|
filter: brightness(110%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-form-action-secondary {
|
|
|
|
border: 1px solid;
|
|
|
|
@include lightDark(border-color, #CCC, #666);
|
|
|
|
@include lightDark(color, #666, #AAA);
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
@include lightDark(color, #444, #BBB);
|
|
|
|
border: 1px solid #CCC;
|
|
|
|
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
background-color: #F2F2F2;
|
|
|
|
@include lightDark(background-color, #f8f8f8, #444);
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
border-color: #BBB;
|
|
|
|
background-color: #DDD;
|
|
|
|
color: #666;
|
|
|
|
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
}
|
2024-07-28 19:48:58 +08:00
|
|
|
.editor-form-tab-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 2rem;
|
|
|
|
}
|
|
|
|
.editor-form-tab-controls {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
|
|
|
gap: .25rem;
|
|
|
|
}
|
|
|
|
.editor-form-tab-control {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 14px;
|
|
|
|
color: #444;
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: .25rem .5rem;
|
|
|
|
text-align: start;
|
|
|
|
&[aria-selected="true"] {
|
|
|
|
border-color: var(--editor-color-primary);
|
|
|
|
color: var(--editor-color-primary);
|
|
|
|
}
|
|
|
|
&[aria-selected="true"]:after, &:hover:after {
|
|
|
|
background-color: var(--editor-color-primary);
|
|
|
|
opacity: .15;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.editor-form-tab-contents {
|
|
|
|
width: 360px;
|
|
|
|
}
|
2024-08-14 02:36:18 +08:00
|
|
|
.editor-action-input-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: end;
|
|
|
|
justify-content: space-between;
|
|
|
|
gap: .1rem;
|
|
|
|
.editor-button {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
}
|
2024-07-10 03:49:47 +08:00
|
|
|
|
2024-06-23 18:36:48 +08:00
|
|
|
// Editor theme styles
|
|
|
|
.editor-theme-bold {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.editor-theme-italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.editor-theme-strikethrough {
|
|
|
|
text-decoration-line: line-through;
|
|
|
|
}
|
|
|
|
.editor-theme-underline {
|
|
|
|
text-decoration-line: underline;
|
|
|
|
}
|
|
|
|
.editor-theme-underline-strikethrough {
|
|
|
|
text-decoration: underline line-through;
|
2024-06-21 20:47:47 +08:00
|
|
|
}
|