-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeyboard-layouts-sample.html
More file actions
74 lines (73 loc) · 1.81 KB
/
keyboard-layouts-sample.html
File metadata and controls
74 lines (73 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample characters from Duncan’s Keyboard Layouts</title>
<meta name="description" content="This page exists for the screenshot accompanying the Keyboard Layouts item in Duncan Ritchie’s portfolio" />
<!-- See https://www.duncanritchie.co.uk/code#velut-projects -->
<link rel="stylesheet" href="https://www.duncanritchie.co.uk/css/main.css">
<link rel="stylesheet" href="https://www.duncanritchie.co.uk/css/no-js.css">
</head>
<body>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
font-family: Consolas, monospace;
--font-size: max(1rem, min(20vw, 9vh));
font-size: var(--font-size);
}
#grid {
display: grid;
grid-template-columns: repeat(5, auto);
grid-template-rows: repeat(5, auto);
margin-bottom: -0.4em;
}
#grid > :nth-child(1) {
grid-column: 1 / 2;
grid-row: 1 / 2;
line-height: 0.75em;
font-size: 1.3333em;
}
#grid > :nth-child(2) {
grid-column: 2 / 3;
grid-row: 2 / 3;
line-height: 0.75em;
font-size: 1.1667em;
}
#grid > :nth-child(3) {
grid-column: 3 / 4;
grid-row: 3 / 4;
}
#grid > :nth-child(4) {
grid-column: 4 / 5;
grid-row: 4 / 5;
line-height: 0.75em;
font-size: 1.1667em;
}
#grid > :nth-child(5) {
grid-column: 5 / 6;
grid-row: 5 / 6;
line-height: 0.75em;
font-size: 1.3333em;
}
</style>
<div id="grid">
<div>“</div>
<div>‘</div>
<div>
ĀāĂă<br />
ĒēĔĕ<br />
ĪīĬĭ<br />
ŌōŎŏ<br />
ŪūŬŭ<br />
Ȳȳ
</div>
<div>’</div>
<div>”</div>
</div>
</body>
</html>