Skip to content

Commit dda452b

Browse files
committed
fix: broken margin on mobile contact page
- allow fingerprints to break every 4 characters by replacing   with regular spaces, enabling normal wrapping - replace inline code blocks with fenced code blocks for horizontal scrolling - create class for adding padding to standalone code block
1 parent 5ee87a3 commit dda452b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

_includes/dev-keys.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
{% else %}{% comment %}fallback to English{% endcomment %}
99
{% assign _includes_dev_keys-name = "Name" %}
1010
{% assign _includes_dev_keys-fingerprint = "Fingerprint" %}
11-
{% capture _includes_dev_keys-import %}You can import a key by running the following command with that individual's fingerprint: `gpg{{site.strings.gpg_keyserver}} --recv-keys "<fingerprint>"` Ensure that you put quotes around fingerprints containing spaces.{% endcapture %}
11+
{% capture _includes_dev_keys-import %}You can import a key by running the following command with that individual's fingerprint:
12+
13+
<pre class="highlight code-pad"><code>gpg{{ site.strings.gpg_keyserver }} --recv-keys "&lt;fingerprint&gt;"</code></pre>
14+
15+
Ensure that you put quotes around fingerprints containing spaces.{% endcapture %}
1216
{% endcase %}
1317
{% endcapture %}
1418

@@ -18,4 +22,4 @@
1822
| Michael Ford | <code>{% include fingerprint-split.html hex="E777299FC265DD04793070EB944D35F9AC3DB76A" %}</code> |
1923
| Ava Chow | <code>{% include fingerprint-split.html hex="152812300785C96444D3334D17565732E08E5E41" %}</code> |
2024

21-
{{_includes_dev_keys-import}}
25+
{{_includes_dev_keys-import}}

_includes/fingerprint-split.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{include.hex | slice: 0, 4 }}&nbsp;{{include.hex | slice: 4, 4 }}&nbsp;{{include.hex | slice: 8, 4 }}&nbsp;{{include.hex | slice: 12, 4 }}&nbsp;{{include.hex | slice: 16, 4 }}&nbsp;&nbsp;{{include.hex | slice: 20, 4 }}&nbsp;{{include.hex | slice: 24, 4 }}&nbsp;{{include.hex | slice: 28, 4 }}&nbsp;{{include.hex | slice: 32, 4 }}&nbsp;{{include.hex | slice: 36, 4 }}
1+
{{include.hex | slice: 0, 4 }} {{include.hex | slice: 4, 4 }} {{include.hex | slice: 8, 4 }} {{include.hex | slice: 12, 4 }} {{include.hex | slice: 16, 4 }} {{include.hex | slice: 20, 4 }} {{include.hex | slice: 24, 4 }} {{include.hex | slice: 28, 4 }} {{include.hex | slice: 32, 4 }} {{include.hex | slice: 36, 4 }}

_sass/typography.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,6 @@ pre {
155155
line-height: 1.5;
156156
overflow-x: auto;
157157
}
158+
.code-pad {
159+
padding: 0 .5rem;
160+
}

0 commit comments

Comments
 (0)