Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 1 | /** |
| 2 | * Table view |
| 3 | */ |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 4 | div.matchinfo { |
| 5 | position: relative; |
| 6 | width: 100%; |
| 7 | height: auto; |
| 8 | font-size: 10pt; |
| 9 | } |
| 10 | |
| 11 | div.matchinfo div.matchtable { |
| 12 | z-index: 20; |
| 13 | margin-left: 122pt; |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 14 | overflow-x: auto; |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 15 | overflow-y: visible; |
| 16 | width: auto; |
| 17 | } |
| 18 | |
| 19 | div.matchtable table { |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 20 | display: table; |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 21 | border-spacing: 2pt; |
| 22 | border-collapse: separate; |
| 23 | } |
| 24 | |
| 25 | div.matchtable th { |
| 26 | color: white; |
| 27 | } |
| 28 | |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 29 | div.matchtable thead th, |
| 30 | div.matchinfo > p { |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 31 | background-color: #ff8000; |
| 32 | } |
| 33 | |
| 34 | div.matchtable tbody th { |
| 35 | text-overflow: ellipsis; |
| 36 | } |
| 37 | |
| 38 | div.matchtable tr > th:nth-of-type(1), |
| 39 | div.matchtable tr > th:nth-of-type(2) { |
| 40 | position: absolute; |
| 41 | z-index: 80; |
| 42 | vertical-align: middle; |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 43 | left: 0pt; |
| 44 | } |
| 45 | |
| 46 | div.matchtable tr > th:nth-of-type(1), |
| 47 | div.matchtable tr > th:nth-of-type(2), |
| 48 | div.matchtree h6 > span { |
| 49 | border-top: 2pt solid #ff8000; |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 50 | width: 60pt; |
| 51 | padding: 0 !important; |
| 52 | } |
| 53 | |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 54 | div.matchtable tbody > tr:nth-of-type(1) > th { |
| 55 | border-top-color: transparent; |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 56 | } |
| 57 | |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 58 | div.matchtable tr > th:nth-of-type(2) { |
| 59 | left: 62pt; |
Nils Diewald | 8bc7e41 | 2015-03-19 22:08:27 +0000 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | tbody tr:focus { |
| 63 | outline: none; |
| 64 | } |
| 65 | |
| 66 | div.matchtable tbody tr:focus { |
| 67 | outline: 4px solid #7ba400; |
| 68 | -moz-outline-radius: 4px; |
| 69 | outline-radius: 4px; |
| 70 | } |
| 71 | |
| 72 | div.matchtable tbody tr:focus td { |
| 73 | background-color: #7ba400; |
| 74 | color: white; |
| 75 | border-color: white; |
| 76 | } |
| 77 | |
| 78 | div.matchtable tr > * { |
| 79 | padding: 0pt 6pt; |
| 80 | margin: 0; |
| 81 | line-height: 150%; |
| 82 | } |
| 83 | |
| 84 | div.matchtable tr > td { |
| 85 | background-color: #ffd080; |
| 86 | white-space: nowrap; |
| 87 | vertical-align: top; |
| 88 | text-align: center; |
| 89 | } |
| 90 | |
| 91 | div.matchtable tr:nth-child(odd) > td { |
| 92 | background-color: #f4eebb; |
| 93 | } |
Nils Diewald | 6e43ffd | 2015-03-25 18:55:39 +0000 | [diff] [blame] | 94 | |
| 95 | div.matchinfo > p { |
| 96 | position: relative; |
| 97 | box-sizing: border-box; |
| 98 | color: white; |
| 99 | font-size: inherit; |
| 100 | margin: 2pt 0 0 0 !important; |
| 101 | font-weight: bold; |
| 102 | width: 126pt; |
| 103 | cursor: pointer; |
| 104 | text-align: left !important; |
| 105 | padding-left: 4pt !important; |
| 106 | } |
| 107 | |
| 108 | div.matchinfo > p:before { |
| 109 | content: '+ '; /* FontAwesome */ |
| 110 | } |
| 111 | |
| 112 | div.matchinfo > p *.menu { |
| 113 | position: absolute; |
| 114 | top: 0; |
| 115 | left: 126pt; |
| 116 | margin-top: 0; |
| 117 | } |
| 118 | |
| 119 | div.matchinfo > p *.menu { |
| 120 | border-top-right-radius: 8px; |
| 121 | } |
| 122 | |
| 123 | div.matchinfo > p *.menu > li:first-of-type { |
| 124 | border-top-right-radius: 5px; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Tree view |
| 129 | */ |
| 130 | div.matchtree { |
| 131 | position: relative; |
| 132 | overflow-x: hidden; |
| 133 | overflow-y: visible; |
| 134 | padding: 0; |
| 135 | margin-top: 1pt; |
| 136 | } |
| 137 | |
| 138 | div.matchtree h6 { |
| 139 | display: inline; |
| 140 | font-size: inherit; |
| 141 | color: white; |
| 142 | text-align: center; |
| 143 | margin: 0; |
| 144 | padding: 0 !important; |
| 145 | float: left; |
| 146 | } |
| 147 | |
| 148 | div.matchtree h6 span { |
| 149 | display: inline-block; |
| 150 | margin: 0; |
| 151 | } |
| 152 | |
| 153 | div.matchtree h6 > span:nth-of-type(2), |
| 154 | div.matchinfo > p { |
| 155 | margin-left: 2pt; |
| 156 | } |
| 157 | |
| 158 | div.matchtree div { |
| 159 | overflow-x: auto; |
| 160 | margin: 2pt 2pt 2pt 126pt; |
| 161 | /* |
| 162 | background-color: transparent; |
| 163 | background-color: #f4eebb; |
| 164 | background-color: #ff8000; |
| 165 | */ |
| 166 | background-color: #ffd080; |
| 167 | } |
| 168 | |
| 169 | div.matchtree > div > em { |
| 170 | display: block; |
| 171 | width: 1.5em; |
| 172 | height: 1.5em; |
| 173 | line-height: 1.2em; |
| 174 | position: absolute; |
| 175 | right: 10px; |
| 176 | top: 10px; |
| 177 | border-radius: 5px; |
| 178 | border: 2px solid white; |
| 179 | content: 'x'; |
| 180 | cursor: pointer; |
| 181 | text-align: center; |
| 182 | color: white; |
| 183 | font-weight: bold; |
| 184 | font-style: normal; |
| 185 | } |
| 186 | |
| 187 | div.matchtree > div > em:after { |
| 188 | content: 'x'; |
| 189 | } |
| 190 | |
| 191 | path.edge { |
| 192 | stroke: #ff8000; |
| 193 | stroke-width: 2px; |
| 194 | fill: none; |
| 195 | } |
| 196 | |
| 197 | g.middle > rect { |
| 198 | stroke: #ff8000; |
| 199 | stroke-width: 2px; |
| 200 | fill: #f4eebb; |
| 201 | } |
| 202 | |
| 203 | g.leaf > rect { |
| 204 | display: none; |
| 205 | } |
| 206 | |
| 207 | g > text { |
| 208 | text-anchor: middle; |
| 209 | font-size: 9pt; |
| 210 | } |
| 211 | |
| 212 | g.leaf > text { |
| 213 | font-size: 10pt; |
| 214 | overflow: visible; |
| 215 | } |