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