styles/chartcss/textable.scss (229 lines of code) (raw):

@import "../palette"; .andy { background-color:red; } table { width: 100%; font-family: "Guardian Text Sans Web", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; } @media (min-width: 29.99em) { .collapse-true { position: relative; overflow: hidden; width: 100%; max-width: 100%; table { 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; } } } 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; } } @media (max-width: 29.99em) { table { font-size: 11px; } .table .collapse-true table, .table .collapse-true thead, .table .collapse-true tbody, .table .collapse-true th, .table .collapse-true td, .table .collapse-true tr { display: block; } .table .collapse-true thead tr { position: absolute; top: -9999px; left: -9999px; } .table .collapse-true tr { border-top: 1px solid #bcbcbc; padding: 4px; position: relative; } .table .collapse-true tr::before { display: block; position: absolute; content: ""; width: calc(25% + 8px); max-width: 188px; height: calc(100% - 8px); border-right: 1px dotted #bcbcbc; top: 4px; } .table .collapse-true th { border-bottom: none; vertical-align: top; } .table .collapse-true td { border: none; border-bottom: 0 !important; position: relative; vertical-align: top; line-height: 14px; } .table .collapse-true td span { display: inline-block; vertical-align: top; width: 65%; padding-right: 0; } .table .collapse-true td span.header-prefix { width: 25%; max-width: 180px; padding-right: 20px; } .table .collapse-true td span.header-prefix::before { height: 100%; vertical-align: top; } .table .collapse-true td span.header-prefix::before { padding-left: 5px; } .table .collapse-true tr td { padding: 2px 0; text-align: left !important; } .table .collapse-true tr td, .table .collapse-true tr th { min-height: 5px; } .table .collapse-true tr td:nth-of-type(1), .table .collapse-true tr th:nth-of-type(1) { padding: 2px 0; } .table .collapse-true svg { padding: 2px 0 0 3px; position: absolute; } .table .collapse-true tr { padding: 4px 4px 10px 4px; } .table .collapse-true tr:nth-of-type(odd) { background-color: #f6f6f6; } .column svg { padding: 3px 0; height: 20px; } } .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; } } }