Skip to content

Commit

Permalink
Merge pull request #190 from radio4000/style-spacings
Browse files Browse the repository at this point in the history
Style spacings
  • Loading branch information
oskarrough authored Nov 14, 2024
2 parents cee25ac + 7d1ebcc commit 9babeee
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
28 changes: 13 additions & 15 deletions public/themes/classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/* the theme */
r4-app {
--font: 'Maison Neue', system-ui, segoe ui, sans-serif, 'Segoe UI Symbol';
--s-font: 18px;
--s-font: 16px;
--s: 1rem;
--s-line-height: 1.3125;
--s-radius: calc(var(--s) / 4);
Expand All @@ -40,7 +40,7 @@ r4-app {
--s-container--list: 50rem;
--s-container--channel-card: 35rem;
--s-font-s1: 0.8rem;
--c-light: hsl(0deg 0% 98%);
--c-light: hsl(0deg 1% 88%);
--c-dark: hsl(0deg 0% 8%);
--c-purple: #5d1ae6;
--c-purple-light: #999fff;
Expand Down Expand Up @@ -196,17 +196,16 @@ r4-page-header {
position: sticky;
top: 0;
z-index: 1;
align-self: flex-start;
background-color: var(--c-bg);
align-self: center;
width: 100%;
}
r4-page-main {
flex-grow: 1;
}
r4-page-main,
r4-page-footer {
padding-left: var(--s);
padding-right: var(--s);
padding-left: calc(var(--s) / 1.5);
padding-right: calc(var(--s) / 1.5);
align-items: center;
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -247,7 +246,7 @@ r4-page-header {
font-size: clamp(1rem, 4vmin, 2rem);
}
& menu {
margin: calc(var(--s) / 4);
margin: calc(var(--s) / 1.5);
}
}

Expand All @@ -270,7 +269,10 @@ r4-app-user-menu {
r4-app menu {
border: 1px solid var(--c-border);
border-radius: var(--s-radius);
justify-content: center;
/* justify-content: center; */
}
r4-app li:has(r4-query) {
margin-left: auto;
}
r4-app menu a {
white-space: nowrap;
Expand Down Expand Up @@ -383,6 +385,7 @@ r4-list:has(r4-track) {
background-color: var(--c-bg2);
r4-track {
border: none;
background-color: transparent;
}

& r4-list-item + r4-list-item r4-track {
Expand Down Expand Up @@ -612,9 +615,9 @@ r4-page-settings {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: calc(var(--s) / 1.5);
}
& r4-list-item {
margin: calc(var(--s) / 3);
flex-grow: 1;
}
}
Expand All @@ -623,7 +626,7 @@ r4-page-settings,
r4-page-channel-update {
& r4-page-main {
border: 1px solid var(--c-border);
margin: var(--s);
margin: calc(var(--s) / 1.5);
}
& section {
min-height: 25vmax;
Expand All @@ -641,11 +644,6 @@ r4-page-channel-update {
}
}
r4-page-settings {
& r4-page-footer {
& section {
background-color: var(--c-bg2);
}
}
& r4-email-display,
& r4-email-update,
& r4-password-update,
Expand Down
4 changes: 3 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ r4-dialog::part(dialog) {
}
r4-app dialog[inline] {
position: relative;
margin: var(--s);
margin: calc(var(--s) / 1.5) 0;
border: 1px solid var(--c-border);
border-radius: var(--s-radius);
}
r4-track-description {
word-break: break-word;
Expand Down
9 changes: 2 additions & 7 deletions src/pages/r4-page-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,9 @@ export default class R4PageHome extends R4Page {
<summary>Joining from version 1?</summary>
<dialog open inline>
<p>
<center>
<strong> Can't find your existing Radio? </strong>
</center>
</p>
<p>
You can <a href="${this.config.hrefMigrate}">Import your radio</a> from the previous
<a href="${this.config.hrefMigrate}">Import your radio</a> from the previous
<a href="${this.config.hrefV1}" target="_blank">version 1 (v1)</a> website. If you encounter any issue,
<a href="${this.config.href}/settings#about">get in touch</a> for assistance.
<a href="${this.config.href}/settings#about">get in touch</a>.
</p>
</dialog>
</details>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/r4-page-sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ export default class R4PageSign extends R4Page {
return html`
<section>
<ul>
<li><a href=${this.config.href + '/sign/up'}>Sign up</a> if you don't yet have an account</li>
<li><a href=${this.config.href + '/sign/up'}>Sign up</a> for a new account</li>
<li>
<details>
<summary>Forgot password? Sign in with magic link!</summary>
<summary>Forgot password? Sign in with magic (email) link!</summary>
<p>Enter the email address of the account, to receive a magic link to sign in without password.</p>
<p>It is then possible to reset the password from the settings page.</p>
<r4-password-reset
Expand Down

0 comments on commit 9babeee

Please sign in to comment.