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