Skip to content

Commit b4c54ae

Browse files
committed
refactor: change apex chart scss to css
1 parent 9c7689f commit b4c54ae

File tree

3 files changed

+77
-83
lines changed

3 files changed

+77
-83
lines changed

src/assets/styles/apexchart.css

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/** Apexchart **/
2+
.apexcharts-tooltip {
3+
/** Dark mode */
4+
&.apexcharts-theme-dark {
5+
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
6+
border-radius: 0.475rem;
7+
border: 0 !important;
8+
background: hsl(var(--card)) !important;
9+
color: hsl(var(--foreground));
10+
11+
.apexcharts-tooltip-title {
12+
background: hsl(var(--card)) !important;
13+
font-weight: 500;
14+
color: hsl(var(--foreground));
15+
border-bottom: 1px solid hsl(var(--border)) !important;
16+
}
17+
}
18+
.apexcharts-tooltip-title {
19+
padding: 0.5rem 1rem;
20+
}
21+
22+
/** Light mode */
23+
&.apexcharts-theme-light {
24+
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
25+
border-radius: 0.475rem;
26+
border: 0 !important;
27+
background: hsl(var(--card)) !important;
28+
color: hsl(var(--foreground));
29+
30+
.apexcharts-tooltip-title {
31+
background: hsl(var(--card)) !important;
32+
font-weight: 500;
33+
color: hsl(var(--foreground));
34+
border-bottom: 1px solid hsl(var(--border)) !important;
35+
}
36+
}
37+
.apexcharts-tooltip-title {
38+
padding: 0.5rem 1rem;
39+
}
40+
}
41+
42+
.apexcharts-xaxistooltip {
43+
/** Dark mode */
44+
&.apexcharts-theme-dark {
45+
border-radius: 0.475rem;
46+
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
47+
border: 0 !important;
48+
background: hsl(var(--card)) !important;
49+
color: hsl(var(--foreground));
50+
51+
&:before {
52+
border-bottom: 0 !important;
53+
}
54+
55+
&:after {
56+
border-bottom-color: hsl(var(--card)) !important;
57+
}
58+
}
59+
60+
/** Light mode */
61+
&.apexcharts-theme-light {
62+
border-radius: 0.475rem;
63+
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
64+
border: 0 !important;
65+
background: hsl(var(--card)) !important;
66+
color: hsl(var(--foreground));
67+
68+
&:before {
69+
border-bottom: 0 !important;
70+
}
71+
72+
&:after {
73+
border-bottom-color: hsl(var(--border)) !important;
74+
}
75+
}
76+
}

src/assets/styles/apexchart.scss

-82
This file was deleted.

src/styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
/** Plugins **/
7-
@import './assets/styles/apexchart.scss';
7+
@import './assets/styles/apexchart.css';
88

99
@plugin "@tailwindcss/forms";
1010
@plugin "@tailwindcss/typography";

0 commit comments

Comments
 (0)