Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 2 | @import "util"; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 3 | |
| 4 | $left-width: 176px; |
| 5 | $border-size: 2px; |
| 6 | $left-distance: $left-width + ($border-size * 2); |
| 7 | |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 8 | @mixin cell-info { |
| 9 | text-overflow: ellipsis; |
| 10 | overflow: hidden; |
| 11 | padding: 1px 6px; |
| 12 | margin: 0px; |
| 13 | } |
| 14 | |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 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; |
| 23 | border-top: $border-size solid #ff8000; |
| 24 | width: $left-width / 2; |
| 25 | } |
| 26 | |
| 27 | div.matchinfo { |
| 28 | position: relative; |
| 29 | width: 100%; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 30 | padding-top: $border-size; |
| 31 | background-color: $dark-orange; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 32 | height: auto; |
| 33 | font-size: 10pt; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 34 | text-align: left; |
| 35 | > p.addtree { |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 36 | position: relative; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 37 | @include choose-item; |
| 38 | border: { |
| 39 | width: $border-size; |
| 40 | style: solid; |
| 41 | radius: $standard-border-radius; |
| 42 | } |
| 43 | |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 44 | font-size: inherit; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 45 | margin: $border-size $border-size 0 $border-size !important; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 46 | width: $left-width; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 47 | text-align: center; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 48 | cursor: pointer; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 49 | padding: 0 !important; |
| 50 | |
| 51 | &:hover { |
| 52 | cursor:pointer; |
| 53 | @include choose-hover; |
| 54 | } |
| 55 | |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 56 | *.menu { |
| 57 | border-top-right-radius: 8px; |
| 58 | position: absolute; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 59 | width: $left-width; |
| 60 | left: 0; |
| 61 | bottom: 0; |
| 62 | text-align: left; |
| 63 | margin: -1* $border-size; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 64 | margin-top: 0; |
| 65 | > li:first-of-type { |
| 66 | border-top-right-radius: 5px; |
| 67 | } |
| 68 | } |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 69 | } |
| 70 | } |
| 71 | |
| 72 | div.matchtable { |
| 73 | z-index: 20; |
| 74 | margin-left: $left-distance - ($border-size / 2); |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 75 | margin-right: $right-match-distance; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 76 | padding: 0; |
| 77 | overflow-x: auto; |
| 78 | overflow-y: visible; |
| 79 | width: auto; |
| 80 | table { |
| 81 | display: table; |
| 82 | border-collapse: separate; |
| 83 | border-spacing: 0px; |
| 84 | } |
| 85 | th { |
| 86 | color: $nearly-white; |
| 87 | } |
| 88 | thead { |
| 89 | tr th { |
| 90 | background-color: $darker-orange; |
| 91 | border-top-width: 0px !important; |
| 92 | } |
| 93 | } |
| 94 | tbody { |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 95 | > tr:nth-of-type(1) > th { |
| 96 | border-top-color: transparent; |
| 97 | } |
| 98 | /** |
| 99 | * Click on a row and it's highlighted. |
| 100 | */ |
| 101 | > tr:focus { |
| 102 | outline: none; |
| 103 | /* |
| 104 | outline: (2 * $border-size) solid $light-green; |
| 105 | -moz-outline-radius: $border-size; |
| 106 | outline-radius: $border-size; |
| 107 | */ |
| 108 | background-color: $light-green; |
| 109 | border-color: $light-green; |
| 110 | td { |
| 111 | background-color: inherit; |
| 112 | color: $nearly-white; |
| 113 | border-color: $light-green; |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | tr { |
| 118 | /** |
| 119 | * The first two columns. |
| 120 | */ |
| 121 | > th:nth-of-type(1), |
| 122 | > th:nth-of-type(2) { |
| 123 | position: absolute; |
| 124 | z-index: 80; |
| 125 | vertical-align: middle; |
| 126 | left: 0px; |
| 127 | @include matchinfo-head; |
| 128 | } |
| 129 | > th:nth-of-type(2) { |
| 130 | left: ($left-width / 2) + $border-size; |
| 131 | } |
| 132 | > * { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 133 | @include cell-info; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 134 | border: ($border-size / 2) solid $dark-orange; |
| 135 | } |
| 136 | } |
| 137 | tr > td { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 138 | background-color: $middle-orange; // $nearly-white; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 139 | white-space: nowrap; |
| 140 | vertical-align: top; |
| 141 | text-align: center; |
| 142 | } |
| 143 | tr:nth-child(even) > td { |
| 144 | background-color: $light-orange; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Tree view |
| 150 | */ |
| 151 | div.matchtree { |
| 152 | position: relative; |
| 153 | overflow-x: hidden; |
| 154 | overflow-y: visible; |
| 155 | padding: 0; |
| 156 | margin-top: 1pt; |
| 157 | |
| 158 | /** |
| 159 | * Label |
| 160 | */ |
| 161 | h6 { |
| 162 | display: inline; |
| 163 | font-size: inherit; |
| 164 | color: $nearly-white; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 165 | margin: 0; |
| 166 | padding: 0 !important; |
| 167 | float: left; |
| 168 | > span { |
| 169 | @include matchinfo-head; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 170 | @include cell-info; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 171 | display: inline-block; |
| 172 | margin: 0; |
| 173 | &:nth-of-type(2) { |
| 174 | margin-left: $border-size; |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | > div { |
| 179 | overflow-x: auto; |
| 180 | margin: $border-size; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 181 | margin-left: $left-distance; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 182 | margin-right: $right-match-distance; |
| 183 | |
| 184 | background-color: $light-orange; // $nearly-white; // $light-orange; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 185 | > em { |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 186 | color: $nearly-white; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 187 | cursor: pointer; |
| 188 | display: block; |
| 189 | position: absolute; |
| 190 | right: 0px; |
| 191 | top: 0px; |
| 192 | width: $right-match-distance; |
| 193 | border-width: 0; |
| 194 | z-index: 8; |
| 195 | text-decoration:none; |
| 196 | text-align: center; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 197 | font-weight: bold; |
| 198 | font-style: normal; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 199 | |
| 200 | &::after { |
| 201 | font-family: 'FontAwesome'; |
| 202 | content: '\f00d'; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 203 | } |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * SVG tree |
| 210 | */ |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 211 | path.edge { |
| 212 | stroke: $darker-orange; |
| 213 | stroke-width: 2px; |
| 214 | fill: none; |
| 215 | } |
| 216 | |
Nils Diewald | 5814133 | 2015-04-07 16:18:45 +0000 | [diff] [blame^] | 217 | g.root rect.empty { |
| 218 | stroke: $darker-orange; |
| 219 | fill: $darker-orange; |
| 220 | stroke-width: 2px; |
| 221 | } |
| 222 | |
| 223 | g.middle rect { |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 224 | stroke: $darker-orange; |
| 225 | stroke-width: 2px; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 226 | fill: $middle-orange; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 227 | } |
| 228 | |
| 229 | g.leaf > rect { |
| 230 | display: none; |
| 231 | } |
| 232 | |
| 233 | g > text { |
| 234 | text-anchor: middle; |
| 235 | font-size: 9pt; |
| 236 | } |
| 237 | |
| 238 | g.leaf > text { |
| 239 | font-size: 10pt; |
| 240 | overflow: visible; |
| 241 | } |