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