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