Skip to content

Commit 5a3db9b

Browse files
committed
Fix website rendering issues on Firefox with -webkit-line-clamp
1 parent 9c299fb commit 5a3db9b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

website/content/contribute/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The actual document (the artwork data and layers included in a saved `.graphite`
7171

7272
Every part of the Graphite stack works based on the concept of message passing. Messages are pushed to the front or back of a queue and each one is processed by the module's dispatcher in the order encountered. Only the dispatcher owns a mutable reference to update its module's state.
7373

74-
<details><summary><b>Addition technical details (click to show)</b></summary>
74+
<details><summary><b>Additional technical details (click to show)</b></summary>
7575

7676
A message is an enum variant of a certain message sub-type like `FrontendMessage`, `ToolMessage`, `DocumentsMessage` (plural), or `DocumentMessage` (singular). An example is `DocumentMessage::DeleteSelectedLayers` (which carries no data) or `DocumentMessage::RenameLayer(Vec<LayerId>, String)` (which carries a layer path and a string as data).
7777

website/sass/base.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
--font-size-link: 20px;
2828
--font-size-heading: 32px;
2929
--font-size-body: 16px;
30+
--page-edge-padding: 28px;
3031
}
3132

3233
@media screen and (max-width: 500px) {
@@ -45,6 +46,7 @@
4546
--font-size-link: 14px;
4647
--font-size-heading: 24px;
4748
--font-size-body: 16px;
49+
--page-edge-padding: 12px;
4850
}
4951
}
5052

@@ -165,6 +167,8 @@ ol + p {
165167
code {
166168
background: var(--color-fog);
167169
padding: 0 4px;
170+
word-break: break-all;
171+
hyphens: none;
168172
}
169173

170174
pre {
@@ -577,6 +581,10 @@ hr,
577581
box-sizing: border-box;
578582
overflow: auto;
579583
}
584+
585+
details {
586+
width: 100%;
587+
}
580588
}
581589

582590
}

website/templates/blog.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ <h2><a href="{{ page.permalink | safe }}">{{ page.title }}.</a></h2>
3232
</div>
3333
<span class="publication">By {{ page.extra.author }}. {{ page.date | date(format="%B %d, %Y", timezone="America/Los_Angeles") }}.</span>
3434
<div class="summary">
35-
{{ page.summary | safe }}
35+
<div>
36+
{{ page.summary | safe }}
37+
</div>
3638
</div>
3739
<div class="keep-reading">
3840
<a href="{{ page.permalink | safe }}" class="link arrow">Keep Reading</a>

website/templates/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ <h2><a href="{{ article.permalink | safe }}">{{ article.title }}.</a></h2>
316316
</div>
317317
<span class="publication">By {{ article.extra.author }}. {{ article.date | date(format="%B %d, %Y", timezone="America/Los_Angeles") }}.</span>
318318
<div class="summary">
319-
{{ article.summary | safe }}
319+
<div>
320+
{{ article.summary | safe }}
321+
</div>
320322
</div>
321323
<div class="keep-reading">
322324
<a href="{{ article.permalink | safe }}" class="link arrow">Keep Reading</a>

0 commit comments

Comments
 (0)