Skip to content

Commit

Permalink
feat: Change the active appearance of the mode switcher buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Jun 7, 2024
1 parent 63ba3b5 commit 5de1acd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/style/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@ nav.navbar {
justify-content: space-between;
padding: 0 15px;
background-color: var(--ca-light1);
box-sizing: border-box;
z-index: 2;
.split {
display: flex;
}
.split .mode-switcher {
display: flex;
margin-top: 1px;
min-height: 40px;
.mode-button-container {
display: flex;
flex-direction: column;
justify-content: center;
border-top: 1px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
button {
display: flex;
background-color: transparent;
border: none;
outline: none;
margin: 0 5px;
margin: 0 7px;
cursor: pointer;
.icon-container {
width: 23px;
Expand All @@ -44,6 +50,7 @@ nav.navbar {
}
}
&.active {
padding-bottom: 1px;
.icon-container {
background-color: var(--ca-gray-light);
}
Expand All @@ -52,6 +59,12 @@ nav.navbar {
}
}
}
&:has(button.active) {
background-color: var(--ca-light2);
.border-line(top);
.border-line(left);
.border-line(right);
}
}
}
.split {
Expand Down

1 comment on commit 5de1acd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.