Skip to content

Commit 6736ff7

Browse files
author
Rich Harris
committed
make terminal translucent
1 parent 125e1df commit 6736ff7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/routes/tutorial/[slug]/Output.svelte

+8-2
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@
162162
font-family: var(--font-mono);
163163
font-size: var(--sk-text-xs);
164164
padding: 1rem;
165-
background: var(--sk-back-1);
166-
border-top: 1px solid var(--sk-back-3);
165+
background: rgba(255,255,255,0.5);
167166
transform: translate(0, 100%);
168167
transition: transform 0.3s;
168+
backdrop-filter: blur(3px);
169169
}
170170
171171
.terminal::after {
@@ -189,4 +189,10 @@
189189
.terminal.visible::after {
190190
--shadow: rgba(0, 0, 0, 0.05);
191191
}
192+
193+
@media (prefers-color-scheme: dark) {
194+
.terminal {
195+
background: rgba(0,0,0,0.5);
196+
}
197+
}
192198
</style>

0 commit comments

Comments
 (0)