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

Updated header/add "More from SUSE" dropdown #48

Merged
merged 2 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
71 changes: 48 additions & 23 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,55 @@ const config = {
src: "img/logo_horizontal.svg",
},
items: [
{
href: "https://docs.harvesterhci.io/",
position: "right",
label: "Docs",
className: "navbar__docs",
},
{
href: "https://github.com/harvester/harvester",
label: "GitHub",
position: "right",
className: "navbar__github btn btn-secondary icon-github",
},
{
href: "https://docs.harvesterhci.io/",
position: "right",
label: "Docs",
className: "navbar__docs",
},
{
href: "https://www.suse.com/c/?s=harvester",
position: "right",
label: "Blog",
className: "navbar__blog",
},
{
to: "kb",
position: "right",
label: "Knowledge Base",
className: "navbar__kb",
},
{
href: "https://github.com/harvester/harvester",
label: "GitHub",
position: "right",
className: "navbar__github btn btn-secondary icon-github",
},
type: 'dropdown',
label: 'More from SUSE',
position: 'right',
items: [
{
href: 'https://www.rancher.com',
label: 'Rancher',
className: 'navbar__icon navbar__rancher',
},
{
href: 'https://elemental.docs.rancher.com/',
label: 'Elemental',
className: 'navbar__icon navbar__elemental',
},
{
href: 'https://epinio.io/',
label: 'Epinio',
className: 'navbar__icon navbar__epinio',
},
{
href: 'https://fleet.rancher.io/',
label: 'Fleet',
className: 'navbar__icon navbar__fleet',
},
{
href: 'https://opni.io/',
label: 'Opni',
className: 'navbar__icon navbar__opni',
},
{
href: 'https://opensource.suse.com/',
label: 'More Projects...',
className: 'navbar__icon navbar__suse',
},
],
},
],
},
colorMode: {
Expand Down
2 changes: 2 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* work well for content-centric websites.
*/

@import "icon_dropdown.css";

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #25c2a0;
Expand Down
73 changes: 73 additions & 0 deletions src/css/icon_dropdown.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
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;
height: 13px;
padding-top: 21px;
padding-bottom: 10px;
background-color: #2e68e9;
}

.navbar__elemental:before {
mask: url(/static/img/icon-elemental-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 13px;
padding-top: 21px;
padding-bottom: 7px;
background-color: #7100D4;
}

.navbar__epinio:before {
mask: url(/static/img/icon-epinio-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 13px;
padding-top: 21px;
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: 13px;
padding-top: 21px;
padding-bottom: 7px;
background-color: #00b056;
}

.navbar__opni:before {
mask: url(/static/img/icon-opni-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 13px;
padding-top: 21px;
padding-bottom: 7px;
background-color: #a453b9;
}

.navbar__suse:before {
mask: url(/static/img/icon-suse-mask.png) no-repeat 100% 100%;
mask-size: cover;
width: 35px;
height: 13px;
padding-top: 14px;
padding-bottom: 7px;
background-color: #30ba78;
}
Binary file added static/img/icon-elemental-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-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-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-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.
Loading