Skip to content

Commit 9fc1f4b

Browse files
Resize elements of the navbar.
1 parent e222346 commit 9fc1f4b

File tree

9 files changed

+386
-120
lines changed

9 files changed

+386
-120
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const config: Config = {
7878
title: "",
7979
logo: {
8080
alt: "QuantStack Logo",
81-
src: "img/quantstack/logo-website.svg",
81+
src: "img/quantstack/logo-website-smaller.svg",
8282
},
8383

8484
items: [

src/css/custom.css

Lines changed: 48 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
--ifm-color-secondary-s1: #a0c9ff;
2020
--ifm-color-secondary-s2: #002646;
21+
<<<<<<< HEAD
22+
=======
23+
--ifm-color-secondary-s3: #00497F;
24+
25+
>>>>>>> b54cef51 (Resize elements of the navbar.)
2126

2227
--ifm-color-neutral-n1: #605e58;
2328
--ifm-color-neutral-n2: #371300;
@@ -185,6 +190,7 @@ ul {
185190
.row-with-margins {
186191
margin: var(--ifm-spacing-xl) 0;
187192
}
193+
188194
.col {
189195
padding: 0;
190196
}
@@ -195,7 +201,8 @@ ul {
195201
font-size: 32px;
196202
font-style: normal;
197203
font-weight: 600;
198-
line-height: 150%; /* 36px */
204+
line-height: 150%;
205+
/* 36px */
199206
letter-spacing: 1.056px;
200207
text-align: center;
201208
padding: 0;
@@ -230,8 +237,7 @@ ul {
230237
font-size: 16px;
231238
font-weight: 500;
232239
color: var(--ifm-color-secondary-s2);
233-
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg) 0
234-
var(--ifm-spacing-lg);
240+
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg) 0 var(--ifm-spacing-lg);
235241
background-color: var(--ifm-color-secondary-s1);
236242
line-height: 20px;
237243
letter-spacing: 0.1px;
@@ -341,8 +347,7 @@ ul {
341347
line-height: 150%;
342348
background-color: var(--ifm-color-secondary-s1);
343349
color: var(--ifm-color-secondary-s2);
344-
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-4xl) 0
345-
var(--ifm-spacing-4xl);
350+
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-4xl) 0 var(--ifm-spacing-4xl);
346351
}
347352

348353
.blue-banner-header {
@@ -385,6 +390,7 @@ ul {
385390
justify-content: center;
386391
}
387392
}
393+
388394
/***********************************************************/
389395

390396
.social-media-links {
@@ -494,14 +500,20 @@ a {
494500
a:hover,
495501
/* We need to (re)override some of the infima rules to have proper states on
496502
navbar links, table of contents, and docs sidebar links, respectively */
497-
a.navbar__link:hover, /* Top bar navigation links */
498-
a.table-of-contents__link:hover, /*Right sidebar links (table of contents) */
499-
a[class^="sidebarItemLink"]:hover /* The docs sidebar links do not have its own class */ {
503+
a.navbar__link:hover,
504+
/* Top bar navigation links */
505+
a.table-of-contents__link:hover,
506+
/*Right sidebar links (table of contents) */
507+
a[class^="sidebarItemLink"]:hover
508+
509+
/* The docs sidebar links do not have its own class */
510+
{
500511
/*text-decoration: underline;
501512
text-decoration-thickness: var(--pydata-link-hover-decoration-thickness);
502513
text-decoration-skip-ink: none;
503514
text-decoration-skip: none;*/
504515
}
516+
505517
a:active,
506518
a.navbar__link:active,
507519
a.table-of-contents__link:active,
@@ -511,13 +523,15 @@ a[class^="sidebarItemLink"]:active {
511523

512524
/* In some cases, we override the underlines because there are other elements that
513525
already report the state (e.g. borders, background colors, etc) */
514-
a[class^="sidebarItemLink"][aria-current="page"], /* No underline if this is the current page */
526+
a[class^="sidebarItemLink"][aria-current="page"],
527+
/* No underline if this is the current page */
515528
a.navbar__link,
516529
.navbar-sidebar__item,
517530
.menu a,
518531
.navbar__items--right a,
519532
.pagination-nav__link,
520-
a.card, /* These cards are used in index-like documentation pages */
533+
a.card,
534+
/* These cards are used in index-like documentation pages */
521535
a.card:hover {
522536
text-decoration: none;
523537
}
@@ -530,6 +544,7 @@ a.menu__link:active {
530544
background: white;
531545
color: #000;
532546
}
547+
533548
[data-theme="dark"] .pagination-nav__link:active,
534549
[data-theme="dark"] a.card:active,
535550
[data-theme="dark"] a.menu__link:active {
@@ -549,10 +564,11 @@ a.menu__link:active {
549564
.contact {
550565
background-color: var(--ifm-color-primary-p1);
551566
color: var(--ifm-color-text-on-primary-p1);
567+
font-size: 14px;
552568
border-radius: 4px;
553569
font-weight: bolder;
554570
font-style: normal;
555-
margin: var(--ifm-navbar-item-padding-vertical) 8px;
571+
margin: var(--ifm-navbar-item-padding-vertical) 2px;
556572
}
557573

558574
.contact:hover {
@@ -561,10 +577,12 @@ a.menu__link:active {
561577

562578
.fundable_projects {
563579
background-color: var(--ifm-color-secondary-s1);
580+
font-size: 14px;
564581
color: black;
565582
border-radius: 4px;
583+
font-weight: bolder;
566584
font-style: normal;
567-
margin: var(--ifm-navbar-item-padding-vertical) 8px;
585+
margin: var(--ifm-navbar-item-padding-vertical) 2px;
568586
}
569587

570588
.fundable_projects:hover {
@@ -606,8 +624,8 @@ a.menu__link:active {
606624
background: url(@site/static/img/socialmedias/RSS.svg);
607625
content: "";
608626
display: flex;
609-
height: 36px;
610-
width: 36px;
627+
height: 32px;
628+
width: 32px;
611629
background-repeat: no-repeat;
612630
}
613631

@@ -619,8 +637,8 @@ a.menu__link:active {
619637
background: url(@site/static/img/socialmedias/GH.svg);
620638
content: "";
621639
display: flex;
622-
height: 36px;
623-
width: 37px;
640+
height: 32px;
641+
width: 32px;
624642
background-repeat: no-repeat;
625643
}
626644

@@ -632,8 +650,8 @@ a.menu__link:active {
632650
background: url(@site/static/img/socialmedias/LinkedIn.svg);
633651
content: "";
634652
display: flex;
635-
height: 36px;
636-
width: 37px;
653+
height: 32px;
654+
width: 32px;
637655
background-repeat: no-repeat;
638656
}
639657

@@ -645,8 +663,8 @@ a.menu__link:active {
645663
background: url(@site/static/img/socialmedias/Bluesky.svg);
646664
content: "";
647665
display: flex;
648-
height: 36px;
649-
width: 37px;
666+
height: 32px;
667+
width: 32px;
650668
background-repeat: no-repeat;
651669
}
652670

@@ -658,8 +676,8 @@ a.menu__link:active {
658676
background: url(@site/static/img/socialmedias/Mastodon.svg);
659677
content: "";
660678
display: flex;
661-
height: 36px;
662-
width: 37px;
679+
height: 32px;
680+
width: 32px;
663681
background-repeat: no-repeat;
664682
}
665683

@@ -700,3 +718,11 @@ ul.row {
700718
.items-list {
701719
list-style-type: none;
702720
}
721+
722+
.custom-progress-bar::-webkit-progress-value {
723+
background-color: var(--ifm-color-primary-p1);
724+
}
725+
726+
.custom-progress-bar::-webkit-progress-bar {
727+
background-color: #eee;
728+
}

static/img/quantstack/.svg

Lines changed: 99 additions & 0 deletions
Large diffs are not rendered by default.

static/img/quantstack/logo-website-smaller.svg

Lines changed: 99 additions & 0 deletions
Loading

static/img/socialmedias/Bluesky.svg

Lines changed: 18 additions & 14 deletions
Loading

static/img/socialmedias/GH.svg

Lines changed: 31 additions & 5 deletions
Loading

static/img/socialmedias/LinkedIn.svg

Lines changed: 31 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)