Skip to content

Commit 7beb4d2

Browse files
authored
Merge pull request open-neuromorphic#245 from neural-loop/design-adjustments
Design adjustments - taming text
2 parents 63fea88 + cddec4f commit 7beb4d2

File tree

10 files changed

+70
-127
lines changed

10 files changed

+70
-127
lines changed

assets/scss/_mixins.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@mixin styled-link($base-color, $hover-color, $dark-base-color, $dark-hover-color) {
2+
text-decoration-line: underline !important;
3+
text-decoration-thickness: 0.115em !important;
4+
text-underline-offset: 2.6px !important;
5+
transition: text-decoration-color 0.3s ease-in-out;
6+
text-decoration-color: $base-color !important;
7+
8+
&:hover {
9+
text-decoration-color: $hover-color !important;
10+
}
11+
12+
.dark & {
13+
text-decoration-color: $dark-base-color !important;
14+
&:hover {
15+
text-decoration-color: $dark-hover-color !important;
16+
}
17+
}
18+
}

assets/scss/_typography-custom.scss

Lines changed: 30 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,18 @@ nav#TableOfContents {
4141
a {
4242
@apply block rounded-md text-sm transition-all duration-200 ease-in-out;
4343
padding: 0.4rem 0.75rem;
44-
color: theme('colors.light');
4544
text-decoration: none !important;
46-
font-weight: 500 !important;
4745
border-left: 3px solid transparent;
4846
line-height: 1.4;
4947

5048
&:hover {
5149
background-color: theme('colors.body');
52-
color: var(--color-primary-new);
5350
border-left-color: theme('colors.border');
5451
}
5552
}
5653

5754
li.active > a {
58-
color: var(--color-primary-new) !important;
5955
background-color: rgba(102, 126, 234, 0.1); // Tint of primary color
60-
font-weight: 600 !important;
6156
border-left-color: var(--color-primary-new);
6257
}
6358

@@ -71,17 +66,14 @@ nav#TableOfContents {
7166
.dark {
7267
nav#TableOfContents {
7368
a {
74-
color: theme('colors.darkmode.light');
7569

7670
&:hover {
7771
background-color: rgba(255, 255, 255, 0.05);
78-
color: theme('colors.darkmode.primary');
7972
border-left-color: theme('colors.darkmode.border');
8073
}
8174
}
8275

8376
li.active > a {
84-
color: theme('colors.darkmode.primary') !important;
8577
background-color: rgba(188, 251, 255, 0.1); // Tint of dark primary
8678
border-left-color: theme('colors.darkmode.primary');
8779
}
@@ -119,43 +111,18 @@ a {
119111
overflow-wrap: break-word;
120112
}
121113

122-
.content :is(:where(a):not(:where([class~="not-prose"], [class~="not-prose"] *))),
123-
section a:not(.breadcrumb-link-parent, .social-link-container) { // Exclude social link containers
124-
text-decoration-color: #d7c7e3;
125-
text-decoration-thickness: 0.115em;
126-
text-underline-offset: 2.6px;
127-
text-decoration-line: underline;
128-
font-weight: 550 !important;
129-
transition: text-decoration-color 0.3s ease-in-out;
130-
}
131-
132-
.content :is(:where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)):hover),
133-
section a:not(.breadcrumb-link-parent, .social-link-container):hover {
134-
text-decoration-color: #200435;
135-
}
136-
137-
// New rules for social links
138-
section a.social-link-container {
139-
text-decoration-line: none !important; // Remove underline from the container <a>
140-
font-weight: 550 !important;
141-
}
142-
143-
section a.social-link-container .social-link-text {
144-
text-decoration-line: underline;
145-
text-decoration-color: #d7c7e3;
146-
text-decoration-thickness: 0.115em;
147-
text-underline-offset: 2.6px;
148-
transition: text-decoration-color 0.3s ease-in-out;
149-
}
150-
151-
section a.social-link-container:hover .social-link-text {
152-
text-decoration-color: #200435;
114+
.content :is(:where(a):not(:where([class~="not-prose"], [class~="not-prose"] *, .btn))),
115+
section a:not(.breadcrumb-link-parent, .social-link-container, .btn, .hardware-card-wide-link, .social-icon) {
116+
font-weight: inherit;
117+
color: inherit !important;
118+
@include styled-link(#d7c7e3, #200435, #288b8c, #bcfbff);
119+
&.social-link-container { text-decoration-line: none !important; }
153120
}
154121

155122

156123
h1 a, h2 a, h3 a, h4 a, h5 a {
157124
text-decoration: none !important;
158-
font-weight: 550 !important;
125+
font-weight: inherit !important;
159126
}
160127

161128
.social-icons a {
@@ -167,29 +134,18 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
167134
color: #FFF;
168135
}
169136

170-
.content :is(:where(a):not(:where([class~="not-prose"], [class~="btn"], [class~="not-prose"] *))),
171-
section a:not(.breadcrumb-link-parent, .social-link-container) { // Exclude social link containers
172-
color: #bcfbff !important;
173-
text-decoration-color: #288b8c;
174-
}
175-
176-
.content :is(:where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)):hover),
177-
section a:not(.breadcrumb-link-parent, .social-link-container):hover {
178-
text-decoration-color: #bcfbff !important;
179-
}
180-
181-
// New rules for dark mode social links
182-
.dark section a.social-link-container {
183-
color: #bcfbff !important;
184-
}
137+
.dark .content :is(:where(a):not(:where([class~="not-prose"], [class~="btn"], [class~="not-prose"] *))),
138+
.dark section a:not(.breadcrumb-link-parent, .social-link-container, .btn, .hardware-card-wide-link, .social-icon) {
139+
color: inherit !important;
140+
}
185141

