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