2021-06-18 09:22:27 +00:00
|
|
|
/*
|
|
|
|
record class is used for grid view header and rows
|
|
|
|
*/
|
2020-10-02 15:10:00 +00:00
|
|
|
.record {
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
|
|
|
|
border-width: 0px;
|
|
|
|
border-style: none;
|
2022-09-06 01:51:57 +00:00
|
|
|
border-color: var(--grist-theme-table-body-border, var(--grist-color-dark-grey));
|
2020-10-02 15:10:00 +00:00
|
|
|
border-left-style: solid; /* left border, against rownumbers div, always on */
|
|
|
|
border-bottom-width: 1px; /* style: none, set by record-hlines*/
|
2021-06-18 09:22:27 +00:00
|
|
|
/* Record background is white by default.
|
|
|
|
It gets overridden by the add row, zebra stripes.
|
|
|
|
It also gets overridden by selecting rows - but in that case background comes from
|
|
|
|
selected fields - this still remains white.
|
|
|
|
TODO: consider making this color the single source
|
|
|
|
*/
|
2022-09-06 01:51:57 +00:00
|
|
|
background: var(--grist-row-background-color, var(--grist-theme-cell-bg, white));
|
|
|
|
color: var(--grist-row-color, var(--grist-theme-cell-fg, black));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.record.record-hlines { /* Overwrites style, width set on element */
|
|
|
|
border-bottom-style: solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.record.record-zebra.record-even {
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: var(--grist-row-background-color-zebra, var(--grist-theme-cell-zebra-bg, #f8f8f8));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.record.record-add {
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: var(--grist-theme-table-add-new-bg, #f6f6ff) !important; /* important to win over zebra stripes */
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.field {
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
-webkit-flex: none;
|
|
|
|
flex: none;
|
|
|
|
min-height: 22px;
|
|
|
|
white-space: pre;
|
|
|
|
/* make border exist always so content doesn't shift on v-gridline toggle */
|
|
|
|
border: 0px solid transparent; /* width set by js, border exists but is transparent */
|
|
|
|
}
|
|
|
|
|
|
|
|
.record-vlines > .field {
|
2022-09-06 01:51:57 +00:00
|
|
|
/* set border visibility */
|
|
|
|
border-right-color: var(--grist-theme-table-body-border, var(--grist-color-dark-grey));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.field.scissors {
|
2022-09-06 01:51:57 +00:00
|
|
|
outline: 2px dashed var(--grist-theme-cursor, var(--grist-color-cursor));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.field.selected {
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: var(--grist-theme-selection, var(--grist-color-selection));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2021-05-17 14:05:49 +00:00
|
|
|
.field.draft {
|
|
|
|
padding-right: 18px;
|
|
|
|
}
|
|
|
|
|
2020-10-02 15:10:00 +00:00
|
|
|
.field_clip {
|
|
|
|
padding: 3px 3px 0px 3px;
|
|
|
|
font-family: var(--grist-font-family-data);
|
|
|
|
line-height: 18px;
|
2021-11-19 06:08:48 +00:00
|
|
|
min-height: 21px;
|
2020-10-02 15:10:00 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-02-09 10:12:53 +00:00
|
|
|
background-color: var(--grist-diff-background-color, var(--grist-cell-background-color, unset));
|
2022-08-08 13:32:50 +00:00
|
|
|
--grist-actual-cell-color: var(--grist-diff-color, var(--grist-cell-color, var(--grist-row-color)));
|
|
|
|
color: var(--grist-actual-cell-color, unset);
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2022-05-12 16:22:09 +00:00
|
|
|
.field.selected .field_clip {
|
2022-08-08 13:32:50 +00:00
|
|
|
mix-blend-mode: luminosity;
|
2022-05-12 16:22:09 +00:00
|
|
|
}
|
|
|
|
|
2022-03-22 13:41:11 +00:00
|
|
|
.field_clip.invalid, .field_clip.field-error-from-style {
|
2020-10-02 15:10:00 +00:00
|
|
|
background-color: #ffb6c1;
|
2021-02-22 22:07:05 +00:00
|
|
|
color: black;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.field_clip.invalid:empty {
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.field_clip.field-error-P {
|
|
|
|
color: #B0B0B0;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
2021-06-03 15:01:31 +00:00
|
|
|
.field_clip.invalid.field-error-C {
|
|
|
|
background-color: unset;
|
|
|
|
color: var(--grist-color-dark-grey);
|
|
|
|
padding-left: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.field_clip.invalid.field-error-C::before {
|
|
|
|
/* based on standard icon styles */
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
left: 2px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
background-color: var(--grist-color-dark-grey);
|
|
|
|
-webkit-mask-repeat: no-repeat;
|
|
|
|
-webkit-mask-position: center;
|
|
|
|
-webkit-mask-size: contain;
|
|
|
|
-webkit-mask-image: var(--icon-Lock);
|
|
|
|
}
|
|
|
|
|
2020-10-02 15:10:00 +00:00
|
|
|
.field_clip.field-error-U {
|
|
|
|
color: #6363a2;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
2020-11-18 15:54:23 +00:00
|
|
|
.field_clip.field-error-S {
|
|
|
|
color: #aaa;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
2020-10-02 15:10:00 +00:00
|
|
|
/* Insert a zero-width space into each cell, to size cells to at least one line of text. */
|
|
|
|
.field_clip:empty::before { content: '\200B'; }
|
|
|
|
|
|
|
|
@media not print {
|
|
|
|
.selected_cursor {
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
top: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
/* one pixel outline around the cell, and one inside the cell */
|
2022-09-06 01:51:57 +00:00
|
|
|
outline: 1px solid var(--grist-theme-cursor-inactive, var(--grist-color-inactive-cursor));
|
|
|
|
box-shadow: inset 0 0 0 1px var(--grist-theme-cursor-inactive, var(--grist-color-inactive-cursor));
|
2020-10-02 15:10:00 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.active_cursor {
|
2022-09-06 01:51:57 +00:00
|
|
|
outline: 1px solid var(--grist-theme-cursor, var(--grist-color-cursor));
|
|
|
|
box-shadow: inset 0 0 0 1px var(--grist-theme-cursor, var(--grist-color-cursor));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.column_name {
|
2022-09-06 01:51:57 +00:00
|
|
|
color: var(--grist-theme-table-header-fg, unset);
|
|
|
|
background-color: var(--grist-theme-table-header-bg, var(--grist-color-light-grey));
|
2020-10-02 15:10:00 +00:00
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
/* Column headers always show vertical gridlines, to make it clear how to resize them */
|
2022-09-06 01:51:57 +00:00
|
|
|
border-right-color: var(--grist-theme-table-header-border-dark, var(--grist-color-dark-grey));
|
|
|
|
}
|
|
|
|
|
|
|
|
.column_names.record {
|
|
|
|
border-left-color: var(--grist-theme-table-header-border, var(--grist-color-dark-grey));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.column_name.selected {
|
2022-09-06 01:51:57 +00:00
|
|
|
color: var(--grist-theme-table-header-selected-fg, unset);
|
|
|
|
background-color: var(--grist-theme-table-header-selected-bg, var(--grist-color-medium-grey-opaque));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gridview_data_row_num.selected {
|
2022-09-06 01:51:57 +00:00
|
|
|
color: var(--grist-theme-table-header-selected-fg, unset);
|
|
|
|
background-color: var(--grist-theme-table-header-selected-bg, var(--grist-color-medium-grey-opaque));
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.gridview_data_row_info.linked_dst::before {
|
|
|
|
position: absolute;
|
|
|
|
content: '\25B8';
|
|
|
|
text-align: left;
|
|
|
|
left: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text_wrapping {
|
|
|
|
word-break: break-word;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2020-11-11 20:25:37 +00:00
|
|
|
.diff-local, .diff-local-add {
|
2020-10-02 15:10:00 +00:00
|
|
|
background-color: #dfdfff;
|
2021-02-09 10:12:53 +00:00
|
|
|
--grist-diff-background-color: #dfdfff;
|
|
|
|
--grist-diff-color: black;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2020-11-11 20:25:37 +00:00
|
|
|
.diff-parent, .diff-remote-remove {
|
2020-10-02 15:10:00 +00:00
|
|
|
background-color: #ffdfdf;
|
2021-02-09 10:12:53 +00:00
|
|
|
--grist-diff-background-color: #ffdfdf;
|
|
|
|
--grist-diff-color: black;
|
2020-10-02 15:10:00 +00:00
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
2020-11-11 20:25:37 +00:00
|
|
|
.diff-local-remove {
|
|
|
|
background-color: #dfdfdf;
|
2021-02-09 10:12:53 +00:00
|
|
|
--grist-diff-background-color: #dfdfdf;
|
|
|
|
--grist-diff-color: black;
|
2020-11-11 20:25:37 +00:00
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-remote, .diff-remote-add {
|
2020-10-02 15:10:00 +00:00
|
|
|
background-color: #afffaf;
|
2021-02-09 10:12:53 +00:00
|
|
|
--grist-diff-background-color: #afffaf;
|
|
|
|
--grist-diff-color: black;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.diff-common {
|
|
|
|
color: #555;
|
|
|
|
}
|