blob: d5c6a4a0ceedf658924c7032be159bbad09080d1 [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 */
7
Nils Diewalda944fab2015-04-08 21:02:04 +00008$border-size: 2px;
9
10ul.menu.hint {
Nils Diewald2488d052015-04-09 21:46:02 +000011 display: inline-block;
12 white-space: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +000013 text-align:left;
Nils Diewald2488d052015-04-09 21:46:02 +000014 top: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000015 max-width: 23em !important;
Nils Diewalda944fab2015-04-08 21:02:04 +000016
17 > li:first-of-type {
18 border-top: {
19 width: 1px;
20 left-radius: 0;
21 right-radius: 0;
22 }
23 }
Nils Diewalda944fab2015-04-08 21:02:04 +000024}
25
Akron308db382016-05-30 22:34:07 +020026div.alert.hint {
Akron00cd4d12016-05-31 21:01:11 +020027 position: absolute;
Akrond30e2002016-11-07 03:19:58 +010028// background-color: rgba(254,26,0,.9); // from alertify
29 background-color: rgb(254,26,0); // from alertify
Akron308db382016-05-30 22:34:07 +020030 color: $nearly-white;
31 padding: $item-padding;
Akron0e01c0d2016-06-03 19:09:00 +020032 margin-top: 8px;
Akron308db382016-05-30 22:34:07 +020033 box-shadow: $choose-box-shadow;
34 border: {
35 radius: $standard-border-radius;
36 top-left-radius: 0;
37 }
Akron00cd4d12016-05-31 21:01:11 +020038 width: auto;
39 min-width: 10em;
40 max-width: 23em !important;
41 transition: opacity 0.2s ease 0s;
Akron308db382016-05-30 22:34:07 +020042}
43
44div.hint.alert::before {
45 position: absolute;
46 content: "";
47 display: block;
Akron0e01c0d2016-06-03 19:09:00 +020048 top: -12px;
49 left: 0;
Akron308db382016-05-30 22:34:07 +020050 width: 0;
51 white-space: normal;
52 border: {
Akron0e01c0d2016-06-03 19:09:00 +020053 width: 0 8px 12px 0;
Akron308db382016-05-30 22:34:07 +020054 style: solid;
Akrond30e2002016-11-07 03:19:58 +010055 color: rgb(254,26,0) transparent; // from alertify
Akron308db382016-05-30 22:34:07 +020056 }
57}
58
Akron00cd4d12016-05-31 21:01:11 +020059.hint.mirror {
Nils Diewalda944fab2015-04-08 21:02:04 +000060 position: absolute;
61 left: 0;
62 top: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000063 z-index: 900;
Nils Diewalda944fab2015-04-08 21:02:04 +000064 white-space: pre-wrap;
Nils Diewalda944fab2015-04-08 21:02:04 +000065 height: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000066 display: block;
Nils Diewalda944fab2015-04-08 21:02:04 +000067 > span {
Nils Diewalda944fab2015-04-08 21:02:04 +000068 opacity: 0;
69 white-space: pre-wrap;
70 overflow: hidden;
71 }
Akron00cd4d12016-05-31 21:01:11 +020072 // TODO: Only in focus
Nils Diewalda944fab2015-04-08 21:02:04 +000073 > div {
Nils Diewalda944fab2015-04-08 21:02:04 +000074 position: absolute;
Nils Diewald2488d052015-04-09 21:46:02 +000075 display: block;
76 cursor: pointer;
77 transition: left 0.2s ease 0s;
Nils Diewalda944fab2015-04-08 21:02:04 +000078 top: 0;
79 left: 0;
Nils Diewald2488d052015-04-09 21:46:02 +000080 text-align: left;
Nils Diewalda944fab2015-04-08 21:02:04 +000081 padding: 0;
82 border-top: 5px solid $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000083 height: 10px;
84 width: 1.2em;
Nils Diewald2488d052015-04-09 21:46:02 +000085 &:hover:not(.active) {
Nils Diewalda944fab2015-04-08 21:02:04 +000086 border-top: 10px solid $dark-orange;
87 }
Nils Diewald2488d052015-04-09 21:46:02 +000088 &.active {
89 border-top-width: 0;
90 height: 0;
91 width: 23em;
92 }
Nils Diewalda944fab2015-04-08 21:02:04 +000093 }
94}