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