Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Add thead rule for consistent calculations of sticky header in repeater list #2026

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 45 additions & 36 deletions less/repeater-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -129,53 +129,62 @@
}
}

thead > tr > th {
background: @gray98;
border-bottom: 1px solid @gray87;
border-left: 1px solid transparent;
border-top: none;
color: fade(@true-black, 0); // transparent
line-height: 1.42857;
padding: 8px;

#fuelux > .no-selection-allowed();

&:first-child {
border-left: none;
.header-checkbox {
width: @mutli-select-enabled-width;
padding-left: 12px;
thead {
// thead display defaults to 'table-row-group'
// 'table-row-group' has no specification on the default height
// fuelux relies on the thead to calculate size of sticky headers
// to have consistent heights across browsers resetting to block
display: block;

> tr > th {
background: @gray98;
border-bottom: 1px solid @gray87;
border-left: 1px solid transparent;
border-top: none;
color: fade(@true-black, 0); // transparent
line-height: 1.42857;
padding: 8px;

.checkbox-inline:before {
top: 0;
#fuelux > .no-selection-allowed();

&:first-child {
border-left: none;
.header-checkbox {
width: @mutli-select-enabled-width;
padding-left: 12px;

.checkbox-inline:before {
top: 0;
}
}
}
}

&.sortable {
&:hover, &.sorted {
background: @selectable-hover;
cursor: pointer;
#fuelux > .vertical(@start-color: @gray98; @end-color: @gray90);
&.sortable {
&:hover, &.sorted {
background: @selectable-hover;
cursor: pointer;
#fuelux > .vertical(@start-color: @gray98; @end-color: @gray90);
}
}

&.sorted {
span.glyphicon {
display: block;
visibility: hidden;
}
}
}

&.sorted {
span.glyphicon {
display: block;
visibility: hidden;
display: none;
float: right;
margin-top: 2px;
}
}

span.glyphicon {
display: none;
float: right;
margin-top: 2px;
.actions-hidden {
visibility: hidden;
}
}

.actions-hidden {
visibility: hidden;
}
}
}

Expand Down