Skip to content

Commit 92b3005

Browse files
committed
Remove SCSS
1 parent 8e0189f commit 92b3005

File tree

6 files changed

+96
-108
lines changed

6 files changed

+96
-108
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
content="https://serenity-rs.github.io/logo.png"
2424
/>
2525

26-
<link rel="stylesheet" href="/src/css/base.scss" />
26+
<link rel="stylesheet" href="/src/css/base.css" />
2727

28-
<link rel="stylesheet" href="/src/css/style.scss" />
28+
<link rel="stylesheet" href="/src/css/style.css" />
2929

3030
<script>
3131
(function () {

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
},
2626
"dependencies": {
2727
"browserslist-to-esbuild": "^2.1.1",
28-
"sass-embedded": "^1.93.2",
29-
"vite": "^7.1.7"
28+
"vite": "^7.2.6"
3029
},
3130
"devDependencies": {
32-
"@types/node": "^24.6.1",
31+
"@types/node": "^24.10.1",
3332
"lightningcss": "^1.30.2",
3433
"oxfmt": "^0.16.0",
3534
"oxlint": "^1.31.0",

pnpm-lock.yaml

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/base.scss renamed to src/css/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@forward "reset";
1+
@import url("./reset.css");
22

33
:root {
44
--bg-colour: light-dark(hsl(0, 0%, 100%), hsl(0, 0%, 10%));
File renamed without changes.

src/css/style.scss renamed to src/css/style.css

Lines changed: 69 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,8 @@
1111
}
1212

1313
html {
14-
font-family:
15-
ui-sans-serif,
16-
system-ui,
17-
sans-serif,
18-
Apple Color Emoji,
19-
Segoe UI Emoji,
20-
Segoe UI Symbol,
21-
Noto Color Emoji;
22-
14+
font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji,
15+
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
2316
}
2417

2518
h1,
@@ -67,9 +60,7 @@ body {
6760

6861
white-space: pre-wrap;
6962

70-
transition:
71-
background-color 0.5s ease-in-out,
72-
border-color 0.5s ease-in-out;
63+
transition: background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;
7364
}
7465

7566
.button {
@@ -101,27 +92,26 @@ body {
10192
}
10293

10394
transition: background-color 0.25s ease-in-out,
104-
outline-color 0.25s ease-in-out,
105-
box-shadow 0.25s ease-in-out;
95+
outline-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
10696
}
10797

10898
:root .github-icon,
10999
:root[data-scheme="light"] .github-icon {
110-
&__black {
100+
.github-icon__black {
111101
display: inline-block;
112102
}
113103

114-
&__white {
104+
.github-icon__white {
115105
display: none;
116106
}
117107
}
118108

119109
:root[data-scheme="dark"] .github-icon {
120-
&__black {
110+
.github-icon__black {
121111
display: none;
122112
}
123113

124-
&__white {
114+
.github-icon__white {
125115
display: inline-block;
126116
}
127117
}
@@ -137,100 +127,90 @@ body {
137127
gap: 2em;
138128
}
139129

140-
.navigation {
141-
&__links {
142-
margin: 0;
143-
padding: 0;
130+
.navigation__links {
131+
margin: 0;
132+
padding: 0;
144133

145-
list-style: none;
134+
list-style: none;
146135

147-
display: flex;
148-
flex-wrap: wrap;
149-
justify-content: center;
150-
gap: 1em;
136+
display: flex;
137+
flex-wrap: wrap;
138+
justify-content: center;
139+
gap: 1em;
140+
}
151141

152-
&__link {
153-
display: flex;
154-
align-items: center;
155-
gap: 0.5em;
142+
.navigation__links__link {
143+
display: flex;
144+
align-items: center;
145+
gap: 0.5em;
146+
}
156147

157-
&__icon {
158-
&__image {
159-
block-size: 2em;
160-
inline-size: 2em;
161-
}
162-
}
148+
.navigation__links__link__icon__image {
149+
block-size: 2em;
150+
inline-size: 2em;
151+
}
163152

164-
&__label {
165-
font-size: 1.25em;
166-
}
167-
}
168-
}
153+
.navigation__links__link__label {
154+
font-size: 1.25em;
169155
}
170156

171157
.site-body {
172158
padding-block: 1em;
173159
padding-inline: 2em;
160+
}
174161

175-
&__header,
176-
&__body,
177-
&__footer {
178-
padding-block: 0.5em;
162+
.site-body__header,
163+
.site-body__body,
164+
.site-body__footer {
165+
padding-block: 0.5em;
179166

180-
display: flex;
181-
flex-direction: column;
182-
align-items: center;
183-
}
167+
display: flex;
168+
flex-direction: column;
169+
align-items: center;
170+
}
184171

185-
&__header {
186-
&__title {
187-
text-align: center;
188-
}
172+
.site-body__header__title {
173+
text-align: center;
174+
}
189175

190-
&__logo {
191-
margin-block: 0.5em;
192-
}
176+
.site-body__header__logo {
177+
margin-block: 0.5em;
178+
}
193179

194-
&__description {
195-
text-align: center;
196-
}
197-
}
180+
.site-body__header__description {
181+
text-align: center;
182+
}
198183

199-
&__footer {
200-
gap: 0.5em;
184+
.site-body__footer {
185+
gap: 0.5em;
186+
}
201187

202-
&__invite {
203-
text-align: center;
204-
}
188+
.site-body__footer__invite {
189+
text-align: center;
190+
}
205191

206-
&__widget {
207-
max-inline-size: 100%;
208-
}
209-
}
192+
.site-body__footer__widget {
193+
max-inline-size: 100%;
210194
}
211195

212-
.projects {
213-
&__list {
214-
margin-block-start: 0;
196+
.projects__list {
197+
margin-block-start: 0;
215198

216-
padding-inline-start: 1em;
199+
padding-inline-start: 1em;
217200

218-
list-style: none;
219-
}
201+
list-style: none;
220202
}
221203

222-
.project {
223-
&__heading {
224-
margin-inline-start: -0.5em;
204+
.project__heading {
205+
margin-inline-start: -0.5em;
225206

226-
border-block-end: 1px solid var(--border-colour);
207+
border-block-end: 1px solid var(--border-colour);
227208

228-
transition: border-block-end-color 0.5s ease-in-out;
229-
}
209+
transition: border-block-end-color 0.5s ease-in-out;
210+
}
230211

231-
&__description {
232-
max-inline-size: 70ch;
233-
}
212+
.project__description {
213+
max-inline-size: 70ch;
234214
}
235215

236216
.site-footer {
@@ -239,10 +219,10 @@ body {
239219
border-block-start: 1px solid var(--border-colour);
240220

241221
transition: border-block-start-color 0.5s ease-in-out;
222+
}
242223

243-
&__attribution {
244-
margin: 0;
224+
.site-footer__attribution {
225+
margin: 0;
245226

246-
text-indent: 0.5em;
247-
}
227+
text-indent: 0.5em;
248228
}

0 commit comments

Comments
 (0)