phx-react
Version:
PHX REACT
1,728 lines (1,597 loc) • 33.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = EditorStyle;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
function EditorStyle() {
return (react_1.default.createElement("style", null, `
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.ExcalidrawModal__overlay {
display: flex;
align-items: center;
position: fixed;
flex-direction: column;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
flex-grow: 0px;
flex-shrink: 1px;
z-index: 100;
background-color: rgba(40, 40, 40, 0.6);
}
.ExcalidrawModal__actions {
text-align: end;
position: absolute;
right: 5px;
top: 5px;
z-index: 1;
}
.ExcalidrawModal__actions button {
background-color: #fff;
border-radius: 5px;
}
.ExcalidrawModal__row {
position: relative;
padding: 40px 5px 5px;
width: 70vw;
height: 70vh;
border-radius: 8px;
box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.ExcalidrawModal__row > div {
border-radius: 5px;
}
.ExcalidrawModal__modal {
position: relative;
z-index: 10;
top: 50px;
width: auto;
left: 0;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
background-color: #eee;
}
.ExcalidrawModal__discardModal {
margin-top: 60px;
text-align: center;
}
[type='page-break'] {
position: relative;
display: block;
width: calc(100% + var(--editor-input-padding, 28px) * 2);
overflow: unset;
margin-left: calc(var(--editor-input-padding, 28px) * -1);
margin-top: var(--editor-input-padding, 28px);
margin-bottom: var(--editor-input-padding, 28px);
border: none;
border-top: 1px dashed var(--editor-color-secondary, #eeeeee);
border-bottom: 1px dashed var(--editor-color-secondary, #eeeeee);
background-color: var(--editor-color-secondary, #eeeeee);
}
[type='page-break']::before {
content: '';
position: absolute;
top: 50%;
left: calc(var(--editor-input-padding, 28px) + 12px);
transform: translateY(-50%);
opacity: 0.5;
background-size: cover;
background-image: url(/icons/scissors.svg);
width: 16px;
height: 16px;
}
[type='page-break']::after {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
padding: 2px 6px;
border: 1px solid #ccc;
background-color: #fff;
content: 'PAGE BREAK';
font-size: 12px;
color: #000;
font-weight: 600;
}
.selected[type='page-break'] {
border-color: var(--editor-color-primary, #4766cb);
}
.selected[type='page-break']::before {
opacity: 1;
}
.ImageNode__contentEditable {
min-height: 20px;
border: 0px;
resize: none;
cursor: text;
caret-color: rgb(5, 5, 5);
display: block;
position: relative;
outline: 0px;
padding: 10px;
user-select: text;
font-size: 12px;
width: calc(100% - 20px);
white-space: pre-wrap;
word-break: break-word;
}
.ImageNode__placeholder {
font-size: 12px;
color: #888;
overflow: hidden;
position: absolute;
text-overflow: ellipsis;
top: 10px;
left: 10px;
user-select: none;
white-space: nowrap;
display: inline-block;
pointer-events: none;
}
.image-control-wrapper--resizing {
touch-action: none;
}
.image-resizer-wrapper {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 1;
}
.image-resizer {
position: absolute;
pointer-events: auto;
background-color: #fff;
border: 1px solid rgb(60, 132, 244);
border-radius: 50%;
box-sizing: border-box;
width: 10px;
height: 10px;
}
.image-resizer-n,
.image-resizer-s {
left: 50%;
transform: translateX(-50%);
cursor: ns-resize;
}
.image-resizer-e,
.image-resizer-w {
top: 50%;
transform: translateY(-50%);
cursor: ew-resize;
}
.image-resizer-n {
top: -5px;
}
.image-resizer-ne {
top: -5px;
right: -5px;
cursor: nesw-resize;
}
.image-resizer-e {
right: -5px;
}
.image-resizer-se {
right: -5px;
bottom: -5px;
cursor: nwse-resize;
}
.image-resizer-s {
bottom: -5px;
}
.image-resizer-sw {
bottom: -5px;
left: -5px;
cursor: nesw-resize;
}
.image-resizer-w {
left: -5px;
}
.image-resizer-nw {
top: -5px;
left: -5px;
cursor: nwse-resize;
}
.InlineImageNode__contentEditable {
min-height: 20px;
border: 0px;
resize: none;
cursor: text;
caret-color: rgb(5, 5, 5);
display: block;
position: relative;
tab-size: 1;
outline: 0px;
padding: 10px;
user-select: text;
font-size: 14px;
line-height: 1.4em;
width: calc(100% - 20px);
white-space: pre-wrap;
word-break: break-word;
}
.InlineImageNode__placeholder {
font-size: 12px;
color: #888;
overflow: hidden;
position: absolute;
text-overflow: ellipsis;
bottom: 10px;
left: 10px;
user-select: none;
white-space: nowrap;
display: inline-block;
pointer-events: none;
}
.PollNode__container {
border: 1px solid #eee;
background-color: #fcfcfc;
border-radius: 10px;
max-width: 600px;
min-width: 400px;
cursor: pointer;
user-select: none;
}
.PollNode__container.focused {
outline: 2px solid rgb(60, 132, 244);
}
.PollNode__inner {
margin: 15px;
cursor: default;
}
.PollNode__heading {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 15px;
color: #444;
text-align: center;
font-size: 18px;
}
.PollNode__optionContainer {
display: flex;
flex-direction: row;
margin-bottom: 10px;
align-items: center;
}
.PollNode__optionInputWrapper {
display: flex;
flex: 10px;
border: 1px solid rgb(61, 135, 245);
border-radius: 5px;
position: relative;
overflow: hidden;
cursor: pointer;
}
.PollNode__optionInput {
display: flex;
flex: 1px;
border: 0px;
padding: 7px;
color: rgb(61, 135, 245);
background-color: transparent;
font-weight: bold;
outline: 0px;
z-index: 0;
}
.PollNode__optionInput::placeholder {
font-weight: normal;
color: #999;
}
.PollNode__optionInputVotes {
background-color: rgb(236, 243, 254);
height: 100%;
position: absolute;
top: 0px;
left: 0px;
transition: width 1s ease;
z-index: 0;
}
.PollNode__optionInputVotesCount {
color: rgb(61, 135, 245);
position: absolute;
right: 15px;
font-size: 12px;
top: 5px;
}
.PollNode__optionCheckboxWrapper {
position: relative;
display: flex;
width: 22px;
height: 22px;
border: 1px solid #999;
margin-right: 10px;
border-radius: 5px;
}
.PollNode__optionCheckboxChecked {
border: 1px solid rgb(61, 135, 245);
background-color: rgb(61, 135, 245);
}
.PollNode__optionCheckboxChecked:after {
content: '';
cursor: pointer;
border-color: #fff;
border-style: solid;
position: absolute;
display: block;
top: 4px;
width: 5px;
left: 8px;
height: 9px;
margin: 0;
transform: rotate(45deg);
border-width: 0 2px 2px 0;
}
.PollNode__optionCheckbox {
border: 0px;
position: absolute;
display: block;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.PollNode__optionDelete {
position: relative;
display: flex;
width: 28px;
height: 28px;
margin-left: 6px;
border: 0px;
background-color: transparent;
background-position: 6px 6px;
background-repeat: no-repeat;
z-index: 0;
cursor: pointer;
border-radius: 5px;
opacity: 0.3;
}
.PollNode__optionDelete:before,
.PollNode__optionDelete:after {
position: absolute;
display: block;
content: '';
background-color: #999;
width: 2px;
height: 15px;
top: 6px;
left: 13px;
}
.PollNode__optionDelete:before {
transform: rotate(-45deg);
}
.PollNode__optionDelete:after {
transform: rotate(45deg);
}
.PollNode__optionDelete:hover {
opacity: 1;
background-color: #eee;
}
.PollNode__optionDeleteDisabled {
cursor: not-allowed;
}
.PollNode__optionDeleteDisabled:hover {
opacity: 0.3;
background-color: transparent;
}
.PollNode__footer {
display: flex;
justify-content: center;
}
.StickyNode__contentEditable {
min-height: 20px;
border: 0;
resize: none;
cursor: text;
font-size: 24px;
caret-color: rgb(5, 5, 5);
display: block;
position: relative;
outline: 0;
padding: 10px;
user-select: text;
white-space: pre-wrap;
word-wrap: break-word;
}
.StickyNode__placeholder {
font-size: 24px;
color: #999;
overflow: hidden;
position: absolute;
text-overflow: ellipsis;
top: 30px;
left: 20px;
width: 120px;
user-select: none;
white-space: nowrap;
display: inline-block;
pointer-events: none;
}
.code-action-menu-container .prettier-wrapper {
position: relative;
}
.code-action-menu-container .prettier-wrapper .code-error-tips {
padding: 5px;
border-radius: 4px;
color: #fff;
background: #222;
margin-top: 4px;
position: absolute;
top: 26px;
right: 0;
}
.code-action-menu-container {
height: 35.8px;
font-size: 10px;
color: rgba(0, 0, 0, 0.5);
position: absolute;
display: flex;
align-items: center;
flex-direction: row;
user-select: none;
}
.code-action-menu-container .code-highlight-language {
margin-right: 4px;
}
.code-action-menu-container button.menu-item {
border: 1px solid transparent;
border-radius: 4px;
padding: 4px;
background: none;
cursor: pointer;
flex-shrink: 0;
display: flex;
align-items: center;
color: rgba(0, 0, 0, 0.5);
text-transform: uppercase;
}
.code-action-menu-container button.menu-item i.format {
height: 16px;
width: 16px;
opacity: 0.6;
display: flex;
color: rgba(0, 0, 0, 0.5);
background-size: contain;
}
.code-action-menu-container button.menu-item:hover {
border: 1px solid rgba(0, 0, 0, 0.3);
opacity: 0.9;
}
.code-action-menu-container button.menu-item:active {
background-color: rgba(223, 232, 250);
border: 1px solid rgba(0, 0, 0, 0.45);
}
.Collapsible__container {
background: #fcfcfc;
border: 1px solid #eee;
border-radius: 10px;
margin-bottom: 8px;
}
.Collapsible__title {
cursor: pointer;
padding: 5px 5px 5px 20px;
position: relative;
font-weight: bold;
list-style: none;
outline: none;
}
.Collapsible__title::marker,
.Collapsible__title::-webkit-details-marker {
display: none;
}
.Collapsible__title:before {
border-style: solid;
border-color: transparent;
border-width: 4px 6px 4px 6px;
border-left-color: #000;
display: block;
content: '';
position: absolute;
left: 7px;
top: 50%;
transform: translateY(-50%);
}
.Collapsible__container[open] > .Collapsible__title:before {
border-color: transparent;
border-width: 6px 4px 0 4px;
border-top-color: #000;
}
.Collapsible__content {
padding: 0 5px 5px 20px;
}
.Collapsible__collapsed .Collapsible__content {
display: none;
user-select: none;
}
.draggable-block-menu {
border-radius: 4px;
padding: 2px 1px;
cursor: grab;
opacity: 0;
position: absolute;
left: 0;
top: 0;
will-change: transform;
}
.draggable-block-menu .icon {
width: 16px;
height: 16px;
opacity: 0.3;
background-image: url('https://cdn-s3.phx.asia/library/book-copy/06-02-2026/b7cdf4bb-0917-45bb-b266-bfef51969336-draggable-block-menu.png');
}
.draggable-block-menu:active {
cursor: grabbing;
}
.draggable-block-menu:hover {
background-color: #efefef;
}
.draggable-block-target-line {
pointer-events: none;
background: deepskyblue;
height: 4px;
position: absolute;
left: 0;
top: 0;
opacity: 0;
will-change: transform;
}
.link-editor {
display: flex;
position: absolute;
top: 0;
left: 0;
z-index: 10;
max-width: 400px;
width: 100%;
opacity: 0;
background-color: #fff;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
border-radius: 0 0 8px 8px;
transition: opacity 0.5s;
will-change: transform;
}
.link-editor .button {
width: 20px;
height: 20px;
display: inline-block;
padding: 6px;
border-radius: 8px;
cursor: pointer;
margin: 0 2px;
}
.link-editor .button.hovered {
width: 20px;
height: 20px;
display: inline-block;
background-color: #eee;
}
.link-editor .button i,
.actions i {
background-size: contain;
display: inline-block;
height: 20px;
width: 20px;
vertical-align: -0.25em;
}
.floating-text-format-popup {
display: flex;
background: #fff;
padding: 4px;
vertical-align: middle;
position: absolute;
top: 0;
left: 0;
z-index: 10;
opacity: 0;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
border-radius: 8px;
transition: opacity 0.5s;
height: 35px;
will-change: transform;
}
.floating-text-format-popup button.popup-item {
border: 0;
display: flex;
background: none;
border-radius: 10px;
padding: 8px;
cursor: pointer;
vertical-align: middle;
}
.floating-text-format-popup button.popup-item:disabled {
cursor: not-allowed;
}
.floating-text-format-popup button.popup-item.spaced {
margin-right: 2px;
}
.floating-text-format-popup button.popup-item i.format {
background-size: contain;
height: 18px;
width: 18px;
margin-top: 2px;
vertical-align: -0.25em;
display: flex;
opacity: 0.6;
}
.floating-text-format-popup button.popup-item:disabled i.format {
opacity: 0.2;
}
.floating-text-format-popup button.popup-item.active {
background-color: rgba(223, 232, 250, 0.3);
}
.floating-text-format-popup button.popup-item.active i {
opacity: 1;
}
.floating-text-format-popup .popup-item:hover:not([disabled]) {
background-color: #eee;
}
.floating-text-format-popup select.popup-item {
border: 0;
display: flex;
background: none;
border-radius: 10px;
padding: 8px;
vertical-align: middle;
-webkit-appearance: none;
appearance: none;
-moz-appearance: none;
width: 70px;
font-size: 14px;
color: #777;
text-overflow: ellipsis;
}
.floating-text-format-popup select.code-language {
text-transform: capitalize;
width: 130px;
}
.floating-text-format-popup .popup-item .text {
display: flex;
line-height: 20px;
vertical-align: middle;
font-size: 14px;
color: #777;
text-overflow: ellipsis;
width: 70px;
overflow: hidden;
height: 20px;
text-align: left;
}
.floating-text-format-popup .popup-item .icon {
display: flex;
width: 20px;
height: 20px;
user-select: none;
margin-right: 8px;
line-height: 16px;
background-size: contain;
}
.floating-text-format-popup i.chevron-down {
margin-top: 3px;
width: 16px;
height: 16px;
display: flex;
user-select: none;
}
.floating-text-format-popup i.chevron-down.inside {
width: 16px;
height: 16px;
display: flex;
margin-left: -25px;
margin-top: 11px;
margin-right: 10px;
pointer-events: none;
}
.floating-text-format-popup .divider {
width: 1px;
background-color: #eee;
margin: 0 4px;
}
@media (max-width: 1024px) {
.floating-text-format-popup button.insert-comment {
display: none;
}
}
.TableCellResizer__resizer {
position: absolute;
}
.table-of-contents .heading2 {
margin-left: 10px;
}
.table-of-contents .heading3 {
margin-left: 20px;
}
.selected-heading {
color: #3578e5;
position: relative;
}
.selected-heading-wrapper::before {
content: ' ';
position: absolute;
display: inline-block;
left: -30px;
top: 4px;
z-index: 10;
height: 4px;
width: 4px;
background-color: #3578e5;
border: solid 4px white;
border-radius: 50%;
}
.normal-heading {
cursor: pointer;
line-height: 20px;
font-size: 16px;
}
.table-of-contents {
color: #65676b;
position: fixed;
top: 200px;
right: -35px;
padding: 10px;
width: 250px;
display: flex;
flex-direction: row;
justify-content: flex-start;
z-index: 1;
height: 300px;
}
.first-heading {
color: black;
font-weight: bold;
cursor: pointer;
}
.headings {
list-style: none;
margin-top: 0;
margin-left: 10px;
padding: 0;
overflow: scroll;
width: 200px;
height: 220px;
overflow-x: hidden;
overflow-y: auto;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.headings::-webkit-scrollbar {
display: none;
}
.headings::before {
content: ' ';
position: absolute;
height: 220px;
width: 4px;
right: 240px;
margin-top: 5px;
background-color: #ccd0d5;
border-radius: 2px;
}
.normal-heading-wrapper {
margin-left: 32px;
position: relative;
}
.CommentEditorTheme__paragraph {
margin: 0;
position: relative;
}
.PlaygroundEditorTheme__ltr {
text-align: left;
}
.PlaygroundEditorTheme__rtl {
text-align: right;
}
.PlaygroundEditorTheme__quote {
margin: 0;
margin-left: 20px;
font-size: 15px;
color: rgb(101, 103, 107);
border-left-color: rgb(206, 208, 212);
border-left-width: 4px;
border-left-style: solid;
padding-left: 16px;
}
.PlaygroundEditorTheme__h1 {
font-size: 34px;
margin-bottom: 10px;
}
.PlaygroundEditorTheme__h2 {
font-size: 29px;
margin-bottom: 10px;
}
.PlaygroundEditorTheme__h3 {
font-size: 24px;
margin-bottom: 10px;
}
.PlaygroundEditorTheme__h4 {
font-size: 21px;
margin-bottom: 10px;
}
.PlaygroundEditorTheme__h5 {
font-size: 18px;
margin-bottom: 10px;
}
.PlaygroundEditorTheme__h6 {
font-size: 16px;
margin-bottom: 10px;
}
.PlaygroundEditorTheme__indent {
--lexical-indent-base-value: 40px;
}
.PlaygroundEditorTheme__textBold {
font-weight: bold;
}
.PlaygroundEditorTheme__textItalic {
font-style: italic;
}
.PlaygroundEditorTheme__textUnderline {
text-decoration: underline;
}
.PlaygroundEditorTheme__textStrikethrough {
text-decoration: line-through;
}
.PlaygroundEditorTheme__textUnderlineStrikethrough {
text-decoration: underline line-through;
}
.PlaygroundEditorTheme__textSubscript {
font-size: 0.8em;
vertical-align: sub !important;
}
.PlaygroundEditorTheme__textSuperscript {
font-size: 0.8em;
vertical-align: super;
}
.PlaygroundEditorTheme__textCode {
background-color: rgb(240, 242, 245);
padding: 1px 0.25rem;
font-family: Menlo, Consolas, Monaco, monospace;
font-size: 94%;
}
.PlaygroundEditorTheme__hashtag {
background-color: rgba(88, 144, 255, 0.15);
border-bottom: 1px solid rgba(88, 144, 255, 0.3);
}
.PlaygroundEditorTheme__link {
color: rgb(33, 111, 219);
text-decoration: none;
}
.PlaygroundEditorTheme__link:hover {
text-decoration: underline;
cursor: pointer;
}
.PlaygroundEditorTheme__code {
background-color: rgb(240, 242, 245);
font-family: Menlo, Consolas, Monaco, monospace;
display: block;
padding: 8px 8px 8px 52px;
line-height: 1.53;
font-size: 13px;
margin: 0;
margin-top: 8px;
margin-bottom: 8px;
overflow-x: auto;
position: relative;
tab-size: 2;
}
.PlaygroundEditorTheme__code:before {
content: attr(data-gutter);
position: absolute;
background-color: #eee;
left: 0;
top: 0;
border-right: 1px solid #ccc;
padding: 8px;
color: #777;
white-space: pre-wrap;
text-align: right;
min-width: 25px;
}
.PlaygroundEditorTheme__table {
border-collapse: collapse;
border-spacing: 0;
overflow-y: scroll;
overflow-x: scroll;
table-layout: fixed;
width: max-content;
margin: 30px 0;
}
.PlaygroundEditorTheme__tableSelection *::selection {
background-color: transparent;
}
.PlaygroundEditorTheme__tableSelected {
outline: 2px solid rgb(60, 132, 244);
}
.PlaygroundEditorTheme__tableCell {
border: 1px solid #bbb;
width: 75px;
min-width: 75px;
vertical-align: top;
text-align: start;
padding: 6px 8px;
position: relative;
outline: none;
}
.PlaygroundEditorTheme__tableCellSortedIndicator {
display: block;
opacity: 0.5;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background-color: #999;
}
.PlaygroundEditorTheme__tableCellResizer {
position: absolute;
right: -4px;
height: 100%;
width: 8px;
cursor: ew-resize;
z-index: 10;
top: 0;
}
.PlaygroundEditorTheme__tableCellHeader {
background-color: #f2f3f5;
text-align: start;
}
.PlaygroundEditorTheme__tableCellSelected {
background-color: #c9dbf0;
}
.PlaygroundEditorTheme__tableCellPrimarySelected {
border: 2px solid rgb(60, 132, 244);
display: block;
height: calc(100% - 2px);
position: absolute;
width: calc(100% - 2px);
left: -1px;
top: -1px;
z-index: 2;
}
.PlaygroundEditorTheme__tableCellEditing {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
border-radius: 3px;
}
.PlaygroundEditorTheme__tableAddColumns {
position: absolute;
top: 0;
width: 20px;
background-color: #eee;
height: 100%;
right: -25px;
animation: table-controls 0.2s ease;
border: 0;
cursor: pointer;
}
.PlaygroundEditorTheme__tableAddColumns:after {
background-image: url('/icons/plus.svg');
background-size: contain;
background-position: center;
background-repeat: no-repeat;
display: block;
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.4;
}
.PlaygroundEditorTheme__tableAddColumns:hover {
background-color: #c9dbf0;
}
.PlaygroundEditorTheme__tableAddRows {
position: absolute;
bottom: -25px;
width: calc(100% - 25px);
background-color: #eee;
height: 20px;
left: 0;
animation: table-controls 0.2s ease;
border: 0;
cursor: pointer;
}
.PlaygroundEditorTheme__tableAddRows:after {
background-image: url(/icons/plus.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
display: block;
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.4;
}
.PlaygroundEditorTheme__tableAddRows:hover {
background-color: #c9dbf0;
}
@keyframes table-controls {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.PlaygroundEditorTheme__tableCellResizeRuler {
display: block;
position: absolute;
width: 1px;
background-color: rgb(60, 132, 244);
height: 100%;
top: 0;
}
.PlaygroundEditorTheme__tableCellActionButtonContainer {
display: block;
right: 5px;
top: 6px;
position: absolute;
z-index: 4;
width: 20px;
height: 20px;
}
.PlaygroundEditorTheme__tableCellActionButton {
background-color: #eee;
display: block;
border: 0;
border-radius: 20px;
width: 20px;
height: 20px;
color: #222;
cursor: pointer;
}
.PlaygroundEditorTheme__tableCellActionButton:hover {
background-color: #ddd;
}
.PlaygroundEditorTheme__characterLimit {
display: inline;
background-color: #ffbbbb !important;
}
.PlaygroundEditorTheme__ol1 {
padding: 0;
margin: 0;
list-style-position: inside;
list-style-type: decimal;
margin-left: 20px;
}
.PlaygroundEditorTheme__ol2 {
padding: 0;
margin: 0;
list-style-type: upper-alpha;
list-style-position: inside;
margin-left: 20px;
}
.PlaygroundEditorTheme__ol3 {
padding: 0;
margin: 0;
list-style-type: lower-alpha;
list-style-position: inside;
margin-left: 20px;
}
.PlaygroundEditorTheme__ol4 {
padding: 0;
margin: 0;
list-style-type: upper-roman;
list-style-position: inside;
margin-left: 20px;
}
.PlaygroundEditorTheme__ol5 {
padding: 0;
margin: 0;
list-style-type: lower-roman;
list-style-position: inside;
margin-left: 20px;
}
.PlaygroundEditorTheme__ul {
padding: 0;
margin: 0;
list-style: disc;
margin-left: 20px;
list-style-position: inside;
}
.PlaygroundEditorTheme__listItem {
font-family: var(--listitem-marker-font-family);
font-size: var(--listitem-marker-font-size);
background-color: var(--listitem-marker-background-color);
}
.PlaygroundEditorTheme__listItem::marker {
color: var(--listitem-marker-color);
background-color: var(--listitem-marker-background-color);
font-family: var(--listitem-marker-font-family);
font-size: var(--listitem-marker-font-size);
font-style: var(--listitem-marker-font-style);
font-weight: var(--listitem-marker-font-weight);
}
.PlaygroundEditorTheme__listItemChecked,
.PlaygroundEditorTheme__listItemUnchecked {
position: relative;
margin-left: 8px;
margin-right: 8px;
padding-left: 24px;
padding-right: 24px;
list-style-type: none;
outline: none;
}
.PlaygroundEditorTheme__listItemChecked {
text-decoration: line-through;
}
.PlaygroundEditorTheme__listItemUnchecked:before,
.PlaygroundEditorTheme__listItemChecked:before {
content: '';
width: 16px;
height: 16px;
top: 2px;
left: 0;
cursor: pointer;
display: block;
background-size: cover;
position: absolute;
}
.PlaygroundEditorTheme__listItemUnchecked[dir='rtl']:before,
.PlaygroundEditorTheme__listItemChecked[dir='rtl']:before {
left: auto;
right: 0;
}
.PlaygroundEditorTheme__listItemUnchecked:focus:before,
.PlaygroundEditorTheme__listItemChecked:focus:before {
box-shadow: 0 0 0 2px #a6cdfe;
border-radius: 2px;
}
.PlaygroundEditorTheme__listItemUnchecked:before {
border: 1px solid #999;
border-radius: 2px;
}
.PlaygroundEditorTheme__listItemChecked:before {
border: 1px solid rgb(61, 135, 245);
border-radius: 2px;
background-color: #3d87f5;
background-repeat: no-repeat;
}
.PlaygroundEditorTheme__listItemChecked:after {
content: '';
cursor: pointer;
border-color: #fff;
border-style: solid;
position: absolute;
display: block;
top: 6px;
width: 3px;
left: 7px;
right: 7px;
height: 6px;
transform: rotate(45deg);
border-width: 0 2px 2px 0;
}
.PlaygroundEditorTheme__nestedListItem {
list-style-type: none;
}
.PlaygroundEditorTheme__nestedListItem:before,
.PlaygroundEditorTheme__nestedListItem:after {
display: none;
}
.PlaygroundEditorTheme__tokenComment {
color: slategray;
}
.PlaygroundEditorTheme__tokenPunctuation {
color: #999;
}
.PlaygroundEditorTheme__tokenProperty {
color: #905;
}
.PlaygroundEditorTheme__tokenSelector {
color: #690;
}
.PlaygroundEditorTheme__tokenOperator {
color: #9a6e3a;
}
.PlaygroundEditorTheme__tokenAttr {
color: #07a;
}
.PlaygroundEditorTheme__tokenVariable {
color: #e90;
}
.PlaygroundEditorTheme__tokenFunction {
color: #dd4a68;
}
.PlaygroundEditorTheme__mark {
background: rgba(255, 212, 0, 0.14);
border-bottom: 2px solid rgba(255, 212, 0, 0.3);
padding-bottom: 2px;
}
.PlaygroundEditorTheme__markOverlap {
background: rgba(255, 212, 0, 0.3);
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}
.PlaygroundEditorTheme__mark.selected {
background: rgba(255, 212, 0, 0.5);
border-bottom: 2px solid rgba(255, 212, 0, 1);
}
.PlaygroundEditorTheme__markOverlap.selected {
background: rgba(255, 212, 0, 0.7);
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}
.PlaygroundEditorTheme__embedBlock {
user-select: none;
}
.PlaygroundEditorTheme__embedBlockFocus {
outline: 2px solid rgb(60, 132, 244);
}
.PlaygroundEditorTheme__layoutContaner {
display: grid;
gap: 10px;
margin: 10px 0;
}
.PlaygroundEditorTheme__layoutItem {
border: 1px dashed #ddd;
padding: 8px 16px;
}
.editor-image {
display: block;
position: relative;
width: fit-content;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
.editor-image.position-left,
.inline-editor-image.position-left {
display: block;
position: relative;
width: fit-content;
max-width: 100%;
margin-left: 0;
margin-right: auto;
}
.editor-image.position-center,
.inline-editor-image.position-center {
display: block;
position: relative;
width: fit-content;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
.editor-image.position-right,
.inline-editor-image.position-right {
display: block;
position: relative;
width: fit-content;
max-width: 100%;
margin-left: auto;
margin-right: 0;
}
.editor-image > div,
.inline-editor-image > div {
position: relative;
}
.editor-image img {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 90% !important;
border: 1px solid #e5e7eb;
margin-bottom: 10px;
}
.inline-editor-image.position-full {
display: block;
position: relative;
width: 100%;
max-width: 100%;
}
.inline-editor-image.position-full img {
width: 100%;
max-width: 100%;
}
.inline-editor-image.position-center img {
max-width: 100%;
}
.editor-image img.focused,
.inline-editor-image img.focused {
outline: 2px solid rgb(60, 132, 244);
outline-offset: 2px;
}
.StickyEditorTheme__paragraph {
margin: 0;
position: relative;
}
.Button__root {
padding-top: 10px;
padding-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
border: 0px;
background-color: #eee;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
}
.Button__root:hover {
background-color: #ddd;
}
.Button__small {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 10px;
padding-right: 10px;
font-size: 13px;
}
.Button__disabled {
cursor: not-allowed;
}
.Button__disabled:hover {
background-color: #eee;
}
.color-picker-wrapper {
padding: 20px;
}
.color-picker-basic-color {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 0;
padding: 0;
}
.color-picker-basic-color button {
border: 1px solid #ccc;
border-radius: 4px;
height: 16px;
width: 16px;
cursor: pointer;
list-style-type: none;
}
.color-picker-basic-color button.active {
box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.3);
}
.color-picker-saturation {
width: 100%;
position: relative;
margin-top: 15px;
height: 150px;
background-image: linear-gradient(transparent, black), linear-gradient(to right, white, transparent);
user-select: none;
}
.color-picker-saturation_cursor {
position: absolute;
width: 20px;
height: 20px;
border: 2px solid #ffffff;
border-radius: 50%;
box-shadow: 0 0 15px #00000026;
box-sizing: border-box;
transform: translate(-10px, -10px);
}
.color-picker-hue {
width: 100%;
position: relative;
margin-top: 15px;
height: 12px;
background-image: linear-gradient(
to right,
rgb(255, 0, 0),
rgb(255, 255, 0),
rgb(0, 255, 0),
rgb(0, 255, 255),
rgb(0, 0, 255),
rgb(255, 0, 255),
rgb(255, 0, 0)
);
user-select: none;
border-radius: 12px;
}
.color-picker-hue_cursor {
position: absolute;
width: 20px;
height: 20px;
border: 2px solid #ffffff;
border-radius: 50%;
box-shadow: #0003 0 0 0 0.5px;
box-sizing: border-box;
transform: translate(-10px, -4px);
}
.color-picker-color {
border: 1px solid #ccc;
margin-top: 15px;
width: 100%;
height: 20px;
}
.ContentEditable__root {
border: 0;
font-size: 16px;
display: block;
position: relative;
outline: 0;
padding: 8px 28px 40px;
min-height: 150px;
}
@media (max-width: 1025px) {
.ContentEditable__root {
padding-left: 8px;
padding-right: 8px;
}
}
.PHXTextEditorV2__contentEditable {
font-size: 14px;
line-height: normal;
}
.DialogActions {
display: flex;
flex-direction: row;
justify-content: right;
margin-top: 20px;
}
.DialogButtonsList {
display: flex;
flex-direction: column;
justify-content: right;
margin-top: 20px;
}
.DialogButtonsList button {
margin-bottom: 20px;
}
.EquationEditor_inlineEditor {
padding: 0;
margin: 0;
border: 0;
outline: 0;
color: #8421a2;
background-color: inherit;
resize: none;
}
.EquationEditor_blockEditor {
padding: 0;
margin: 0;
border: 0;
outline: 0;
color: #8421a2;
background-color: inherit;
resize: none;
width: 100%;
}
.EquationEditor_inputBackground {
background-color: #eee;
}
.EquationEditor_dollarSign {
text-align: left;
color: #b0b0b0;
}
.Input__wrapper {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 10px;
}
.Input__label {
display: flex;
flex: 1;
color: #666;
}
.Input__input {
display: flex;
flex: 2;
border: 1px solid #999;
padding-top: 7px;
padding-bottom: 7px;
padding-left: 10px;
padding-right: 10px;
font-size: 16px;
border-radius: 5px;
min-width: 0;
}
.KatexEquationAlterer_defaultRow {
display: flex;
flex-direction: row;
margin-top: 10px;
margin-bottom: 10px;
justify-content: space-between;
overflow: hidden;
}
.KatexEquationAlterer_dialogActions {
display: flex;
flex-direction: row;
overflow: hidden;
margin-top: 20px;
margin-bottom: 0;
justify-content: right;
}
.KatexEquationAlterer_centerRow {
display: flex;
flex-direction: row;
margin-top: 10px;
margin-bottom: 10px;
justify-content: center;
overflow: hidden;
}
.KatexEquationAlterer_textArea {
width: 100%;
resize: none;
padding: 7px;
}
.Modal__overlay {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
flex-direction: column;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
background-color: rgba(40, 40, 40, 0.6);
flex-grow: 0;
flex-shrink: 1;
z-index: 100;
}
.Modal__modal {
padding: 20px;
min-height: 100px;
min-width: 300px;
display: flex;
flex-grow: 0;
background-color: #fff;
flex-direction: column;
position: relative;
box-shadow: 0 0 20px 0 #444;
border-radius: 10px;
}
.Modal__title {
color: #444;
margin: 0px;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
}
.Modal__closeButton {
border: 0px;
position: absolute;
right: 20px;
border-radius: 20px;
justify-content: center;
align-items: center;
display: flex;
width: 30px;
height: 30px;
text-align: center;
cursor: pointer;
background-color: #eee;
}
.Modal__closeButton:hover {
background-color: #ddd;
}
.Modal__content {
padding-top: 20px;
}
.Placeholder__root {
font-size: 15px;
color: #999;
overflow: hidden;
position: absolute;
text-overflow: ellipsis;
top: 8px;
left: 28px;
right: 28px;
user-select: none;
white-space: nowrap;
display: inline-block;
pointer-events: none;
}
@media (max-width: 1025px) {
.Placeholder__root {
left: 8px;
}
}
:root {
--select-border: #393939;
--select-focus: #101484;
--select-arrow: var(--select-border);
}
`));
}
//# sourceMappingURL=style.js.map