mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) updates from grist-core
This commit is contained in:
@@ -367,6 +367,9 @@
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.column_name .menu_toggle {
|
||||
z-index: 1;
|
||||
}
|
||||
/* Etc */
|
||||
|
||||
.g-column-main-menu {
|
||||
@@ -408,11 +411,13 @@
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
margin-right: 4px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.g-column-label .kf_editable_label {
|
||||
padding-left: 1px;
|
||||
padding-right: 1px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.g-column-label-spacer {
|
||||
|
||||
@@ -1073,8 +1073,28 @@ GridView.prototype.buildDom = function() {
|
||||
self.editingFormula() &&
|
||||
ko.unwrap(self.hoverColumn) === field._index()
|
||||
);
|
||||
|
||||
const headerTextColor = ko.computed(() => field.headerTextColor() || '');
|
||||
const headerFillColor = ko.computed(() => field.headerFillColor() || '');
|
||||
const headerFontBold = ko.computed(() => field.headerFontBold());
|
||||
const headerFontItalic = ko.computed(() => field.headerFontItalic());
|
||||
const headerFontUnderline = ko.computed(() => field.headerFontUnderline());
|
||||
const headerFontStrikethrough = ko.computed(() => field.headerFontStrikethrough());
|
||||
|
||||
return dom(
|
||||
'div.column_name.field',
|
||||
dom.autoDispose(headerTextColor),
|
||||
dom.autoDispose(headerFillColor),
|
||||
dom.autoDispose(headerFontBold),
|
||||
dom.autoDispose(headerFontItalic),
|
||||
dom.autoDispose(headerFontUnderline),
|
||||
dom.autoDispose(headerFontStrikethrough),
|
||||
kd.style('--grist-header-color', headerTextColor),
|
||||
kd.style('--grist-header-background-color', headerFillColor),
|
||||
kd.toggleClass('font-bold', headerFontBold),
|
||||
kd.toggleClass('font-italic', headerFontItalic),
|
||||
kd.toggleClass('font-underline', headerFontUnderline),
|
||||
kd.toggleClass('font-strikethrough', headerFontStrikethrough),
|
||||
kd.style('--frozen-position', () => ko.unwrap(this.frozenPositions.at(field._index()))),
|
||||
kd.toggleClass("frozen", () => ko.unwrap(this.frozenMap.at(field._index()))),
|
||||
kd.toggleClass("hover-column", isTooltip),
|
||||
|
||||
@@ -195,8 +195,11 @@
|
||||
}
|
||||
|
||||
.column_name {
|
||||
color: var(--grist-theme-table-header-fg, unset);
|
||||
background-color: var(--grist-theme-table-header-bg, var(--grist-color-light-grey));
|
||||
color: var(--grist-header-color,
|
||||
var(--grist-theme-table-header-fg), unset);
|
||||
background-color: var(--grist-header-background-color,
|
||||
var(--grist-theme-table-header-bg,
|
||||
var(--grist-color-light-grey)));
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
/* Column headers always show vertical gridlines, to make it clear how to resize them */
|
||||
@@ -207,9 +210,11 @@
|
||||
border-left-color: var(--grist-theme-table-header-border, var(--grist-color-dark-grey));
|
||||
}
|
||||
|
||||
.column_name.selected {
|
||||
color: var(--grist-theme-table-header-selected-fg, unset);
|
||||
background-color: var(--grist-theme-table-header-selected-bg, var(--grist-color-medium-grey-opaque));
|
||||
.column_name.selected > .selection {
|
||||
background-color: var(--grist-theme-selection-header);
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.gridview_data_row_num.selected {
|
||||
|
||||
Reference in New Issue
Block a user