meshviewer/scss/modules/_table.scss

83 lines
1.0 KiB
SCSS
Raw Normal View History

table {
border-collapse: separate;
border-spacing: 0 .5em;
2016-06-19 11:14:13 +00:00
padding: 0 $button-distance;
width: 100%;
&.attributes {
line-height: 1.41em;
th {
font-weight: bold;
padding-right: 1em;
text-align: left;
vertical-align: top;
white-space: nowrap;
}
td {
text-align: left;
width: 100%;
}
}
}
2017-02-04 02:01:17 +00:00
td,
th {
line-height: 1.41em;
text-align: right;
&:first-child {
text-align: left;
}
}
th {
font-weight: bold;
&[class*=' ion-'] {
font-size: 1.3em;
}
&.sort-header {
cursor: pointer;
&::selection {
background: transparent;
}
&::after {
content: '\f10d';
font-family: $font-family-icons;
padding-left: .25em;
visibility: hidden;
}
&:hover {
&::after {
visibility: visible;
}
}
}
&.sort-up {
&::after {
content: '\f104';
}
}
2017-02-04 02:01:17 +00:00
&.sort-up,
&.sort-down {
2016-07-12 19:18:13 +00:00
&::after {
opacity: .4;
visibility: visible;
}
}
}
.tab {
table {
table-layout: fixed;
}
}