Skip to content

Commit 1ce6546

Browse files
committed
fix some styles
1 parent 491f150 commit 1ce6546

File tree

2 files changed

+14
-6
lines changed
  • content/tutorial
    • 04-advanced-sveltekit/03-advanced-routing/05-breaking-out-of-layouts/app-a/src/routes
    • common/src

2 files changed

+14
-6
lines changed

content/tutorial/04-advanced-sveltekit/03-advanced-routing/05-breaking-out-of-layouts/app-a/src/routes/+layout.svelte

+10-3
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,24 @@
1515
border: 1px solid #999;
1616
padding: 1em;
1717
margin: 1em 0 0 0;
18-
border-radius: 5px;
18+
border-radius: 2px;
1919
}
2020
2121
:global(.layout::before) {
2222
position: absolute;
2323
content: attr(data-name) ' layout';
2424
left: 1em;
2525
top: -1em;
26-
background-color: #ff531a;
27-
color: white;
26+
background-color: white;
27+
color: #222;
2828
padding: 0.5em;
2929
line-height: 1;
3030
}
31+
32+
@media (prefers-color-scheme: dark) {
33+
:global(.layout::before) {
34+
background: #2e2e2e;
35+
color: #e6e6e6;
36+
}
37+
}
3138
</style>

content/tutorial/common/src/app.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
background-color: #ffeedd;
3232
z-index: 2;
3333
margin: 0 0 1em 0;
34+
border-radius: 2px;
3435
}
3536

3637
button,
@@ -60,16 +61,16 @@
6061
@media (prefers-color-scheme: dark) {
6162
body {
6263
background: hsl(0, 0%, 18%);
63-
color: hsl(0, 0%, 90%);
64+
color: rgb(230, 230, 230);
6465
}
6566
code {
6667
background: hsl(0, 0%, 40%);
6768
}
6869
a {
69-
color: hsl(204, 100%, 63%);
70+
color: hsl(204, 100%, 83%);
7071
}
7172
nav {
72-
background-color: #1a0d01;
73+
background-color: #345;
7374
}
7475
}
7576
</style>

0 commit comments

Comments
 (0)