186-
.dark section a.social-link-container .social-link-text {
187-
text-decoration-color: #288b8c;
188-
}
189-
190-
.dark section a.social-link-container:hover .social-link-text {
191-
text-decoration-color: #bcfbff !important;
192-
}
142+
// --- Social Link Text (within a container) ---
143+
section a.social-link-container .social-link-text {
144+
@include styled-link(#d7c7e3, #200435, #288b8c, #bcfbff);
145+
}
146+
.dark section a.social-link-container {
147+
color: #bcfbff !important;
148+
}
193149

194150
h1 a, h2 a, h3 a, h4 a, h5 a {
195151
color: #ffffff !important;
@@ -205,37 +161,16 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
205161
.social-icons a {
206162
color: #000 !important;
207163
}
208-
209-
.author-card-compact {
210-
h4 a {
211-
color: #bcfbff !important;
212-
text-decoration-color: #288b8c !important;
213164

214-
&:hover {
215-
text-decoration-color: #bcfbff !important;
216-
}
217-
}
165+
// --- Author Card Compact Links ---
166+
.author-card-compact h4 a {
167+
@include styled-link(#d7c7e3, #200435, #288b8c, #bcfbff);
168+
color: #200435 !important;
169+
.dark & {
170+
color: #bcfbff !important;
218171
}
219172
}
220173

221-
.author-card-compact {
222-
h4 {
223-
@apply text-lg font-semibold;
224-
a {
225-
color: #200435 !important;
226-
text-decoration-line: underline !important;
227-
text-decoration-color: #d7c7e3 !important;
228-
text-decoration-thickness: 0.115em !important;
229-
text-underline-offset: 2.6px !important;
230-
font-weight: 550 !important;
231-
transition: text-decoration-color 0.3s ease-in-out;
232-
233-
&:hover {
234-
text-decoration-color: #200435 !important;
235-
}
236-
}
237-
}
238-
239174
.role-compact {
240175
@apply text-sm text-text dark:text-darkmode-text mt-1;
241176
}
@@ -256,24 +191,12 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
256191
}
257192
}
258193
}
259-
// New rules for contributor page social links
260-
.contributor-socials a {
261-
text-decoration: none !important;
262-
font-weight: normal !important;
263-
color: #444444;
264-
transition: color 0.2s ease-in-out;
265-
266-
&:hover {
267-
color: #121212;
268-
}
194+
// --- Breadcrumb Links ---
195+
a.breadcrumb-link-parent {
196+
text-decoration-line: none !important;
269197
}
270-
271-
.dark .contributor-socials a {
272-
color: #B4AFB6;
273-
274-
&:hover {
275-
color: #bcfbff;
276-
}
198+
.breadcrumb-link-text {
199+
@include styled-link(#d7c7e3, #200435, #288b8c, #bcfbff);
277200
}
278201

279202
.image-attribution-caption {
@@ -300,7 +223,4 @@ h1 a, h2 a, h3 a, h4 a, h5 a {
300223
}
301224
}
302225
}
303-
}
304-
305-
// NOTE: We no longer need a separate .dark rule for this,
306-
// as the dark semi-transparent background works well in both light and dark modes.
226+
}

assets/scss/base.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ h3,
1414
h4,
1515
h5,
1616
h6 {
17-
@apply font-secondary text-dark dark:text-darkmode-dark font-bold leading-tight;
17+
@apply font-secondary text-dark dark:text-darkmode-dark font-semibold leading-tight;
1818
}
1919

2020
h1,
@@ -47,10 +47,6 @@ h6,
4747
@apply text-h6 font-medium;
4848
}
4949

50-
b,
51-
strong {
52-
@apply font-semibold;
53-
}
5450

5551
code {
5652
@apply after:border-none;
@@ -59,3 +55,4 @@ code {
5955
blockquote > p {
6056
@apply my-0 #{!important};
6157
}
58+

assets/scss/components.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ main {
4646
@apply prose-h1:text-h2-sm md:prose-h1:text-h2; // Markdown '#' will be like a global H2
4747
@apply prose-h2:text-h3-sm md:prose-h2:text-h3; // Markdown '##' will be like a global H3
4848
@apply prose-h3:text-h4; // Markdown '###' will be like a global H4
49-
@apply prose-h4:text-h5; // Markdown '####' will be like a global H5
49+
@apply prose-h4:text-h5; // Markdown '#####' will be like a global H5
5050
@apply prose-h5:text-h6; // Markdown '#####' will be like a global H6
5151
@apply prose-h6:text-base prose-h6:font-semibold; // Markdown '######' will be base size, bold
5252

@@ -56,7 +56,7 @@ main {
5656

5757
blockquote {
5858
@apply bg-white dark:bg-darkmode-theme-light rounded-xl p-6 shadow-md transition-all duration-300 ease-in-out not-italic;
59-
@apply font-secondary text-xl text-dark dark:text-darkmode-light; // Text styling for blockquote
59+
@apply font-primary text-xl text-dark dark:text-darkmode-light; // Text styling for blockquote
6060
border-left: 4px solid var(--color-accent-new); // Pink left border like news-card
6161
border-top: none; // Remove other prose borders
6262
border-right: none;
@@ -85,8 +85,12 @@ main {
8585

8686
@apply prose-pre:rounded-lg prose-pre:bg-theme-light prose-pre:dark:bg-darkmode-theme-light;
8787
@apply prose-code:px-1;
88-
@apply prose-strong:text-dark prose-strong:dark:text-darkmode-text;
89-
@apply prose-a:text-text prose-a:underline hover:prose-a:text-primary prose-a:dark:text-darkmode-text hover:prose-a:dark:text-darkmode-primary;
88+
89+
strong {
90+
color: inherit;
91+
font-weight: 550;
92+
}
93+
@apply prose-a:underline hover:prose-a:text-primary hover:prose-a:dark:text-darkmode-primary;
9094
@apply prose-li:text-text prose-li:dark:text-darkmode-text;
9195
@apply prose-table:relative prose-table:overflow-hidden prose-table:rounded-lg prose-table:before:absolute prose-table:before:left-0 prose-table:before:top-0 prose-table:before:h-full prose-table:before:w-full prose-table:before:rounded-[inherit] prose-table:before:border prose-table:before:content-[""] prose-table:before:dark:border-darkmode-border;
9296
@apply prose-thead:border-border prose-thead:bg-theme-light prose-thead:dark:border-darkmode-border prose-thead:dark:bg-darkmode-theme-light;
@@ -96,4 +100,4 @@ main {
96100
.btn {
97101
@apply dark:hover:text-dark no-underline hover:text-white #{!important};
98102
}
99-
}
103+
}

assets/scss/components/_og-preview.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
}
4848

4949
.social-icon {
50-
@apply text-white text-xl w-9 h-9 flex items-center justify-center transition-all duration-300 ease-in-out no-underline;
50+
@apply text-xl w-9 h-9 flex items-center justify-center transition-all duration-300 ease-in-out no-underline;
51+
color: white;
5152
background: rgba(0,0,0, 0.6);
5253
backdrop-filter: blur(2px);
5354
border-radius: 50%;

assets/scss/main.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
@import "mixins";
6+
57
@layer base {
68
@import "base";
79
@import "fonts";

content/blog/strategic-vision-open-neuromorphic/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ image_attribution:
66
text: "Photo by"
77
author: "Casey Horner"
88
url: "https://unsplash.com/photos/fireworks-pXZxuXmpsNo"
9-
aliases:
10-
- /blog/vision
119
draft: false
1210
date: 2025-06-11
1311
showTableOfContents: true

generate_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def generate_header(mode: str, checkpoint_file: Path | None = None, with_public_
209209
9. Provide Code with focus toward with minimal commenting
210210
10. dont include {{{{/* comments */}}}}, every time it confuses hugo and causes errors
211211
11. If we are copying or moving files, provide the bash command to accomplish this
212+
12. We don't need to make backups of files before big edits - there is sufficient rollback capability in dev environment
212213
"""
213214
if mode == "diff":
214215
checkpoint_ts_str = "ERROR: Checkpoint file missing!"

layouts/_default/_markup/render-link.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
>
1212
{{- .Text | safeHTML -}}
1313
{{- if and $isExternal (not (in (string $class) "btn")) (not (in (string $class) "breadcrumb-link-parent")) (not (in (string $class) "social-link-container")) -}}
14-
{{- partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "inline-block align-baseline ml-1 h-[0.8em] w-[0.8em]") -}}
14+
{{- partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "inline-block ml-[.5] pb-[.4]" "width" "1em" "height" "0.7em") -}}
1515
{{- end -}}
16-
</a>
16+
</a>

layouts/partials/icon.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{{- $style := .style | default "solid" -}}
22
{{- $name := .name -}}
33
{{- $class := .class | default "" -}}
4+
{{- $width := .width | default "1em" -}}
5+
{{- $height := .height | default "1em" -}}
46

57
{{- if $name -}}
6-
<svg class="icon icon-{{ $name }} {{ $class }}" fill="currentColor" aria-hidden="true" role="img" style="display: inline-block; vertical-align: -0.125em; width: 1em; height: 1em;">
8+
<svg class="icon icon-{{ $name }} {{ $class }}" fill="currentColor" aria-hidden="true" role="img" style="display: inline-block; vertical-align: middle; width: {{ $width }}; height: {{ $height }};">
79
<use xlink:href="#icon-{{ $style }}-{{ $name }}"></use>
810
</svg>
911
{{- else -}}
1012
{{- warnf "Icon partial called without a 'name'." -}}
11-
{{- end -}}
13+
{{- end -}}

0 commit comments

Comments
 (0)