blob: 211651297a108d2a218b806ca0b09f9b2cab65e9 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
4$left-width: 176px;
5$border-size: 2px;
6$left-distance: $left-width + ($border-size * 2);
7
Nils Diewalda944fab2015-04-08 21:02:04 +00008/**
9 * Table view
10 *
11 * The table view is complicated, as the
12 * first column has to be static.
13 */
14@mixin matchinfo-head {
Akronbd342982018-01-25 18:01:46 +010015 // border-width: 0px;
Nils Diewald1c546922015-04-13 01:56:19 +000016 border-top: $border-size solid $darker-orange; // #ff8000;
Nils Diewalda944fab2015-04-08 21:02:04 +000017 width: $left-width / 2;
18}
19
Akroneaba63e2018-01-26 19:49:30 +010020div.matchinfo:empty {
21 display: none !important;
22}
23
Nils Diewalda944fab2015-04-08 21:02:04 +000024div.matchinfo {
25 position: relative;
26 width: 100%;
27 padding-top: $border-size;
Akron8b592d42018-01-26 18:33:06 +010028 // background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000029 height: auto;
30 font-size: 10pt;
31 text-align: left;
Akrone8ea0002017-06-28 18:51:52 +020032}
Akron49f88cc2018-09-11 11:06:19 +020033
Akronaeceda72018-02-02 20:44:06 +010034div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020035 z-index: 20;
36 margin-left: $left-distance - ($border-size / 2);
37 margin-right: $right-match-distance;
38 padding: 0;
39 overflow-x: auto;
40 overflow-y: visible;
41 width: auto;
Akronfbf3a782017-06-28 17:34:28 +020042
Nils Diewalda944fab2015-04-08 21:02:04 +000043 table {
44 display: table;
45 border-collapse: separate;
46 border-spacing: 0px;
47 }
48 th {
49 color: $nearly-white;
50 }
Akronfbf3a782017-06-28 17:34:28 +020051
52 // Use matchinfo cells for query creation
53 td,
54 tbody th,
55 thead th:not(:nth-child(1)):not(:nth-child(2)) {
56 cursor: pointer;
57 }
Akron78655d12017-06-28 18:56:57 +020058 td:empty {
59 cursor: default;
60 }
Akronfbf3a782017-06-28 17:34:28 +020061 tr {
62 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +020063 td.chosen,
64 th.chosen,
65 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +020066 background-color: $light-green !important;
67 color: $nearly-white;
68 // transition: color 0.1s, background-color 0.15s ease-out;
69 }
70 }
71
Nils Diewalda944fab2015-04-08 21:02:04 +000072 thead {
73 tr th {
74 background-color: $darker-orange;
75 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +010076 text-align: center;
77 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +020078 text-align: left;
Akronad1e46a2018-09-19 15:55:40 +020079 }
80 &.mark {
81 background-color: $darkest-orange; // #f6a800;
Akron2495ceb2016-02-13 17:17:52 +010082 }
Nils Diewalda944fab2015-04-08 21:02:04 +000083 }
84 }
Akronfbf3a782017-06-28 17:34:28 +020085
Nils Diewalda944fab2015-04-08 21:02:04 +000086 tbody {
87 > tr:nth-of-type(1) > th {
88 border-top-color: transparent;
89 }
Nils Diewalda944fab2015-04-08 21:02:04 +000090 }
91 tr {
92 /**
93 * The first two columns.
94 */
95 > th:nth-of-type(1),
96 > th:nth-of-type(2) {
97 position: absolute;
98 z-index: 80;
99 vertical-align: middle;
100 left: 0px;
101 @include matchinfo-head;
102 }
103 > th:nth-of-type(2) {
104 left: ($left-width / 2) + $border-size;
105 }
Akron0af14142017-06-30 14:58:27 +0200106
107 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000108 > * {
109 @include cell-info;
110 border: ($border-size / 2) solid $dark-orange;
111 }
112 }
113 tr > td {
114 background-color: $middle-orange; // $nearly-white;
115 white-space: nowrap;
116 vertical-align: top;
117 text-align: center;
Akronad1e46a2018-09-19 15:55:40 +0200118 &.mark {
119 background-color: $light-orange;
120 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 }
122 tr:nth-child(even) > td {
123 background-color: $light-orange;
Akronad1e46a2018-09-19 15:55:40 +0200124 &.mark {
125 background-color: $middle-orange;
126 }
Akron83b2b0e2017-07-03 15:17:38 +0200127 }
Akron83b2b0e2017-07-03 15:17:38 +0200128
129 // table for key-value pairs
130 td.matchkeyvalues {
131 padding: 0;
132 > div {
133 @include cell-info;
134 > span {
135 color: $darkest-orange;
136 text-align: right;
137 &::after {
138 content: ":"
139 }
140 padding-right: .5em;
141 }
142 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000143 }
144}
145
Akronbd342982018-01-25 18:01:46 +0100146
Akronaeceda72018-02-02 20:44:06 +0100147div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100148 position: relative;
149}
150
Akron8b592d42018-01-26 18:33:06 +0100151/**
152 * Label
153 */
154// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100155div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100156 h6 {
157 display: inline;
158 font-size: inherit;
159 color: $nearly-white;
160 margin: 0;
161 padding: 0 !important;
162 float: left;
Akron8b592d42018-01-26 18:33:06 +0100163 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100164 @include matchinfo-head;
165 @include cell-info;
166 display: inline-block !important;
167 margin: 0;
168 &:nth-of-type(2) {
169 margin-left: $border-size;
170 }
171 }
Akronbd342982018-01-25 18:01:46 +0100172 }
173}
174
Nils Diewalda944fab2015-04-08 21:02:04 +0000175/**
176 * Tree view
177 */
178div.matchtree {
179 position: relative;
180 overflow-x: hidden;
181 overflow-y: visible;
182 padding: 0;
183 margin-top: 1pt;
184
Nils Diewalda944fab2015-04-08 21:02:04 +0000185 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100186 position: unset;
187 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 overflow-x: auto;
189 margin: $border-size;
190 margin-left: $left-distance;
191 margin-right: $right-match-distance;
192
Akron257aa852018-02-06 19:29:51 +0100193 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100194 }
195}
Nils Diewalda944fab2015-04-08 21:02:04 +0000196
Akronbfe912c2018-07-17 19:30:52 +0200197div.button-group.button-panel.button-matchinfo {
198 display: inline-block;
199 margin-right: .5em;
200 > span {
201 position: relative;
202 box-shadow: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000203 }
204}
205
Akronbfe912c2018-07-17 19:30:52 +0200206div.matchinfo .view + .view {
Akron8b592d42018-01-26 18:33:06 +0100207 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100208}
Akron24866cf2018-01-23 20:22:01 +0100209
Akronbfe912c2018-07-17 19:30:52 +0200210
211// Metatable
Akronbd342982018-01-25 18:01:46 +0100212div.metatable > dl {
Akronbd342982018-01-25 18:01:46 +0100213 margin-right: $right-match-distance;
214 margin-top: $border-size;
215
Akron24866cf2018-01-23 20:22:01 +0100216 > div {
Akron2f979122018-07-25 17:00:23 +0200217 border-color: $dark-orange;
Akron24866cf2018-01-23 20:22:01 +0100218 > dt {
Akron24866cf2018-01-23 20:22:01 +0100219 background: $darker-orange;
220 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100221 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100222 }
223 > dd {
Akron24866cf2018-01-23 20:22:01 +0100224 background-color: $light-orange;
Akron24866cf2018-01-23 20:22:01 +0100225 }
226 }
227}
228
Nils Diewald0ec142f2015-05-05 00:29:23 +0000229div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000230 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000231 height: 16px !important;
232 width: 16px !important;
233 margin: 0 auto !important;
234 background-image: url('data:image/gif;base64,R0lGODlhEAAQAIABAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48Hzh2UngyGvet6OpmKWmBb5TI+LlTOlAAACH5BAkEAAEALAAAAAAQABAAAAIohA+hu3gMnXyBqnkNw1XDnHThZ32bd6LUg0SOOIJsCaPmtOJvrctHAQAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48nxZKGLkxqGiungmyCXh9nRUleSZrO10AACH5BAkEAAEALAAAAAAQABAAAAIohA8RyKwN04pSWdumufp0niHghnkPyaWmqZLsKL3QWXUrJdpo66RKAQAh+QQJBAABACwAAAAAEAAQAAACJoQPEcisDdOKUlnbrp4IH989n1iBJUhK47itxkbGsEvRtXq/8B4UACH5BAkEAAEALAAAAAAQABAAAAIphA8RyKwN04pSWdvuNPto1HEX6G1YOYrain5im0pQ/GSnTIFr7eyhUQAAIfkECQQAAQAsAAAAABAAEAAAAiqMf6ALwWoelJFS5CbESTdeNUu3jWP4IWe2qS0TsmC8cuZFsrAkWrgtKQAAIfkECQQAAQAsAAAAABAAEAAAAiiMf6AL6LwMnDFQVG9SkrveWN6XjR82Mmi4cdMTvWsjnyIV4rIOgUwBACH5BAkEAAEALAAAAAAQABAAAAImjH+gC8HrXpNTxoeuzkltrkFg6BnMiJxpaYpWV76jDFKujV14LBUAIfkEAR4AAQAsAAAAABAAEAAAAiSEDxHIrA3TilJZ266eaN/8HJixdd4nailXgafrwSUVUqltQgUAOw==');
Nils Diewald61e6ff52015-05-07 17:26:50 +0000235
Nils Diewald0ec142f2015-05-05 00:29:23 +0000236}
237
238