blob: df85e25cfe76aa479ff691d76007a5be05a842fa [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
Nils Diewald652e5f42015-05-10 18:11:45 +00004/**
5 * Rules for the Kalamar hint helper.
6 */
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +02007
8#hint {
9 &.shifted {
10 left: $logo-left-distance;
11 }
12}
13
Nils Diewalda944fab2015-04-08 21:02:04 +000014ul.menu.hint {
Akron7e5afce2020-08-25 15:50:19 +020015 display: inline-block;
Nils Diewald2488d052015-04-09 21:46:02 +000016 white-space: normal;
Akron7e5afce2020-08-25 15:50:19 +020017 text-align: left;
18 max-width: 23em !important;
19 top: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000020
21 > li:first-of-type {
22 border-top: {
Akron7e5afce2020-08-25 15:50:19 +020023 width: 1px;
24 left-radius: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000025 right-radius: 0;
26 }
27 }
Nils Diewalda944fab2015-04-08 21:02:04 +000028}
29
Akron7e5afce2020-08-25 15:50:19 +020030// Alert bubble
Akron308db382016-05-30 22:34:07 +020031div.alert.hint {
Akron7e5afce2020-08-25 15:50:19 +020032 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
Akron308db382016-05-30 22:34:07 +020043 border: {
Akron7e5afce2020-08-25 15:50:19 +020044 radius: $standard-border-radius;
Akron308db382016-05-30 22:34:07 +020045 top-left-radius: 0;
46 }
Akron308db382016-05-30 22:34:07 +020047
Akron7e5afce2020-08-25 15:50:19 +020048 &::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 }
Akron308db382016-05-30 22:34:07 +020061 }
62}
63
Akron7e5afce2020-08-25 15:50:19 +020064// Mirror element for the hint helper
Akron00cd4d12016-05-31 21:01:11 +020065.hint.mirror {
Akron7e5afce2020-08-25 15:50:19 +020066 position: absolute;
67 display: block;
68 left: 0;
69 top: 0;
70 z-index: 90;
Nils Diewalda944fab2015-04-08 21:02:04 +000071 white-space: pre-wrap;
Akron7e5afce2020-08-25 15:50:19 +020072 height: 0;
73
Nils Diewalda944fab2015-04-08 21:02:04 +000074 > span {
Akron7e5afce2020-08-25 15:50:19 +020075 opacity: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000076 white-space: pre-wrap;
Akron7e5afce2020-08-25 15:50:19 +020077 overflow: hidden;
Akrondf2c97a2021-11-20 01:45:31 +010078 display: inline-block;
79 height: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000080 }
Akron7e5afce2020-08-25 15:50:19 +020081
Akron00cd4d12016-05-31 21:01:11 +020082 // TODO: Only in focus
Nils Diewalda944fab2015-04-08 21:02:04 +000083 > div {
Akron7e5afce2020-08-25 15:50:19 +020084 position: absolute;
85 display: block;
86 cursor: pointer;
Nils Diewald2488d052015-04-09 21:46:02 +000087 transition: left 0.2s ease 0s;
Akron7e5afce2020-08-25 15:50:19 +020088 top: 0;
89 left: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000090 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020091 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000092 border-top: 5px solid $dark-orange;
Akron7e5afce2020-08-25 15:50:19 +020093 height: 10px;
94 width: 1.2em;
95
Nils Diewald2488d052015-04-09 21:46:02 +000096 &:hover:not(.active) {
Nils Diewalda944fab2015-04-08 21:02:04 +000097 border-top: 10px solid $dark-orange;
98 }
Akron7e5afce2020-08-25 15:50:19 +020099
Nils Diewald2488d052015-04-09 21:46:02 +0000100 &.active {
101 border-top-width: 0;
Akron7e5afce2020-08-25 15:50:19 +0200102 height: 0;
103 width: 23em;
Nils Diewald2488d052015-04-09 21:46:02 +0000104 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000105 }
Akrondadd1d12021-11-12 16:20:28 +0100106}