Normalize padding in image grid
- Remove outside padding, vertical and horizontal - Remove artificial padding with <br> in content/image.tpl
This commit is contained in:
parent
ed805d1af2
commit
2fa9d49632
|
@ -687,25 +687,22 @@ audio {
|
|||
.imagegrid-row {
|
||||
display: -ms-flexbox; /* IE10 */
|
||||
display: flex;
|
||||
-ms-flex-wrap: wrap; /* IE10 */
|
||||
flex-wrap: wrap;
|
||||
padding: 0 4px;
|
||||
box-sizing: border-box;
|
||||
margin-top: 1em;
|
||||
column-gap: 5px;
|
||||
}
|
||||
|
||||
/* Create four equal columns that sits next to each other */
|
||||
.imagegrid-column {
|
||||
-ms-flex: 50%; /* IE10 */
|
||||
flex: 50%;
|
||||
max-width: 50%;
|
||||
padding: 0 4px;
|
||||
box-sizing: border-box;
|
||||
display: -ms-flexbox; /* IE10 */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
row-gap: 5px;
|
||||
}
|
||||
|
||||
.imagegrid-column img {
|
||||
margin-top: 8px;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
-ms-flex: 50%; /* IE10 */
|
||||
flex: 50%;
|
||||
}
|
||||
/**
|
||||
* Image grid settings END
|
||||
|
|
|
@ -3,4 +3,3 @@
|
|||
{{else}}
|
||||
<img src="{{$image.src}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}">
|
||||
{{/if}}
|
||||
<br>
|
||||
|
|
Loading…
Reference in a new issue