Commit 9ece7f0
committed
stylesheets: Refactor header imprint styles
Before this change, the containing `a` element was using a `display`
of `contents`, which caused the elements to be inaccessible via the
keyboard. Changing the `a` to be a simple flex item caused various
other layout issues that were corrected:
* `vertical-align` was set to `middle` for both the image and text,
allowing them to look mostly the same as before.
* Added `text-align: center` to ensure the elements are centred on
mobile-sized viewports in column layout mode.
* On mobile, the image remains a `block` element so that it causes a
hard break in the flex grid (otherwise, on larger mobile/tablet
screen sizes, it is undersized and the "Audio/Video" appears next to
the logo element). On desktop, they are no longer required to be
`block` elements.
* Additionally, the fixed width size of the logo is now set as the
`max-width`, and a `width` of `100%` is used. This allows the logo
to shrink on very small viewports, such as an iPhone 11 in 2x zoom
mode. The iPhone 11 @ 2x has an effective viewport of 305px, which
is smaller than the 315px width and caused the logo to be cut off
with the current rules.
Closes: ADA-6691 parent 91b70eb commit 9ece7f0
File tree
3 files changed
+20
-9
lines changed- app/assets/stylesheets/includes
3 files changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | | - | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | | - | |
72 | 66 | | |
73 | | - | |
74 | 67 | | |
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
80 | | - | |
81 | 73 | | |
82 | 74 | | |
83 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
0 commit comments