-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
berndu
committed
Dec 18, 2023
1 parent
e6661a9
commit bf01081
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Aufgabe | ||
Neue Menüpunkte sollen durch ein Icon hervorgehoben werden können. | ||
|
||
# Lösung | ||
Die Datei **new.css** wird beim Laden der Seite gelesen. | ||
|
||
Sie enthält das CSS, um ein Icon neben den gewünschten Menüpunkt zu setzen. | ||
|
||
``` | ||
[data-main-menu-item='eth_website']{ | ||
background-image: url('https://eth-library.github.io/snippets/menu-new/new.png'); | ||
background-position: left center; | ||
background-repeat: no-repeat; | ||
} | ||
``` | ||
|
||
Der neue Menüpunkt, im Beispiel **eth_website**, ist der Code des Menüpunktes entsprechend der Konfiguration des Menüs in der View in Alma. | ||
|
||
Das Icon **new.png** wird ebenfalls von hier geladen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[data-main-menu-item='eth_website']{ | ||
background-image: url('https://eth-library.github.io/snippets/menu-new/new.png'); | ||
background-position: left center; | ||
background-repeat: no-repeat; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters