Skip to content

Commit 74d6f63

Browse files
committed
Lower semantc weight for site name
1 parent 55c9579 commit 74d6f63

12 files changed

Lines changed: 101 additions & 136 deletions

File tree

dist/four-point-seven/forms/article/default.txp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
<meta itemprop="mainEntityOfPage" content="<txp:permlink />">
33

44
<txp:if_individual_article>
5-
<h1 itemprop="headline">
6-
<txp:title />
7-
</h1>
5+
<h1 itemprop="headline"><txp:title /></h1>
86
<txp:else />
9-
<h1 itemprop="headline">
10-
<a href="<txp:permlink />" itemprop="url">
11-
<txp:title />
12-
</a>
7+
<h1 itemprop="headline"><a href="<txp:permlink />" itemprop="url"><txp:title /></a>
138
</h1>
149
</txp:if_individual_article>
1510

dist/four-point-seven/forms/misc/body_header.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<header class="site-header">
2-
<h1><txp:link_to_home><txp:site_name /></txp:link_to_home></h1>
2+
<h2><txp:link_to_home><txp:site_name /></txp:link_to_home></h2>
33
<txp:evaluate>
44
<h3><txp:site_slogan /></h3>
55
</txp:evaluate>

dist/four-point-seven/pages/archive.txp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@
9191

9292
<txp:if_article_list>
9393

94-
<h1 itemprop="name">
95-
<txp:section title="1" />
96-
</h1>
94+
<h1 itemprop="name"><txp:section title="1" /></h1>
9795
<txp:article class="article-list" form="article_listing" limit="10" wraptag="ul" />
9896
<!-- ...or if you want to list all articles from all sections instead, then replace txp:article with txp:article_custom -->
9997

dist/four-point-seven/pages/error_default.txp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@
3030

3131
<!-- Main content -->
3232
<main aria-label="<txp:text item="main_content" />">
33-
<h1 class="error-status">
34-
<txp:error_status />
35-
</h1>
36-
<p class="error-msg">
37-
<txp:error_message />
38-
</p>
33+
<h1 class="error-status"><txp:error_status /></h1>
34+
<p class="error-msg"><txp:error_message /></p>
3935
</main>
4036

4137
<txp:output_form form="body_aside" />

