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