Skip to content

Commit b1eae5b

Browse files
klmp200imperosol
authored andcommitted
Adapt calendar to new tooltip library
1 parent ad91c8e commit b1eae5b

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

core/static/core/style.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,35 @@ body {
4545
}
4646
}
4747

48+
@mixin tooltip {
49+
@include shadow;
50+
z-index: 1;
51+
pointer-events: none;
52+
background-color: #333;
53+
color: #fff;
54+
border: 0.5px solid hsl(0, 0%, 50%);
55+
border-radius: 5px;
56+
padding: 5px 10px;
57+
position: absolute;
58+
white-space: nowrap;
59+
opacity: 0;
60+
transition: opacity 500ms ease-in;
61+
}
62+
63+
.tooltip {
64+
@include tooltip;
65+
position: absolute;
66+
width: max-content;
67+
68+
left: 0;
69+
top: 0;
70+
}
71+
72+
.tooltip[tooltip-status=open] {
73+
opacity: 1;
74+
transition: opacity 500ms ease-in;
75+
}
76+
4877
.ib {
4978
display: inline-block;
5079
padding: 1px;

core/static/core/tooltips.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
border-radius: 5px;
1111
padding: 5px 10px;
1212
position: absolute;
13-
white-space: nowrap;
1413
opacity: 0;
1514
transition: opacity 500ms ease-out;
16-
15+
width: max-content;
1716
white-space: normal;
1817

1918
left: 0;

0 commit comments

Comments
 (0)