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