Skip to content

Commit

Permalink
Resize graph and subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
sojinleeme committed Aug 17, 2024
1 parent a98db82 commit d4d095a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h2 class="title is-3">Abstract</h2>
<!-- Silder -->
<div class="column">
<div class="content">
<h2 class="title is-3">Qualitative Results of FFHQ</h2>
<h2 class="title is-3-titleInline">Qualitative Results of FFHQ</h2>
<div class="task-buttons">
<button class="task-button" onclick="selectTask(0)">
Gaussian deblur
Expand Down Expand Up @@ -278,7 +278,7 @@ <h2 class="title is-3">Qualitative Results of FFHQ</h2>
<!-- Silder -->
<div class="column">
<div class="content">
<h2 class="title is-3">Qualitative Results of ImageNet</h2>
<h2 class="title is-3-titleInline">Qualitative Results of ImageNet</h2>
<div class="task-buttons">
<button class="task-button" onclick="selectTask_imgnet(0)">
Gaussian deblur
Expand Down Expand Up @@ -353,7 +353,7 @@ <h2 class="title is-3">Qualitative Results of ImageNet</h2>
<!-- Silder -->
<div class="column">
<div class="content">
<h2 class="title is-3">Comparison with Baselines</h2>
<h2 class="title is-3-titleInline">Comparison with Baselines</h2>
<!-- Bar graph -->
<div class="chart-container">
<h4 class="chart-title">NFEs for Inference</h2>
Expand Down
52 changes: 47 additions & 5 deletions static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ body {
font-family: 'Noto Sans', sans-serif;
}

.titleInline {
flex-wrap: nowrap;
}

.task-buttons {
display: flex;
margin-bottom: 20px;
Expand All @@ -17,13 +21,16 @@ body {
padding: 10px 30px;
margin: 0 3px;
cursor: pointer;
font-size: 18px;
/* font-size: 18px; */
font-weight: bold;
border-radius: 15px;
color: white;
text-align: center;
width: 180px;
max-width: 200px;
box-sizing: border-box;
text-align: center;
/* flex: 1 1 auto; */
/* font-size: 1.2vw; */
}


Expand Down Expand Up @@ -174,7 +181,7 @@ body {
}

.chart-container {
width: 70%;
width: 80%;
margin: auto;
display: flex;
flex-direction: column;
Expand All @@ -187,6 +194,8 @@ body {
display: flex;
align-items: flex-end;
position: relative;
width: 80%;
max-width: 100%;
}

.chart-title {
Expand All @@ -197,14 +206,15 @@ body {
}

.chart-caption {
font-size: 18px;
font-size: 2vw;
white-space: nowrap;
}

#caption {
margin-top: 50px;
font-size: 18px;
color: #333;
font-weight: bold;
white-space: normal;
overflow: visible;
}
Expand All @@ -214,11 +224,13 @@ body {
font-weight: bold;
transition: color 0.3s ease;
}

.chart {
display: flex;
justify-content: space-around;
align-items: flex-end;
height: 300px;
height: 50vw;
max-height: 300px;
width: 100%;
border-left: 3px solid #333;
border-bottom: 3px solid #333;
Expand Down Expand Up @@ -309,6 +321,7 @@ body {
justify-content: space-between;
height: 300px;
margin-right: 10px;
font-size: 1.5vw;
margin-bottom: 20px;
position: relative;
}
Expand Down Expand Up @@ -348,6 +361,35 @@ body {
right: -20%;
}

@media (max-width: 768px) {
.task-buttons {
flex: 1 1 100%;
}

.chart {
height: 60vw;
}

.bar::before {
font-size: 3vw;
}

.bar::after {
font-size: 2vw;
transform: translateX(-50%) rotate(-45deg);
text-align: left;
}

.chart-caption {
font-size: 3vw;
}

.y-axis {
font-size: 2vw;
width: 50px;
}
}

.footer .icon-link {
font-size: 25px;
color: #000;
Expand Down

0 comments on commit d4d095a

Please sign in to comment.