| 1 |
.upk-alex-grid { |
| 2 |
position: relative; |
| 3 |
} |
| 4 |
.upk-alex-grid .upk-alex-wrap { |
| 5 |
display: grid; |
| 6 |
grid-template-columns: repeat(1, 1fr); |
| 7 |
} |
| 8 |
.upk-alex-grid .upk-item { |
| 9 |
position: relative; |
| 10 |
overflow: hidden; |
| 11 |
display: flex; |
| 12 |
} |
| 13 |
.upk-alex-grid .upk-item:hover .upk-button-wrap { |
| 14 |
margin-bottom: 0 !important; |
| 15 |
} |
| 16 |
.upk-alex-grid .upk-item:hover .upk-readmore { |
| 17 |
background: #fff; |
| 18 |
} |
| 19 |
.upk-alex-grid .upk-item:hover .upk-readmore .upk-readmore-icon:before { |
| 20 |
width: 50px; |
| 21 |
background: #2B2D42; |
| 22 |
} |
| 23 |
.upk-alex-grid .upk-item:hover .upk-readmore .upk-readmore-icon span:before, |
| 24 |
.upk-alex-grid .upk-item:hover .upk-readmore .upk-readmore-icon span:after { |
| 25 |
width: 10px; |
| 26 |
transition-delay: 0.3s; |
| 27 |
background: #2B2D42; |
| 28 |
opacity: 1; |
| 29 |
} |
| 30 |
.upk-alex-grid .upk-item:hover .upk-post-format a { |
| 31 |
transform: translateY(0); |
| 32 |
opacity: 1; |
| 33 |
} |
| 34 |
.upk-alex-grid .upk-meta { |
| 35 |
position: absolute; |
| 36 |
top: 15px; |
| 37 |
left: 15px; |
| 38 |
display: flex; |
| 39 |
align-items: center; |
| 40 |
} |
| 41 |
.upk-alex-grid .upk-meta .upk-author-img { |
| 42 |
display: inline-flex; |
| 43 |
} |
| 44 |
.upk-alex-grid .upk-meta .upk-author-img img { |
| 45 |
border-radius: 80px; |
| 46 |
margin-right: 10px; |
| 47 |
} |
| 48 |
.upk-alex-grid .upk-meta .upk-author-name a { |
| 49 |
color: #dcdcdc; |
| 50 |
font-size: 14px; |
| 51 |
text-transform: capitalize; |
| 52 |
font-weight: 600; |
| 53 |
} |
| 54 |
.upk-alex-grid .upk-meta .upk-reading-time, |
| 55 |
.upk-alex-grid .upk-meta .upk-date, |
| 56 |
.upk-alex-grid .upk-meta .upk-post-time { |
| 57 |
color: #dcdcdc; |
| 58 |
font-size: 12px; |
| 59 |
font-weight: 500; |
| 60 |
} |
| 61 |
.upk-alex-grid .upk-meta .upk-post-time { |
| 62 |
margin-left: 5px; |
| 63 |
display: inline-flex; |
| 64 |
align-items: center; |
| 65 |
line-height: 1; |
| 66 |
} |
| 67 |
.upk-alex-grid .upk-meta .upk-post-time i { |
| 68 |
display: inline-flex; |
| 69 |
align-items: center; |
| 70 |
margin-right: 2px; |
| 71 |
line-height: 1; |
| 72 |
} |
| 73 |
.upk-alex-grid .upk-meta .upk-date-reading-wrap > div { |
| 74 |
position: relative; |
| 75 |
display: inline-flex; |
| 76 |
align-items: center; |
| 77 |
} |
| 78 |
.upk-alex-grid .upk-meta .upk-date-reading-wrap > div:before { |
| 79 |
content: attr(data-separator); |
| 80 |
margin: 0 5px; |
| 81 |
} |
| 82 |
.upk-alex-grid .upk-meta .upk-date-reading-wrap > div:nth-child(1)::before { |
| 83 |
display: none; |
| 84 |
} |
| 85 |
.upk-alex-grid .upk-image-wrap { |
| 86 |
width: 100%; |
| 87 |
} |
| 88 |
.upk-alex-grid .upk-image-wrap .upk-img { |
| 89 |
position: relative; |
| 90 |
width: 100%; |
| 91 |
height: 100%; |
| 92 |
object-fit: cover; |
| 93 |
} |
| 94 |
.upk-alex-grid .upk-content-wrap { |
| 95 |
position: absolute; |
| 96 |
overflow: hidden; |
| 97 |
width: 100%; |
| 98 |
bottom: 0; |
| 99 |
height: auto; |
| 100 |
background: rgba(43, 45, 66, 0.3); |
| 101 |
} |
| 102 |
.upk-alex-grid .upk-content { |
| 103 |
padding: 20px; |
| 104 |
} |
| 105 |
.upk-alex-grid .upk-title { |
| 106 |
font-size: 18px; |
| 107 |
font-weight: 600; |
| 108 |
display: inline; |
| 109 |
margin: 0; |
| 110 |
} |
| 111 |
.upk-alex-grid .upk-title a { |
| 112 |
color: #fff; |
| 113 |
} |
| 114 |
.upk-alex-grid .upk-category { |
| 115 |
margin-bottom: 5px; |
| 116 |
} |
| 117 |
.upk-alex-grid .upk-category a { |
| 118 |
font-size: 14px; |
| 119 |
font-weight: 500; |
| 120 |
color: rgba(255, 255, 255, 0.5); |
| 121 |
} |
| 122 |
.upk-alex-grid .upk-button-wrap { |
| 123 |
margin-bottom: -50px; |
| 124 |
transition: margin-bottom 0.5s cubic-bezier(0.25, 0.85, 0.35, 0.98); |
| 125 |
} |
| 126 |
.upk-alex-grid .upk-readmore { |
| 127 |
display: flex; |
| 128 |
position: relative; |
| 129 |
padding: 25px 20px; |
| 130 |
transition: all 0.3s ease; |
| 131 |
} |
| 132 |
.upk-alex-grid .upk-readmore .upk-readmore-icon { |
| 133 |
position: relative; |
| 134 |
} |
| 135 |
.upk-alex-grid .upk-readmore .upk-readmore-icon:before { |
| 136 |
content: ""; |
| 137 |
position: absolute; |
| 138 |
left: 0; |
| 139 |
height: 2px; |
| 140 |
width: 15px; |
| 141 |
background: rgba(255, 255, 255, 0.5); |
| 142 |
transition: all 0.5s ease; |
| 143 |
} |
| 144 |
.upk-alex-grid .upk-readmore .upk-readmore-icon span:before, |
| 145 |
.upk-alex-grid .upk-readmore .upk-readmore-icon span:after { |
| 146 |
content: ""; |
| 147 |
position: absolute; |
| 148 |
left: 40px; |
| 149 |
width: 10px; |
| 150 |
height: 2px; |
| 151 |
background: transparent; |
| 152 |
border-radius: 10px; |
| 153 |
transition: all 0.5s ease; |
| 154 |
opacity: 0; |
| 155 |
} |
| 156 |
.upk-alex-grid .upk-readmore .upk-readmore-icon span:after { |
| 157 |
transform: rotate(-45deg); |
| 158 |
bottom: -6px; |
| 159 |
} |
| 160 |
.upk-alex-grid .upk-readmore .upk-readmore-icon span:before { |
| 161 |
transform: rotate(45deg); |
| 162 |
top: -4px; |
| 163 |
} |
| 164 |
.upk-alex-grid .upk-content-left .upk-content-wrap { |
| 165 |
left: 0; |
| 166 |
} |
| 167 |
.upk-alex-grid .upk-content-right .upk-content-wrap { |
| 168 |
right: 0; |
| 169 |
} |
| 170 |
.upk-alex-grid .upk-post-format { |
| 171 |
position: absolute; |
| 172 |
right: 0; |
| 173 |
top: 0; |
| 174 |
margin: 15px; |
| 175 |
} |
| 176 |
.upk-alex-grid .upk-post-format a { |
| 177 |
padding: 16px 16px; |
| 178 |
display: inline-flex; |
| 179 |
color: #fff; |
| 180 |
font-size: 16px; |
| 181 |
transform: translateY(15px); |
| 182 |
opacity: 0; |
| 183 |
transition: all 0.5s cubic-bezier(0.25, 0.85, 0.35, 0.98); |
| 184 |
} |
| 185 |
|
| 186 |
.upk-global-link-yes .upk-alex-grid .upk-item:hover { |
| 187 |
cursor: pointer; |
| 188 |
} |
| 189 |
|
| 190 |
@media (min-width: 768px) { |
| 191 |
.upk-alex-grid .upk-style-1 { |
| 192 |
grid-template-columns: repeat(6, 1fr); |
| 193 |
} |
| 194 |
.upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+1), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+2), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+3), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+4), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+5) { |
| 195 |
grid-column: span 3/auto; |
| 196 |
} |
| 197 |
.upk-alex-grid .upk-style-2 { |
| 198 |
grid-template-columns: repeat(2, 1fr); |
| 199 |
} |
| 200 |
.upk-alex-grid .upk-style-2 .upk-content-wrap { |
| 201 |
width: 70%; |
| 202 |
} |
| 203 |
.upk-alex-grid .upk-style-3 { |
| 204 |
grid-template-columns: repeat(6, 1fr); |
| 205 |
} |
| 206 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) { |
| 207 |
grid-column: span 3/auto; |
| 208 |
grid-row: span 2; |
| 209 |
} |
| 210 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) .upk-meta { |
| 211 |
top: 30px; |
| 212 |
left: 30px; |
| 213 |
} |
| 214 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) .upk-content { |
| 215 |
padding: 30px; |
| 216 |
} |
| 217 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) .upk-title { |
| 218 |
font-size: 24px; |
| 219 |
} |
| 220 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) .upk-category a { |
| 221 |
font-size: 18px; |
| 222 |
} |
| 223 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) .upk-button-wrap { |
| 224 |
margin-bottom: -60px; |
| 225 |
} |
| 226 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) .upk-readmore { |
| 227 |
padding: 30px; |
| 228 |
} |
| 229 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2):hover .upk-button-wrap { |
| 230 |
margin-bottom: 0 !important; |
| 231 |
} |
| 232 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+1), .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+3), .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+4), .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+5) { |
| 233 |
grid-column: span 3/auto; |
| 234 |
} |
| 235 |
.upk-alex-grid .upk-style-3 .upk-item .upk-content-wrap { |
| 236 |
width: 80%; |
| 237 |
} |
| 238 |
} |
| 239 |
@media (min-width: 1024px) { |
| 240 |
.upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+1), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+2) { |
| 241 |
grid-column: span 3/auto; |
| 242 |
} |
| 243 |
.upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+3), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+4), .upk-alex-grid .upk-style-1 .upk-item:nth-child(5n+5) { |
| 244 |
grid-column: span 2/auto; |
| 245 |
} |
| 246 |
.upk-alex-grid .upk-style-1 .upk-item:nth-child(n+1) .upk-content-wrap { |
| 247 |
width: 70%; |
| 248 |
} |
| 249 |
.upk-alex-grid .upk-style-2 { |
| 250 |
grid-template-columns: repeat(3, 1fr); |
| 251 |
} |
| 252 |
.upk-alex-grid .upk-style-3 .upk-content-wrap { |
| 253 |
width: 70%; |
| 254 |
} |
| 255 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+2) { |
| 256 |
grid-column: span 2/auto; |
| 257 |
grid-row: span 2; |
| 258 |
} |
| 259 |
.upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+1), .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+3), .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+4), .upk-alex-grid .upk-style-3 .upk-item:nth-child(5n+5) { |
| 260 |
grid-column: span 2/auto; |
| 261 |
} |
| 262 |
.upk-alex-grid .upk-style-3 .upk-content-wrap { |
| 263 |
width: 70%; |
| 264 |
} |
| 265 |
} |
| 266 |
@media (min-width: 1440px) { |
| 267 |
.upk-alex-grid .upk-style-1 .upk-item:nth-child(1) .upk-content-wrap, .upk-alex-grid .upk-style-1 .upk-item:nth-child(2) .upk-content-wrap { |
| 268 |
width: 50%; |
| 269 |
} |
| 270 |
} |