From e3f9d08ce974cfeb8af27c10b33371d0554f4699 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 23 Feb 2021 18:26:47 -0500 Subject: [PATCH] Consolidate some clicky table label styles. There is a section of label styles that are the same for all headings, and we can use a common class to avoid having to replicate the styles for each column. --- content/style.scss | 56 ++++++++++++++++++++--------------------- layouts/clickytable.xsl | 12 +++++++++ 2 files changed, 40 insertions(+), 28 deletions(-) diff --git a/content/style.scss b/content/style.scss index 912fe4a..e517d90 100644 --- a/content/style.scss +++ b/content/style.scss @@ -273,41 +273,41 @@ $clickynames: name, date, size; opacity: 0; z-index: -2; } +} - th.clicky-#{$col}>label { - white-space: nowrap; - cursor: pointer; - line-height: 1.5em; +thead.clicky label { + white-space: nowrap; + line-height: 1.5em; + cursor: pointer; - &>* { - display: -moz-inline-box; - display: inline-block; - border: 1px dotted transparent; - vertical-align: middle; - } + &>* { + display: -moz-inline-box; + display: inline-block; + border: 1px dotted transparent; + vertical-align: middle; + } - // Expand the first label a bit so the table (hopefully) - // does not reshape as columns are selected. - &:first-child { - margin-right: 1.75em; - padding-right: 2px; - } + // Expand the first label a bit so the table (hopefully) + // does not reshape as columns are selected. + &:first-child { + margin-right: 1.75em; + padding-right: 2px; + } - &:active { color: $linkactivecolour; } - &:first-child:active>span, &~label:active>.svg { - border-color: $linkactivecolour; - } + &:active { color: $linkactivecolour; } + &:first-child:active>span, &~label:active>.svg { + border-color: $linkactivecolour; + } - .svg { - margin-left: 0.25em; - } + .svg { + margin-left: 0.25em; + } - .svg, svg, img.svgfallback { - height: 1.5em; - width: auto; - } - .svg svg { width: 1.5em; } + .svg, svg, img.svgfallback { + height: 1.5em; + width: auto; } + .svg svg { width: 1.5em; } } table.filelist { diff --git a/layouts/clickytable.xsl b/layouts/clickytable.xsl index f06fef3..cf0fcb2 100644 --- a/layouts/clickytable.xsl +++ b/layouts/clickytable.xsl @@ -67,6 +67,18 @@ + + + + + + + clicky + + + + + -- 2.43.0