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
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ This tutorial is split into four main parts:

Each section will present an exercise designed to illustrate a feature. Later exercises build on the knowledge gained in earlier ones, so it's recommended that you go from start to finish. If necessary, you can navigate via the menu above.

If you get stuck, you can click the `solve` button <span class="desktop">to the left of the editor</span><span class="mobile">in the top right of the editor view</span>. (<span class="mobile">Use the toggle below to switch between tutorial and editor views. </span>The `solve` button is disabled on sections like this one that don't include an exercise.) Try not to rely on it too much; you will learn faster by figuring out where to put each suggested code block and manually typing it in to the editor.
If you get stuck, you can click the `solve` button in the top right of the screen. (The `solve` button is disabled on sections like this one that don't include an exercise.) Try not to rely on it too much; you will learn faster by figuring out where to put each suggested code block and manually typing it in to the editor.
42 changes: 0 additions & 42 deletions apps/svelte.dev/src/lib/components/ScreenToggle.svelte

This file was deleted.

8 changes: 1 addition & 7 deletions apps/svelte.dev/src/routes/(authed)/apps/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,7 @@
}

ul:not(.selecting) li:hover a {
background-color: var(--sk-theme-2);
color: white;
}

ul:not(.selecting) li:hover h2,
ul:not(.selecting) li:hover span {
color: white;
background-color: var(--sk-back-4);
}

ul:not(.selecting) li:hover input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@

<style>
.repl-outer {
--pane-controls-h: 4.2rem;
position: relative;
height: calc(100% - var(--sk-nav-height) - var(--sk-banner-bottom-height));
height: calc(100dvh - var(--sk-nav-height) - var(--sk-banner-bottom-height));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
background-color: var(--sk-back-1);
overflow: hidden;
box-sizing: border-box;
--pane-controls-h: 4.2rem;
display: flex;
flex-direction: column;
}
Expand Down
22 changes: 0 additions & 22 deletions apps/svelte.dev/src/routes/_home/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
}

.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;
}

Expand All @@ -24,23 +22,3 @@
gap: 7rem;
}
}

/* In case JS disabled */
@media screen and (prefers-color-scheme: dark) {
.home {
/* --background-1: radial-gradient(circle at top right, rgb(49, 49, 49), rgb(77, 77, 77)); */
--background-1: #222;
--background-2: #444;
}

html.light .home {
--background-1: radial-gradient(circle at top right, rgb(230, 233, 236), rgb(244, 245, 247));
--background-2: var(--sk-theme-2);
}
}

html.dark .home {
/* --background-1: radial-gradient(circle at top right, rgb(49, 49, 49), rgb(77, 77, 77)); */
--background-1: #222;
--background-2: #444;
}
46 changes: 8 additions & 38 deletions apps/svelte.dev/src/routes/tutorial/[...slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Filetree from './filetree/Filetree.svelte';
import ImageViewer from './ImageViewer.svelte';
import Output from './Output.svelte';
import ScreenToggle from './ScreenToggle.svelte';
import { ScreenToggle } from '@sveltejs/site-kit/components';
import Sidebar from './Sidebar.svelte';
import {
create_directories,
Expand Down Expand Up @@ -323,18 +323,20 @@

<div class="screen-toggle">
<ScreenToggle
on:change={(e) => {
show_editor = e.detail.pressed;
left="show text"
right="show editor"
onchange={(checked) => {
show_editor = checked;

const url = new URL(location.origin + location.pathname);

if (show_editor) {
url.searchParams.set('file', $selected_name ?? '');
}

history.pushState({}, '', url);
history.pushState({}, '', url); // TODO use SvelteKit pushState
}}
pressed={show_editor}
checked={show_editor}
/>
</div>
</div>
Expand Down Expand Up @@ -366,7 +368,7 @@
}

.screen-toggle {
height: 4.6rem;
height: var(--sk-pane-controls-height);
}

.content {
Expand All @@ -387,30 +389,6 @@
font: var(--sk-font-ui-small);
}

.navigator .solve {
position: relative;
background: var(--sk-theme-2);
padding: 0.5rem;
width: 100%;
height: 4rem;
border-right: 1px solid var(--sk-back-4);
color: white;
opacity: 1;
font: var(--sk-font-ui-small);
}

.navigator .solve:disabled {
opacity: 0.5;
}

.navigator .solve:not(:disabled) {
background: var(--sk-theme-1);
}

.navigator .solve.completed {
background: var(--sk-theme-2);
}

.preview {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -441,14 +419,6 @@
text-align: left;
}

.mobile .navigator .solve {
width: 9rem;
height: auto;
padding: 0.2rem;
border-radius: 4rem;
border: none;
}

.mobile-filetree {
position: absolute;
top: 0;
Expand Down
56 changes: 0 additions & 56 deletions apps/svelte.dev/src/routes/tutorial/[...slug]/ScreenToggle.svelte

This file was deleted.

82 changes: 0 additions & 82 deletions apps/svelte.dev/src/routes/tutorial/[...slug]/ToggleButton.svelte

This file was deleted.

4 changes: 0 additions & 4 deletions apps/svelte.dev/src/routes/tutorial/[...slug]/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@
border: 2px solid transparent;
}

.cm-editor .cm-button:active {
background: var(--sk-theme-2-variant);
}

.cm-editor .cm-textfield {
background: var(--sk-back-1);
color: var(--sk-text-1);
Expand Down
2 changes: 1 addition & 1 deletion packages/repl/src/lib/Message.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@
}

.info {
background-color: var(--sk-theme-2);
background-color: var(--sk-text-4);
}
</style>
Loading
Loading