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 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 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 { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 15 | // border-width: 0px; |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 16 | border-top: $border-size solid $darker-orange; // #ff8000; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 17 | width: $left-width / 2; |
| 18 | } |
| 19 | |
Akron | eaba63e | 2018-01-26 19:49:30 +0100 | [diff] [blame] | 20 | div.matchinfo:empty { |
| 21 | display: none !important; |
| 22 | } |
| 23 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 24 | div.matchinfo { |
| 25 | position: relative; |
| 26 | width: 100%; |
| 27 | padding-top: $border-size; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 28 | // background-color: $dark-orange; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 29 | height: auto; |
| 30 | font-size: 10pt; |
| 31 | text-align: left; |
Akron | e8ea000 | 2017-06-28 18:51:52 +0200 | [diff] [blame] | 32 | } |
Akron | 49f88cc | 2018-09-11 11:06:19 +0200 | [diff] [blame] | 33 | |
Akron | aeceda7 | 2018-02-02 20:44:06 +0100 | [diff] [blame] | 34 | div.matchtable > div { |
Akron | e8ea000 | 2017-06-28 18:51:52 +0200 | [diff] [blame] | 35 | 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; |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 42 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 43 | table { |
| 44 | display: table; |
| 45 | border-collapse: separate; |
| 46 | border-spacing: 0px; |
| 47 | } |
| 48 | th { |
| 49 | color: $nearly-white; |
| 50 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 51 | |
| 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 | } |
Akron | 78655d1 | 2017-06-28 18:56:57 +0200 | [diff] [blame] | 58 | td:empty { |
| 59 | cursor: default; |
| 60 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 61 | tr { |
| 62 | outline: none; |
Akron | d45a170 | 2018-11-19 18:15:17 +0100 | [diff] [blame^] | 63 | // equal to dd.chosen |
Akron | 83b2b0e | 2017-07-03 15:17:38 +0200 | [diff] [blame] | 64 | td.chosen, |
| 65 | th.chosen, |
| 66 | div.chosen { |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 67 | background-color: $light-green !important; |
| 68 | color: $nearly-white; |
| 69 | // transition: color 0.1s, background-color 0.15s ease-out; |
| 70 | } |
| 71 | } |
| 72 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 73 | thead { |
| 74 | tr th { |
| 75 | background-color: $darker-orange; |
| 76 | border-top-width: 0px !important; |
Akron | 2495ceb | 2016-02-13 17:17:52 +0100 | [diff] [blame] | 77 | text-align: center; |
| 78 | &:nth-of-type(1), &:nth-of-type(2) { |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 79 | text-align: left; |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame] | 80 | } |
| 81 | &.mark { |
| 82 | background-color: $darkest-orange; // #f6a800; |
Akron | 2495ceb | 2016-02-13 17:17:52 +0100 | [diff] [blame] | 83 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 84 | } |
| 85 | } |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 86 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 87 | tbody { |
| 88 | > tr:nth-of-type(1) > th { |
| 89 | border-top-color: transparent; |
| 90 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 91 | } |
| 92 | tr { |
| 93 | /** |
| 94 | * The first two columns. |
| 95 | */ |
| 96 | > th:nth-of-type(1), |
| 97 | > th:nth-of-type(2) { |
| 98 | position: absolute; |
| 99 | z-index: 80; |
| 100 | vertical-align: middle; |
| 101 | left: 0px; |
| 102 | @include matchinfo-head; |
| 103 | } |
| 104 | > th:nth-of-type(2) { |
| 105 | left: ($left-width / 2) + $border-size; |
| 106 | } |
Akron | 0af1414 | 2017-06-30 14:58:27 +0200 | [diff] [blame] | 107 | |
| 108 | // Includes header line as well |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 109 | > * { |
| 110 | @include cell-info; |
| 111 | border: ($border-size / 2) solid $dark-orange; |
| 112 | } |
| 113 | } |
| 114 | tr > td { |
| 115 | background-color: $middle-orange; // $nearly-white; |
| 116 | white-space: nowrap; |
| 117 | vertical-align: top; |
| 118 | text-align: center; |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame] | 119 | &.mark { |
| 120 | background-color: $light-orange; |
| 121 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 122 | } |
| 123 | tr:nth-child(even) > td { |
| 124 | background-color: $light-orange; |
Akron | ad1e46a | 2018-09-19 15:55:40 +0200 | [diff] [blame] | 125 | &.mark { |
| 126 | background-color: $middle-orange; |
| 127 | } |
Akron | 83b2b0e | 2017-07-03 15:17:38 +0200 | [diff] [blame] | 128 | } |
Akron | 83b2b0e | 2017-07-03 15:17:38 +0200 | [diff] [blame] | 129 | |
| 130 | // table for key-value pairs |
| 131 | td.matchkeyvalues { |
| 132 | padding: 0; |
| 133 | > div { |
| 134 | @include cell-info; |
| 135 | > span { |
| 136 | color: $darkest-orange; |
| 137 | text-align: right; |
| 138 | &::after { |
| 139 | content: ":" |
| 140 | } |
| 141 | padding-right: .5em; |
| 142 | } |
| 143 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 144 | } |
| 145 | } |
| 146 | |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 147 | |
Akron | aeceda7 | 2018-02-02 20:44:06 +0100 | [diff] [blame] | 148 | div.metatable, div.matchtable { |
Akron | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 149 | position: relative; |
| 150 | } |
| 151 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 152 | /** |
| 153 | * Label |
| 154 | */ |
| 155 | // The metatable branch was experimental |
Akron | 257aa85 | 2018-02-06 19:29:51 +0100 | [diff] [blame] | 156 | div.matchtree { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 157 | h6 { |
| 158 | display: inline; |
| 159 | font-size: inherit; |
| 160 | color: $nearly-white; |
| 161 | margin: 0; |
| 162 | padding: 0 !important; |
| 163 | float: left; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 164 | > span { // , > div { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 165 | @include matchinfo-head; |
| 166 | @include cell-info; |
| 167 | display: inline-block !important; |
| 168 | margin: 0; |
| 169 | &:nth-of-type(2) { |
| 170 | margin-left: $border-size; |
| 171 | } |
| 172 | } |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 173 | } |
| 174 | } |
| 175 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 176 | /** |
| 177 | * Tree view |
| 178 | */ |
| 179 | div.matchtree { |
| 180 | position: relative; |
| 181 | overflow-x: hidden; |
| 182 | overflow-y: visible; |
| 183 | padding: 0; |
| 184 | margin-top: 1pt; |
| 185 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 186 | > div { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 187 | position: unset; |
| 188 | z-index: 4; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 189 | overflow-x: auto; |
| 190 | margin: $border-size; |
| 191 | margin-left: $left-distance; |
| 192 | margin-right: $right-match-distance; |
| 193 | |
Akron | 257aa85 | 2018-02-06 19:29:51 +0100 | [diff] [blame] | 194 | background-color: $light-orange; |
Akron | 41387d2 | 2018-02-02 18:10:06 +0100 | [diff] [blame] | 195 | } |
| 196 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 197 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 198 | div.button-group.button-panel.button-matchinfo { |
| 199 | display: inline-block; |
| 200 | margin-right: .5em; |
| 201 | > span { |
| 202 | position: relative; |
| 203 | box-shadow: none; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 204 | } |
| 205 | } |
| 206 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 207 | div.matchinfo .view + .view { |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 208 | margin-top: 4 * $border-size !important; |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 209 | } |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 210 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 211 | |
| 212 | // Metatable |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 213 | div.metatable > dl { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 214 | margin-right: $right-match-distance; |
| 215 | margin-top: $border-size; |
| 216 | |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 217 | > div { |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 218 | border-color: $dark-orange; |
Akron | d45a170 | 2018-11-19 18:15:17 +0100 | [diff] [blame^] | 219 | > * { |
| 220 | padding: .2em; |
| 221 | } |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 222 | > dt { |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 223 | background: $darker-orange; |
| 224 | color: $nearly-white; |
Akron | ca2c37c | 2018-03-06 20:18:47 +0100 | [diff] [blame] | 225 | width: 12.5em; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 226 | } |
| 227 | > dd { |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 228 | background-color: $light-orange; |
Akron | d45a170 | 2018-11-19 18:15:17 +0100 | [diff] [blame^] | 229 | cursor: pointer; |
| 230 | } |
| 231 | > dd[data-type="type:store"] { |
| 232 | background-color: $middle-orange; |
| 233 | |
| 234 | cursor: default; |
| 235 | } |
| 236 | |
| 237 | > dd.metakeyvalues { |
| 238 | padding:0; |
| 239 | > div { |
| 240 | padding: .2em; |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | // equal to td.chosen |
| 245 | > dd.chosen, > dd > div.chosen { |
| 246 | background-color: $light-green !important; |
| 247 | color: $nearly-white; |
Akron | 24866cf | 2018-01-23 20:22:01 +0100 | [diff] [blame] | 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 252 | div.loading { |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 253 | background-color: transparent !important; |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 254 | height: 16px !important; |
| 255 | width: 16px !important; |
| 256 | margin: 0 auto !important; |
| 257 | background-image: url('data:image/gif;base64,R0lGODlhEAAQAIABAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48Hzh2UngyGvet6OpmKWmBb5TI+LlTOlAAACH5BAkEAAEALAAAAAAQABAAAAIohA+hu3gMnXyBqnkNw1XDnHThZ32bd6LUg0SOOIJsCaPmtOJvrctHAQAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48nxZKGLkxqGiungmyCXh9nRUleSZrO10AACH5BAkEAAEALAAAAAAQABAAAAIohA8RyKwN04pSWdumufp0niHghnkPyaWmqZLsKL3QWXUrJdpo66RKAQAh+QQJBAABACwAAAAAEAAQAAACJoQPEcisDdOKUlnbrp4IH989n1iBJUhK47itxkbGsEvRtXq/8B4UACH5BAkEAAEALAAAAAAQABAAAAIphA8RyKwN04pSWdvuNPto1HEX6G1YOYrain5im0pQ/GSnTIFr7eyhUQAAIfkECQQAAQAsAAAAABAAEAAAAiqMf6ALwWoelJFS5CbESTdeNUu3jWP4IWe2qS0TsmC8cuZFsrAkWrgtKQAAIfkECQQAAQAsAAAAABAAEAAAAiiMf6AL6LwMnDFQVG9SkrveWN6XjR82Mmi4cdMTvWsjnyIV4rIOgUwBACH5BAkEAAEALAAAAAAQABAAAAImjH+gC8HrXpNTxoeuzkltrkFg6BnMiJxpaYpWV76jDFKujV14LBUAIfkEAR4AAQAsAAAAABAAEAAAAiSEDxHIrA3TilJZ266eaN/8HJixdd4nailXgafrwSUVUqltQgUAOw=='); |
Nils Diewald | 61e6ff5 | 2015-05-07 17:26:50 +0000 | [diff] [blame] | 258 | |
Nils Diewald | 0ec142f | 2015-05-05 00:29:23 +0000 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | |