blob: 11f0411e1cf8646dd7536972a5e84db8f5f72036 [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
Nils Diewalda944fab2015-04-08 21:02:04 +00008ul.menu.hint {
Akron7e5afce2020-08-25 15:50:19 +02009 display: inline-block;
Nils Diewald2488d052015-04-09 21:46:02 +000010 white-space: normal;
Akron7e5afce2020-08-25 15:50:19 +020011 text-align: left;
12 max-width: 23em !important;
13 top: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000014
15 > li:first-of-type {
16 border-top: {
Akron7e5afce2020-08-25 15:50:19 +020017 width: 1px;
18 left-radius: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000019 right-radius: 0;
20 }
21 }
Nils Diewalda944fab2015-04-08 21:02:04 +000022}
23
Akron7e5afce2020-08-25 15:50:19 +020024// Alert bubble
Akron308db382016-05-30 22:34:07 +020025div.alert.hint {
Akron7e5afce2020-08-25 15:50:19 +020026 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
Akron308db382016-05-30 22:34:07 +020037 border: {
Akron7e5afce2020-08-25 15:50:19 +020038 radius: $standard-border-radius;
Akron308db382016-05-30 22:34:07 +020039 top-left-radius: 0;
40 }
Akron308db382016-05-30 22:34:07 +020041
Akron7e5afce2020-08-25 15:50:19 +020042 &::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 }
Akron308db382016-05-30 22:34:07 +020055 }
56}
57
Akron7e5afce2020-08-25 15:50:19 +020058// Mirror element for the hint helper
Akron00cd4d12016-05-31 21:01:11 +020059.hint.mirror {
Akron7e5afce2020-08-25 15:50:19 +020060 position: absolute;
61 display: block;
62 left: 0;
63 top: 0;
64 z-index: 90;
Nils Diewalda944fab2015-04-08 21:02:04 +000065 white-space: pre-wrap;
Akron7e5afce2020-08-25 15:50:19 +020066 height: 0;
67
Nils Diewalda944fab2015-04-08 21:02:04 +000068 > span {
Akron7e5afce2020-08-25 15:50:19 +020069 opacity: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000070 white-space: pre-wrap;
Akron7e5afce2020-08-25 15:50:19 +020071 overflow: hidden;
Akrondf2c97a2021-11-20 01:45:31 +010072 display: inline-block;
73 height: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000074 }
Akron7e5afce2020-08-25 15:50:19 +020075
Akron00cd4d12016-05-31 21:01:11 +020076 // TODO: Only in focus
Nils Diewalda944fab2015-04-08 21:02:04 +000077 > div {
Akron7e5afce2020-08-25 15:50:19 +020078 position: absolute;
79 display: block;
80 cursor: pointer;
Nils Diewald2488d052015-04-09 21:46:02 +000081 transition: left 0.2s ease 0s;
Akron7e5afce2020-08-25 15:50:19 +020082 top: 0;
83 left: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000084 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020085 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000086 border-top: 5px solid $dark-orange;
Akron7e5afce2020-08-25 15:50:19 +020087 height: 10px;
88 width: 1.2em;
89
Nils Diewald2488d052015-04-09 21:46:02 +000090 &:hover:not(.active) {
Nils Diewalda944fab2015-04-08 21:02:04 +000091 border-top: 10px solid $dark-orange;
92 }
Akron7e5afce2020-08-25 15:50:19 +020093
Nils Diewald2488d052015-04-09 21:46:02 +000094 &.active {
95 border-top-width: 0;
Akron7e5afce2020-08-25 15:50:19 +020096 height: 0;
97 width: 23em;
Nils Diewald2488d052015-04-09 21:46:02 +000098 }
Nils Diewalda944fab2015-04-08 21:02:04 +000099 }
Akrondadd1d12021-11-12 16:20:28 +0100100}