Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 40da665

Browse files
authoredFeb 27, 2024
Fix navbar icon layout (#14)
Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent f134871 commit 40da665

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
 

‎docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
type: 'dropdown',
4545
label: 'More From SUSE',
4646
position: 'right',
47-
className: 'navbar__docs',
47+
className: 'navbar__dropdown',
4848
items: [
4949
{
5050
label: 'Rancher',

‎src/css/icon_dropdown.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
.navbar__icon {
33
font-size: 16px;
4+
display: flex;
45
}
56

67
.navbar__icon:before {
@@ -17,6 +18,11 @@
1718
font-size: 18px;
1819
}
1920

21+
/* Seperate from docs because display:flex messes up the dropdown arrow */
22+
.navbar__dropdown {
23+
font-size: 18px;
24+
}
25+
2026
.navbar__docs:hover:before {
2127
background-color: var(--ifm-link-color);
2228
}
@@ -42,9 +48,9 @@
4248
mask: url(/static/img/icon-github-mask.png) no-repeat 100% 100%;
4349
mask-size: cover;
4450
height: 19px;
45-
width: 22px;
46-
padding-right: 1px;
47-
padding-bottom: 4px;
51+
width: 23px;
52+
padding-right: 2px;
53+
padding-bottom: 6px;
4854
}
4955

5056
.navbar__rancher:hover:before {
@@ -54,6 +60,7 @@
5460
mask: url(/static/img/icon-rancher-mask.png) no-repeat 100% 100%;
5561
mask-size: cover;
5662
height: 14px;
63+
margin-top: 3px;
5764
padding-bottom: 2px;
5865
}
5966

0 commit comments

Comments
 (0)
Please sign in to comment.