Skip to content

Commit b0a3835

Browse files
committed
feat: use monospaced
1 parent 9246c68 commit b0a3835

File tree

5 files changed

+25
-16
lines changed

5 files changed

+25
-16
lines changed

src/base.html.jinja2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
<title>{% block title %}blog.mtib.dev{% endblock %}</title>
88
<link rel="preconnect" href="https://fonts.googleapis.com">
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10-
<link href="https://fonts.googleapis.com/css2?family=Sono:wght@500&display=swap" rel="stylesheet">
11-
<link href="https://fonts.googleapis.com/css2?family=Sono:wght,MONO@500,0&display=swap" rel="stylesheet">
12-
<link href="https://fonts.googleapis.com/css2?family=Sono:wght,MONO@700,0&display=swap" rel="stylesheet">
10+
<link href="https://fonts.googleapis.com/css2?family=Sono:wght,MONO@500,0;500,1;700,0;700,1&display=swap"
11+
rel="stylesheet">
1312
<link rel="stylesheet" href="/main.css">
1413
<link rel="icon" href="/assets/m.png">
1514
<meta name="application-name" content="blog.mtib.dev">

src/index.html.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% block content %}
33
{% for part in index.parts %}
44
<div class="item">
5-
<h2 class="sono-mono">{{part.title}}</h2>
5+
<h2>{{part.title}}</h2>
66
{% if part.description %}
77
<p>{{part.description}}</p>
88
{% endif %}

src/main.css.jinja2

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ h6 {
6161

6262
.sono-mono {
6363
font-family: "Sono", monospace;
64-
font-optical-sizing: auto;
6564
font-weight: 500;
66-
font-style: normal;
6765
font-variation-settings:
6866
"MONO" 1;
6967
}
@@ -73,8 +71,6 @@ a {
7371
font-weight: 700;
7472
color: #f4f;
7573
font-family: "Sono", monospace;
76-
font-optical-sizing: auto;
77-
font-style: normal;
7874
font-variation-settings:
7975
"MONO" 1;
8076
}
@@ -89,10 +85,18 @@ a:visited {
8985

9086
h1 {
9187
font-size: 4rem;
88+
font-weight: 700;
9289
}
9390

9491
h2 {
9592
font-size: 2.5rem;
93+
font-weight: 700;
94+
}
95+
96+
h3 {
97+
font-size: 1.7rem;
98+
line-height: 1.2;
99+
font-weight: 700;
96100
}
97101

98102
ul {

src/posts/text_manipulation.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<textarea name="input" id="input"></textarea>
1+
<textarea name="input" id="input" class="sono-mono"></textarea>
22

33
<select name="algo" id="algo">
44
<option value="codeQuote">Code quote</option>
55
</select>
66

77
<code id="outputWrap">
8-
<pre id="output">
8+
<pre id="output" class="sono-mono">
99
</pre>
1010
</code>
1111

1212
<input type="button" value="Copy" id="copyBtn">
13-
<span id="feedback"></span>
13+
<span id="feedback" class="sono-mono"></span>
1414

1515
<script>
1616
const input = document.getElementById('input');
@@ -43,7 +43,7 @@
4343

4444
function getAlgo() {
4545
const algoName = document.getElementById('algo').value;
46-
const algo = algos[algoName]
46+
const algo = algos[algoName];
4747

4848
if (algo) {
4949
return algo;
@@ -83,6 +83,7 @@
8383
margin-bottom: 1em;
8484
resize: vertical;
8585
}
86+
8687
#outputWrap {
8788
display: block;
8889
width: 100%;
@@ -92,10 +93,12 @@
9293
padding: 1em 1em;
9394
margin-top: 1em;
9495
}
96+
9597
#output {
9698
text-wrap: pretty;
9799
overflow-wrap: break-word;
98100
}
101+
99102
#copyBtn {
100103
display: inline-block;
101104
margin-top: 1em;
@@ -106,9 +109,11 @@
106109
border-radius: .5em;
107110
cursor: pointer;
108111
}
112+
109113
#copyBtn:hover {
110114
background-color: #fff;
111115
}
116+
112117
#algo {
113118
background-color: #fdf;
114119
border: none;
@@ -117,7 +122,8 @@
117122
border-radius: .5em;
118123
cursor: pointer;
119124
}
125+
120126
#algo:hover {
121127
background-color: #fff;
122128
}
123-
</style>
129+
</style>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% extends "src/base.html.jinja2" %}
22
{% block heading %}
3-
<h1>blog.mtib.dev</h1>
3+
<h1 class="sono-mono">blog.mtib.dev</h1>
44
<a href="/index.html">back</a>
55
{% endblock heading %}
66
{% block content %}
77
<div class="item">
8-
<h2>Text Manipulation</h2>
8+
<h2 class="sono-mono">Text Manipulation</h2>
99
{% include "text_manipulation.html" %}
1010
</div>
11-
{% endblock content %}
11+
{% endblock content %}

0 commit comments

Comments
 (0)