Skip to content

Commit 0bc2837

Browse files
authored
tweak tutorial styles (#384)
1 parent 150f022 commit 0bc2837

File tree

4 files changed

+9
-36
lines changed

4 files changed

+9
-36
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

apps/svelte.dev/src/routes/tutorial/[...slug]/Sidebar.svelte

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -114,48 +114,17 @@
114114
.text {
115115
flex: 1 1 auto;
116116
padding: 2.2rem var(--sk-page-padding-side);
117-
/* border-right: 1px solid var(--sk-back-5); */
118117
background: var(--sk-back-1);
119118
120119
:global {
121-
pre {
122-
background: var(--sk-back-1);
123-
box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
124-
border-radius: var(--sk-border-radius);
125-
126-
.highlight {
127-
--color: rgba(220, 220, 0, 0.2);
128-
background: var(--color);
129-
outline: 2px solid var(--color);
130-
border-radius: 2px;
131-
132-
&.add {
133-
--color: rgba(0, 255, 0, 0.18);
134-
}
135-
136-
&.remove {
137-
--color: rgba(255, 0, 0, 0.1);
138-
139-
:root.dark & {
140-
--color: rgba(255, 0, 0, 0.27);
141-
}
142-
}
143-
}
144-
}
145-
146-
p a code {
147-
color: var(--sk-theme-1);
148-
background: rgba(255, 62, 0, 0.1);
149-
}
150-
151120
[data-file],
152121
.filename {
153122
cursor: pointer;
154-
background-image: url($lib/icons/file-edit.svg);
123+
background-image: url($lib/icons/file.svg);
155124
background-repeat: no-repeat;
156125
157126
:root.dark & {
158-
background-image: url($lib/icons/file-edit-inline-dark.svg);
127+
background-image: url($lib/icons/file-dark.svg);
159128
}
160129
}
161130
@@ -166,9 +135,9 @@
166135
}
167136
168137
.filename {
169-
background-position: 1rem 54%;
138+
background-position: 0 54%;
170139
background-size: 1rem 1rem;
171-
padding-left: 2.5rem !important;
140+
padding-left: 1.5rem !important;
172141
}
173142
174143
.desktop {

apps/svelte.dev/src/routes/tutorial/[...slug]/filetree/Item.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
background: var(--sk-back-1);
131131
color: var(--sk-text-1) !important;
132132
margin: 0 0.5rem 0 calc(0.5rem + var(--inset));
133+
border: 1px solid var(--sk-back-5);
133134
padding: 0 0.5rem;
134135
font: inherit;
135136
}

0 commit comments

Comments
 (0)