Skip to content

Commit

Permalink
fixed user menu icons (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
memurats authored Nov 8, 2024
1 parent 149cb6b commit f2855df
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
8 changes: 6 additions & 2 deletions css/components/ncusermenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

&:hover span,
&:hover a {
&:hover a, &:hover button {
// Style user menu colors for Darkmode
@media (prefers-color-scheme: dark) {
color: var(--nmc-color-text-and-icon-primary-standard);
Expand All @@ -26,7 +26,7 @@

}

a {
a, button {
padding-left: 48px;

&::after {
Expand Down Expand Up @@ -74,6 +74,10 @@
&#logout>a::after {
background-image: var(--icon-logout-dark);
}

&#nmc_welcome_popup-about>button::after {
background-image: var(--icon-news-dark);
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions css/layouts/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ header {
}

// Custom styling for the 'Search' button
#header .header-right .header-menu:not(.user-menu) {
button.unified-search__button {
#header .header-right .header-menu.unified-search-menu {
button {
border: none;
border-radius: 0;
height: 100%;
Expand Down
7 changes: 7 additions & 0 deletions img/content/news.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const icons = {
'arrow-next': path.join(__dirname, '../img', 'breadcrumb-arrow.svg'),
filter: path.join(__dirname, '../img', 'actions', 'filter.svg'),
calendar: path.join(__dirname, '../img', 'content', 'calendar.svg'),
news: path.join(__dirname, '../img', 'content', 'news.svg'),
'filetype-diagram': path.join(__dirname, '../img', 'filetypes', 'x-office-drawing.svg'),
'filetype-document': path.join(__dirname, '../img', 'filetypes', 'x-office-document.svg'),
'filetype-presentation': path.join(__dirname, '../img', 'filetypes', 'x-office-presentation.svg'),
Expand Down
2 changes: 1 addition & 1 deletion src/nmcheader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ window.addEventListener('DOMContentLoaded', function() {
}
}

const searchButton = document.querySelector('button.unified-search__button')
const searchButton = document.querySelector('.unified-search-menu > button')
if (searchButton !== null) {
const searchlabel = document.createElement('span')
searchlabel.className = 'button-vue__label'
Expand Down

0 comments on commit f2855df

Please sign in to comment.