Skip to content

Commit

Permalink
adding adaptive carousel width
Browse files Browse the repository at this point in the history
  • Loading branch information
RafailFridman committed Nov 28, 2023
1 parent da7ffa8 commit fe5d3da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h1 class="title is-1 publication-title">Space-Time Diffusion Features for Zero-



<div class="container" style="width: 60%">
<div class="container" id="carousel">
<div id="slick">

<div class="slide">
Expand Down
11 changes: 11 additions & 0 deletions static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -452,4 +452,15 @@ body {

.content table td, .content table th{
border-width: 0 0 0;
}

#carousel {
/* Default width for small screens or when no media query matches */
width: 100%;

/* Media query for screens with a minimum width of 768 pixels (adjust as needed) */
@media screen and (min-width: 768px) {
/* Set the width to 60% for larger screens */
width: 60%;
}
}

0 comments on commit fe5d3da

Please sign in to comment.