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