PluginProbe
Meow Gallery / trunk
Meow Gallery vtrunk
5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 All 156 releases
meow-gallery / classes / builders / masonry.css.php

masonry.css.php in Meow Gallery trunk, at classes/builders/masonry.css.php

33 lines 650 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <style>
2
3 .mgl-masonry {
4 display: <?php echo ($isPreview ? 'block' : 'none') ?>;
5 }
6
7 <?php echo esc_attr( $class_id ) ?> {
8 column-count: <?php echo (int)$columns ?>;
9 margin: <?php echo -1 * ( (int)$gutter / 2 ) ?>px;
10 }
11
12 <?php echo esc_attr( $class_id ) ?> .mgl-item {
13 padding: <?php echo (int)$gutter / 2 ?>px;
14 }
15
16 <?php echo esc_attr( $class_id ) ?> figcaption {
17 padding: <?php echo (int)$gutter / 2 ?>px;
18 }
19
20 @media screen and (max-width: 800px) {
21 <?php echo esc_attr( $class_id ) ?> {
22 column-count: 2;
23 }
24 }
25
26 @media screen and (max-width: 600px) {
27 <?php echo esc_attr( $class_id ) ?> {
28 column-count: 1;
29 }
30 }
31
32 </style>
33