Skip to content

Commit e62fa71

Browse files
authored
Style Fix: Re-implement headerbar expanding for mobile (#4615)
* Style Fix: Re-implement headerbar expanding for mobile * UX: Implement modern collapse/expand indication
1 parent 876786c commit e62fa71

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/css/main.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,6 +2058,11 @@ each(range(12), {
20582058
#reveal_btn {
20592059
display: block;
20602060
order: 4;
2061+
transition: transform 0.3s;
2062+
transform-origin: center center;
2063+
}
2064+
.headerbar.expand #reveal_btn {
2065+
transform: rotate(180deg);
20612066
}
20622067
#header_buttons {
20632068
margin-left: auto;

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
</div>
106106
</div>
107107
<div id="reveal_btn">
108-
<em class="fas fa-ellipsis-v"></em>
108+
<em class="fas fa-chevron-down"></em>
109109
</div>
110110
</div>
111111
<div id="log">

src/js/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ function startProcess() {
334334
$("#background").hide();
335335
});
336336

337+
$("#reveal_btn").on("click", function () {
338+
$(".headerbar").toggleClass("expand");
339+
});
340+
337341
$(window).on("resize", function () {
338342
// 575px is the mobile breakpoint defined in CSS
339343
if (window.innerWidth > 575) {

0 commit comments

Comments
 (0)