Skip to content

Commit 7de9a4a

Browse files
authored
Merge pull request #548 from cmbuckley/reader-mode-fix
Reader mode fix
2 parents d8fffc5 + 71ff7cc commit 7de9a4a

7 files changed

Lines changed: 27 additions & 24 deletions

File tree

_data/fingerprints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ icons: 715715b9
33
maths: 5414f235
44
scripts: 5220ed99
55
search: b74b56ab
6-
style: 7179d42c
6+
style: 5addde04

_includes/v.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- unless site.suppress_fingerprints -%}
22
?v=
33

4-
{%- assign fingerprints = 'icons: 715715b9,maths: 5414f235,scripts: 5220ed99,search: b74b56ab,style: 7179d42c' | split: ',' -%}
4+
{%- assign fingerprints = 'icons: 715715b9,maths: 5414f235,scripts: 5220ed99,search: b74b56ab,style: 5addde04' | split: ',' -%}
55
{%- assign found = false -%}
66

77
{%- if jekyll.environment == 'production' -%}

_sass/_custom.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@ mark {
2424
color: inherit;
2525
}
2626

27+
// screen reader only - totally clipped
2728
.sr-only {
28-
@extend %sr-only;
29+
@extend %flow-hidden;
30+
height: 1px;
31+
clip-path: inset(50%);
2932
}
3033

34+
// reading mode - comply with Safari extraction logic
3135
.rm-only {
32-
@extend %rm-only;
36+
@extend %flow-hidden;
3337
left: 0.1px;
38+
height: 1.1px;
3439
}
3540

3641
.search-results:empty {

_sass/breakpoints/_mobileup.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ blockquote {
253253
padding: 0;
254254

255255
dt {
256-
@extend %sr-only;
256+
@extend .sr-only;
257257
}
258258

259259
dd {

_sass/partials/_mixins.scss

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
// Screen reader only content
2-
%sr-only {
3-
@extend %rm-only;
4-
height: 1px;
5-
clip-path: inset(50%);
6-
}
7-
8-
// Reading mode only content
9-
%rm-only {
1+
// Content that's visually hidden but should still be part
2+
// of the flow - used for screen readers / reader mode
3+
%flow-hidden {
104
position: absolute;
115
margin: -1px 0 0 -1px;
126
padding: 0;

files/2007/08/catenary-wheel.svg

Lines changed: 6 additions & 6 deletions
Loading

files/2007/08/catenary.svg

Lines changed: 8 additions & 4 deletions
Loading

0 commit comments

Comments
 (0)