-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmirror-fixes.css
More file actions
51 lines (44 loc) · 1.41 KB
/
Copy pathmirror-fixes.css
File metadata and controls
51 lines (44 loc) · 1.41 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
/* mirror-fixes.css
Patches layout issues in the static mirror that were handled at runtime
by the Gatsby/React client in the original site. */
/* Gatsby image wrappers use inline-block + a fixed width set by React JS.
Without the JS, we need to make them block-level and fill their container.
The inner spacer span uses padding-bottom:% for aspect ratio — this only
works correctly when the parent is display:block (not inline-block). */
.gatsby-image-wrapper,
.inline-gatsby-image-wrapper {
display: block !important;
width: 100% !important;
max-width: 100% !important;
}
/* The aspect-ratio spacer span — must also be block so padding-bottom %
computes against the parent block width, not inline content width. */
.gatsby-image-wrapper > span,
.inline-gatsby-image-wrapper > span {
display: block !important;
width: 100% !important;
}
/* Gallery containers — ensure they don't overflow the post body */
.wp-block-gallery,
.blocks-gallery-grid {
width: 100%;
box-sizing: border-box;
}
.blocks-gallery-item figure {
width: 100%;
overflow: hidden;
}
/* General safety net for all images in post and page bodies */
.post-body img,
.page-body img {
max-width: 100%;
height: auto;
}
/* Ensure body fills full viewport height so backdrop images cover
the whole screen even when page content is shorter than the viewport. */
html, body {
min-height: 100vh;
}
.page-menu li {
margin: 0 10px;
}