Skip to content

Commit 9ea5132

Browse files
committed
prep to merge with main
1 parent c957c94 commit 9ea5132

File tree

6 files changed

+84
-80
lines changed

6 files changed

+84
-80
lines changed

web/_includes/base.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
{{ content | safe }}
1313
</main>
1414
<footer>
15-
<form class="theme-control">
16-
15+
<div class="theme-control">
16+
<form>
1717
<label for="hue-slider">hue </label>
1818
<input
1919
type="range"
@@ -31,8 +31,8 @@
3131
value="35"
3232
min="10"
3333
max="200" />
34-
3534
</form>
35+
</div>
3636
<p>{{ metadata.tagline }}</p>
3737
<p>{{ metadata.description }}</p>
3838
</footer>

web/_src/discipline.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ permalink: /discipline/{{ discipline.slug }}/index.html
1212

1313
<article class="discipline flow" >
1414
<section>
15-
<p class="--text-sm --text-muted">Discipline</p>
1615
{% basicHero discipline.heroImage %}
16+
<p class="--text-sm --text-muted">Discipline</p>
1717
<h1>{{ discipline.title }}</h1>
1818
<p>{{ discipline.metaDescription }}</p>
1919
{{ discipline.overview | safe }}
@@ -22,7 +22,7 @@ permalink: /discipline/{{ discipline.slug }}/index.html
2222
<h2 class="--mb-md">{{ discipline.title | safe }} Methods</h2>
2323
<ul>
2424
{% for method in discipline.methods %}
25-
<li>
25+
<li class="method">
2626
<h3><a href="/method/{{ method.slug }}/">{{ method.title }}</a></h3>
2727
<p>{{ method.metaDescription }}</p>
2828
</li>

web/_src/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ layout: base.njk
1010
<h2>Disciplines</h2>
1111
<ul>
1212
{% for discipline in disciplines %}
13-
<li class="discipline">
13+
<li class="discipline --pb-sm">
1414
<a href="discipline/{{ discipline.slug }}" tabindex="0">{{ discipline.title }}</a>
1515
</li>
1616
{% endfor %}

