PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / blocks / post-timeline-one / style.scss

style.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/blocks/post-timeline-one/style.scss

282 lines 7.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * timeline one and two block css.
3 * frontend and editor css
4 */
5
6 $primary-color: #4e4f52;
7
8 /* The circles on the timeline */
9 @mixin circle {
10 content: '';
11 position: absolute;
12 width: 20px;
13 height: 20px;
14 z-index: 1;
15 box-sizing: border-box;
16 }
17
18 /* timeline arrows*/
19 @mixin arrow {
20 content: " ";
21 position: absolute;
22 height: 0;
23 width: 0;
24 z-index: 1;
25 border: medium solid $primary-color;
26 }
27
28 @mixin right-arrow {
29 @include arrow;
30 }
31
32 @mixin left-arrow {
33 @include arrow;
34 }
35
36 .post-timeline-one,
37 .post-timeline-two {
38 .sp-smart-post-timeline-container {
39 display: grid;
40 position: relative;
41
42 /* The vertical timeline line */
43 &::after {
44 content: '';
45 position: absolute;
46 width: 6px;
47 top: 0;
48 left: 50%;
49 height: 320px;
50 border-radius: 4px;
51 background: var(--smart-post-secondary);
52 }
53
54 &::before {
55 content: '';
56 position: absolute;
57 width: 6px;
58 top: 0;
59 bottom: 0;
60 left: 50%;
61 border-radius: 4px;
62 background: #E0E0E0;
63 }
64
65 &.timeline-one-layout-one {
66 grid-template-columns: repeat(2, 1fr);
67 align-items: start;
68
69 .sp-smart-post-timeline-one-post-container {
70 padding: 0px 40px;
71 row-gap: 10px;
72 position: relative;
73 width: 100%;
74
75 &:nth-of-type(odd) {
76 padding-left: 0;
77
78 .sp-smart-indicator-arrow{
79 @include right-arrow;
80 top: 22px;
81 right: 25px;
82 border-color: transparent transparent transparent #E0E0E0;
83 border-width: 15px 0 15px 15px;
84 transition: .3s;
85
86 &.active{
87 border-color: transparent transparent transparent var(--smart-post-secondary) ;
88 }
89 }
90
91 .sp-smart-indicator-circle{
92 @include circle;
93 right: -13px;
94 top: 25px;
95 background-color: #fff;
96 border: 4px solid #E0E0E0;
97 border-radius: 50px;
98
99 &.active{
100 border-color: var(--smart-post-secondary);
101 }
102 }
103 }
104
105 &:nth-of-type(even) {
106 padding-right: 0;
107
108 .sp-smart-indicator-arrow{
109 @include left-arrow;
110 bottom: 20px;
111 left: 25px;
112 border-color: transparent #E0E0E0 transparent transparent;
113 border-width: 15px 15px 15px 0;
114 transition: .3s;
115
116 &.active{
117 border-color: transparent var(--smart-post-secondary) transparent transparent;
118 }
119 }
120
121 .sp-smart-indicator-circle{
122 @include circle;
123 bottom: 25px;
124 left: -7px;
125 }
126 }
127 }
128 }
129 &.timeline-one-layout-two,
130 &.timeline-one-layout-four {
131 .sp-smart-post-timeline-one-post-container {
132 padding: 0px 40px;
133 row-gap: 10px;
134 position: relative;
135 width: 100%;
136
137 &:nth-of-type(odd) {
138 padding-left: 0;
139 .sp-smart-indicator-arrow{
140 @include right-arrow;
141 top: 22px;
142 right: 25px;
143 transition: .3s
144 }
145 .sp-smart-indicator-circle{
146 @include circle;
147 right: -13px;
148 top: 25px;
149 }
150 }
151
152 &:nth-of-type(even) {
153 padding-right: 0;
154 .sp-smart-indicator-arrow{
155 @include left-arrow;
156 top: 26px;
157 left: 25px;
158 transition: .3s
159 }
160
161 .sp-smart-indicator-circle{
162 @include circle;
163 top: 30px;
164 left: -7px;
165 }
166 }
167 }
168 }
169
170 &.timeline-one-layout-five {
171 &::after,
172 &::before{
173 right: -4px;
174 left: unset;
175 }
176 }
177 &.timeline-one-layout-six {
178 &::after,
179 &::before{
180 left: 0;
181 }
182 }
183
184 &.timeline-one-layout-five {
185 grid-template-columns: 1fr;
186
187 .sp-smart-post-timeline-one-post-container {
188 position: relative;
189 padding: 0px 40px 0 0;
190 row-gap: 10px;
191
192 .sp-smart-indicator-arrow{
193 @include right-arrow;
194 top: 22px;
195 right: 25px;
196 transition: .3s
197 }
198
199 .sp-smart-indicator-circle{
200 @include circle;
201 right: -11px;
202 top: 25px;
203 }
204 }
205 }
206
207 &.timeline-one-layout-six {
208 grid-template-columns: 1fr;
209
210 .sp-smart-post-timeline-one-post-container {
211 position: relative;
212 left: 0%;
213 padding: 0px 0px 0px 40px;
214 row-gap: 10px;
215 .sp-smart-indicator-arrow{
216 @include left-arrow;
217 top: 22px;
218 left: 25px;
219 transition: .3s
220 }
221
222 .sp-smart-indicator-circle{
223 @include circle;
224 top: 25px;
225 left: -7px;
226 }
227 }
228 }
229
230 &.timeline-one-layout-two {
231 grid-template-columns: 1fr;
232
233 .sp-smart-post-timeline-one-post-container {
234 width: 50%;
235
236 &:nth-of-type(even) {
237 left: 50%;
238 }
239 }
240 }
241
242 &.timeline-one-layout-four {
243 grid-template-columns: repeat(2, 1fr);
244
245 .sp-smart-post-timeline-one-post-container {
246 &:nth-of-type(even) {
247 margin-top: 60px;
248 }
249 }
250 }
251 .image-overlay {
252 &.overlay-custom {
253 z-index: 1;
254 }
255 }
256 }
257 }
258 .post-timeline-one .sp-smart-post-card-image {
259 a {
260 width: 100%;
261 height: 100%;
262 }
263 }
264 .sp-smart-post-timeline-one-post-container::after,
265 .sp-smart-post-timeline-one-post-container::before {
266 transition: 0.3s;
267 }
268
269 @media only screen and (max-width: 767px) {
270 .post-timeline-one .sp-smart-post-timeline-container, .post-timeline-two .sp-smart-post-timeline-container {
271 grid-template-columns: 1fr !important;
272 .sp-smart-indicator {
273 display: none;
274 }
275 }
276 .post-timeline-one .sp-smart-post-timeline-container::after, .post-timeline-one .sp-smart-post-timeline-container::before, .post-timeline-two .sp-smart-post-timeline-container::after, .post-timeline-two .sp-smart-post-timeline-container::before {
277 display: none;
278 }
279 .post-timeline-one .sp-smart-post-timeline-container .sp-smart-post-timeline-one-post-container, .post-timeline-two .sp-smart-post-timeline-container .sp-smart-post-timeline-one-post-container {
280 padding: 0 !important;
281 }
282 }