Skip to content

Commit e3a73af

Browse files
refactor: migrate scss to tailwind css
1 parent 3b7dc5e commit e3a73af

6 files changed

Lines changed: 51 additions & 239 deletions

File tree

src/pages/_app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
WindowSizeContextProvider,
1414
AnalysisListContextProvider,
1515
} from 'src/providers'
16-
import 'src/styles/globals.scss'
1716
import 'src/styles/tailwind.css'
1817
import 'react-tooltip/dist/react-tooltip.css'
1918
import 'node_modules/chessground/assets/chessground.base.css'

src/styles/_base.scss

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/styles/_layout.scss

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/styles/_theme.scss

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/styles/globals.scss

Lines changed: 0 additions & 108 deletions
This file was deleted.

src/styles/tailwind.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,57 @@ pre {
77
margin: 0;
88
}
99

10+
html,
11+
body {
12+
padding: 0;
13+
margin: 0;
14+
}
15+
16+
a {
17+
color: inherit;
18+
text-decoration: none;
19+
}
20+
21+
* {
22+
box-sizing: border-box;
23+
}
24+
25+
button:disabled {
26+
cursor: not-allowed;
27+
}
28+
29+
h1,
30+
h2,
31+
h3,
32+
h4,
33+
h5 {
34+
padding: 0;
35+
margin: 0;
36+
}
37+
38+
.app-container {
39+
display: flex;
40+
flex-direction: column;
41+
width: 100%;
42+
min-height: 100vh;
43+
background-color: rgb(var(--color-backdrop));
44+
color: rgb(var(--color-text-primary));
45+
}
46+
47+
@media (max-width: 1000px) {
48+
.app-container {
49+
flex-direction: column;
50+
overflow-x: hidden;
51+
}
52+
}
53+
54+
.content-container {
55+
flex-grow: 1;
56+
border-radius: 10px;
57+
display: flex;
58+
flex-direction: column;
59+
}
60+
1061
:root {
1162
--color-backdrop: 246 246 246;
1263
--color-text-primary: 30 30 30;

0 commit comments

Comments
 (0)