| 1 |
// taxonomy................................... |
| 2 |
|
| 3 |
.sps-taxonomy-title-wrapper { |
| 4 |
width: 100%; |
| 5 |
} |
| 6 |
|
| 7 |
.sps-taxonomy-title-wrapper i { |
| 8 |
font-size: 15px; |
| 9 |
} |
| 10 |
|
| 11 |
.sp-smart-post-card .sp-smart-post-card-image img { |
| 12 |
/* max-width: 100%; */ |
| 13 |
width: 100%; |
| 14 |
transition: transform 0.31s ease-in-out; |
| 15 |
height: auto; |
| 16 |
} |
| 17 |
|
| 18 |
/* Feature Image Zoom in */ |
| 19 |
.sp-smart-post-card .sp-smart-post-card-image.img-zoom-in img { |
| 20 |
transition: all 0.3s ease-in-out; |
| 21 |
} |
| 22 |
|
| 23 |
.sp-smart-post-card .sp-smart-post-card-image:hover.img-zoom-in img, |
| 24 |
.sp-smart-post-background-layout |
| 25 |
.sp-smart-post-card:hover |
| 26 |
.sp-smart-post-card-image.img-zoom-in |
| 27 |
img { |
| 28 |
transform: scale(1.1); |
| 29 |
} |
| 30 |
|
| 31 |
/* Feature Image Zoom out */ |
| 32 |
.sp-smart-post-card .sp-smart-post-card-image.img-zoom-out img, |
| 33 |
.sp-smart-post-background-layout |
| 34 |
.sp-smart-post-card:hover |
| 35 |
.sp-smart-post-card-image.img-zoom-out |
| 36 |
img { |
| 37 |
transform: scale(1.1); |
| 38 |
transition: all 0.3s ease-in-out; |
| 39 |
} |
| 40 |
|
| 41 |
.sp-smart-post-card .sp-smart-post-card-image:hover.img-zoom-out img, |
| 42 |
.sp-smart-post-background-layout |
| 43 |
.sp-smart-post-card:hover |
| 44 |
.sp-smart-post-card-image.img-zoom-out |
| 45 |
img { |
| 46 |
transform: scale(1); |
| 47 |
} |
| 48 |
|
| 49 |
/* Feature Image slide left */ |
| 50 |
.sp-smart-post-card .sp-smart-post-card-image.img-slide-left img, |
| 51 |
.sp-smart-post-background-layout |
| 52 |
.sp-smart-post-card |
| 53 |
.sp-smart-post-card-image.img-slide-left |
| 54 |
img { |
| 55 |
transform: scale(1.1) translateX(3%); |
| 56 |
transition: all 0.3s ease-in-out; |
| 57 |
} |
| 58 |
|
| 59 |
.sp-smart-post-card .sp-smart-post-card-image:hover.img-slide-left img, |
| 60 |
.sp-smart-post-background-layout |
| 61 |
.sp-smart-post-card:hover |
| 62 |
.sp-smart-post-card-image.img-slide-left |
| 63 |
img { |
| 64 |
transform: scale(1.1) translateX(-3%); |
| 65 |
} |
| 66 |
|
| 67 |
/* Feature Image slide right */ |
| 68 |
.sp-smart-post-card .sp-smart-post-card-image.img-slide-right img, |
| 69 |
.sp-smart-post-background-layout |
| 70 |
.sp-smart-post-card |
| 71 |
.sp-smart-post-card-image.img-slide-right |
| 72 |
img { |
| 73 |
transform: scale(1.1) translateX(-3%); |
| 74 |
transition: all 0.3s ease-in-out; |
| 75 |
} |
| 76 |
|
| 77 |
.sp-smart-post-card .sp-smart-post-card-image:hover.img-slide-right img, |
| 78 |
.sp-smart-post-background-layout |
| 79 |
.sp-smart-post-card:hover |
| 80 |
.sp-smart-post-card-image.img-slide-right |
| 81 |
img { |
| 82 |
transform: scale(1.1) translateX(3%); |
| 83 |
} |
| 84 |
|
| 85 |
/* Image style rotate left */ |
| 86 |
.sp-smart-post-card .sp-smart-post-card-image.img-opacity img, |
| 87 |
.sp-smart-post-background-layout |
| 88 |
.sp-smart-post-card |
| 89 |
.sp-smart-post-card-image.img-opacity |
| 90 |
img, |
| 91 |
.sp-smart-post-card .sp-smart-post-card-image.img-rotate-left img, |
| 92 |
.sp-smart-post-card .sp-smart-post-card-image.img-rotate-right img, |
| 93 |
.sp-smart-post-background-layout |
| 94 |
.sp-smart-post-card |
| 95 |
.sp-smart-post-card-image.img-rotate-left |
| 96 |
img, |
| 97 |
.sp-smart-post-background-layout |
| 98 |
.sp-smart-post-card |
| 99 |
.sp-smart-post-card-image.img-rotate-right |
| 100 |
img { |
| 101 |
transform: scale(1); |
| 102 |
transition: all 0.3s ease-in-out; |
| 103 |
} |
| 104 |
|
| 105 |
.sp-smart-post-card .sp-smart-post-card-image:hover.img-rotate-left img, |
| 106 |
.sp-smart-post-background-layout |
| 107 |
.sp-smart-post-card:hover |
| 108 |
.sp-smart-post-card-image.img-rotate-left |
| 109 |
img { |
| 110 |
transform: scale(1.2) rotate(5deg); |
| 111 |
} |
| 112 |
|
| 113 |
.sp-smart-post-card .sp-smart-post-card-image:hover.img-rotate-right img, |
| 114 |
.sp-smart-post-background-layout |
| 115 |
.sp-smart-post-card:hover |
| 116 |
.sp-smart-post-card-image.img-rotate-right |
| 117 |
img { |
| 118 |
transform: scale(1.2) rotate(-5deg); |
| 119 |
} |
| 120 |
|
| 121 |
.sp-smart-post-taxonomy-name-layout-three { |
| 122 |
position: relative; |
| 123 |
overflow: hidden; |
| 124 |
transition: background-image 0.3s ease-in-out; |
| 125 |
background-size: cover !important; |
| 126 |
background-position: center !important; |
| 127 |
background-repeat: no-repeat !important; |
| 128 |
background-image: var(--bg-url); |
| 129 |
} |
| 130 |
|
| 131 |
.sp-smart-post-taxonomy-name-layout-three::after { |
| 132 |
content: ""; |
| 133 |
position: absolute; |
| 134 |
inset: 0; |
| 135 |
background-image: var(--bg-url); |
| 136 |
background-size: cover; |
| 137 |
background-position: center; |
| 138 |
background-repeat: no-repeat; |
| 139 |
|
| 140 |
transition: |
| 141 |
opacity 0.3s ease-in-out, |
| 142 |
transform 0.3s ease-in-out; |
| 143 |
z-index: 0; |
| 144 |
// transform: scale(1); |
| 145 |
transform: var(--initialValue); |
| 146 |
opacity: 1; |
| 147 |
} |
| 148 |
|
| 149 |
/* Hover: show new image and zoom */ |
| 150 |
.sp-smart-post-taxonomy-name-layout-three:hover::after { |
| 151 |
background: var(--hover-bg-url); |
| 152 |
background-size: cover; |
| 153 |
background-position: center; |
| 154 |
background-repeat: no-repeat; |
| 155 |
transform: var(--transformValue); |
| 156 |
opacity: 1; |
| 157 |
} |
| 158 |
|
| 159 |
.sp-taxonomy-overlay-three::before { |
| 160 |
content: ""; |
| 161 |
position: absolute; |
| 162 |
inset: 0; |
| 163 |
z-index: 1; |
| 164 |
background: var(--overlay-color); |
| 165 |
} |
| 166 |
|
| 167 |
.sp-taxonomy-hover-overlay-three::before { |
| 168 |
transition-property: background; |
| 169 |
transition-duration: 1s; |
| 170 |
} |
| 171 |
|
| 172 |
.sp-taxonomy-hover-overlay-three:hover::before { |
| 173 |
content: ""; |
| 174 |
position: absolute; |
| 175 |
inset: 0; |
| 176 |
z-index: 1; |
| 177 |
background: var(--overlay-hover-color); |
| 178 |
} |
| 179 |
|
| 180 |
.taxonomy-image-overlay-three { |
| 181 |
width: 100%; |
| 182 |
height: 100%; |
| 183 |
position: absolute; |
| 184 |
top: 0; |
| 185 |
left: 0; |
| 186 |
z-index: 1; |
| 187 |
} |
| 188 |
|
| 189 |
.sps-taxonomy-terms-link { |
| 190 |
text-decoration: none; |
| 191 |
color: inherit; |
| 192 |
display: contents; |
| 193 |
} |
| 194 |
|
| 195 |
.sp-smart-post-taxonomy-info-overlay { |
| 196 |
position: relative; |
| 197 |
overflow: hidden; |
| 198 |
transition: background 0.3s ease-in-out; |
| 199 |
background-size: cover; |
| 200 |
background-position: center; |
| 201 |
background-repeat: no-repeat; |
| 202 |
} |
| 203 |
|
| 204 |
.sp-smart-post-taxonomy-info-overlay::after { |
| 205 |
content: ""; |
| 206 |
position: absolute; |
| 207 |
inset: 0; |
| 208 |
background: var(--bg-url); |
| 209 |
|
| 210 |
background-size: cover; |
| 211 |
background-position: center; |
| 212 |
background-repeat: no-repeat; |
| 213 |
|
| 214 |
transition: |
| 215 |
transform 0.3s ease-in-out, |
| 216 |
opacity 0.3s ease-in-out; |
| 217 |
z-index: 0; |
| 218 |
|
| 219 |
transform: var(--initialValue); |
| 220 |
} |
| 221 |
|
| 222 |
/* Hover: show new image and zoom */ |
| 223 |
.sp-smart-post-taxonomy-info-overlay:hover::after { |
| 224 |
background-image: var(--hover-bg-url); |
| 225 |
transform: var(--transformValue); |
| 226 |
} |
| 227 |
|
| 228 |
.sp-taxonomy-overlay::before { |
| 229 |
content: ""; |
| 230 |
position: absolute; |
| 231 |
inset: 0; |
| 232 |
z-index: 1; |
| 233 |
background: var(--overlay-color, transparent); |
| 234 |
background-size: cover; |
| 235 |
background-position: center; |
| 236 |
transition: all 0.3s ease-in-out; |
| 237 |
} |
| 238 |
|
| 239 |
.sp-taxonomy-overlay:hover::before { |
| 240 |
background: var(--overlay-hover-color, transparent); |
| 241 |
} |
| 242 |
|
| 243 |
.sp-taxonomy-hover-overlay::before { |
| 244 |
transition-property: background; |
| 245 |
transition-duration: 1s; |
| 246 |
} |
| 247 |
|
| 248 |
.sp-taxonomy-hover-overlay:hover::before { |
| 249 |
content: ""; |
| 250 |
position: absolute; |
| 251 |
inset: 0; |
| 252 |
z-index: 1; |
| 253 |
background: var(--overlay-hover-color); |
| 254 |
} |
| 255 |
|
| 256 |
.taxonomy-image-overlay { |
| 257 |
width: 100%; |
| 258 |
height: 100%; |
| 259 |
position: absolute; |
| 260 |
top: 0; |
| 261 |
left: 0; |
| 262 |
z-index: 1; |
| 263 |
} |
| 264 |
|
| 265 |
.sp-taxonomy-overlay:not(.sp-taxonomy-hover-overlay) { |
| 266 |
&::after { |
| 267 |
opacity: 1; |
| 268 |
transition: opacity 0.3s ease-in-out; |
| 269 |
} |
| 270 |
|
| 271 |
&:hover::after { |
| 272 |
opacity: 0; |
| 273 |
} |
| 274 |
} |
| 275 |
|
| 276 |
.sp-taxonomy-hover-overlay:not(.sp-taxonomy-overlay) { |
| 277 |
&::after { |
| 278 |
opacity: 0; |
| 279 |
transition: opacity 0.3s ease-in-out; |
| 280 |
} |
| 281 |
|
| 282 |
&:hover::after { |
| 283 |
opacity: 1; |
| 284 |
} |
| 285 |
} |
| 286 |
|
| 287 |
.sps-taxonomy-title-name { |
| 288 |
font-size: 18px; |
| 289 |
line-height: 1.25; |
| 290 |
font-weight: 600; |
| 291 |
text-transform: capitalize; |
| 292 |
text-decoration: none; |
| 293 |
} |
| 294 |
.taxonomy-excerpt { |
| 295 |
font-size: 14px; |
| 296 |
line-height: 1.2; |
| 297 |
font-weight: 400; |
| 298 |
font-style: normal; |
| 299 |
} |
| 300 |
.sp-smart-post-taxonomy-count span { |
| 301 |
font-size: 18px; |
| 302 |
font-weight: 600; |
| 303 |
line-height: 1.2; |
| 304 |
} |
| 305 |
|