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

Colored icons for header #975

Merged
merged 6 commits into from
Nov 3, 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
6 changes: 6 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ module.exports = {
{
href: 'https://www.rancher.com',
label: 'Rancher',
className: 'navbar__icon navbar__rancher'
},
{
type: 'html',
Expand All @@ -132,18 +133,22 @@ module.exports = {
{
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://harvesterhci.io',
label: 'Harvester',
className: 'navbar__icon navbar__harvester'
},
{
type: 'html',
Expand All @@ -152,6 +157,7 @@ module.exports = {
{
href: 'https://opensource.suse.com',
label: 'More Projects...',
className: 'navbar__icon navbar__suse'
},
]
}
Expand Down
71 changes: 70 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* Import fonts. */

/* Import fonts. */

/* poppins */
@font-face {
Expand Down Expand Up @@ -210,6 +211,74 @@ a.btn.navbar__github::before {
padding: 0 var(--ifm-pre-padding);
}

/* Navbar "More from SUSE" items. Thanks to Nunix. https://github.com/rancher/elemental-docs/pull/235 */

.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/header/icon-rancher.png) no-repeat 100% 100%;
mask-size: contain;
width: 35px;
background-color: #2e68e9;
}

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

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


/* These styles are authored by bravemaster619 https://dev.to/bravemaster619/simplest-way-to-embed-a-youtube-video-in-your-react-app-3bk2 */
.video-responsive {
Expand Down
Binary file added static/img/header/icon-elemental.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/header/icon-epinio.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/header/icon-fleet.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/header/icon-harvester.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/header/icon-rancher.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/header/icon-suse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.