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