Skip to content

Commit d3bd5db

Browse files
committed
style: Improve ToC and external link styles
Fixes apostrophes in hardware descriptions. Updates ToC styles and external link icon.
1 parent c7fbd6d commit d3bd5db

File tree

18 files changed

+79
-29
lines changed

18 files changed

+79
-29
lines changed

assets/scss/_typography-custom.scss

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,67 @@ h1.homepage {
2828
}
2929

3030
nav#TableOfContents {
31-
li.active a {
32-
color: #022b4a !important;
31+
background-color: transparent !important;
32+
33+
ul, ol {
34+
@apply list-none p-0 m-0 space-y-1;
35+
}
36+
37+
li {
38+
@apply m-0 p-0;
39+
}
40+
41+
a {
42+
@apply block rounded-md text-sm transition-all duration-200 ease-in-out;
43+
padding: 0.4rem 0.75rem;
44+
color: theme('colors.light');
3345
text-decoration: none !important;
34-
font-weight: 550 !important;
46+
font-weight: 500 !important;
47+
border-left: 3px solid transparent;
48+
line-height: 1.4;
49+
50+
&:hover {
51+
background-color: theme('colors.body');
52+
color: var(--color-primary-new);
53+
border-left-color: theme('colors.border');
54+
}
3555
}
3656

37-
ol ol li {
38-
margin-left: 10px;
39-
margin-bottom: 10px;
57+
li.active > a {
58+
color: var(--color-primary-new) !important;
59+
background-color: rgba(102, 126, 234, 0.1); // Tint of primary color
60+
font-weight: 600 !important;
61+
border-left-color: var(--color-primary-new);
62+
}
63+
64+
ul ul, ol ol {
65+
@apply pl-4 mt-1 mb-1;
66+
border-left: 1px solid theme('colors.border');
67+
}
68+
}
69+
70+
// Dark Mode Overrides for ToC
71+
.dark {
72+
nav#TableOfContents {
73+
a {
74+
color: theme('colors.darkmode.light');
75+
76+
&:hover {
77+
background-color: rgba(255, 255, 255, 0.05);
78+
color: theme('colors.darkmode.primary');
79+
border-left-color: theme('colors.darkmode.border');
80+
}
81+
}
82+
83+
li.active > a {
84+
color: theme('colors.darkmode.primary') !important;
85+
background-color: rgba(188, 251, 255, 0.1); // Tint of dark primary
86+
border-left-color: theme('colors.darkmode.primary');
87+
}
88+
89+
ul ul, ol ol {
90+
border-left-color: theme('colors.darkmode.border');
91+
}
4092
}
4193
}
4294

assets/scss/custom.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ section.section-sm.hero {
7272

7373
nav#TableOfContents {
7474
background-color: transparent !important;
75-
76-
ol ol li {
77-
margin-left: 10px;
78-
margin-bottom: 10px;
79-
}
8075
}
8176

8277
.content img {

content/neuromorphic-computing/hardware/akida-brainchip/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: true
3-
description: 'Learn about BrainChip''s neuromorphic hardware: Akida'
3+
description: "Learn about BrainChip's neuromorphic hardware: Akida"
44
type: neuromorphic-hardware
55
image: akida.png
66
organization:

content/neuromorphic-computing/hardware/brainscales-2-universitat-heidelberg/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: true
3-
description: 'Learn about Universität Heidelberg''s neuromorphic hardware: BrainScaleS 2'
3+
description: "Learn about Universität Heidelberg's neuromorphic hardware: BrainScaleS 2"
44
type: neuromorphic-hardware
55
image: brainscales-2.jpg
66
organization:

content/neuromorphic-computing/hardware/dynap-se2-institute-of-neuroinformatics/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: true
3-
description: 'Learn about Institute of Neuroinformatics''s neuromorphic hardware: DYNAP-SE2'
3+
description: "Learn about Institute of Neuroinformatics's neuromorphic hardware: DYNAP-SE2"
44
type: neuromorphic-hardware
55
image: dynap-se2.jpg
66
organization:

content/neuromorphic-computing/hardware/loihi-2-intel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: true
3-
description: 'Learn about Intel''s neuromorphic hardware: Loihi 2'
3+
description: "Learn about Intel's neuromorphic hardware: Loihi 2"
44
type: neuromorphic-hardware
55
image: loihi2.png
66
organization:

content/neuromorphic-computing/hardware/loihi-intel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: false
3-
description: 'Learn about Intel''s neuromorphic hardware: Loihi 1'
3+
description: "Learn about Intel's neuromorphic hardware: Loihi 1"
44
type: neuromorphic-hardware
55
image: loihi-nahuku-board.jpg
66
organization:

content/neuromorphic-computing/hardware/neurogrid-braindrop-stanford/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: false
3-
description: 'Learn about Stanford''s neuromorphic hardware: NeuroGrid (BrainDrop)'
3+
description: "Learn about Stanford's neuromorphic hardware: NeuroGrid (BrainDrop)"
44
type: neuromorphic-hardware
55
image: neurogrid.jpg
66
organization:

content/neuromorphic-computing/hardware/odin-frenkel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: true
3-
description: 'Learn about Charlotte Frenkel''s neuromorphic hardware: ODIN'
3+
description: "Learn about Charlotte Frenkel's neuromorphic hardware: ODIN"
44
type: neuromorphic-hardware
55
image: odin.png
66
organization:

content/neuromorphic-computing/hardware/reckon-frenkel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
active_product: true
3-
description: 'Learn about Charlotte Frenkel''s neuromorphic hardware: ReckOn'
3+
description: "Learn about Charlotte Frenkel's neuromorphic hardware: ReckOn"
44
type: neuromorphic-hardware
55
image: reckon.png
66
organization:

0 commit comments

Comments
 (0)