Skip to content

Commit f5cf0ee

Browse files
committed
Compare site: make scenario filters responsive
1 parent 551bf12 commit f5cf0ee

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

site/static/compare.html

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,26 @@
108108

109109
#states-list {
110110
display: flex;
111-
justify-content: space-around;
112-
align-items: center;
113-
width: 80%;
111+
flex-direction: column;
112+
align-items: start;
114113
list-style: none;
115114
margin: 0;
115+
padding: 0;
116+
}
117+
.section-scenarios {
118+
flex-direction: column;
119+
}
120+
121+
@media (min-width: 760px) {
122+
#states-list {
123+
justify-content: space-around;
124+
flex-direction: row;
125+
align-items: center;
126+
width: 80%;
127+
}
128+
.section-scenarios {
129+
flex-direction: row;
130+
}
116131
}
117132

118133
.tooltip {
@@ -303,7 +318,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
303318
<div class="section-heading">Filter</div>
304319
<input id="filter" type="text" v-model="filter.name" />
305320
</div>
306-
<div class=" section">
321+
<div class="section section-scenarios">
307322
<div class="section-heading">
308323
<div style="width: 160px;">
309324
<span>Scenarios</span>

0 commit comments

Comments
 (0)