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 { |
| 66 | border-top-right-radius: 5px; |
| 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; |
| 93 | } |
| 94 | } |
| 95 | tbody { |
| 96 | > tr:nth-of-type(1) > th { |
| 97 | border-top-color: transparent; |
| 98 | } |
| 99 | /** |
| 100 | * Click on a row and it's highlighted. |
| 101 | */ |
| 102 | > tr:focus { |
| 103 | outline: none; |
| 104 | /* |
| 105 | outline: (2 * $border-size) solid $light-green; |
| 106 | -moz-outline-radius: $border-size; |
| 107 | outline-radius: $border-size; |
| 108 | */ |
| 109 | background-color: $light-green; |
| 110 | border-color: $light-green; |
| 111 | td { |
| 112 | background-color: inherit; |
| 113 | color: $nearly-white; |
| 114 | border-color: $light-green; |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | tr { |
| 119 | /** |
| 120 | * The first two columns. |
| 121 | */ |
| 122 | > th:nth-of-type(1), |
| 123 | > th:nth-of-type(2) { |
| 124 | position: absolute; |
| 125 | z-index: 80; |
| 126 | vertical-align: middle; |
| 127 | left: 0px; |
| 128 | @include matchinfo-head; |
| 129 | } |
| 130 | > th:nth-of-type(2) { |
| 131 | left: ($left-width / 2) + $border-size; |
| 132 | } |
| 133 | > * { |
| 134 | @include cell-info; |
| 135 | border: ($border-size / 2) solid $dark-orange; |
| 136 | } |
| 137 | } |
| 138 | tr > td { |
| 139 | background-color: $middle-orange; // $nearly-white; |
| 140 | white-space: nowrap; |
| 141 | vertical-align: top; |
| 142 | text-align: center; |
| 143 | } |
| 144 | tr:nth-child(even) > td { |
| 145 | background-color: $light-orange; |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Tree view |
| 151 | */ |
| 152 | div.matchtree { |
| 153 | position: relative; |
| 154 | overflow-x: hidden; |
| 155 | overflow-y: visible; |
| 156 | padding: 0; |
| 157 | margin-top: 1pt; |
| 158 | |
| 159 | /** |
| 160 | * Label |
| 161 | */ |
| 162 | h6 { |
| 163 | display: inline; |
| 164 | font-size: inherit; |
| 165 | color: $nearly-white; |
| 166 | margin: 0; |
| 167 | padding: 0 !important; |
| 168 | float: left; |
| 169 | > span { |
| 170 | @include matchinfo-head; |
| 171 | @include cell-info; |
| 172 | display: inline-block; |
| 173 | margin: 0; |
| 174 | &:nth-of-type(2) { |
| 175 | margin-left: $border-size; |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | > div { |
| 180 | overflow-x: auto; |
| 181 | margin: $border-size; |
| 182 | margin-left: $left-distance; |
| 183 | margin-right: $right-match-distance; |
| 184 | |
| 185 | background-color: $light-orange; // $nearly-white; // $light-orange; |
| 186 | > em { |
| 187 | color: $nearly-white; |
| 188 | cursor: pointer; |
| 189 | display: block; |
| 190 | position: absolute; |
| 191 | right: 0px; |
| 192 | top: 0px; |
| 193 | width: $right-match-distance; |
| 194 | border-width: 0; |
| 195 | z-index: 8; |
| 196 | text-decoration:none; |
| 197 | text-align: center; |
| 198 | font-weight: bold; |
| 199 | font-style: normal; |
| 200 | |
| 201 | &::after { |
| 202 | font-family: 'FontAwesome'; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 203 | content: $fa-close; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 204 | } |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 209 | div.loading { |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame^] | 210 | background-color: transparent !important; |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 211 | height: 16px !important; |
| 212 | width: 16px !important; |
| 213 | margin: 0 auto !important; |
| 214 | 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^] | 215 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 219 | /** |
| 220 | * SVG tree |
| 221 | */ |
| 222 | path.edge { |
| 223 | stroke: $darker-orange; |
| 224 | stroke-width: 2px; |
| 225 | fill: none; |
| 226 | } |
| 227 | |
| 228 | g.root rect.empty { |
| 229 | stroke: $darker-orange; |
| 230 | fill: $darker-orange; |
| 231 | stroke-width: 2px; |
| 232 | } |
| 233 | |
| 234 | g.middle rect { |
| 235 | stroke: $darker-orange; |
| 236 | stroke-width: 2px; |
| 237 | fill: $middle-orange; |
| 238 | } |
| 239 | |
| 240 | g.leaf > rect { |
| 241 | display: none; |
| 242 | } |
| 243 | |
| 244 | g > text { |
| 245 | text-anchor: middle; |
| 246 | font-size: 9pt; |
| 247 | } |
| 248 | |
| 249 | g.leaf > text { |
| 250 | font-size: 10pt; |
| 251 | overflow: visible; |
| 252 | } |