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