Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar menu More from SUSE created #235

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,51 @@ const config = {
className: 'header-slack-link',
'aria-label': 'Slack Channel',
},
{
type: 'dropdown',
label: 'More From SUSE',
position: 'right',
items: [
{
label: 'Rancher',
to: 'https://www.rancher.com',
className: 'navbar__icon navbar__rancher',
},
{
type: 'html',
value: '<hr style="margin: 0.3rem 0;">',
},
{
label: 'Epinio',
to: "http://epinio.io",
className: 'navbar__icon navbar__epinio',
},
{
label: 'Fleet',
to: "http://fleet.rancher.io",
className: 'navbar__icon navbar__fleet',
},
{
label: 'Harvester',
to: "http://harvesterhci.io",
className: 'navbar__icon navbar__harvester',
},
{
label: 'Rancher Desktop',
to: "https://rancherdesktop.io",
className: 'navbar__icon navbar__rd',
},
{
type: 'html',
value: '<hr style="margin: 0.3rem 0;">',
},
{
label: 'More Projects...',
to: "https://opensource.suse.com",
className: 'navbar__icon navbar__suse',
},
],
},
],
},
footer: {
Expand Down
3 changes: 3 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* work well for content-centric websites.
*/

/* CSS for SUSE projects icons */
@import "icon_dropdown.css";

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
Expand Down
66 changes: 66 additions & 0 deletions src/css/icon_dropdown.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.navbar__icon {
font-family: poppins,sans-serif;
font-size: 16px;
}

.navbar__icon:before {
content: "";
display: inline-flex;
height: 20px;
width: 20px;
margin-right: 4px;
background-color: var(--ifm-navbar-link-color);
}

.navbar__rancher:before {
mask: url(/static/img/icon-rancher-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
padding-bottom: 10px;
background-color: #2e68e9;
}

.navbar__rd:before {
mask: url(/static/img/icon-rd-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 22px;
padding-bottom: 7px;
background-color: #0081be;
}

.navbar__epinio:before {
mask: url(/static/img/icon-epinio-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 22px;
padding-bottom: 7px;
background-color: #004d93;
}

.navbar__fleet:before {
mask: url(/static/img/icon-fleet-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 22px;
padding-bottom: 7px;
background-color: #00b056;
}

.navbar__harvester:before {
mask: url(/static/img/icon-harvester-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 22px;
padding-bottom: 7px;
background-color: #00a580;
}

.navbar__suse:before {
mask: url(/static/img/icon-suse-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 13px;
padding-bottom: 7px;
background-color: #30ba78;
}
Binary file added static/img/icon-epinio-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-fleet-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-harvester-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-kubewarden-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-longhorn-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-opni-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-rancher-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-rd-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/icon-suse-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.