Skip to content

Commit

Permalink
adds mobile styles to detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
stolinski committed Jun 30, 2023
1 parent a25ec1a commit 59ff8e0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/routes/shows/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import { queryParameters } from 'sveltekit-search-params';
import SelectMenu from '$lib/SelectMenu.svelte';
import ShowCard from '$lib/ShowCard.svelte';
import type { PageData } from './$types';
let sort = 'nto';
export let data: PageData;
export let data;
$: ({ shows } = data);
const store = queryParameters();
</script>
Expand Down
5 changes: 4 additions & 1 deletion src/routes/shows/[show_number]/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
}
:global(.show-page > *) {
grid-column: content/content;
grid-column: start/end;
@media (--above_med) {
grid-column: content/content;
}
}
header {
Expand Down
6 changes: 6 additions & 0 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@
p {
line-height: 1.7;
}
ul {
@media (--below_med) {
padding: 0;
}
}

li {
line-height: 2.2;
list-style-type: circle;
Expand Down
16 changes: 12 additions & 4 deletions src/styles/variables.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
:root {
/* NEW SHIT */
/* 🧑‍🚒 SHIT */
@custom-media --small-medium (width > 650px);
@custom-media --test (max-width: 30em);

@custom-media --below_small (width < 400px);
@custom-media --below_med (width < 700px);
@custom-media --below_large (width < 900px);
@custom-media --below_xlarge (width < 1200px);

@custom-media --above_small (width >400px);
@custom-media --above_med (width > 700px);
@custom-media --above_large (width > 900px);
@custom-media --above_xlarge (width > 1200px);

--yellow-hue: 81.72;
--yellow-1: oklch(99% 0.02 var(--yellow-hue));
Expand Down Expand Up @@ -94,9 +102,9 @@
/* Light Theme as the default */
--sheet-bg: var(--white);
--bg: var(--blackish);
--bg-2: var(--black-9);
--bg-2: var(--black-2);
--color: var(--white);
--color-2: var(--black-2);
--color-2: var(--black-9);
--sheet-color: var(--black);
--primary: var(--yellow);
--accent: var(--teal);
Expand Down

1 comment on commit 59ff8e0

@vercel
Copy link

@vercel vercel bot commented on 59ff8e0 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sytnax-website-v2 – ./

sytnax-website-v2-syntax.vercel.app
sytnax-website-v2-git-v2-syntax.vercel.app
beta.syntax.fm

Please sign in to comment.