Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame^] | 1 | @import "../../util"; |
| 2 | |
| 3 | /** |
| 4 | * Table view |
| 5 | * |
| 6 | * The table view is complicated, as the |
| 7 | * first column has to be static. |
| 8 | */ |
| 9 | div.matchtable { |
| 10 | |
| 11 | > div { |
| 12 | z-index: 20; |
| 13 | margin-left: $left-distance - ($border-size / 2); |
| 14 | margin-right: $right-view-distance; |
| 15 | padding: 0; |
| 16 | overflow-x: auto; |
| 17 | overflow-y: visible; |
| 18 | width: auto; |
| 19 | } |
| 20 | |
| 21 | table { |
| 22 | display: table; |
| 23 | border-collapse: separate; |
| 24 | border-spacing: 0px; |
| 25 | } |
| 26 | |
| 27 | th { |
| 28 | color: $nearly-white; |
| 29 | } |
| 30 | |
| 31 | // Use matchinfo cells for query creation |
| 32 | td, |
| 33 | tbody th, |
| 34 | thead th:not(:nth-child(1)):not(:nth-child(2)):not(.cutted) { |
| 35 | cursor: pointer; |
| 36 | } |
| 37 | |
| 38 | td { |
| 39 | &:empty { |
| 40 | cursor: default; |
| 41 | // Fix for empty annotation lines: |
| 42 | &::after { |
| 43 | content: " "; |
| 44 | white-space: pre; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // table for key-value pairs |
| 49 | &.matchkeyvalues { |
| 50 | padding: 0; |
| 51 | > div { |
| 52 | @include cell-info; |
| 53 | > span { |
| 54 | color: $darkest-orange; |
| 55 | text-align: right; |
| 56 | padding-right: .5em; |
| 57 | &::after { |
| 58 | content: ":" |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | tr { |
| 66 | outline: none; |
| 67 | |
| 68 | // equal to dd.chosen |
| 69 | td.chosen, |
| 70 | th.chosen, |
| 71 | div.chosen { |
| 72 | background-color: $light-green !important; |
| 73 | color: $nearly-white; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * The first two columns. |
| 78 | */ |
| 79 | > th:nth-of-type(1), |
| 80 | > th:nth-of-type(2) { |
| 81 | @include matchinfo-head; |
| 82 | position: absolute; |
| 83 | z-index: 80; |
| 84 | vertical-align: middle; |
| 85 | left: 0px; |
| 86 | } |
| 87 | |
| 88 | > th:nth-of-type(2) { |
| 89 | left: ($left-width / 2) + $border-size; |
| 90 | } |
| 91 | |
| 92 | // Includes header line as well |
| 93 | > * { |
| 94 | @include cell-info; |
| 95 | border: ($border-size / 2) solid $dark-orange; |
| 96 | } |
| 97 | |
| 98 | > td { |
| 99 | background-color: $middle-orange; |
| 100 | white-space: nowrap; |
| 101 | vertical-align: top; |
| 102 | text-align: center; |
| 103 | &.mark { |
| 104 | background-color: $light-orange; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | &:nth-child(even) > td { |
| 109 | background-color: $light-orange; |
| 110 | &.mark { |
| 111 | background-color: $middle-orange; |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | thead th { |
| 117 | background-color: $darker-orange; |
| 118 | border-top-width: 0px !important; |
| 119 | text-align: center; |
| 120 | |
| 121 | &:nth-of-type(1), |
| 122 | &:nth-of-type(2) { |
| 123 | text-align: left; |
| 124 | } |
| 125 | |
| 126 | &.mark { |
| 127 | background-color: $darkest-orange; |
| 128 | } |
| 129 | |
| 130 | &.cutted { |
| 131 | background-color: $light-orange; |
| 132 | |
| 133 | &::after { |
| 134 | @include icon-font; |
| 135 | content: $fa-cut; |
| 136 | color: $light-green; |
| 137 | padding: { |
| 138 | left: 4pt; |
| 139 | right: 4pt; |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | tbody > tr:nth-of-type(1) > th { |
| 146 | border-top-color: transparent; |
| 147 | } |
| 148 | } |