Fixing image sizes and ratio
This commit is contained in:
parent
7e9fde87bc
commit
1f78be0f98
|
|
@ -10,7 +10,7 @@
|
|||
<?php
|
||||
$gallery_attributes = [
|
||||
'columns' => 2,
|
||||
'size' => 'medium',
|
||||
'size' => 'gallery',
|
||||
'link' => 'file',
|
||||
];
|
||||
if ( array_key_exists('print', $_GET)) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
|
||||
.gallery figure img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
|
||||
.gallery figure img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<?php
|
||||
$gallery_attributes = [
|
||||
'columns' => 2,
|
||||
'size' => 'medium',
|
||||
'size' => 'gallery',
|
||||
'link' => 'file',
|
||||
];
|
||||
if ( array_key_exists('print', $_GET)) {
|
||||
|
|
|
|||
|
|
@ -10,3 +10,8 @@
|
|||
// color: #fff;
|
||||
// padding: 2px;
|
||||
}
|
||||
|
||||
.gallery figure img {
|
||||
object-fit: cover;
|
||||
aspect-ratio: 16/9;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue