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