Skip to content

Commit

Permalink
Merge pull request #1197 from syntaxfm/issue-1194
Browse files Browse the repository at this point in the history
 better dark mode on mobile
  • Loading branch information
wesbos authored Oct 19, 2023
2 parents 5734590 + 4710e09 commit ae3f5f4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/lib/Pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
& > * {
border-radius: var(--brad);
margin: 0;
box-shadow: inset 0 0 0 1px oklch(var(--blacklch) / 0.05);
box-shadow: inset 0 0 0 1px var(--subtle);
padding: 6px 15px;
text-align: center;
background-color: var(--bg-1);
Expand All @@ -69,6 +69,7 @@
transition: 0.2s ease background;
&.current {
background: var(--primary);
color: var(--dark);
}
@media (--below_large) {
&.page-number:not(.current) {
Expand Down
25 changes: 20 additions & 5 deletions src/lib/ShowCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<time datetime={show_date.toDateString()} title={show_date.toDateString()}
>{format_date(show_date)}</time
>
<span aria-hidden="true">×</span>
<span title="Show #{show.number}">{show.number}</span>
</p>

<svelte:element
Expand Down Expand Up @@ -130,7 +132,8 @@
color: var(--fg);
display: block;
display: flex;
gap: 20px;
gap: 10px;
padding: 5px;
}
.details {
Expand Down Expand Up @@ -161,13 +164,18 @@
}
&.list {
border-top: solid 1px var(--line);
border: solid 1px var(--subtle);
margin-bottom: 20px;
padding: 20px 0;
margin-inline: auto;
@media (--below_med) {
.description {
display: none;
}
h2 {
mask-image: none;
font-style: normal;
}
}
}
}
Expand All @@ -183,9 +191,12 @@
.date {
font-size: var(--font-size-sm);
margin: 0;
font-weight: 700;
opacity: 0.8;
font-weight: 500;
view-transition-name: var(--transition-name);
width: max-content;
@media (prefers-color-scheme: dark) {
background: var(--bg);
}
}
.play-button {
Expand All @@ -203,7 +214,11 @@
top: 0;
transform: translate(6.9%, -22%);
--max-font-size: 15rem;
font-size: clamp(1.5rem, 22cqw, var(--max-font-size));
--ideal-font-size: 45cqw;
font-size: clamp(1.5rem, var(--ideal-font-size), var(--max-font-size));
@media (prefers-color-scheme: dark) {
--ideal-font-size: 22cqw;
}
font-weight: 900;
color: var(--primary);
line-height: 1;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
--purple: var(--purple-7);

/* Typography */
--body-font-family: 'MDIO';
--heading-font-family: 'MDIO';
--body-font-family: 'MDIO', 'Operator Mono', Consolas, Menlo, Monaco, 'Courier New', monospace;
--heading-font-family: 'MDIO', 'Operator Mono', Consolas, Menlo, Monaco, 'Courier New', monospace;
--font-size-xs: clamp(0.6rem, 0.17vw + 0.76rem, 0.7rem);
--font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
Expand Down

1 comment on commit ae3f5f4

@vercel
Copy link

@vercel vercel bot commented on ae3f5f4 Oct 19, 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:

syntax-website-v2 – ./

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

Please sign in to comment.