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

Add links to LinkedIn and VSC website to nav bar #342

Merged
merged 3 commits into from
Aug 31, 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
12 changes: 12 additions & 0 deletions source/_static/css/vsc.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,15 @@ html[data-theme="dark"] .bd-content {
html[data-theme="light"] .highlight span.linenos { background-color: transparent; }
html[data-theme="dark"] .highlight span.linenos { background-color: transparent; }

/* style x-twitter img icon depending on active theme */
html[data-theme="light"] a.nav-link:hover img.icon-link-image {
/* Dark VSC orange: #d96c31. Equivalent to --pst-color-link-hover */
filter: brightness(0) saturate(100%) invert(46%) sepia(89%) saturate(502%) hue-rotate(337deg) brightness(91%) contrast(85%);
}
html[data-theme="dark"] a.nav-link img.icon-link-image {
filter: brightness(150%) contrast(120%);
}
html[data-theme="dark"] a.nav-link:hover img.icon-link-image {
/* Light VSC orange: #f28e24. Equivalent to --pst-color-link-hover */
filter: brightness(0) saturate(100%) invert(56%) sepia(81%) saturate(1394%) hue-rotate(348deg) brightness(106%) contrast(90%);
}
1 change: 1 addition & 0 deletions source/_static/fa-square-x-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 15 additions & 5 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,25 @@
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/header-links.html#icon-links
html_navbar_icon_links = [
{
"name": "GitHub",
"name": "VSC in Twitter",
"url": "https://twitter.com/VSC_HPC",
"icon": "_static/fa-square-x-twitter.svg",
"type": "local",
},
{
"name": "VSC in GitHub",
"url": "https://github.com/vscentrum",
"icon": "fa-brands fa-square-github",
"type": "fontawesome",
},
{
"name": "Twitter",
"url": "https://twitter.com/VSC_HPC",
"icon": "fa-brands fa-square-twitter",
"name": "VSC in LinkedIn",
"url": "https://www.linkedin.com/company/vschpc",
"icon": "fa-brands fa-linkedin",
},
{
"name": "VSC Website",
"url": "https://www.vscentrum.be/",
"icon": "fa-solid fa-house",
},
]

Expand Down