| 1 |
.upk-post-category { |
| 2 |
display: grid; |
| 3 |
} |
| 4 |
.upk-post-category .upk-category-item { |
| 5 |
position: relative; |
| 6 |
background: #2B2D42; |
| 7 |
display: flex; |
| 8 |
flex-direction: column; |
| 9 |
justify-content: center; |
| 10 |
padding: 20px; |
| 11 |
} |
| 12 |
.upk-post-category .upk-category-item .upk-category-image { |
| 13 |
width: 100%; |
| 14 |
height: 100%; |
| 15 |
} |
| 16 |
.upk-post-category .upk-category-item .upk-category-name { |
| 17 |
font-weight: 600; |
| 18 |
color: #fff; |
| 19 |
transition: all 0.3s ease; |
| 20 |
} |
| 21 |
.upk-post-category .upk-category-item .upk-category-text { |
| 22 |
color: #dcdee2; |
| 23 |
font-size: 15px; |
| 24 |
padding-top: 10px; |
| 25 |
transition: all 0.3s ease; |
| 26 |
} |
| 27 |
.upk-post-category .upk-category-item .upk-category-count { |
| 28 |
font-size: 13px; |
| 29 |
width: 16px; |
| 30 |
height: 16px; |
| 31 |
display: flex; |
| 32 |
align-items: center; |
| 33 |
justify-content: center; |
| 34 |
color: #fff; |
| 35 |
background: rgba(255, 255, 255, 0.3); |
| 36 |
border-radius: 2px; |
| 37 |
transition: all 0.3s ease; |
| 38 |
position: absolute; |
| 39 |
right: 0; |
| 40 |
top: 0; |
| 41 |
padding: 16px; |
| 42 |
} |
| 43 |
.upk-post-category .upk-category-item .upk-category-btn { |
| 44 |
background-color: rgba(255, 254, 254, 0.2392156863); |
| 45 |
text-align: center; |
| 46 |
backdrop-filter: blur(5px); |
| 47 |
text-transform: capitalize; |
| 48 |
font-weight: 700; |
| 49 |
color: #fff; |
| 50 |
font-size: 14px; |
| 51 |
transition: all 0.3s cubic-bezier(0.14, 0.57, 0.36, 1); |
| 52 |
padding: 14px; |
| 53 |
border-radius: 10px; |
| 54 |
} |
| 55 |
.upk-post-category .upk-category-item .upk-category-btn:hover { |
| 56 |
background-color: rgba(0, 0, 0, 0.0705882353); |
| 57 |
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1882352941) inset; |
| 58 |
} |
| 59 |
.upk-post-category .upk-category-item .upk-content { |
| 60 |
display: inline-flex; |
| 61 |
flex-direction: column; |
| 62 |
position: relative; |
| 63 |
} |
| 64 |
.upk-post-category.upk-category-view-all .upk-content { |
| 65 |
flex: 1; |
| 66 |
} |
| 67 |
.upk-post-category.upk-category-view-all .upk-content + .upk-category-btn { |
| 68 |
margin-top: 30px; |
| 69 |
} |
| 70 |
.upk-post-category.upk-category-style-1 .upk-category-item { |
| 71 |
border-radius: 4px; |
| 72 |
transition: all 0.3s ease; |
| 73 |
} |
| 74 |
.upk-post-category.upk-category-style-1 .upk-category-item:hover { |
| 75 |
opacity: 0.8; |
| 76 |
} |
| 77 |
.upk-post-category.upk-category-style-1 .upk-category-name { |
| 78 |
font-size: 16px; |
| 79 |
} |
| 80 |
.upk-post-category.upk-category-style-1 .upk-category-image { |
| 81 |
margin-bottom: 30px; |
| 82 |
} |
| 83 |
.upk-post-category.upk-category-style-2 .upk-category-item { |
| 84 |
border-radius: 15px; |
| 85 |
min-height: 100px; |
| 86 |
overflow: hidden; |
| 87 |
} |
| 88 |
.upk-post-category.upk-category-style-2 .upk-category-image { |
| 89 |
position: absolute; |
| 90 |
margin: 0; |
| 91 |
top: 0; |
| 92 |
left: 0; |
| 93 |
} |
| 94 |
.upk-post-category.upk-category-style-2 .upk-category-image::before { |
| 95 |
position: absolute; |
| 96 |
content: ""; |
| 97 |
width: 100%; |
| 98 |
height: 100%; |
| 99 |
background-color: rgba(0, 0, 0, 0.45); |
| 100 |
} |
| 101 |
.upk-post-category.upk-category-style-2 .upk-category-image img { |
| 102 |
width: 100%; |
| 103 |
height: 100%; |
| 104 |
object-fit: cover; |
| 105 |
} |
| 106 |
.upk-post-category.upk-category-style-2 .upk-content { |
| 107 |
z-index: 1; |
| 108 |
} |
| 109 |
.upk-post-category.upk-category-style-2 .upk-category-name { |
| 110 |
font-size: 20px; |
| 111 |
} |
| 112 |
.upk-post-category.upk-category-style-2 .upk-category-count { |
| 113 |
border-radius: 8px; |
| 114 |
} |