| 1 |
.sp-smart-show-pro.grid-four-container { |
| 2 |
|
| 3 |
&.grid-four-layout-one, |
| 4 |
&.grid-four-layout-two, |
| 5 |
&.grid-four-layout-three, |
| 6 |
&.grid-four-layout-four, |
| 7 |
&.grid-four-layout-five { |
| 8 |
.sp-smart-post-grid-four-static-contents { |
| 9 |
grid-template-columns: repeat(4, 1fr); |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
&.grid-four-layout-one { |
| 14 |
.sp-smart-post-grid-four-static-contents { |
| 15 |
div:nth-child(2) { |
| 16 |
grid-column: 2/4; |
| 17 |
grid-row: 1/3; |
| 18 |
} |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
&.grid-four-layout-two { |
| 23 |
.sp-smart-post-grid-four-static-contents { |
| 24 |
div:nth-child(1) { |
| 25 |
grid-column: 1/3; |
| 26 |
grid-row: 1/3; |
| 27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
&.grid-four-layout-three { |
| 32 |
.sp-smart-post-grid-four-static-contents { |
| 33 |
div:nth-child(3) { |
| 34 |
grid-column: 3/5; |
| 35 |
grid-row: 1/3; |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
&.grid-four-layout-four { |
| 41 |
.sp-smart-post-grid-four-static-contents { |
| 42 |
div:nth-child(1) { |
| 43 |
grid-column: 1/3; |
| 44 |
grid-row: 1/3; |
| 45 |
} |
| 46 |
|
| 47 |
div:nth-child(2) { |
| 48 |
grid-column: 3/5; |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
&.grid-four-layout-five { |
| 54 |
.sp-smart-post-grid-four-static-contents { |
| 55 |
div:nth-child(1) { |
| 56 |
grid-column: 1/3; |
| 57 |
grid-row: 1/3; |
| 58 |
} |
| 59 |
|
| 60 |
div:nth-child(4) { |
| 61 |
grid-column: 3/5; |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
&.grid-four-layout-six { |
| 67 |
.sp-smart-post-grid-four-static-contents { |
| 68 |
grid-template-columns: repeat(3, 1fr); |
| 69 |
|
| 70 |
div:nth-child(1) { |
| 71 |
grid-column: 1/3; |
| 72 |
grid-row: 1/3; |
| 73 |
} |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
.sp-smart-post-grid-four-static-contents { |
| 78 |
display: grid; |
| 79 |
min-height: 500px; |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
@media screen and (max-width: 768px) { |
| 84 |
.grid-four-container .sp-smart-post-grid-four-static-contents { |
| 85 |
height: auto !important; |
| 86 |
} |
| 87 |
|
| 88 |
.grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(1), |
| 89 |
.grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(3), |
| 90 |
.grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(4), |
| 91 |
.grid-four-container .sp-smart-post-grid-four-static-contents div:nth-child(2) { |
| 92 |
grid-column: auto !important; |
| 93 |
grid-row: auto !important; |
| 94 |
} |
| 95 |
} |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
// // title animate effect.................................................. |
| 101 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title { |
| 102 |
position: relative; |
| 103 |
display: inline-block; |
| 104 |
} |
| 105 |
|
| 106 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:after { |
| 107 |
content: ""; |
| 108 |
position: absolute; |
| 109 |
transition: width 0.6s ease; |
| 110 |
} |
| 111 |
|
| 112 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title::before { |
| 113 |
content: ""; |
| 114 |
position: absolute; |
| 115 |
transition: width 0.6s ease; |
| 116 |
} |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title .line { |
| 121 |
position: relative; |
| 122 |
display: inline-block; |
| 123 |
padding-bottom: 2px; |
| 124 |
} |
| 125 |
|
| 126 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title .line::after { |
| 127 |
content: ''; |
| 128 |
position: absolute; |
| 129 |
bottom: 0; |
| 130 |
left: 0; |
| 131 |
width: 100%; |
| 132 |
// height: 2px; |
| 133 |
// background: linear-gradient(90deg, #ff416c, #ff4b2b); |
| 134 |
// transform-origin: left; |
| 135 |
transform: scaleX(0); |
| 136 |
transition: transform 0.4s ease; |
| 137 |
z-index: -1; |
| 138 |
} |
| 139 |
|
| 140 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line::after { |
| 141 |
transform: scaleX(1); |
| 142 |
} |
| 143 |
|
| 144 |
/* Using :nth-of-type to target only .line elements */ |
| 145 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after { |
| 146 |
transition-delay: 0s; |
| 147 |
} |
| 148 |
|
| 149 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(2)::after { |
| 150 |
transition-delay: 0.2s; |
| 151 |
} |
| 152 |
|
| 153 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(3)::after { |
| 154 |
transition-delay: 0.4s; |
| 155 |
} |
| 156 |
|
| 157 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(4)::after { |
| 158 |
transition-delay: 0.6s; |
| 159 |
} |
| 160 |
|
| 161 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(5)::after { |
| 162 |
transition-delay: 0.8s; |
| 163 |
} |
| 164 |
|
| 165 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(6)::after { |
| 166 |
transition-delay: 1s; |
| 167 |
} |
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(7)::after { |
| 172 |
transition-delay: 1.2s; |
| 173 |
} |
| 174 |
|
| 175 |
|
| 176 |
.sp-smart-post-grid-four .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(8)::after { |
| 177 |
transition-delay: 1.4s; |
| 178 |
} |