Subversion Repositories wpShopGermany4

Rev

Rev 8280 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8280 Rev 8282
Line 53... Line 53...
53
                    ?>" class="productgroup <?php
53
                    ?>" class="productgroup <?php
54
			
54
			
55
						echo (($oProductgroup->hasActiveDiscount())?'active_discount':'');
55
						echo (($oProductgroup->hasActiveDiscount())?'active_discount':'');
56
			
56
			
57
					?>">
57
					?>">
58
 
58
					
59
                    <div class="title"><?php echo $oProductgroup->getLabel(); ?></div>
59
                    <div class="title"><?php echo $oProductgroup->getLabel(); ?></div>
60
 
60
 
61
                    <?php echo \wp_get_attachment_image($oProductgroup->getImage(), [462, 462], false, [
61
                    <?php echo \wp_get_attachment_image($oProductgroup->getImage(), [462, 462], false, [
62
                        'class' => 'bg'
62
                        'class' => 'bg'
63
                    ]); ?>
63
                    ]); ?>
-
 
64
					
-
 
65
					<?php if ($oProductgroup->hasActiveDiscount()) { ?>
-
 
66
						<div class="badge_overlay"><div class="badge">SALE</div></div>
-
 
67
					<?php } ?>
64
 
68
 
65
                </a>
69
                </a>
66
 
70
 
67
            <?php } ?>
71
            <?php } ?>
68
 
72
 
Line 74... Line 78...
74
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup { grid-column:span 2; padding-top:100%; text-decoration:none; position:relative; overflow:hidden; transition:all 0.3s ease; overflow:hidden width:100%; }
78
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup { grid-column:span 2; padding-top:100%; text-decoration:none; position:relative; overflow:hidden; transition:all 0.3s ease; overflow:hidden width:100%; }
75
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup  .bg { position:absolute; left:0; top:0; object-position:50% 50%; background-color:#DEDEDE; width:100%; height:100%; object-fit:cover; z-index:1; }
79
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup  .bg { position:absolute; left:0; top:0; object-position:50% 50%; background-color:#DEDEDE; width:100%; height:100%; object-fit:cover; z-index:1; }
76
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup .title { z-index:2; border-radius:2px; transition:all 0.3s ease; position:absolute; left:1rem; top:1rem; background-color:#000000; color:#FFFFFF; padding:0 0.5rem; }
80
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup .title { z-index:2; border-radius:2px; transition:all 0.3s ease; position:absolute; left:1rem; top:1rem; background-color:#000000; color:#FFFFFF; padding:0 0.5rem; }
77
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup:hover .title { background-color:#FFFFFF; color:#000000; }
81
            .wpsg_mod_productgroup_layout2.productgroups > .productgroup:hover .title { background-color:#FFFFFF; color:#000000; }
78
 
82
 
-
 
83
			.wpsg_mod_productgroup_layout2 .productgroup.active_discount { position:relative; }
-
 
84
			.wpsg_mod_productgroup_layout2 .productgroup.active_discount .badge_overlay { position:absolute; left:0; top:0; width:100%; height:100%; overflow:hidden; pointer-events:none; z-index:100; }
-
 
85
			.wpsg_mod_productgroup_layout2 .productgroup.active_discount .badge_overlay .badge {
-
 
86
				margin:0; color:white; padding:3px 10px; font-size:1rem; text-align:center;
-
 
87
				background:#ed1b24; position:absolute; top:0; right:0; transform:translateX(30%) translateY(0%) rotate(45deg); transform-origin:top left;
-
 
88
			}
-
 
89
			.wpsg_mod_productgroup_layout2 .productgroup.active_discount .badge_overlay .badge:before {
-
 
90
				content:''; position:absolute; top:0; right:100%; margin:0 -1px; width:100%; height:100%; background:inherit; min-width:55px;
-
 
91
			}
-
 
92
			.wpsg_mod_productgroup_layout2 .productgroup.active_discount .badge_overlay .badge:after {
-
 
93
				content:''; position:absolute; top:0; left:100%; margin:0 -1px; width:100%; height:100%; background:inherit; min-width:55px;
-
 
94
            }
-
 
95
			
79
            @media screen and (min-width:768px) {
96
            @media screen and (min-width:768px) {
80
 
97
 
81
                .wpsg_mod_productgroup_layout2.productgroups > .productgroup { padding-top:initial; grid-column:initial; }
98
                .wpsg_mod_productgroup_layout2.productgroups > .productgroup { padding-top:initial; grid-column:initial; }
82
                .wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 1),
99
                .wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 1),
83
                .wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 5) { grid-row:span 2; padding-top:100%; }
100
                .wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 5) { grid-row:span 2; padding-top:100%; }