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