dist/four-point-seven/styles/default.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ nav ol::after,
113113
.site-header {
114114
padding: 1em 0;
115115
}
116-
.site-header h1 {
116+
.site-header h2 {
117117
margin: 0;
118118
}
119119
.site-header h3 {
@@ -332,10 +332,10 @@ nav ol::after,
332332
line-height: 1.1842105;
333333
}
334334
h2 {
335-
margin: 0.8em 0;
336-
font-size: 1.875rem;
335+
margin: 0.75em 0;
336+
font-size: 2rem;
337337
letter-spacing: -0.25px;
338-
line-height: 1.2666667;
338+
line-height: 1.25;
339339
}
340340
h3 {
341341
margin: 1em 0;

src/dev-docs/design-patterns-page.textile

Lines changed: 81 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ Article containing examples of various inline and block elements that should be
22

33
h2. Typography
44

5-
h1. h1 Heading 1 h1 Heading 1 h1 Heading 1 h1 Heading 1 h1
5+
h1. h1 Heading 1 h1 Heading 1 h1 Heading 1
66

7-
h2. h2 Heading 2 h2 Heading 2 h2 Heading 2 h2 Heading 2 h2 Heading 2
7+
h2. h2 Heading 2 h2 Heading 2 h2 Heading 2 h2 Heading 2
88

9-
h3. h3 Heading 3 h3 Heading 3 h3 Heading 3 h3 Heading 3 h3 Heading 3 h3 Heading 3 h3 Heading 3
9+
h3. h3 Heading 3 h3 Heading 3 h3 Heading 3 h3 Heading 3 h3 Heading 3
1010

11-
h4. h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4
11+
h4. h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4 h4 Heading 4
12+
13+
h5. h5 Heading 5 h5 Heading 5 h5 Heading 5 h5 Heading 5 h5 Heading 5 h5 Heading 5 h5 Heading 5
14+
15+
h6. h6 Heading 6 h6 Heading 6 h6 Heading 6 h6 Heading 6 h6 Heading 6 h6 Heading 6 h6 Heading 6 h6 Heading 6
1216

1317
*Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam sit amet elit vitae arcu interdum ullamcorper.* Nullam ultrices, nisi quis scelerisque convallis, augue neque tempor enim, et mattis justo nibh eu elit.
1418

@@ -49,6 +53,14 @@ The <var>var element</var> example
4953

5054
h2. Block text-level semantics
5155

56+
h3. Disclosure (details/summary)
57+
58+
notextile. <details>
59+
<summary>System requirements</summary>
60+
<p>Requires a computer running an operating system. The computer must have some memory and ideally some kind of long-term storage.</p>
61+
<p>An <a href="#">input device</a> as well as some form of <a href="#">output device</a> is recommended.</p>
62+
</details>
63+
5264
h3. Pre-formatted text blocks
5365

5466
pre. This is an example of a non-code
@@ -57,7 +69,7 @@ pre. This is an example of a non-code
5769

5870
h3. Pre-formatted code blocks
5971

60-
bc. <section class="alert alert-error fade in" role="alert">
72+
bc. <section class="alert alert-error" role="alert">
6173
<a class="close" data-dismiss="alert">&amp;times;</a>
6274
<h3>Message pane</h3>
6375
<p>Error message goes here.</p>
@@ -90,8 +102,8 @@ h3. Images with links
90102
h3. Figures
91103

92104
notextile. <figure>
93-
<img src="https://placehold.it/480x240/999999/333333" alt="Alt text">
94-
<figcaption>Figcaption content</figcaption>
105+
<img src="https://placehold.it/480x240/999999/333333" alt="Alt text">
106+
<figcaption>Figcaption content</figcaption>
95107
</figure>
96108

97109
h3. Left ranged image
@@ -106,30 +118,13 @@ h3. Centred image
106118

107119
Aenean vehicula posuere neque. Nam nibh lectus, laoreet non, convallis sed, vulputate consectetuer, enim. Pellentesque arcu. Vestibulum consequat nisi a ipsum vulputate vehicula. Aliquam lacus diam, ultricies vel, interdum eget, posuere non, tellus. Donec vel ligula. Sed felis. !=https://placehold.it/160/999999/333333(160x160px placeholder)! Quisque ultrices gravida pede. Mauris accumsan vulputate tellus. Phasellus condimentum bibendum dolor. Mauris sed ipsum. Phasellus in diam. Nam sapien ligula, consectetuer id, hendrerit in, cursus sed, leo. Nam tincidunt rhoncus urna. Aliquam id massa ut nibh bibendum imperdiet. Curabitur neque mauris, porta vel, lacinia quis, placerat ultrices, orci. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In lectus nisl, porttitor eget, fermentum et, viverra a, odio. Sed semper. Praesent vulputate nibh eget nisi. Sed ligula. Aenean vehicula posuere neque. Nam nibh lectus, laoreet non, convallis sed, vulputate consectetuer, enim. Pellentesque arcu. Vestibulum consequat nisi a ipsum vulputate vehicula. Aliquam lacus diam, ultricies vel, interdum eget, posuere non, tellus. Donec vel ligula. Sed felis.
108120

109-
h3. SVG
110-
111-
notextile. <svg width="100px" height="100px">
112-
<circle cx="100" cy="100" r="100" fill="#999999"/>
113-
</svg>
114-
115121
h3. Videos
116122

117-
notextile. <video>
118-
<source type="video/mp4" src="https://clips.vorwaerts-gmbh.de/VfE_html5.mp4">
119-
<source type="video/webm" src="https://clips.vorwaerts-gmbh.de/VfE.webm">
123+
notextile. <video controls>
124+
<source type="video/mp4" src="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4">
125+
<source type="video/webm" src="http://clips.vorwaerts-gmbh.de/VfE.webm">
120126
</video>
121127

122-
h2. Details / summary
123-
124-
notextile. <details>
125-
<summary>More info</summary>
126-
<p>Additional information</p>
127-
<ul>
128-
<li>Point 1</li>
129-
<li>Point 2</li>
130-
</ul>
131-
</details>
132-
133128
h2. Lists
134129

135130
# this is an example
@@ -158,41 +153,35 @@ Table with @<caption>@, @<thead>@ and @<tfoot>@ included.
158153
|=. This is a table caption
159154
|^.
160155
|_. Planet |_. Population |_. Government |
161-
|~.
162-
|\3. This is the tfoot |
163156
|-.
164157
| Diso | 4.1 B | Democracy |
165158
| Lave | 2.5 B | Dictatorship |
166159
| Leesti | 5.0 B | Corporate State |
167160
| Reorte | 3.1 B | Dictatorship |
168161
| Zaonce | 5.3 B | Corporate State |
162+
|~.
163+
|\3. This is the tfoot |
169164

170165
h2. Forms
171166

172167
notextile. <form action="#" method="post" enctype="multipart/form-data" onsubmit="return false">
173168
<p>
174-
<input id="test_checkbox_1" name="test_checkbox_1" type="checkbox">
169+
<input type="checkbox" id="test_checkbox_1" name="test_checkbox_1" checked>
175170
<label for="test_checkbox_1">Test checkbox 1</label>
176-
&nbsp;
177-
&nbsp;
178-
<input id="test_checkbox_2" name="test_checkbox_2" type="checkbox">
171+
<input type="checkbox" id="test_checkbox_2" name="test_checkbox_2">
179172
<label for="test_checkbox_2">Test checkbox 2</label>
180-
&nbsp;
181-
&nbsp;
182-
<input id="test_checkbox_3" name="test_checkbox_3" type="checkbox">
183-
<label for="test_checkbox_3">Test checkbox 3</label>
173+
<input type="checkbox" id="test_checkbox_3" name="test_checkbox_3" disabled>
174+
<label for="test_checkbox_3">Test checkbox 3 (disabled)</label>
175+
<input type="checkbox" id="test_checkbox_4" name="test_checkbox_4" disabled checked>
176+
<label for="test_checkbox_4">Test checkbox 4 (disabled checked)</label>
184177
</p>
185178
<p>
186-
<input id="test_radio_1" name="test_radio_group" type="radio">
179+
<input type="radio" id="test_radio_1" name="test_radio_group" checked>
187180
<label for="test_radio_1">Test radio 1</label>
188-
&nbsp;
189-
&nbsp;
190-
<input id="test_radio_2" name="test_radio_group" type="radio">
181+
<input type="radio" id="test_radio_2" name="test_radio_group">
191182
<label for="test_radio_2">Test radio 2</label>
192-
&nbsp;
193-
&nbsp;
194-
<input id="test_radio_3" name="test_radio_group" type="radio">
195-
<label for="test_radio_3">Test radio 3</label>
183+
<input type="radio" id="test_radio_3" name="test_radio_group" disabled>
184+
<label for="test_radio_3">Test radio 3 (disabled)</label>
196185
</p>
197186
<p>
198187
<label for="select_dd">Inline form elements</label><br>
@@ -239,8 +228,12 @@ notextile. <form action="#" method="post" enctype="multipart/form-data" onsubmit
239228
<input type="button" value="Hello" disabled>
240229
</p>
241230
<p>
242-
<label for="select_multi">Select multiple</label>
243-
<br>
231+
<label for="file_upload">File upload</label><br>
232+
<input type="file" id="file_upload" name="file_upload" accept="image/*" multiple>
233+
<input type="button" value="Upload">
234+
</p>
235+
<p>
236+
<label for="select_multi">Select multiple</label><br>
244237
<select id="select_multi" name="select_multi" multiple="multiple" size="10">
245238
<optgroup label="Group 1">
246239
<option value="1">Some text goes here</option>
@@ -260,81 +253,75 @@ notextile. <form action="#" method="post" enctype="multipart/form-data" onsubmit
260253
</select>
261254
</p>
262255
<p>
263-
<label for="textarea">Textarea</label>
264-
<br>
256+
<label for="textarea">Textarea</label><br>
265257
<textarea id="textarea" name="textarea" rows="5" placeholder="This is an example of HTML5 placeholder text."></textarea>
266258
</p>
267259
<p>
268-
<label for="url">URL</label>
269-
<br>
270-
<input id="url" name="url" type="url">
260+
<label for="color">Colour</label><br>
261+
<input type="color" id="color" name="color" value="#cc0000">
271262
</p>
272263
<p>
273-
<label for="email">Email</label>
274-
<br>
275-
<input id="email" name="email" type="email" placeholder="name@example.com">
264+
<label for="date">Date</label><br>
265+
<input id="date" name="date" type="date">
276266
</p>
277267
<p>
278-
<label for="text">Text</label>
279-
<br>
280-
<input id="text" name="text" type="text">
268+
<label for="datetime-local">Datetime local</label><br>
269+
<input id="datetime-local" name="datetime-local" type="datetime-local">
281270
</p>
282271
<p>
283-
<label for="text-data">Text with data list</label>
284-
<br>
285-
<input id="text-data" name="text-data" type="text" list="text-data-list">
286-
<datalist id="text-data-list">
287-
<option value="Afghanistan">
288-
<option value="Albania">
289-
<option value="Algeria">
290-
<option value="Andorra">
291-
<option value="Angola">
292-
</datalist>
272+
<label for="email">Email</label><br>
273+
<input id="email" name="email" type="email" placeholder="name@example.com">
293274
</p>
294275
<p>
295-
<label for="datetime-local">Datetime local</label>
296-
<br>
297-
<input id="datetime-local" name="datetime-local" type="datetime-local">
276+
<label for="month">Month</label><br>
277+
<input id="month" name="month" type="month">
298278
</p>
299279
<p>
300-
<label for="number">Number</label>
301-
<br>
280+
<label for="number">Number</label><br>
302281
<input id="number" name="number" type="number" min="0" max="999" step="1">
303282
</p>
304283
<p>
305-
<label for="tel">Tel (phone)</label>
306-
<br>
307-
<input id="tel" name="tel" type="tel">
284+
<label for="password">Password</label><br>
285+
<input id="password" name="password" type="password">
308286
</p>
309287
<p>
310-
<label for="datetime">Datetime</label>
311-
<br>
312-
<input id="datetime" name="datetime" type="datetime">
288+
<label for="range">Range</label><br>
289+
<input id="range" name="range" type="range">
313290
</p>
314291
<p>
315-
<label for="date">Date</label>
316-
<br>
317-
<input id="date" name="date" type="date">
292+
<label for="search">Search</label><br>
293+
<input id="search" name="search" type="search">
318294
</p>
319295
<p>
320-
<label for="month">Month</label>
321-
<br>
322-
<input id="month" name="month" type="month">
296+
<label for="tel">Tel (phone)</label><br>
297+
<input id="tel" name="tel" type="tel">
323298
</p>
324299
<p>
325-
<label for="search">Search</label>
326-
<br>
327-
<input id="search" name="search" type="search">
300+
<label for="text">Text <abbr class="required" title="Required">*</abbr></label><br>
301+
<input id="text" name="text" type="text">
328302
</p>
329303
<p>
330-
<label for="range">Range</label>
331-
<br>
332-
<input id="range" name="range" type="range">
304+
<label for="text-data">Text with data list</label><br>
305+
<input id="text-data" name="text-data" type="text" list="text-data-list">
306+
<datalist id="text-data-list">
307+
<option value="Afghanistan">
308+
<option value="Albania">
309+
<option value="Algeria">
310+
<option value="Andorra">
311+
<option value="Angola">
312+
</datalist>
313+
</p>
314+
<p>
315+
<label for="time">Time</label><br>
316+
<input id="time" name="time" type="time">
317+
</p>
318+
<p>
319+
<label for="url">URL</label><br>
320+
<input id="url" name="url" type="url">
333321
</p>
334322
<p>
335-
<label for="color">Colour</label>
336-
<br>
337-
<input id="color" name="color" type="color" value="#cc0000">
323+
<label for="url">Week</label><br>
324+
<input id="week" name="week" type="week">
338325
</p>
339326
<p>
340327
<input type="submit" value="Input - Submit">

src/scss/modules/_layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ body {
6969
.site-header {
7070
padding: 1em 0;
7171

72-
h1 {
72+
h2 {
7373
margin: 0;
7474
}
7575

src/scss/modules/_typography.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ h1 {
5050
}
5151

5252
h2 {
53-
margin: 0.8em 0; // 24px / 30px
54-
font-size: 1.875rem; // 30px / 16px
53+
margin: 0.75em 0; // 24px / 32px
54+
font-size: 2rem; // 32px / 16px
5555
letter-spacing: -0.25px;
56-
line-height: 1.2666667; // 38px / 30px
56+
line-height: 1.25; // 40px / 32px
5757
}
5858

5959
h3 {

src/templates/forms/article/default.txp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
<meta itemprop="mainEntityOfPage" content="<txp:permlink />">
33

44
<txp:if_individual_article>
5-
<h1 itemprop="headline">
6-
<txp:title />
7-
</h1>
5+
<h1 itemprop="headline"><txp:title /></h1>
86
<txp:else />
9-
<h1 itemprop="headline">
10-
<a href="<txp:permlink />" itemprop="url">
11-
<txp:title />
12-
</a>
7+
<h1 itemprop="headline"><a href="<txp:permlink />" itemprop="url"><txp:title /></a>
138
</h1>
149
</txp:if_individual_article>
1510

0 commit comments

Comments
 (0)