Skip to content

Commit b12da98

Browse files
more blog style fixes (#263)
* two-column blog landing page * design tweaks * tweak implementation * tweak * fixes * tidy up fonts, use DM Serif italic * fix * fix blockquotes * fix embed styles * decorative separator for hr elements * fix --------- Co-authored-by: Simon H <[email protected]>
1 parent 3fea1d0 commit b12da98

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

apps/svelte.dev/content/blog/2023-10-01-hacktoberfest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Willow (GHOST) & Braden Wiggins
55
authorURL: https://ghostdev.xyz
66
---
77

8-
# Sveltekit 🧡 Hacktoberfest
8+
## Sveltekit 🧡 Hacktoberfest
99

1010
We're excited to announce SvelteKit's participation in this year's Hacktoberfest! Hacktoberfest is a global event that takes place every October, during which developers are encouraged to contribute to open-source projects like SvelteKit. The goal is to foster a vibrant open-source community, celebrate shared knowledge, and make the world of coding more accessible to all. You can find other participating repositories by searching the [`hacktoberfest` topic](https://github.com/topics/hacktoberfest) on github.
1111

apps/svelte.dev/src/routes/blog/[slug]/+page.svelte

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,27 @@
110110
color: var(--sk-text-4);
111111
}
112112
}
113+
114+
hr {
115+
position: relative;
116+
border: none;
117+
height: 1px;
118+
background: radial-gradient(circle at center, var(--sk-text-4), transparent);
119+
margin: 7rem 0;
120+
overflow: visible;
121+
122+
&::after {
123+
content: '';
124+
position: absolute;
125+
width: 0.8rem;
126+
height: 0.8rem;
127+
left: 50%;
128+
top: 2px;
129+
transform: rotate(45deg) translate(-50%, -50%);
130+
background: var(--sk-back-1);
131+
border: 1px solid var(--sk-text-4);
132+
}
133+
}
113134
}
114135
}
115136

packages/repl/src/lib/Repl.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293

294294
<svelte:window on:beforeunload={before_unload} />
295295

296-
<div class="container" class:toggleable={$toggleable} bind:clientWidth={width}>
296+
<div class="container" class:embedded class:toggleable={$toggleable} bind:clientWidth={width}>
297297
<div class="viewport" class:output={show_output}>
298298
<SplitPane
299299
--color="var(--sk-text-4)"
@@ -338,6 +338,10 @@
338338
background: var(--sk-back-1);
339339
padding: 1rem 0 0 0;
340340
341+
&.embedded {
342+
height: 100%;
343+
}
344+
341345
:global {
342346
section {
343347
position: relative;

0 commit comments

Comments
 (0)