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; |
| 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 { |
| 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 | > * { |
| 133 | @include cell-info; |
| 134 | border: ($border-size / 2) solid $dark-orange; |
| 135 | } |
| 136 | } |
| 137 | tr > td { |
| 138 | background-color: $middle-orange; // $nearly-white; |
| 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; |
| 165 | margin: 0; |
| 166 | padding: 0 !important; |
| 167 | float: left; |
| 168 | > span { |
| 169 | @include matchinfo-head; |
| 170 | @include cell-info; |
| 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; |
| 181 | margin-left: $left-distance; |
| 182 | margin-right: $right-match-distance; |
| 183 | |
| 184 | background-color: $light-orange; // $nearly-white; // $light-orange; |
| 185 | > em { |
| 186 | color: $nearly-white; |
| 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; |
| 197 | font-weight: bold; |
| 198 | font-style: normal; |
| 199 | |
| 200 | &::after { |
| 201 | font-family: 'FontAwesome'; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 202 | content: $fa-close; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 203 | } |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * SVG tree |
| 210 | */ |
| 211 | path.edge { |
| 212 | stroke: $darker-orange; |
| 213 | stroke-width: 2px; |
| 214 | fill: none; |
| 215 | } |
| 216 | |
| 217 | g.root rect.empty { |
| 218 | stroke: $darker-orange; |
| 219 | fill: $darker-orange; |
| 220 | stroke-width: 2px; |
| 221 | } |
| 222 | |
| 223 | g.middle rect { |
| 224 | stroke: $darker-orange; |
| 225 | stroke-width: 2px; |
| 226 | fill: $middle-orange; |
| 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 | } |