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