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