Skip to content

Commit

Permalink
Merge pull request #21 from dominrios/demo
Browse files Browse the repository at this point in the history
Adjustments to better accommodate a variety of screen sizes
  • Loading branch information
craig8 authored Oct 29, 2024
2 parents f9064d6 + b291833 commit 7d5df4b
Show file tree
Hide file tree
Showing 7 changed files with 1,808 additions and 63 deletions.
6 changes: 5 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@
});

let slideIndex = 0;
showSlides();

// Mute Error esp when we aren't on the index page
try{
showSlides();
} catch {}

function showSlides() {
let delay = 8000
Expand Down
156 changes: 112 additions & 44 deletions assets/sass/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ img {vertical-align: middle;}


$breakpoints: (
fwscreen: 3850px,
laptopls: 2685px,
laptopl: 2560px,
default: 1920px,
Expand All @@ -50,9 +51,14 @@ $breakpoints: (

/* Slideshow container */
#banner {

/* Adjusting margin for CTA below the slideshow banner */
margin-bottom: 32.9%;

@include breakpoint(fwscreen){
margin-bottom: 41%;
}

@include breakpoint(laptopls){
margin-bottom: 34%
}
Expand Down Expand Up @@ -116,6 +122,10 @@ $breakpoints: (
width: 100vw;
height: 30vw;

@include breakpoint(fwscreen){
margin-bottom: 0;
}

@include breakpoint(laptopls){
margin-bottom: 34%
}
Expand Down Expand Up @@ -257,54 +267,60 @@ $breakpoints: (
max-width: 20%;
margin-right: 50px;

p {
font-size: medium;
margin-top: -15px;
line-height: 100%;
}
}
figcaption{
position:relative;

.figConfigpdf h4 {
line-height: 100%;
font-size: 1vw;
line-height: 1.3vw;
margin-bottom: 1.2vw;
text-align:left;
max-width: 100%;
color:black;
p {
font-size: 20px;
line-height: .9vw;
margin-bottom: 3vw;
text-align:left;
max-width: 100%;
color:black;

@include breakpoint(narrow){
line-height: 3vw;
font-size: 2vw
}
@include breakpoint(laptopls){
font-size: 1vw;
line-height: 1.3vw;

@include breakpoint(mobilel){
line-height: 4vw;
font-size: 3vw
}
}

.figConfigpdf figcaption{
position:relative;
p {
font-size: 1vw;
line-height: 1.3vw;
margin-bottom: 3vw;
}

@include breakpoint(narrow){
line-height: 3vw;
font-size: 2vw
}
@include breakpoint(mobilel){
line-height: 4vw;
font-size: 3vw;
margin-top: 7px;
}
}
}

h4 {
font-size: 20px;
line-height: .9vw;
margin-bottom: 10px;
text-align:left;
max-width: 100%;
color:black;

@include breakpoint(laptopls){
line-height: 100%;
font-size: 1vw;
line-height: 1.3vw;
margin-bottom: 1.2vw;
}

@include breakpoint(narrow){
line-height: 3vw;
font-size: 2vw
}

@include breakpoint(mobilel){
line-height: 4vw;
font-size: 3vw;
margin-top: 7px;
font-size: 3vw
}
}

}
}


Expand Down Expand Up @@ -347,7 +363,7 @@ $breakpoints: (
}

.caption {
font-size: 0.9vw;
font-size: 20px;
line-height: 1.3vw;
color: black;
margin: 0;
Expand Down Expand Up @@ -451,8 +467,12 @@ $breakpoints: (
text-align: right;
margin-top: -8%;
max-width:100%;
font-size: 1.5vw;

font-size: 30px;

@include breakpoint(laptopls){
font-size: 1.5vw;
}

@include breakpoint(mobilel){
margin-right: 1%;
font-size: 11px
Expand Down Expand Up @@ -612,6 +632,8 @@ header {
font-size: 20px;
padding-left: 5px;
padding-right: 5px;
position: relative;
z-index: 100;

h1{
@include breakpoint(mobilel){
Expand All @@ -636,15 +658,34 @@ header {

}


.PlaylistFig{
display: inline-table;
max-width: 30%;
margin-bottom: 3vw;

img{
width: 15vw;
height: 14vh;

// width: 35vw;
// height: 20vw;

@include breakpoint(laptopls){
max-width: 400px;
max-height: 300px
width: 500px;
height: 400px;
}

@include breakpoint(default){
width: 500px;
height: 300px
}

@include breakpoint(Wide){
width: 400px;
height: 200px
}

@include breakpoint(mobilel){
width: 300px;
height: 150px
}
}

Expand All @@ -660,16 +701,43 @@ header {
}
h4{
margin-bottom:0.1vw;
width:100%;
word-wrap:break-word;
}

}

#PlaylistFigSides {
width: 23vw;
height: 15vw;
max-width: 400px;
max-height: 300px;

@include breakpoint(narrower){
height:300px;
width:400px;
}

@include breakpoint(mobilel){
height: 200px;
width: 300px;
}

@include breakpoint(mobiles){
height: 150px;
width:250px;
}

}

.playlist-wrapper-flex{
display:flex;
display: flex;
flex-wrap: wrap;
gap:10px
gap: 15px
}



/* Fix for squished logo on mobile */
#titleBar{
span h1 a img{
Expand Down
Loading

0 comments on commit 7d5df4b

Please sign in to comment.