pallote-css 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pallote.min.css +1 -1
- package/pallote.min.css.map +1 -1
- package/pallote.scss +4 -0
- package/styles/components/_accordion.scss +31 -2
- package/styles/components/_chip.scss +94 -0
- package/styles/components/_datatable.scss +81 -0
- package/styles/components/_input.scss +1 -1
- package/styles/components/_link.scss +9 -3
- package/styles/components/_stepper.scss +115 -0
- package/styles/components/_table.scss +34 -9
- package/styles/components/_tooltip.scss +106 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@use '../common/variables';
|
|
2
|
+
@use '../utilities/text';
|
|
3
|
+
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
// elements
|
|
6
|
+
// info icon
|
|
7
|
+
// bold
|
|
8
|
+
// dense
|
|
9
|
+
// positioning
|
|
10
|
+
// —————————————————————————————————————————————————————————————————
|
|
11
|
+
|
|
12
|
+
// —————————————————————————————————————————————————————————————————
|
|
13
|
+
// elements
|
|
14
|
+
// —————————————————————————————————————————————————————————————————
|
|
15
|
+
|
|
16
|
+
.tooltip {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
cursor: help;
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
text-decoration-style: dotted;
|
|
23
|
+
text-underline-offset: 0.15em;
|
|
24
|
+
|
|
25
|
+
&:has(.button) {
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:hover,
|
|
30
|
+
&:focus {
|
|
31
|
+
.tooltip_content {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
visibility: visible;
|
|
34
|
+
transform: translateX(-50%) translateY(0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tooltip_content {
|
|
40
|
+
@extend %caption;
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 50%;
|
|
43
|
+
bottom: calc(100% + 0.5rem);
|
|
44
|
+
transform: translateX(-50%) translateY(0.25rem);
|
|
45
|
+
background-color: variables.$text;
|
|
46
|
+
color: variables.$text-contrast;
|
|
47
|
+
padding: 0.5rem 0.75rem;
|
|
48
|
+
border-radius: variables.$border-radius-sm;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
opacity: 0;
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
transition: opacity variables.$transition-md, transform variables.$transition-md, visibility variables.$transition-md;
|
|
53
|
+
z-index: 1000;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
|
|
56
|
+
// Arrow
|
|
57
|
+
&::after {
|
|
58
|
+
content: '';
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 100%;
|
|
61
|
+
left: 50%;
|
|
62
|
+
transform: translateX(-50%);
|
|
63
|
+
border: 0.375rem solid transparent;
|
|
64
|
+
border-top-color: variables.$text;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// —————————————————————————————————————————————————————————————————
|
|
69
|
+
// info icon
|
|
70
|
+
// —————————————————————————————————————————————————————————————————
|
|
71
|
+
|
|
72
|
+
.tooltip-info {
|
|
73
|
+
border-bottom: none;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
|
|
77
|
+
&:focus {
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:focus-visible {
|
|
82
|
+
outline: revert;
|
|
83
|
+
outline-offset: 2px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.tooltip_icon {
|
|
88
|
+
opacity: 0.6;
|
|
89
|
+
transition: opacity variables.$transition-md;
|
|
90
|
+
width: 1em;
|
|
91
|
+
height: 1em;
|
|
92
|
+
|
|
93
|
+
.tooltip:hover &,
|
|
94
|
+
.tooltip:focus & {
|
|
95
|
+
opacity: 1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// —————————————————————————————————————————————————————————————————
|
|
100
|
+
// dense
|
|
101
|
+
// —————————————————————————————————————————————————————————————————
|
|
102
|
+
|
|
103
|
+
.tooltip_content-dense {
|
|
104
|
+
@extend %overline;
|
|
105
|
+
padding: 0.25rem 0.5rem;
|
|
106
|
+
}
|