Commit d8ab476
committed
Prototype impact header different image size
- modify the impact header on desktop to remove the specific sizing of the image to be square
- the best way to do this without breaking any existing images seems to be to remove the height specifications and rely on the image dimensions
- to allow for this we remove the vertical centering of the text on the left, and apply top padding instead
- this allows us to refactor the caption markup so it sits beneath the image (previously this had to be separate because the expanded details element would cause the text on the left to move with the changing height of the overall component)1 parent b9e2a90 commit d8ab476
5 files changed
Lines changed: 47 additions & 50 deletions
File tree
- app
- assets
- images/flexible-pages
- stylesheets/components
- views/components
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 8 | | |
28 | 9 | | |
29 | 10 | | |
| |||
33 | 14 | | |
34 | 15 | | |
35 | 16 | | |
36 | | - | |
37 | | - | |
| 17 | + | |
38 | 18 | | |
39 | 19 | | |
40 | 20 | | |
| |||
47 | 27 | | |
48 | 28 | | |
49 | 29 | | |
50 | | - | |
51 | 30 | | |
52 | 31 | | |
53 | 32 | | |
54 | 33 | | |
55 | 34 | | |
56 | 35 | | |
57 | 36 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 37 | | |
62 | 38 | | |
63 | 39 | | |
| |||
66 | 42 | | |
67 | 43 | | |
68 | 44 | | |
69 | | - | |
| 45 | + | |
70 | 46 | | |
71 | 47 | | |
72 | 48 | | |
73 | 49 | | |
74 | 50 | | |
75 | 51 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 52 | | |
82 | 53 | | |
83 | 54 | | |
84 | 55 | | |
85 | | - | |
86 | 56 | | |
87 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
88 | 64 | | |
89 | 65 | | |
90 | 66 | | |
| |||
94 | 70 | | |
95 | 71 | | |
96 | 72 | | |
97 | | - | |
98 | 73 | | |
99 | 74 | | |
100 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
44 | 59 | | |
45 | 60 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
| 70 | + | |
63 | 71 | | |
64 | | - | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
0 commit comments