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