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