Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
| 4 | $left-width: 176px; |
| 5 | $border-size: 2px; |
| 6 | $left-distance: $left-width + ($border-size * 2); |
| 7 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 8 | /** |
| 9 | * Table view |
| 10 | * |
| 11 | * The table view is complicated, as the |
| 12 | * first column has to be static. |
| 13 | */ |
| 14 | @mixin matchinfo-head { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 15 | // border-width: 0px; |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 16 | border-top: $border-size solid $darker-orange; // #ff8000; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 17 | width: $left-width / 2; |
| 18 | } |
| 19 | |
Akron | eaba63e | 2018-01-26 19:49:30 +0100 | [diff] [blame] | 20 | div.matchinfo:empty { |
| 21 | display: none !important; |
| 22 | } |
| 23 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 24 | div.matchinfo { |
| 25 | position: relative; |
| 26 | width: 100%; |
| 27 | padding-top: $border-size; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 28 | // background-color: $dark-orange; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 29 | height: auto; |
| 30 | font-size: 10pt; |
| 31 | text-align: left; |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 32 | p.queryfragment { |
| 33 | position:relative; |
| 34 | @include choose-item; |
| 35 | border : { |
| 36 | width: $border-size; |
| 37 | style: solid; |
| 38 | radius: $standard-border-radius; |
| 39 | } |
| 40 | padding: 2pt 4pt !important; |
Akron | e8ea000 | 2017-06-28 18:51:52 +0200 | [diff] [blame] | 41 | margin: { |
| 42 | // left: $border-size; |
| 43 | left: $left-distance; |
| 44 | top: .5em; |
| 45 | bottom: .5em; |
| 46 | right: $right-match-distance; |
| 47 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 48 | &:hover { |
| 49 | cursor:pointer; |
| 50 | @include choose-hover; |
| 51 | } |
| 52 | |
| 53 | // This is the description |
| 54 | > span:first-of-type { |
| 55 | font-weight: bold; |
| 56 | padding-right: 4pt; |
| 57 | } |
| 58 | |
| 59 | // Query fragment |
| 60 | > span:nth-of-type(2) { |
| 61 | padding-right: 1.2em; |
| 62 | } |
| 63 | |
| 64 | &::after { |
| 65 | font-family: 'FontAwesome'; |
| 66 | content: $fa-to-query; |
| 67 | position: absolute; |
| 68 | right: 4pt; |
Akron | e8ea000 | 2017-06-28 18:51:52 +0200 | [diff] [blame] | 69 | top: $border-size; |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 70 | } |
| 71 | } |
Akron | e8ea000 | 2017-06-28 18:51:52 +0200 | [diff] [blame] | 72 | } |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 73 | |
Akron | aeceda7 | 2018-02-02 20:44:06 +0100 | [diff] [blame] | 74 | div.matchtable > div { |
Akron | e8ea000 | 2017-06-28 18:51:52 +0200 | [diff] [blame] | 75 | z-index: 20; |
| 76 | margin-left: $left-distance - ($border-size / 2); |
| 77 | margin-right: $right-match-distance; |
| 78 | padding: 0; |
| 79 | overflow-x: auto; |
| 80 | overflow-y: visible; |
| 81 | width: auto; |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 82 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 83 | table { |
| 84 | display: table; |
| 85 | border-collapse: separate; |
| 86 | border-spacing: 0px; |
| 87 | } |
| 88 | th { |
| 89 | color: $nearly-white; |
| 90 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 91 | |
| 92 | // Use matchinfo cells for query creation |
| 93 | td, |
| 94 | tbody th, |
| 95 | thead th:not(:nth-child(1)):not(:nth-child(2)) { |
| 96 | cursor: pointer; |
| 97 | } |
Akron | 78655d1 | 2017-06-28 18:56:57 +0200 | [diff] [blame] | 98 | td:empty { |
| 99 | cursor: default; |
| 100 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 101 | tr { |
| 102 | outline: none; |
Akron | 83b2b0e | 2017-07-03 15:17:38 +0200 | [diff] [blame] | 103 | td.chosen, |
| 104 | th.chosen, |
| 105 | div.chosen { |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 106 | background-color: $light-green !important; |
| 107 | color: $nearly-white; |
| 108 | // transition: color 0.1s, background-color 0.15s ease-out; |
| 109 | } |
| 110 | } |
| 111 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 112 | thead { |
| 113 | tr th { |
| 114 | background-color: $darker-orange; |
| 115 | border-top-width: 0px !important; |
Akron | 2495ceb | 2016-02-13 17:17:52 +0100 | [diff] [blame] | 116 | text-align: center; |
| 117 | &:nth-of-type(1), &:nth-of-type(2) { |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 118 | text-align: left; |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame^] | 119 | } |
| 120 | &.mark { |
| 121 | background-color: $darkest-orange; // #f6a800; |
Akron | 2495ceb | 2016-02-13 17:17:52 +0100 | [diff] [blame] | 122 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 123 | } |
| 124 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 125 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 126 | tbody { |
| 127 | > tr:nth-of-type(1) > th { |
| 128 | border-top-color: transparent; |
| 129 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 130 | } |
| 131 | tr { |
| 132 | /** |
| 133 | * The first two columns. |
| 134 | */ |
| 135 | > th:nth-of-type(1), |
| 136 | > th:nth-of-type(2) { |
| 137 | position: absolute; |
| 138 | z-index: 80; |
| 139 | vertical-align: middle; |
| 140 | left: 0px; |
| 141 | @include matchinfo-head; |
| 142 | } |
| 143 | > th:nth-of-type(2) { |
| 144 | left: ($left-width / 2) + $border-size; |
| 145 | } |
Akron | 0af1414 | 2017-06-30 14:58:27 +0200 | [diff] [blame] | 146 | |
| 147 | // Includes header line as well |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 148 | > * { |
| 149 | @include cell-info; |
| 150 | border: ($border-size / 2) solid $dark-orange; |
| 151 | } |
| 152 | } |
| 153 | tr > td { |
| 154 | background-color: $middle-orange; // $nearly-white; |
| 155 | white-space: nowrap; |
| 156 | vertical-align: top; |
| 157 | text-align: center; |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame^] | 158 | &.mark { |
| 159 | background-color: $light-orange; |
| 160 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 161 | } |
| 162 | tr:nth-child(even) > td { |
| 163 | background-color: $light-orange; |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame^] | 164 | &.mark { |
| 165 | background-color: $middle-orange; |
| 166 | } |
Akron | 83b2b0e | 2017-07-03 15:17:38 +0200 | [diff] [blame] | 167 | } |
Akron | 83b2b0e | 2017-07-03 15:17:38 +0200 | [diff] [blame] | 168 | |
| 169 | // table for key-value pairs |
| 170 | td.matchkeyvalues { |
| 171 | padding: 0; |
| 172 | > div { |
| 173 | @include cell-info; |
| 174 | > span { |
| 175 | color: $darkest-orange; |
| 176 | text-align: right; |
| 177 | &::after { |
| 178 | content: ":" |
| 179 | } |
| 180 | padding-right: .5em; |
| 181 | } |
| 182 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 183 | } |
| 184 | } |
| 185 | |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 186 | |
Akron | aeceda7 | 2018-02-02 20:44:06 +0100 | [diff] [blame] | 187 | div.metatable, div.matchtable { |
Akron | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 188 | position: relative; |
| 189 | } |
| 190 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 191 | /** |
| 192 | * Label |
| 193 | */ |
| 194 | // The metatable branch was experimental |
Akron | 257aa85 | 2018-02-06 19:29:51 +0100 | [diff] [blame] | 195 | div.matchtree { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 196 | h6 { |
| 197 | display: inline; |
| 198 | font-size: inherit; |
| 199 | color: $nearly-white; |
| 200 | margin: 0; |
| 201 | padding: 0 !important; |
| 202 | float: left; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 203 | > span { // , > div { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 204 | @include matchinfo-head; |
| 205 | @include cell-info; |
| 206 | display: inline-block !important; |
| 207 | margin: 0; |
| 208 | &:nth-of-type(2) { |
| 209 | margin-left: $border-size; |
| 210 | } |
| 211 | } |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 212 | } |
| 213 | } |
| 214 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 215 | /** |
| 216 | * Tree view |
| 217 | */ |
| 218 | div.matchtree { |
| 219 | position: relative; |
| 220 | overflow-x: hidden; |
| 221 | overflow-y: visible; |
| 222 | padding: 0; |
| 223 | margin-top: 1pt; |
| 224 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 225 | > div { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 226 | position: unset; |
| 227 | z-index: 4; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 228 | overflow-x: auto; |
| 229 | margin: $border-size; |
| 230 | margin-left: $left-distance; |
| 231 | margin-right: $right-match-distance; |
| 232 | |
Akron | 257aa85 | 2018-02-06 19:29:51 +0100 | [diff] [blame] | 233 | background-color: $light-orange; |
Akron | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 234 | } |
| 235 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 236 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 237 | div.button-group.button-panel.button-matchinfo { |
| 238 | display: inline-block; |
| 239 | margin-right: .5em; |
| 240 | > span { |
| 241 | position: relative; |
| 242 | box-shadow: none; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 243 | } |
| 244 | } |
| 245 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 246 | div.matchinfo .view + .view { |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 247 | margin-top: 4 * $border-size !important; |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 248 | } |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 249 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 250 | |
| 251 | // Metatable |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 252 | div.metatable > dl { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 253 | margin-right: $right-match-distance; |
| 254 | margin-top: $border-size; |
| 255 | |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 256 | > div { |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 257 | border-color: $dark-orange; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 258 | > dt { |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 259 | background: $darker-orange; |
| 260 | color: $nearly-white; |
Akron | ca2c37c | 2018-03-06 20:18:47 +0100 | [diff] [blame] | 261 | width: 12.5em; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 262 | } |
| 263 | > dd { |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 264 | background-color: $light-orange; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 269 | div.loading { |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 270 | background-color: transparent !important; |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 271 | height: 16px !important; |
| 272 | width: 16px !important; |
| 273 | margin: 0 auto !important; |
| 274 | background-image: url('data:image/gif;base64,R0lGODlhEAAQAIABAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48Hzh2UngyGvet6OpmKWmBb5TI+LlTOlAAACH5BAkEAAEALAAAAAAQABAAAAIohA+hu3gMnXyBqnkNw1XDnHThZ32bd6LUg0SOOIJsCaPmtOJvrctHAQAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48nxZKGLkxqGiungmyCXh9nRUleSZrO10AACH5BAkEAAEALAAAAAAQABAAAAIohA8RyKwN04pSWdumufp0niHghnkPyaWmqZLsKL3QWXUrJdpo66RKAQAh+QQJBAABACwAAAAAEAAQAAACJoQPEcisDdOKUlnbrp4IH989n1iBJUhK47itxkbGsEvRtXq/8B4UACH5BAkEAAEALAAAAAAQABAAAAIphA8RyKwN04pSWdvuNPto1HEX6G1YOYrain5im0pQ/GSnTIFr7eyhUQAAIfkECQQAAQAsAAAAABAAEAAAAiqMf6ALwWoelJFS5CbESTdeNUu3jWP4IWe2qS0TsmC8cuZFsrAkWrgtKQAAIfkECQQAAQAsAAAAABAAEAAAAiiMf6AL6LwMnDFQVG9SkrveWN6XjR82Mmi4cdMTvWsjnyIV4rIOgUwBACH5BAkEAAEALAAAAAAQABAAAAImjH+gC8HrXpNTxoeuzkltrkFg6BnMiJxpaYpWV76jDFKujV14LBUAIfkEAR4AAQAsAAAAABAAEAAAAiSEDxHIrA3TilJZ266eaN/8HJixdd4nailXgafrwSUVUqltQgUAOw=='); |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 275 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 276 | } |
| 277 | |
| 278 | |