File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
templates/docs/examples/patterns/image/container/aspect-ratio Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vanilla-framework" ,
3
- "version" : " 4.18.0 " ,
3
+ "version" : " 4.18.1 " ,
4
4
"author" : {
5
5
"email" : " webteam@canonical.com" ,
6
6
"name" : " Canonical Webteam"
Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ $aspect-ratios: (
84
84
justify-content : center ;
85
85
text-align : center ;
86
86
87
+ // If there is a child element that is not the image, don't let it affect the layout
88
+ & > * :not (.p-image-container__image ) {
89
+ display : contents ;
90
+ }
91
+
87
92
& .is-highlighted {
88
93
background : $colors--theme--background-alt ;
89
94
}
Original file line number Diff line number Diff line change 4
4
{% block standalone_css %}patterns_image{% endblock %}
5
5
6
6
{% block content %}
7
- < div class ="p-image-container--cinematic -on-large p-image-container--16-9-on-medium p-image-container--2-3- on-small is-highlighted ">
8
- < img class ="p-image-container__image "
9
- src ="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short .png " width ="300 " alt =" ">
7
+ < div class ="p-image-container--square -on-small p-image-container--16-9-on-medium p-image-container--cinematic- on-large is-highlighted ">
8
+ < div class ="lazyloaded " >
9
+ < img src ="https://assets.ubuntu.com/v1/f74cb1d3-streaming%20data .png " alt ="" width ="852 " height =" 1279 " loading =" lazy " class =" p-image-container__image ">
10
10
</ div >
11
+ </ div >
11
12
{% endblock %}
You can’t perform that action at this time.
0 commit comments