Skip to content

Commit

Permalink
Minor styles changes to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Feb 18, 2024
1 parent 72c89a8 commit 10c6c8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ function update() {
? 'initial'
: 'none');
document.querySelectorAll('.tabs > a').forEach(el => el.getAttribute('href') == location.hash
? el.classList.add('active')
: el.classList.remove('active'));
? el.setAttribute('data-checked', true)
: el.removeAttribute('data-checked'));
});

window.addEventListener('load', () => {
Expand Down
2 changes: 1 addition & 1 deletion public/assets/css/admin/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--fourth-color: #20212e;
--border-color: #3b4253;
--box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.2);
--background-color: #171821;
--background-color: #191a23;
--button-background-color: #006ad3;
--danger-color: #ff5234;
--danger-background-color: #413a46;
Expand Down
8 changes: 4 additions & 4 deletions public/assets/css/admin/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,19 @@ span.loading {
display: flex;
align-items: center;
padding: var(--options-padding);
color: inherit;
text-decoration: none;
border-radius: var(--border-radius);
text-decoration: none;
color: inherit;
}

.tabs > a.active {
.tabs > a[data-checked] {
background-color: var(--third-color);
font-weight: bold;
}

.tabs > a svg {
min-width: 16px;
margin-right: 10px;
margin-right: 17px;
fill: var(--main-color);
}

Expand Down

0 comments on commit 10c6c8d

Please sign in to comment.