Skip to content

Commit f5fb97a

Browse files
Resize elements of the navbar.
1 parent 4fee461 commit f5fb97a

File tree

9 files changed

+383
-120
lines changed

9 files changed

+383
-120
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const config: Config = {
8888
title: "",
8989
logo: {
9090
alt: "QuantStack Logo",
91-
src: "img/quantstack/logo-website.svg",
91+
src: "img/quantstack/logo-website-smaller.svg",
9292
},
9393

9494
items: [

src/css/custom.css

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

1919
--ifm-color-secondary-s1: #a0c9ff;
2020
--ifm-color-secondary-s2: #002646;
21+
--ifm-color-secondary-s3: #00497F;
22+
2123

2224
--ifm-color-neutral-n1: #605e58;
2325
--ifm-color-neutral-n2: #371300;
@@ -185,6 +187,7 @@ ul {
185187
.row-with-margins {
186188
margin: var(--ifm-spacing-xl) 0;
187189
}
190+
188191
.col {
189192
padding: 0;
190193
}
@@ -195,7 +198,8 @@ ul {
195198
font-size: 32px;
196199
font-style: normal;
197200
font-weight: 600;
198-
line-height: 150%; /* 36px */
201+
line-height: 150%;
202+
/* 36px */
199203
letter-spacing: 1.056px;
200204
text-align: center;
201205
padding: 0;
@@ -230,8 +234,7 @@ ul {
230234
font-size: 16px;
231235
font-weight: 500;
232236
color: var(--ifm-color-secondary-s2);
233-
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg) 0
234-
var(--ifm-spacing-lg);
237+
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-lg) 0 var(--ifm-spacing-lg);
235238
background-color: var(--ifm-color-secondary-s1);
236239
line-height: 20px;
237240
letter-spacing: 0.1px;
@@ -341,8 +344,7 @@ ul {
341344
line-height: 150%;
342345
background-color: var(--ifm-color-secondary-s1);
343346
color: var(--ifm-color-secondary-s2);
344-
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-4xl) 0
345-
var(--ifm-spacing-4xl);
347+
padding: var(--ifm-spacing-2xl) var(--ifm-spacing-4xl) 0 var(--ifm-spacing-4xl);
346348
}
347349

348350
.blue-banner-header {
@@ -385,6 +387,7 @@ ul {
385387
justify-content: center;
386388
}
387389
}
390+
388391
/***********************************************************/
389392

390393
.social-media-links {
@@ -494,14 +497,20 @@ a {
494497
a:hover,
495498
/* We need to (re)override some of the infima rules to have proper states on
496499
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 */ {
500+
a.navbar__link:hover,
501+
/* Top bar navigation links */
502+
a.table-of-contents__link:hover,
503+
/*Right sidebar links (table of contents) */
504+
a[class^="sidebarItemLink"]:hover
505+
506+
/* The docs sidebar links do not have its own class */
507+
{
500508
/*text-decoration: underline;
501509
text-decoration-thickness: var(--pydata-link-hover-decoration-thickness);
502510
text-decoration-skip-ink: none;
503511
text-decoration-skip: none;*/
504512
}
513+
505514
a:active,
506515
a.navbar__link:active,
507516
a.table-of-contents__link:active,
@@ -511,13 +520,15 @@ a[class^="sidebarItemLink"]:active {
511520

512521
/* In some cases, we override the underlines because there are other elements that
513522
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 */
523+
a[class^="sidebarItemLink"][aria-current="page"],
524+
/* No underline if this is the current page */
515525
a.navbar__link,
516526
.navbar-sidebar__item,
517527
.menu a,
518528
.navbar__items--right a,
519529
.pagination-nav__link,
520-
a.card, /* These cards are used in index-like documentation pages */
530+
a.card,
531+
/* These cards are used in index-like documentation pages */
521532
a.card:hover {
522533
text-decoration: none;
523534
}
@@ -530,6 +541,7 @@ a.menu__link:active {
530541
background: white;
531542
color: #000;
532543
}
544+
533545
[data-theme="dark"] .pagination-nav__link:active,
534546
[data-theme="dark"] a.card:active,
535547
[data-theme="dark"] a.menu__link:active {
@@ -549,10 +561,11 @@ a.menu__link:active {
549561
.contact {
550562
background-color: var(--ifm-color-primary-p1);
551563
color: var(--ifm-color-text-on-primary-p1);
564+
font-size: 14px;
552565
border-radius: 4px;
553566
font-weight: bolder;
554567
font-style: normal;
555-
margin: var(--ifm-navbar-item-padding-vertical) 8px;
568+
margin: var(--ifm-navbar-item-padding-vertical) 2px;
556569
}
557570

558571
.contact:hover {
@@ -561,10 +574,12 @@ a.menu__link:active {
561574

562575
.fundable_projects {
563576
background-color: var(--ifm-color-secondary-s1);
577+
font-size: 14px;
564578
color: black;
565579
border-radius: 4px;
580+
font-weight: bolder;
566581
font-style: normal;
567-
margin: var(--ifm-navbar-item-padding-vertical) 8px;
582+
margin: var(--ifm-navbar-item-padding-vertical) 2px;
568583
}
569584

570585
.fundable_projects:hover {
@@ -607,8 +622,8 @@ a.menu__link:active {
607622
background: url(@site/static/img/socialmedias/RSS.svg);
608623
content: "";
609624
display: flex;
610-
height: 36px;
611-
width: 36px;
625+
height: 32px;
626+
width: 32px;
612627
background-repeat: no-repeat;
613628
}
614629

@@ -620,8 +635,8 @@ a.menu__link:active {
620635
background: url(@site/static/img/socialmedias/GH.svg);
621636
content: "";
622637
display: flex;
623-
height: 36px;
624-
width: 37px;
638+
height: 32px;
639+
width: 32px;
625640
background-repeat: no-repeat;
626641
}
627642

@@ -633,8 +648,8 @@ a.menu__link:active {
633648
background: url(@site/static/img/socialmedias/LinkedIn.svg);
634649
content: "";
635650
display: flex;
636-
height: 36px;
637-
width: 37px;
651+
height: 32px;
652+
width: 32px;
638653
background-repeat: no-repeat;
639654
}
640655

@@ -646,8 +661,8 @@ a.menu__link:active {
646661
background: url(@site/static/img/socialmedias/Bluesky.svg);
647662
content: "";
648663
display: flex;
649-
height: 36px;
650-
width: 37px;
664+
height: 32px;
665+
width: 32px;
651666
background-repeat: no-repeat;
652667
}
653668

@@ -659,8 +674,8 @@ a.menu__link:active {
659674
background: url(@site/static/img/socialmedias/Mastodon.svg);
660675
content: "";
661676
display: flex;
662-
height: 36px;
663-
width: 37px;
677+
height: 32px;
678+
width: 32px;
664679
background-repeat: no-repeat;
665680
}
666681

@@ -701,3 +716,11 @@ ul.row {
701716
.items-list {
702717
list-style-type: none;
703718
}
719+
720+
.custom-progress-bar::-webkit-progress-value {
721+
background-color: var(--ifm-color-primary-p1);
722+
}
723+
724+
.custom-progress-bar::-webkit-progress-bar {
725+
background-color: #eee;
726+
}

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
Lines changed: 18 additions & 14 deletions
Loading

static/img/socialmedias/GH.svg

Lines changed: 31 additions & 5 deletions
Loading
Lines changed: 31 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)