Skip to content

Commit 5fc5619

Browse files
KianNHmaheshwarip
authored andcommitted
[Docs Site] Overhaul aside styling (#17036)
1 parent 2a05ebe commit 5fc5619

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export default defineConfig({
146146
},
147147
sidebar: await autogenSections(),
148148
customCss: [
149+
"./src/asides.css",
149150
"./src/headings.css",
150151
"./src/input.css",
151152
"./src/kbd.css",

src/asides.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.starlight-aside {
2+
border: unset;
3+
border-radius: 4px;
4+
5+
&.starlight-aside--note {
6+
background-color: rgb(236, 244, 255);
7+
}
8+
9+
&.starlight-aside--caution {
10+
background-color: rgb(255, 248, 228);
11+
12+
}
13+
14+
.starlight-aside__title {
15+
margin-left: 30px;
16+
17+
svg {
18+
margin-left: -30px;
19+
}
20+
}
21+
22+
.starlight-aside__content {
23+
margin-top: unset;
24+
margin-left: 30px;
25+
}
26+
}
27+
28+
:root[data-theme="dark"] {
29+
.starlight-aside--note {
30+
background-color: rgb(0, 28, 67);
31+
}
32+
33+
.starlight-aside--caution {
34+
background-color: rgb(98, 73, 10);
35+
}
36+
}

0 commit comments

Comments
 (0)