This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.style.ts
100 lines (84 loc) · 1.85 KB
/
index.style.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { css } from 'lit';
export const dropdownStyle = css`
.superviz-who-is-online__tooltip {
--host-height: 0px;
--host-width: 0px;
--vertical-offset: 12px;
background-color: rgb(var(--sv-gray-600));
padding: 10px;
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
position: fixed;
opacity: 0;
border-radius: 2px;
cursor: default;
visibility: hidden;
transition: opacity 0.2s ease-in-out display 0s;
z-index: 100;
overflow-x: clip;
}
.superviz-who-is-online__tooltip-arrow {
width: 13px;
height: 13px;
position: absolute;
background-color: rgb(var(--sv-gray-600));
transform: rotate(45deg);
border-top-left-radius: 1px;
border-bottom-right-radius: 1px;
}
.show-tooltip {
opacity: 1;
visibility: visible;
}
.tooltip-name,
.tooltip-action {
margin: 0;
font-family: roboto;
white-space: nowrap;
text-align: center;
line-height: 1.2;
}
.tooltip-name {
color: white;
font-size: 14px;
}
.tooltip-action {
color: rgb(var(--sv-gray-400));
font-size: 12px;
}
.tooltip-top {
bottom: calc(var(--host-height) + var(--vertical-offset));
}
.tooltip-bottom {
bottom: auto;
}
.tooltip-center {
right: auto;
}
.tooltip-bottom .superviz-who-is-online__tooltip-arrow {
top: -6.5px;
}
.tooltip-top .superviz-who-is-online__tooltip-arrow {
bottom: -6.5px;
}
.tooltip-center .superviz-who-is-online__tooltip-arrow {
left: 0;
margin-left: 50%;
translate: -50% 0;
}
.tooltip-left .superviz-who-is-online__tooltip-arrow {
translate: 50% 0;
border-radius: 0;
right: 0;
}
.tooltip-right .superviz-who-is-online__tooltip-arrow {
translate: -50% 0;
border-radius: 0;
left: 0;
}
.shift-left {
--vertical-offset: 2px;
}
`;