2020-10-02 15:10:00 +00:00
|
|
|
.cell_editor {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1000; /* make it higher than popper's 999 */
|
2022-07-20 23:40:22 +00:00
|
|
|
display: flex;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.default_editor {
|
2022-09-06 01:51:57 +00:00
|
|
|
box-shadow: 0 0 3px 2px var(--grist-theme-cursor, var(--grist-color-cursor));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2021-06-17 16:41:07 +00:00
|
|
|
.readonly_editor {
|
2022-09-06 01:51:57 +00:00
|
|
|
box-shadow: 0 0 3px 2px var(--grist-theme-cursor-readonly, var(--grist-color-slate));
|
2021-06-17 16:41:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* make room for lock icon */
|
|
|
|
.readonly_editor .celleditor_cursor_editor .celleditor_text_editor,
|
|
|
|
.readonly_editor .celleditor_cursor_editor .celleditor_content_measure {
|
|
|
|
padding-left: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.readonly_editor::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
margin: 4px 3px 0 3px;
|
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
|
|
|
background-color: #D0D0D0;
|
|
|
|
-webkit-mask-repeat: no-repeat;
|
|
|
|
-webkit-mask-position: center;
|
|
|
|
-webkit-mask-size: contain;
|
|
|
|
-webkit-mask-image: var(--icon-Lock);
|
|
|
|
}
|
|
|
|
|
2022-07-20 23:40:22 +00:00
|
|
|
.formula_editor_wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2021-06-17 16:41:07 +00:00
|
|
|
|
2021-10-24 21:56:46 +00:00
|
|
|
/* Make overflow hidden, since editor might be 1 pixel bigger due to fix for devices
|
|
|
|
* with different pixel ratio */
|
2020-10-02 15:10:00 +00:00
|
|
|
.formula_editor {
|
2023-07-13 14:00:56 +00:00
|
|
|
background-color: var(--grist-theme-ace-editor-bg, white);
|
|
|
|
padding: 4px 4px 2px 21px;
|
2020-10-02 15:10:00 +00:00
|
|
|
z-index: 10;
|
2021-10-24 21:56:46 +00:00
|
|
|
overflow: hidden;
|
2022-07-20 23:40:22 +00:00
|
|
|
flex: none;
|
|
|
|
min-height: 22px; /* this is the usual height, but helps slightly when font is shorter than expected */
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2021-03-17 03:45:44 +00:00
|
|
|
/* styles specific to the formula editor in the side panel */
|
|
|
|
.default_editor.formula_editor_sidepane {
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
.formula_editor_sidepane > .formula_editor {
|
|
|
|
padding: 5px 0 5px 24px;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
.formula_editor_sidepane > .formula_field_edit::before, .formula_field_sidepane::before {
|
|
|
|
left: 4px;
|
|
|
|
}
|
|
|
|
|
2020-10-02 15:10:00 +00:00
|
|
|
.celleditor_cursor_editor {
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: var(--grist-theme-cell-editor-bg, white);
|
2020-10-02 15:10:00 +00:00
|
|
|
|
|
|
|
/* the following are copied from .field_clip */
|
|
|
|
padding: 3px 3px 0px 3px;
|
|
|
|
font-family: var(--grist-font-family-data);
|
|
|
|
font-size: var(--grist-medium-font-size);
|
|
|
|
line-height: 18px;
|
2021-11-19 06:08:48 +00:00
|
|
|
min-height: 21px;
|
2020-10-02 15:10:00 +00:00
|
|
|
white-space: pre-wrap;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.celleditor_text_editor {
|
|
|
|
display: block;
|
|
|
|
outline: none;
|
|
|
|
padding: 0px;
|
|
|
|
border: none;
|
|
|
|
resize: none;
|
|
|
|
z-index: 10;
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: var(--grist-theme-cell-editor-bg, unset);
|
|
|
|
color: var(--grist-theme-cell-editor-fg, black);
|
2020-10-02 15:10:00 +00:00
|
|
|
|
|
|
|
/* Inherit styles, same as for .celleditor_content_measure, to ensure that sizes correspond. */
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
|
2023-09-21 16:57:58 +00:00
|
|
|
.celleditor_text_editor::placeholder {
|
|
|
|
color: var(--grist-theme-cell-editor-placeholder-fg, unset);
|
|
|
|
}
|
|
|
|
|
2020-10-02 15:10:00 +00:00
|
|
|
.celleditor_content_measure {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
border: none;
|
|
|
|
visibility: hidden;
|
|
|
|
overflow: visible;
|
|
|
|
/* with 'pre-wrap', this lets the editor gets as wide as needed before wrapping; */
|
|
|
|
/* width is limited only by max-width (which is set in JS code). */
|
|
|
|
width: max-content;
|
|
|
|
|
|
|
|
/* Inherit styles, same as for .celleditor_text_editor, to ensure that sizes correspond. */
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error_msg {
|
2023-07-13 14:00:56 +00:00
|
|
|
display: flex;
|
2022-07-20 23:40:22 +00:00
|
|
|
background-color: #ffb6c1;
|
|
|
|
padding: 4px;
|
2020-10-02 15:10:00 +00:00
|
|
|
color: black;
|
2022-07-20 23:40:22 +00:00
|
|
|
white-space: pre-wrap;
|
|
|
|
flex: none;
|
2023-07-13 14:00:56 +00:00
|
|
|
overflow: auto;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.error_details {
|
2022-07-20 23:40:22 +00:00
|
|
|
background-color: #F8EAD5; /* 20% of color-warning-bg */
|
2021-09-24 13:06:39 +00:00
|
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
|
|
font-size: 12px;
|
2022-07-20 23:40:22 +00:00
|
|
|
white-space: pre-wrap;
|
|
|
|
flex: auto;
|
|
|
|
overflow: auto;
|
|
|
|
word-break: break-all;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-20 23:40:22 +00:00
|
|
|
.error_details_inner {
|
|
|
|
padding: 2px 2px 2px 28px;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.kf_collapser {
|
|
|
|
height: 1.2rem;
|
|
|
|
}
|