Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/svelte.dev/src/routes/_home/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.home {
--background-1: radial-gradient(circle at top right, rgb(230, 233, 236), rgb(244, 245, 247));
--background-2: var(--sk-theme-2);
overflow-x: hidden;
}

.home .grid {
Expand Down
8 changes: 7 additions & 1 deletion apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@

@media (min-width: 1200px) {
position: fixed;
display: flex;
flex-direction: column;
top: 14rem;
height: calc(100vh - 14rem);
left: calc(100dvw - var(--sidebar-width));
width: var(--sidebar-width);
padding: 0 var(--sk-page-padding-side) 0 0;
box-sizing: border-box;

input {
Expand All @@ -170,6 +172,10 @@

nav {
display: block;
overflow-y: auto;
scrollbar-width: none;
margin-left: -1rem; /* negative margin avoids focus rings being cut off */
padding: 0 0 var(--sk-page-padding-top) 1rem;

li:first-child {
display: list-item;
Expand Down
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/components/Shell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ The main shell of the application. It provides a slot for the top navigation, th
padding-top: var(--sk-nav-height);
padding-bottom: var(--sk-banner-bottom-height);
height: 100%;
overflow-x: hidden;
}

@media (max-width: 799px) {
Expand Down
26 changes: 20 additions & 6 deletions packages/site-kit/src/lib/components/Text.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@

<style>
.text :global {
h2,
h3 {
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
padding: 0 1em 0 0;

@media (min-width: 768px) {
margin: 0 0 0 -2em;
padding: 0 1em 0 2em;
}
}

h2 {
margin-top: 7rem;
}
Expand Down Expand Up @@ -289,23 +302,24 @@
a.permalink {
position: absolute !important;
display: block;
background: url(../icons/link.svg) 0 50% no-repeat;
background: url(../icons/link.svg) 50% 50% no-repeat;
background-size: 1em 1em;
width: 1.4em;
height: 1.2em;
top: 0;
width: 1.2em;
height: 0.8em;
top: 0.2em;

@media (max-width: 767px) {
right: 0;
scale: 0.8;
}

@media (min-width: 768px) {
left: -1.3em;
left: 0.7em;
opacity: 0;
transition: opacity 0.2s;

:where(h2, h3):hover & {
:where(h2, h3):hover &,
&:focus {
opacity: 1;
}
}
Expand Down
Loading