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