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 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 4 | /** |
5 | * Rules for the Kalamar hint helper. | ||||
6 | */ | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame] | 7 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 8 | ul.menu.hint { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 9 | display: inline-block; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 10 | white-space: normal; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 11 | text-align: left; |
12 | max-width: 23em !important; | ||||
13 | top: 0; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 14 | |
15 | > li:first-of-type { | ||||
16 | border-top: { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 17 | width: 1px; |
18 | left-radius: 0; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 19 | right-radius: 0; |
20 | } | ||||
21 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 22 | } |
23 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 24 | // Alert bubble |
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 25 | div.alert.hint { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 26 | position: absolute; |
27 | background-color: $alert-red; | ||||
28 | color: $nearly-white; | ||||
29 | padding: $item-padding; | ||||
30 | margin-top: 8px; | ||||
31 | box-shadow: $choose-box-shadow; | ||||
32 | width: auto; | ||||
33 | min-width: 10em; | ||||
34 | max-width: 23em !important; | ||||
35 | transition: opacity 0.2s ease 0s; | ||||
36 | |||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 37 | border: { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 38 | radius: $standard-border-radius; |
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 39 | top-left-radius: 0; |
40 | } | ||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 41 | |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 42 | &::before { |
43 | position: absolute; | ||||
44 | content: ""; | ||||
45 | display: block; | ||||
46 | top: -12px; | ||||
47 | left: 0; | ||||
48 | width: 0; | ||||
49 | white-space: normal; | ||||
50 | border: { | ||||
51 | width: 0 8px 12px 0; | ||||
52 | style: solid; | ||||
53 | color: $alert-red transparent; | ||||
54 | } | ||||
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 55 | } |
56 | } | ||||
57 | |||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 58 | // Mirror element for the hint helper |
Akron | 00cd4d1 | 2016-05-31 21:01:11 +0200 | [diff] [blame] | 59 | .hint.mirror { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 60 | position: absolute; |
61 | display: block; | ||||
62 | left: 0; | ||||
63 | top: 0; | ||||
64 | z-index: 90; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 65 | white-space: pre-wrap; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 66 | height: 0; |
67 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 68 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 69 | opacity: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 70 | white-space: pre-wrap; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 71 | overflow: hidden; |
Akron | df2c97a | 2021-11-20 01:45:31 +0100 | [diff] [blame] | 72 | display: inline-block; |
73 | height: 0; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 74 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 75 | |
Akron | 00cd4d1 | 2016-05-31 21:01:11 +0200 | [diff] [blame] | 76 | // TODO: Only in focus |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 77 | > div { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 78 | position: absolute; |
79 | display: block; | ||||
80 | cursor: pointer; | ||||
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 81 | transition: left 0.2s ease 0s; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 82 | top: 0; |
83 | left: 0; | ||||
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 84 | text-align: left; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 85 | padding: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 86 | border-top: 5px solid $dark-orange; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 87 | height: 10px; |
88 | width: 1.2em; | ||||
89 | |||||
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 90 | &:hover:not(.active) { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 91 | border-top: 10px solid $dark-orange; |
92 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 93 | |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 94 | &.active { |
95 | border-top-width: 0; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 96 | height: 0; |
97 | width: 23em; | ||||
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 98 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 99 | } |
Akron | dadd1d1 | 2021-11-12 16:20:28 +0100 | [diff] [blame] | 100 | } |