blob: 68222b71b75321105c66e97a6c4a765940b1a333 [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 */
Nils Diewalda944fab2015-04-08 21:02:04 +00007ul.menu.hint {
Akron7e5afce2020-08-25 15:50:19 +02008 display: inline-block;
Nils Diewald2488d052015-04-09 21:46:02 +00009 white-space: normal;
Akron7e5afce2020-08-25 15:50:19 +020010 text-align: left;
11 max-width: 23em !important;
12 top: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000013
14 > li:first-of-type {
15 border-top: {
Akron7e5afce2020-08-25 15:50:19 +020016 width: 1px;
17 left-radius: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000018 right-radius: 0;
19 }
20 }
Nils Diewalda944fab2015-04-08 21:02:04 +000021}
22
Akron7e5afce2020-08-25 15:50:19 +020023// Alert bubble
Akron308db382016-05-30 22:34:07 +020024div.alert.hint {
Akron7e5afce2020-08-25 15:50:19 +020025 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
Akron308db382016-05-30 22:34:07 +020036 border: {
Akron7e5afce2020-08-25 15:50:19 +020037 radius: $standard-border-radius;
Akron308db382016-05-30 22:34:07 +020038 top-left-radius: 0;
39 }
Akron308db382016-05-30 22:34:07 +020040
Akron7e5afce2020-08-25 15:50:19 +020041 &::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 }
Akron308db382016-05-30 22:34:07 +020054 }
55}
56
Akron7e5afce2020-08-25 15:50:19 +020057// Mirror element for the hint helper
Akron00cd4d12016-05-31 21:01:11 +020058.hint.mirror {
Akron7e5afce2020-08-25 15:50:19 +020059 position: absolute;
60 display: block;
61 left: 0;
62 top: 0;
63 z-index: 90;
Nils Diewalda944fab2015-04-08 21:02:04 +000064 white-space: pre-wrap;
Akron7e5afce2020-08-25 15:50:19 +020065 height: 0;
66
Nils Diewalda944fab2015-04-08 21:02:04 +000067 > span {
Akron7e5afce2020-08-25 15:50:19 +020068 opacity: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000069 white-space: pre-wrap;
Akron7e5afce2020-08-25 15:50:19 +020070 overflow: hidden;
Akrondf2c97a2021-11-20 01:45:31 +010071 display: inline-block;
72 height: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000073 }
Akron7e5afce2020-08-25 15:50:19 +020074
Akron00cd4d12016-05-31 21:01:11 +020075 // TODO: Only in focus
Nils Diewalda944fab2015-04-08 21:02:04 +000076 > div {
Akron7e5afce2020-08-25 15:50:19 +020077 position: absolute;
78 display: block;
79 cursor: pointer;
Nils Diewald2488d052015-04-09 21:46:02 +000080 transition: left 0.2s ease 0s;
Akron7e5afce2020-08-25 15:50:19 +020081 top: 0;
82 left: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000083 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020084 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000085 border-top: 5px solid $dark-orange;
Akron7e5afce2020-08-25 15:50:19 +020086 height: 10px;
87 width: 1.2em;
88
Nils Diewald2488d052015-04-09 21:46:02 +000089 &:hover:not(.active) {
Nils Diewalda944fab2015-04-08 21:02:04 +000090 border-top: 10px solid $dark-orange;
91 }
Akron7e5afce2020-08-25 15:50:19 +020092
Nils Diewald2488d052015-04-09 21:46:02 +000093 &.active {
94 border-top-width: 0;
Akron7e5afce2020-08-25 15:50:19 +020095 height: 0;
96 width: 23em;
Nils Diewald2488d052015-04-09 21:46:02 +000097 }
Nils Diewalda944fab2015-04-08 21:02:04 +000098 }
Akrondadd1d12021-11-12 16:20:28 +010099}