frontend.css.php
3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php if($settings->layout == 'grid') : // GRID ?>
.fl-node-<?php echo $id; ?> .fl-post-grid-post {
margin-bottom: <?php echo $settings->post_spacing; ?>px;
width: <?php echo $settings->post_width; ?>px;
}
.fl-node-<?php echo $id; ?> .fl-post-grid-sizer {
width: <?php echo $settings->post_width; ?>px;
}
@media screen and (max-width: <?php echo $settings->post_width + $settings->post_spacing; ?>px) {
.fl-node-<?php echo $id; ?> .fl-post-grid,
.fl-node-<?php echo $id; ?> .fl-post-grid-post,
.fl-node-<?php echo $id; ?> .fl-post-grid-sizer {
width: 100% !important;
}
}
<?php elseif( $settings->layout == 'gallery' ) : ?>
<?php
$text_bg_color = !empty( $settings->text_bg_color ) ? $settings->text_bg_color : 'ffffff';
$text_bg_opacity = !empty( $settings->text_bg_opacity ) ? $settings->text_bg_opacity : '100';
$text_bg = 'rgba('. implode( ',', FLBuilderColor::hex_to_rgb( $text_bg_color ) ) .','. ( $text_bg_opacity/100 ) .')';
?>
<?php if( !empty( $settings->text_color ) ) : ?>
.fl-node-<?php echo $id; ?> .fl-post-gallery-link,
.fl-node-<?php echo $id; ?> .fl-post-gallery-link .fl-post-gallery-title{
color: #<?php echo $settings->text_color ?>;
}
<?php endif; ?>
.fl-node-<?php echo $id; ?> .fl-post-gallery-text-wrap{
background-color: #<?php echo $text_bg_color; ?>;
background-color: <?php echo $text_bg; ?>;
}
<?php if( isset( $settings->has_icon ) && $settings->has_icon == 'yes' ): ?>
.fl-node-<?php echo $id ?> .fl-post-gallery .fl-gallery-icon{
<?php if( $settings->icon_position == 'above' ) : ?>
margin-bottom: 10px;
<?php else : ?>
margin-top: 10px;
<?php endif; ?>
}
<?php if( !empty( $settings->icon_size ) || !empty( $settings->icon_color ) ) : ?>
.fl-node-<?php echo $id ?> .fl-post-gallery .fl-gallery-icon i,
.fl-node-<?php echo $id ?> .fl-post-gallery .fl-gallery-icon i:before {
<?php if( !empty( $settings->icon_size ) ) : ?>
width: <?php echo $settings->icon_size ?>px;
height: <?php echo $settings->icon_size ?>px;
font-size: <?php echo $settings->icon_size ?>px;
<?php endif; ?>
<?php if( !empty( $settings->icon_color ) ) : ?>
color: #<?php echo $settings->icon_color ?>;
<?php endif; ?>
}
<?php endif; ?>
<?php endif; ?>
<?php if( isset( $settings->hover_transition ) && $settings->hover_transition != 'fade' ) : ?>
.fl-node-<?php echo $id ?> .fl-post-gallery-text{
<?php if( $settings->hover_transition == 'slide-up' ) : ?>
-webkit-transform: translate3d(-50%,-30%,0);
-moz-transform: translate3d(-50%,-30%,0);
-ms-transform: translate(-50%,-30%);
transform: translate3d(-50%,-30%,0);
<?php elseif( $settings->hover_transition == 'slide-down' ) : ?>
-webkit-transform: translate3d(-50%,-70%,0);
-moz-transform: translate3d(-50%,-70%,0);
-ms-transform: translate(-50%,-70%);
transform: translate3d(-50%,-70%,0);
<?php elseif( $settings->hover_transition == 'scale-up' ) : ?>
-webkit-transform: translate3d(-50%,-50%,0) scale(.7);
-moz-transform: translate3d(-50%,-50%,0) scale(.7);
-ms-transform: translate(-50%,-50%) scale(.7);
transform: translate3d(-50%,-50%,0) scale(.7);
<?php elseif( $settings->hover_transition == 'scale-down' ) : ?>
-webkit-transform: translate3d(-50%,-50%,0) scale(1.3);
-moz-transform: translate3d(-50%,-50%,0) scale(1.3);
-ms-transform: translate(-50%,-50%) scale(1.3);
transform: translate3d(-50%,-50%,0) scale(1.3);
<?php endif; ?>
}
<?php endif; ?>
<?php endif; ?>