web/_src/method.njk

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@ pagination:
66
size: 1
77
permalink: /method/{{ method.slug }}/index.html
88
---
9-
<div class="--py-lg">
9+
<div class="nav">
1010
<p><a href="/">↖ back to index</a></p> {# temporary #}
1111
</div>
1212

1313
<article class="flow">
14-
<section class="hero">
14+
15+
<section class="hero">
16+
<div class="hero-group">
17+
<p class="label">Method</p>
18+
<h1>{{ method.title }}</h1>
19+
</div>
20+
21+
<p class="hero-description">{{ method.metaDescription | safe }}</p>
1522
{% basicHero method.heroImage %}
16-
<h1>{{ method.title }}</h1>
17-
<p>{{ method.overview | safe }}</p>
23+
<p class="--pt-md">{{ method.overview | safe }}</p>
1824
</section>
25+
1926
<section class="preparation boxed">
2027
<h2>Preparation</h2>
2128
<ul>
@@ -61,7 +68,7 @@ permalink: /method/{{ method.slug }}/index.html
6168
<h2>Next Steps</h2>
6269
<ul>
6370
{% for method in method.continueMethods.slice(0,6) %}
64-
<li>
71+
<li class="method --pb-sm">
6572
<a href="/method/{{ method.slug }}/">{{ method.title }}</a>
6673
<p>{{ method.metaDescription }}</p>
6774
</li>

web/_src/r/css/_theme.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,11 @@ a:hover {
174174
}
175175

176176
h1 {
177-
font-family: var(--font-display);
178-
font-size: var(--font-xl);
177+
font-family: var(--font-sans);
178+
font-size: var(--font-2xl);
179179
color: var(--text-strong);
180-
font-weight: 500;
181-
margin-top: var(--spacing-xl);
182-
margin-bottom: var(--spacing-xl);
183-
text-align: center;
180+
font-weight: 700;
184181
font-variation-settings: "wght" 700;
185-
letter-spacing: clamp(0em, 1vw + 1rem, -0.3em);
186-
text-transform: uppercase;
187182
}
188183

189184
h2 {
@@ -193,6 +188,7 @@ h2 {
193188
font-weight: 700;
194189
letter-spacing: clamp(0em, 1vw + 1rem, -0.02em);
195190
margin-bottom: var(--spacing-sm);
191+
border-top:1px solid var(--border-muted)
196192
}
197193

198194
h3 {

web/_src/r/css/main.css

Lines changed: 62 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -45,59 +45,47 @@ article>*+*
4545
.flow>*+* {
4646
margin-top: var(--spacing-lg);
4747
}
48-
49-
.discipline a {
50-
background: var(--bg-muted);
51-
display: flex;
52-
width:auto;
53-
padding:var(--spacing-sm);
54-
text-decoration: none;
55-
}
56-
57-
.discipline a:hover {
58-
background: var(--bg-strong);
59-
}
6048

6149
input {
6250
accent-color: oklch(from var(--color-base) 50% calc(var(--chroma) + 0.05) var(--hue));
6351
}
6452

6553
.theme-control {
6654
position: fixed;
67-
top: 80px;
55+
bottom: 0;
6856
right: 0;
6957
}
7058

71-
/* TODO need to make these change with light dark mode */
72-
73-
section.boxed {
74-
padding: var(--spacing-sm) var(--spacing-md);
75-
}
76-
77-
section.preparation {
78-
background: var(--color-prep);
79-
color: oklch(from var(--color-base) 5% c calc(var(--hue) - 90));
80-
}
81-
82-
section.steps {
83-
background: var(--color-steps);
84-
}
85-
86-
section.outcomes {
87-
background: var(--color-outcomes);
88-
}
89-
90-
section.resources {
91-
background: var(--bg-strong);
92-
}
93-
94-
section.next-steps {
95-
background: var(--bg-muted);
96-
}
97-
98-
section.references {
99-
background: var(--bg-muted);
100-
}
59+
ol {
60+
list-style: none;
61+
counter-reset: steps-counter;
62+
margin-top:var(--spacing-md);
63+
}
64+
65+
ol li {
66+
counter-increment: steps-counter;
67+
/* display: flex; */
68+
flex-direction:row;
69+
gap:var(--spacing-sm);
70+
padding-left:var(--spacing-lg);
71+
position:relative;
72+
padding-bottom:var(--spacing-xs);
73+
}
74+
75+
ol li::before {
76+
content: counter(steps-counter);
77+
border:0.1em solid var(--text-default);
78+
border-radius:100%;
79+
position:absolute;
80+
top:0;
81+
left:0;
82+
display:flex;
83+
justify-content: center;
84+
align-items: center;
85+
flex-basis:auto;
86+
width:var(--spacing-md);
87+
height:var(--spacing-md);
88+
}
10189

10290
/* Buttons */
10391
/* The colors for these need to be abstracted a bit to be more adaptable between dark and light mode */
@@ -132,11 +120,9 @@ section.references {
132120
padding: var(--spacing-sm) var(--spacing-lg);
133121
}
134122

135-
/* --primary colors won't change between dark and light mode */
136-
/* */
137123
.button.--strong {
138-
background: var(--primary-500);
139-
color: var(--primary-50);
124+
background: var(--text-strong);
125+
color: var(--bg-strong);
140126
}
141127

142128
.button.--muted {
@@ -158,27 +144,13 @@ section.references {
158144
filter: none;
159145
}
160146

161-
.card {
162-
cursor: pointer;
163-
display: flex;
164-
background: var(--bg-strong);
165-
box-shadow: var(--shadow-md);
166-
border-radius: var(--spacing-xs);
167-
}
168-
169-
.card:hover {
170-
filter: contrast(110%);
171-
filter: brightness(110%);
172-
}
173-
174147
.container {
175148
position: relative;
176149
width: 100%;
177150
margin-left: auto;
178151
margin-right: auto;
179152
}
180153

181-
182154
/* Network */
183155

184156
#network-graph {
@@ -226,4 +198,33 @@ section.references {
226198
border-radius: 4px;
227199
pointer-events: none;
228200
display: none;
201+
}
202+
203+
.label {
204+
font-size: var(--font-sm);
205+
color:var(--text-muted);
206+
text-transform:uppercase;
207+
letter-spacing:0.05em;
208+
font-weight:600;
209+
}
210+
211+
.hero-group {
212+
border-top:2px solid var(--border-default);
213+
border-bottom:1px solid var(--border-muted);
214+
padding:1rem 0 1rem 0;
215+
text-align:center;
216+
}
217+
218+
.hero-description {
219+
color:var(--text-muted);
220+
font-size: var(--font-lg);
221+
margin:1rem 0;
222+
}
223+
224+
.nav {
225+
padding:0.5rem 0;
226+
}
227+
228+
.nav a:not(:hover) {
229+
text-decoration:none;
229230
}

0 commit comments

Comments
 (0)