-
Notifications
You must be signed in to change notification settings - Fork 359
Expand file tree
/
Copy pathTooltip.module.scss
More file actions
70 lines (61 loc) · 1.49 KB
/
Tooltip.module.scss
File metadata and controls
70 lines (61 loc) · 1.49 KB
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
@import "~@vibe/style/dist/mixins";
.tooltip {
position: relative;
display: inline-block;
border-radius: var(--tooltip-border-radius, var(--border-radius-small));
box-shadow: var(--box-shadow-medium);
@include vibe-text(text2, normal);
max-width: var(--tooltip-max-width, 50vw);
word-break: break-word;
background-color: var(--inverted-color-background);
color: var(--text-color-on-inverted);
--tooltip-max-width: 240px;
white-space: pre-wrap;
.image {
display: block;
position: relative;
border-start-end-radius: 2px;
border-start-start-radius: 2px;
padding: 2px 2px 0 2px;
object-fit: cover;
width: 100%;
height: 100%;
min-width: var(--tooltip-max-width);
z-index: 1;
}
.title {
@include vibe-text(text2, bold);
}
.content {
word-break: break-word;
display: inline-block;
padding: var(--tooltip-padding, #{var(--space-8) var(--space-16)});
}
}
.tooltip.paddingSizeMd {
border-radius: var(--border-radius-medium);
padding: var(--space-16);
@include vibe-text(text2, normal);
}
.tooltip a.tooltipWhiteLink {
color: #fff;
}
.arrow,
.dark,
.arrow.dark {
background-color: var(--inverted-color-background);
color: var(--text-color-on-inverted);
}
.arrow.arrow.dark,
.arrow.arrow.primary {
:global(.dark-app-theme) &,
:global(.black-app-theme) &,
:global(.hacker-app-theme) & {
box-shadow: none;
}
}
.primary,
.arrow.primary {
background-color: var(--primary-color);
color: var(--text-color-on-primary);
}