blob: ae763b21425e73a2dc380be6ff3ccc1f5ef4f9a1 [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;
Nils Diewalda944fab2015-04-08 21:02:04 +000071 }
Akron7e5afce2020-08-25 15:50:19 +020072
Akron00cd4d12016-05-31 21:01:11 +020073 // TODO: Only in focus
Nils Diewalda944fab2015-04-08 21:02:04 +000074 > div {
Akron7e5afce2020-08-25 15:50:19 +020075 position: absolute;
76 display: block;
77 cursor: pointer;
Nils Diewald2488d052015-04-09 21:46:02 +000078 transition: left 0.2s ease 0s;
Akron7e5afce2020-08-25 15:50:19 +020079 top: 0;
80 left: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000081 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020082 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000083 border-top: 5px solid $dark-orange;
Akron7e5afce2020-08-25 15:50:19 +020084 height: 10px;
85 width: 1.2em;
86
Nils Diewald2488d052015-04-09 21:46:02 +000087 &:hover:not(.active) {
Nils Diewalda944fab2015-04-08 21:02:04 +000088 border-top: 10px solid $dark-orange;
89 }
Akron7e5afce2020-08-25 15:50:19 +020090
Nils Diewald2488d052015-04-09 21:46:02 +000091 &.active {
92 border-top-width: 0;
Akron7e5afce2020-08-25 15:50:19 +020093 height: 0;
94 width: 23em;
Nils Diewald2488d052015-04-09 21:46:02 +000095 }
Nils Diewalda944fab2015-04-08 21:02:04 +000096 }
97}