if (this.extedit || this.rowcolors)
trEl.classList.add(!(tableEl.childNodes.length % 2)
? 'cbi-rowstyle-1' : 'cbi-rowstyle-2');
+
if (sectionname && (!this.anonymous || this.sectiontitle)) {
- trEl.appendChild(E('td', {'class': 'td cbi-value-field cbi-value-first-field'}, [ (sectionname && (!this.anonymous || this.sectiontitle)) ? sectionname : null ]));
+ trEl.appendChild(E('td', {'class': 'td cbi-value-field cbi-section-table-titles'}, [
+ (sectionname && (!this.anonymous || this.sectiontitle)) ? sectionname : null
+ ]));
}
for (let j = 0; j < max_cols && nodes[i].firstChild; j++)
if (has_titles) {
const trEl = E('tr', {
- 'class': `tr cbi-value-first-field cbi-section-table-titles ${anon_class}`,
- 'data-title': (!this.anonymous || this.sectiontitle) ? _('Name') : null,
+ 'class': `tr cbi-section-table-titles ${anon_class}`,
'click': this.sortable ? ui.createHandlerFn(this, 'handleSort') : null
});
+
if (!this.anonymous || this.sectiontitle) {
trEl.appendChild(E('th', {
- 'class': 'th cbi-section-table-cell',
- 'data-sortable-row': this.sortable ? '' : null
- }, (!this.anonymous || this.sectiontitle) ? _('Name') : null
- ));
+ 'class': 'th cbi-section-table-cell',
+ 'data-sortable-row': this.sortable ? '' : null
+ }, (!this.anonymous || this.sectiontitle) ? _('Name') : null
+ ));
}
for (let i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
font-weight: normal;
}
-.cbi-section-table-titles.named::before,
+.cbi-section-table-titles {
+ font-weight: bold;
+}
+
.cbi-section-table-descr.named::before,
.cbi-section-table-row[data-title]::before {
content: none;
color: #0069d6;
}
-.cbi-value-first-field {
- font-weight: bold;
-}
-
div.cbi-value var[data-tooltip],
.td.cbi-value-field var[data-tooltip],
div.cbi-value var.cbi-tooltip-container,
border-collapse: collapse;
}
-tr.cbi-section-table-titles[data-title]::before {
+tr.cbi-section-table-titles {
font-weight: bold;
- border-top: none;
}
tr[data-title]::before {
flex: 1 1 100%;
}
-.cbi-value-first-field {
- font-weight: bold;
-}
-
.cbi-map-descr,
.cbi-tab-descr,
.cbi-section-descr,
padding-bottom: .5em;
}
- tr.cbi-section-table-titles[data-title]::before,
- tr.cbi-section-table-titles,
tr.cbi-section-table-descr {
display: none;
}