Skip to content

Commit

Permalink
Mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Apr 21, 2024
1 parent d41b2c0 commit fda3941
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 15 deletions.
55 changes: 41 additions & 14 deletions public/themes/jellybeans.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,25 @@ r4-app input[type='url'],
r4-app textarea {
background: var(--c-bg2);
font-size: 14px;
}

/* r4-app input[type="text"]:hover, */
/* r4-app input[type="number"]:hover, */
/* r4-app input[type="email"]:hover, */
/* r4-app input[type="password"]:hover, */
/* r4-app input[type="search"]:hover, */
/* r4-app input[type="url"]:hover, */
/* r4-app textarea:hover { */
/* background-color: var(--c-bg25); */
/* } */
&:hover {
/* background-color: var(--c-bg3); */
}
}

r4-app button {
padding: 0 1rem;
r4-app {
h1,
h2,
h3,
p {
margin: 0 0 var(--s);
}
}

/* "Buttons" */
r4-app button {
padding: 0 var(--s);
}
r4-app select,
r4-app button {
font-size: 1rem;
Expand Down Expand Up @@ -235,10 +237,16 @@ r4-channel-card r4-channel-slug {
display: none;
}

r4-channel-card + menu {
margin-bottom: var(--s);
}

/* Track lists */
r4-list-item r4-track {
gap: calc(var(--s) / 2);
border-bottom: 1px solid var(--c-border);
padding: calc(var(--s) / 2) 0;
padding: calc(var(--s) / 2);
padding-right: 0;
}
r4-list-item r4-track:hover {
background-color: color-mix(in oklch, var(--c-bg) 100%, black 2%);
Expand All @@ -249,11 +257,15 @@ r4-list-item r4-track:hover {
r4-track-title,
r4-track-description {
font-size: 14px;

}
r4-track-title a {
color: var(--c-fg);
text-decoration: none;
margin: 0 0.5em;
/* margin: 0 0.5em; */
/* overflow: hidden; */
/* text-overflow: ellipsis; */
/* white-space: nowrap; */
}
[color-scheme='dark'] r4-track-title a {
color: var(--c-gray2);
Expand Down Expand Up @@ -298,6 +310,11 @@ r4-page-explore r4-page-main > r4-list {
align-items: stretch;
}

r4-page-channel {
r4-channel-card {
text-align: center;
}
}
r4-page-channel r4-page-header r4-channel-name {
font-size: 2rem;
}
Expand Down Expand Up @@ -363,3 +380,13 @@ radio4000-player .PlayerControl-group .Btn {
.TrackItem.active .TrackItem-title {
background-color: var(--c-link) !important;
}

/* Full-width pages */
r4-page-channel-tracks,
r4-page-channel {
r4-page-main {
padding-left: 0;
padding-right: 0;
}
}

4 changes: 3 additions & 1 deletion src/pages/r4-page-explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export default class R4PageExplore extends R4Page {
<r4-query .initialQuery=${this.query} @data=${this.handleData}></r4-query>
</r4-page-header>
<r4-page-main>
<r4-list>${this.renderListItems()}</r4-list>
<section>
<r4-list>${this.renderListItems()}</r4-list>
</section>
<p>
Missing a radio? The radios you see above have all moved to the new Radio4000.<br />
Other radios can still be browsed on <a href="https://v1.radio4000.com">v1</a>.
Expand Down

0 comments on commit fda3941

Please sign in to comment.