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-three / 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-three/style.scss

136 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // timeline three
2 .post-timeline-three {
3 position: relative;
4 &.timeline-three-layout-two,
5 &.timeline-three-layout-one {
6 .sp-smart-post-timeline-three-container {
7 display: flex;
8 justify-content: space-around;
9 position: relative;
10 z-index: 1;
11
12 .rfm-initial-child-container{
13 align-items: flex-start;
14 }
15
16 /* horizontal line */
17 .sp-smart-post-timeline-border {
18 content: '';
19 position: absolute;
20 top: 11px;
21 left: 0;
22 right: 0;
23 height: 6px;
24 width: 100%;
25 margin: auto;
26 background: #333333;
27 border-radius: 4px;
28 }
29
30 .sp-smart-post-timeline-three-post-container {
31 position: relative;
32 padding-top: 60px;
33
34 &::before {
35 content: '';
36 position: absolute;
37 height: 0;
38 width: 0;
39 z-index: 1;
40 top: 45px;
41 left: 50%;
42 transform: translateX(-50%)
43 }
44
45 /* The circles on the timeline */
46 &::after {
47 content: '';
48 position: absolute;
49 width: 20px;
50 height: 20px;
51 left: 50%;
52 top: 4px;
53 z-index: 1;
54 border-radius: 50%;
55 background-color: white;
56 transform: translateX(-50%);
57 box-sizing: border-box;
58 }
59
60 .orientation_six,
61 .orientation_seven,
62 .orientation_eight {
63 &.sp-smart-post-card {
64 background-color: transparent;
65 }
66 }
67 }
68 }
69 }
70 &.timeline-three-layout-two {
71 .sp-smart-post-timeline-nav-arrow,
72 .sp-smart-post-timeline-three-container .sp-smart-post-timeline-border {
73 transform: translateY(-50%);
74 }
75 .sp-smart-post-timeline-nav-arrow{
76 transform: translateY(-17px);
77 }
78 .sp-smart-post-timeline-three-post-container:nth-child(even) {
79 display: flex;
80 align-items: flex-end;
81 &::after,
82 &::before {
83 top: 100%;
84 transform: rotate(180deg) translateX(50%);
85 }
86 &::after{
87 top: calc(100% - -38px);
88 }
89 .sp-smart-post-template-one-content.orientation_six,
90 .sp-smart-post-template-one-content.orientation_seven,
91 .sp-smart-post-template-one-content.orientation_eight {
92 margin-bottom: -50px;
93 margin-top: 0;
94 }
95 .sp-smart-post-card,
96 .sp-smart-post-card-content {
97 flex-direction: column-reverse;
98 }
99 }
100 .sp-smart-post-timeline-three-post-container:nth-child(odd){
101 &::after{
102 top: 7px;
103 }
104 }
105 }
106 .sp-smart-post-card-image {
107 a {
108 display: block;
109 width: 100%;
110 height: 100%;
111
112 img {
113 width: 100%;
114 height: 100%;
115 }
116 }
117 }
118 .sp-smart-post-swiper-nav-arrow .btn-prev {
119 left: -10px;
120 }
121 .sp-smart-post-swiper-nav-arrow .btn-next {
122 right: -10px;
123 }
124 }
125
126 .sp-smart-post-timeline-three-container {
127 overflow: hidden;
128 }
129 .timeline-three-layout-two .sp-smart-post-timeline-three-post-container:nth-child(odd) {
130 margin-top: -5px;
131 }
132
133 .timeline-three-layout-two .sp-smart-post-timeline-three-post-container:nth-child(even) {
134 top: calc(-100% - 38px);
135 }
136