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 | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 238 | div.matchinfo ul.action.image { |
| 239 | display: block; |
| 240 | position: absolute; |
| 241 | right: 0; |
| 242 | top: 0; |
| 243 | z-index: 20; |
| 244 | margin: 0; |
| 245 | padding: 0; |
Akron | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 246 | width: $right-match-distance; |
| 247 | li { |
| 248 | cursor: pointer; |
| 249 | color: $nearly-white; |
| 250 | text-decoration: none; |
| 251 | > span { |
| 252 | @include blind; |
| 253 | } |
| 254 | border-width: 0; |
| 255 | // z-index: 8; |
| 256 | text-decoration:none; |
| 257 | text-align: center; |
| 258 | font-style: normal; |
| 259 | |
| 260 | &.download::after { |
| 261 | font-family: 'FontAwesome'; |
| 262 | content: $fa-download; |
| 263 | } |
| 264 | |
| 265 | &.close::after { |
| 266 | font-family: 'FontAwesome'; |
| 267 | content: $fa-close; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
Akron | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 272 | |
| 273 | div.metatable + div.matchtable, |
| 274 | div.metatable + div.matchtree { |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 275 | margin-top: 4 * $border-size !important; |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 276 | } |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 277 | |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 278 | div.metatable > dl { |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 279 | display: flex; |
| 280 | flex-direction: row; |
| 281 | flex-wrap: wrap; |
Akron | c8eb4a1 | 2018-02-03 00:39:58 +0100 | [diff] [blame] | 282 | justify-content: flex-start; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 283 | align-items: stretch; |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 284 | width: auto; |
| 285 | padding-bottom: 0; |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 286 | margin-right: $right-match-distance; |
| 287 | margin-top: $border-size; |
| 288 | |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 289 | > div { |
| 290 | display: flex; |
| 291 | flex-direction: row; |
| 292 | text-align: center; |
| 293 | width: 100%; |
| 294 | border: ($border-size / 2) solid $dark-orange; |
| 295 | align-items: stretch; |
| 296 | > * { |
| 297 | @include cell-info; |
| 298 | } |
| 299 | > dt { |
| 300 | text-align: left; |
| 301 | background: $darker-orange; |
| 302 | color: $nearly-white; |
Akron | ca2c37c | 2018-03-06 20:18:47 +0100 | [diff] [blame] | 303 | width: 12.5em; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 304 | margin: 0; |
| 305 | } |
| 306 | > dd { |
| 307 | text-align: left; |
| 308 | background-color: $light-orange; |
| 309 | padding: 2px; |
| 310 | margin: 0; |
| 311 | width: 100%; |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 312 | max-width: none; |
Akron | e767969 | 2018-01-26 12:06:33 +0100 | [diff] [blame] | 313 | max-height: 6em; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 314 | margin-left: $border-size; |
Akron | e767969 | 2018-01-26 12:06:33 +0100 | [diff] [blame] | 315 | white-space: normal; |
Akron | b5d05d7 | 2018-02-12 15:09:12 +0100 | [diff] [blame] | 316 | overflow-y: auto; |
| 317 | overflow-x: hidden; |
| 318 | text-overflow: ellipsis; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 319 | } |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | @media (min-width:640px) { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 324 | div.metatable > dl { |
| 325 | > div { |
| 326 | width: 50%; // 2* |
| 327 | } |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 328 | } |
| 329 | } |
| 330 | |
| 331 | @media (min-width:800px) { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 332 | div.metatable > dl > div { |
Akron | c8eb4a1 | 2018-02-03 00:39:58 +0100 | [diff] [blame] | 333 | width: 33.3333333333333%; // 3* |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 334 | } |
| 335 | } |
| 336 | |
| 337 | @media (min-width:1200px) { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 338 | div.metatable > dl > div { |
| 339 | width: 25%; // 4* |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | @media (min-width:1680px) { |
| 344 | div.metatable > dl > div { |
| 345 | width: 20%; // 5* |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 346 | } |
| 347 | } |
| 348 | |
| 349 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 350 | div.loading { |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 351 | background-color: transparent !important; |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 352 | height: 16px !important; |
| 353 | width: 16px !important; |
| 354 | margin: 0 auto !important; |
| 355 | 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] | 356 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 357 | } |
| 358 | |
| 359 | |