Skip to content

Commit c3c3e08

Browse files
update
1 parent c3173e1 commit c3c3e08

File tree

4 files changed

+66
-1
lines changed

4 files changed

+66
-1
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.wcf--filterable-gallery svg {
2+
width: 1em;
3+
height: 1em;
4+
}
5+
.wcf--filterable-gallery .gallery-filter {
6+
display: flex;
7+
flex-wrap: wrap;
8+
gap: 10px;
9+
margin-bottom: 20px;
10+
}
11+
.wcf--filterable-gallery .gallery-filter li {
12+
padding: 6px 10px;
13+
cursor: pointer;
14+
transition: all 0.3s;
15+
}
16+
.wcf--filterable-gallery .gallery-filter li:hover, .wcf--filterable-gallery .gallery-filter li.mixitup-control-active {
17+
color: var(--primary);
18+
}
19+
.wcf--filterable-gallery .gallery-wrapper {
20+
display: grid;
21+
grid-auto-flow: dense;
22+
gap: 15px;
23+
}
24+
.wcf--filterable-gallery .gallery-item {
25+
position: relative;
26+
overflow: hidden;
27+
border-radius: 10px;
28+
}
29+
.wcf--filterable-gallery .gallery-item .play__btn {
30+
position: absolute;
31+
left: 50%;
32+
top: 50%;
33+
font-size: 50px;
34+
transform: translate(-50%, -50%);
35+
}
36+
.wcf--filterable-gallery img {
37+
width: 100%;
38+
height: 100%;
39+
-o-object-fit: cover;
40+
object-fit: cover;
41+
}
42+
.wcf--filterable-gallery.style-masonry .gallery-wrapper {
43+
grid-auto-rows: 250px;
44+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
45+
}
46+
@media (min-width: 768px) {
47+
.wcf--filterable-gallery.style-masonry .gallery-wrapper .horizontal {
48+
grid-column: span 2;
49+
}
50+
.wcf--filterable-gallery.style-masonry .gallery-wrapper .vertical {
51+
grid-row: span 2;
52+
}
53+
.wcf--filterable-gallery.style-masonry .gallery-wrapper .big {
54+
grid-column: span 2;
55+
grid-row: span 2;
56+
}
57+
}

assets/css/widgets/filterable-gallery.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

class-plugin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,13 @@ public static function get_widget_style()
620620
'version' => false,
621621
'media' => 'all',
622622
],
623+
'filterable-gallery' => [
624+
'handler' => 'wcf--filterable-gallery',
625+
'src' => 'widgets/filterable-gallery.min.css',
626+
'dep' => [],
627+
'version' => false,
628+
'media' => 'all',
629+
],
623630
];
624631
}
625632

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@
13591359
'cTab' => 'all'
13601360
],
13611361
'is_upcoming' => false,
1362-
'is_pro' => true,
1362+
'is_pro' => false,
13631363
'is_extension' => false,
13641364
'icon' => "wcf-icon-Filterable-Gallery",
13651365
'demo_url' => 'https://animation-addons.com/widgets/aae-filterable-gallery',

0 commit comments

Comments
 (0)