Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update podcasts page and podcast microsites to match the 2016-23 style #369

Merged
merged 4 commits into from
Jul 13, 2024
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
93 changes: 87 additions & 6 deletions public/css/podcast_player.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
.player {
border: 1px solid #8d8d8d;
inset: 0;
border: 1px solid #d7d7d7;
background-color: white;
margin-bottom: 20px;
max-width: 800px;
margin: auto;
color: #8d8d8d;
position: relative;
}

.player:after {
content: "";
display: table;
Expand All @@ -18,6 +20,7 @@
padding: 10px;
border-bottom: 1px solid #8d8d8d;
}

.meta-container .podcast-title {
font-size: 20px;
font-weight: 400;
Expand All @@ -34,6 +37,7 @@
font-family: "Raleway", sans-serif;
font-weight: 600;
}

.branding span {
font-size: 0.85em;
}
Expand All @@ -47,11 +51,15 @@
padding: 20px;
display: inline-block;
}

.time-container:after {
content: "";
display: table;
clear: both; }
.time-container .current-time, .time-container .duration {
clear: both;
}

.time-container .current-time,
.time-container .duration {
display: inline-block;
margin: 0 5px;
}
Expand All @@ -62,14 +70,17 @@
@media screen and (max-width: 39.9375em) {
.player img.album-art {
width: 30%;
float:left;
float: left;
}

.meta-container {
padding: 10px 20px;
}

.podcast-description {
display: inline-block;
}

.time-container {
width: 100%;
}
Expand All @@ -82,17 +93,21 @@
.player img.album-art {
width: 160px;
height: 160px;
float:left;
float: left;
}

.meta-container {
width: calc(100% - 160px)
}

.meta-container .podcast-title {
max-width: calc(100% - 150px);
}

.podcast-description {
display: none;
}

.time-container {
width: calc(100% - 160px)
}
Expand All @@ -113,13 +128,16 @@
vertical-align: middle;
background-color: #8d8d8d;
}

.amplitude-song-played-progress {
width: calc(100% - 210px);
}

.amplitude-play-pause.amplitude-paused {
background: url("../images/podcast_player/play.svg");
background-size: cover;
}

.amplitude-play-pause.amplitude-playing {
background: url("../images/podcast_player/pause.svg");
background-size: cover;
Expand All @@ -133,18 +151,21 @@
width: 100%;
border-top: 1px solid #8d8d8d;
}

.branding {
font-size: 20px;
}

}

/*
Large Player Only
*/
@media screen and (min-width: 64em) {
.meta-container {
width: calc(100% - 160px);
}

progress.amplitude-podcast-played-progress {
width: 60%;
}
Expand Down Expand Up @@ -191,11 +212,71 @@ progress[value]::-webkit-progress-value {
width: 100%;
max-width: 100%;
}
img.album-art, .meta-container, .branding, .podcast-description {

img.album-art,
.meta-container,
.branding,
.podcast-description {
display: none;
}

.time-container {
width: 100%;
}

}

/* Site embed size player */
@media (min-width: 500px) and (max-height: 121px) and (min-height: 119px) {
.player {
width: 100%;
max-width: 100%;
max-height: 100%;
border: 0;
}

.player img.album-art {
height: 120px;
width: 120px;
float: left;
inset: 0;
border: 1px solid rgba(0, 0, 0, 0.075);
}

img.album-art,
.meta-container {
display: inline-block;
inset: 0;
border-right: 1px solid rgba(0, 0, 0, 0.075);
}

.branding,
.podcast-description {
display: none;
}

.meta-container,
.time-container {
width: calc(100% - 120px);
padding: 18px;
float: right;
}

.meta-container {
padding: 9px;
border-top: 1px solid #d7d7d7;
border-bottom: 1px solid rgb(233, 233, 233);
display: block;

div.podcast-title {

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}

.time-container {
border-bottom: 1px solid #d7d7d7;
}
}
30 changes: 22 additions & 8 deletions sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ footer {
}
}
}

// User page styling.
.user-img {
//border: #e1e1e1 7px solid;
Expand Down Expand Up @@ -190,12 +191,13 @@ footer {
}

.uryplayer-podcast-embed {
height: 75px;
width: 500px;
height: 120px;
max-width: 100%;
}

.uryplayer-podcast-code {
height: 70px;
resize: vertical;
min-height: 2em;
width: 100%;
}

Expand Down Expand Up @@ -245,6 +247,7 @@ footer {
// Responsive: Portrait tablets and up

@media screen and (min-width: 768px) {

// Remove the padding we set earlier
.header {
padding-right: 0;
Expand Down Expand Up @@ -357,8 +360,17 @@ footer {
font-size: 0.8em;
}

.podcast.card {
.podcast-card {
background: #FCFCFC;
color: #555;
border-radius: 1em;
overflow: hidden;
}

// Podcasts list page
.podcast-list-img {
border-radius: 0.4rem;
overflow: hidden;
}

// Styling for responsive map
Expand Down Expand Up @@ -398,21 +410,23 @@ body {
flex-direction: column;
}

.mainPageGrowingSpacer{
.mainPageGrowingSpacer {
flex-grow: 1;
background-color: $off-white-color;
}

.container-padded{
.container-padded {
border-bottom: 2rem solid transparent;
margin-top: -2rem;
border-radius: $border-curve-radius $border-curve-radius 0 0;
padding-top: 2rem;
}
.pageTitleImage{

.pageTitleImage {
max-inline-size: 90%;
max-height: 15rem;
}

.teams-banner {
background: url("/images/drone-banner.jpg") center center no-repeat;
background-size: cover;
Expand All @@ -426,4 +440,4 @@ body {
// Remove the height of the nav bar roughly 60px
padding: calc(5em + 60px) 0 5em;
}
}
}
Loading