styles/chartcss/table.scss (138 lines of code) (raw):
@import "../mq";
@import "../palette";
.andy {
background-color:red;
}
.collapse-true {
position: relative;
overflow: hidden;
width: 100%;
max-width: 100%;
table {
width: 100%;
font-family: "Guardian Text Sans Web", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-size: 14px;
border-collapse: collapse;
thead {
z-index: 1000000;
tr {
th.column-header {
text-align: left;
color: #121212;
padding-left: 4px;
font-weight: 700;
font-size: 11px;
vertical-align: top;
font-weight: bold;
line-height: 13px;
max-width: calc(100% - 30px);
border-bottom: 1px solid #bdbdbd;
span {
display: inline;
position: relative;
pointer-events: none;
}
position: relative;
}
}
}
tbody.table-body {
max-width: 100vw;
tr {
td.column {
padding: 5px;
span.header-prefix {
display: none;
}
}
}
}
tbody {
max-width: 100vw;
}
tr th {
padding: 5px;
}
tr td {
padding: 0px;
font-size: 13px;
line-height: 16px;
color: #333;
vertical-align: top;
.header-prefix {
padding-left: 5px;
}
}
tr {
background-color: $odd;
&:nth-of-type(even) {
background-color: $even;
}
&.tr-no-matches {
background-color: transparent;
}
}
th {
background-color: #fff;
}
#untruncate {
display: none;
}
}
}
.search-wrapper {
position: relative;
max-width: 640px;
svg {
position: absolute;
top: 6px;
left: 8px;
height: 26px;
}
#search-field,
.search {
border: 1px solid #dcdcdc;
border-radius: 24px;
padding: 12px 12px 12px 36px;
width: 100%;
font-size: 14px;
margin-bottom: 18px;
color: #767676;
box-sizing: border-box;
&:focus {
outline: 0;
border: 1px solid #dcdcdc;
color: #333;
}
}
}
tr td {
border-bottom: 1px dotted lightgrey;
}
.table-bar-chart {
position:relative
}
.table-bar {
float:left;
height: 20px;
}
.table-bar-label {
position:absolute;
text-align:center;
line-height: 20px;
}
/*----- App fixes -----*/
.ios,
.android {
.element-inline,
.element-interactive,
element-showcase {
overflow: scroll;
-webkit-overflow-scrolling: touch;
touch-action: auto;
}
}
.android .collapse-true table {
border-collapse: collapse;
overflow: scroll;
touch-action: pan-x pan-y;
}