Files
Colloid-gtk-theme/src/sass/libadwaita/widgets/_column-view.scss
vinceliuice 923c07fe00 update
2025-08-06 10:01:29 +08:00

121 lines
2.6 KiB
SCSS

columnview {
@include focus-ring();
&:drop(active) {
box-shadow: none;
}
> header > button {
@extend %undecorated_button;
padding: $base_padding / 2 $base_padding * 1.5;
border-radius: 0;
box-shadow: none;
line-height: 100%;
border-left: 1px solid $border_color;
border-bottom: 1px solid $border_color;
border-top: none;
border-right: none;
background-clip: padding-box;
&:first-child {
border-left: none;
}
> box {
color: gtkalpha(currentColor, 0.4);
font-weight: 700;
font-size: 9pt;
border-spacing: $base_padding;
}
&:hover > box {
color: gtkalpha(currentColor, 0.7);
box-shadow: none;
}
&:active > box {
color: currentColor;
}
sort-indicator {
&.ascending {
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
}
&.descending {
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
}
min-height: 16px;
min-width: 16px;
}
}
button.dnd,
header.button.dnd { // for treeview-like derive widgets
&:active, &:selected, &:hover, & {
color: $accent_fg_color;
background-color: $accent_bg_color;
transition: none;
}
}
// Remove the default background of the internal list view
// since we already apply a background to the column view
// with the .view class. Doing this will avoid overdraw.
&.view > listview.view {
background: none;
color: inherit;
}
// move padding to child cells
> listview > row {
padding: 0;
// align horizontal sizing with header buttons
> cell {
padding: $base_padding + 2px $base_padding;
&:not(:first-child) {
border-left: 1px solid transparent;
}
}
}
// make column separators visible when :show-column-separators is true
&.column-separators {
> listview > row > cell,
> header > button {
border-left-color: $border_color;
}
}
> listview:not(.horizontal).separators > row:not(.separator) {
border-top: 1px solid $border_color;
border-bottom: none;
}
// shrink vertically for .data-table
&.data-table > listview > row > cell {
padding-top: $base_padding / 2;
padding-bottom: $base_padding / 2;
}
@include undershoot(top, $shade_color, $neighbor: true, $style: default);
~ undershoot.top {
box-shadow: none;
}
}
columnview row:not(:selected) cell editablelabel:not(.editing):focus-within {
outline: 2px solid $focus_border_color;
}
columnview row:not(:selected) cell editablelabel.editing:focus-within {
outline: 2px solid $accent_color;
}
treeexpander {
border-spacing: $base_padding / 2 + 1px;
}