Skip to content

Commit b1e0411

Browse files
committed
fix css
1 parent 2dca3a6 commit b1e0411

File tree

3 files changed

+36
-40
lines changed

3 files changed

+36
-40
lines changed

index.html

+5-8
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
<title>
88
Sorting Algorithm Visualization: Control Speed and Sorting Size
99
</title>
10+
<link rel="preconnect" href="https://fonts.googleapis.com" />
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1012
<link
11-
rel="preload"
1213
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=SUSE:[email protected]&display=swap"
13-
as="style"
14-
onload="this.onload=null;this.rel='stylesheet'"
14+
rel="stylesheet"
15+
media="print"
16+
onload="this.media='all'"
1517
/>
16-
<noscript
17-
><link
18-
rel="stylesheet"
19-
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=SUSE:[email protected]&display=swap"
20-
/></noscript>
2118
<link rel="canonical" href="https://algorithms-virid.vercel.app/" />
2219
<meta name="theme-color" content="hsl(230, 23%, 20%)" />
2320
<meta

src/index.css

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
1-
@import 'variables.css';
1+
:root {
2+
--primary-color: hsl(230, 23%, 20%);
3+
--text-color: hsl(0, 8%, 97%);
4+
--secondary-text-color: hsl(214, 33%, 65%);
5+
--icon-width-large: 3rem;
6+
--icon-width-medium: 2.5rem;
7+
--icon-width-small: 1.5rem;
8+
}
9+
10+
/* light mode */
11+
:root[data-theme='light'] {
12+
--background-color: hsl(210, 36%, 96%);
13+
--active-color: hsl(228, 31%, 34%);
14+
--bar-color: hsla(230, 10%, 46%, 0.1);
15+
--color-button: hsl(230, 23%, 20%);
16+
--highlight-compare-color: hsla(27, 87%, 67%, 0.8);
17+
--highlight-active-color: hsla(11, 58%, 45%, 0.8);
18+
--highlight-pivot-color: hsla(248, 54%, 67%, 0.8);
19+
}
20+
21+
/* dark mode */
22+
:root[data-theme='dark'] {
23+
--background-color: hsl(230, 23%, 20%);
24+
--active-color: hsl(226, 31%, 34%);
25+
--bar-color: hsla(232, 10%, 46%, 0.3);
26+
--color-button: hsl(0, 8%, 97%);
27+
--highlight-compare-color: hsl(27, 87%, 67%);
28+
--highlight-active-color: hsl(11, 58%, 45%);
29+
--highlight-pivot-color: hsl(248, 54%, 67%);
30+
}
31+
232
* {
333
margin: 0;
434
padding: 0;

src/variables.css

-31
This file was deleted.

0 commit comments

Comments
 (0)