Skip to content

Commit ac890d5

Browse files
committed
clean up tippy.js and remove unused form-fetch-error theme
theme was removed in a4a567f
1 parent 94d328c commit ac890d5

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

web_src/css/modules/tippy.css

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,59 @@
1818
font-size: 1rem;
1919
}
2020

21+
.tippy-content {
22+
position: relative;
23+
padding: 1rem; /* if you need different padding, use different data-theme */
24+
z-index: 1;
25+
}
26+
27+
/* tooltip theme for text tooltips */
28+
2129
.tippy-box[data-theme="tooltip"] {
2230
background-color: var(--color-tooltip-bg);
2331
color: var(--color-tooltip-text);
2432
border: none;
2533
}
2634

27-
.tippy-box[data-theme="menu"] {
28-
background-color: var(--color-menu);
29-
color: var(--color-text);
35+
.tippy-box[data-theme="tooltip"] .tippy-content {
36+
padding: 0.5rem 1rem;
3037
}
3138

32-
.tippy-box[data-theme="form-fetch-error"] {
33-
border-color: var(--color-error-border);
34-
background-color: var(--color-error-bg);
35-
color: var(--color-error-text);
39+
.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-inner,
40+
.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-outer {
41+
fill: var(--color-tooltip-bg);
3642
}
3743

38-
.tippy-content {
39-
position: relative;
40-
padding: 1rem; /* if you need different padding, use different data-theme */
41-
z-index: 1;
42-
}
44+
/* menu theme for .ui.menu */
4345

44-
.tippy-box[data-theme="tooltip"] .tippy-content {
45-
padding: 0.5rem 1rem;
46+
.tippy-box[data-theme="menu"] {
47+
background-color: var(--color-menu);
48+
color: var(--color-text);
4649
}
4750

4851
.tippy-box[data-theme="menu"] .tippy-content {
4952
padding: 0;
5053
}
5154

55+
.tippy-box[data-theme="menu"] .tippy-svg-arrow-inner {
56+
fill: var(--color-menu);
57+
}
58+
59+
/* box-with-header theme for .ui.attached.header and .ui.attached.segment */
60+
5261
.tippy-box[data-theme="box-with-header"] .tippy-content {
5362
padding: 0;
5463
}
5564

65+
.tippy-box[data-theme="box-with-header"][data-placement^="top"] .tippy-svg-arrow-inner {
66+
fill: var(--color-box-body);
67+
}
68+
69+
.tippy-box[data-theme="box-with-header"][data-placement^="bottom"] .tippy-svg-arrow-inner {
70+
fill: var(--color-box-header);
71+
}
72+
73+
5674
.tippy-box[data-placement^="top"] > .tippy-svg-arrow {
5775
bottom: 0;
5876
}
@@ -111,20 +129,3 @@
111129
.tippy-svg-arrow-inner {
112130
fill: var(--color-body);
113131
}
114-
115-
.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-inner,
116-
.tippy-box[data-theme="tooltip"] .tippy-svg-arrow-outer {
117-
fill: var(--color-tooltip-bg);
118-
}
119-
120-
.tippy-box[data-theme="menu"] .tippy-svg-arrow-inner {
121-
fill: var(--color-menu);
122-
}
123-
124-
.tippy-box[data-theme="box-with-header"][data-placement^="top"] .tippy-svg-arrow-inner {
125-
fill: var(--color-box-body);
126-
}
127-
128-
.tippy-box[data-theme="box-with-header"][data-placement^="bottom"] .tippy-svg-arrow-inner {
129-
fill: var(--color-box-header);
130-
}

0 commit comments

Comments
 (0)