PluginProbe ʕ •ᴥ•ʔ
Timeline Blocks for Gutenberg / trunk
Timeline Blocks for Gutenberg vtrunk
timeline-blocks / src / blocks / styles / style.scss
timeline-blocks / src / blocks / styles Last commit date
editor.scss 6 years ago style.scss 6 years ago
style.scss
459 lines
1 /**
2 * Timeline Blocks styles
3 * Loads on front end and back end
4 */
5 /**
6 * Editor styles for the admin
7 */
8
9 @import "https://fonts.googleapis.com/css?family=Dosis:300,400,500,600,700";
10
11 // Variables
12 $bg-body: #f9f9f9;
13
14 $red: #ee4d4d;
15 $blue: #2b2e48;
16 $primary-color: $red;
17 $secondary-color: $blue;
18
19
20 // Typography
21 $base-font: helvetica,
22 arial,
23 tahoma,
24 verdana;
25 $base-font-title: "Dosis",
26 arial,
27 tahoma,
28 verdana;
29
30 $base-font-color: #726f77;
31
32 // Timeline
33 $timeline-color: $primary-color;
34
35 .tb-clearfix {
36 clear: both;
37 }
38
39 .tb-blogpost-excerpt {
40 .tb-button-view {
41 margin-bottom: 20px;
42 }
43 }
44
45 %clearfix {
46
47 &:after,
48 &:before {
49 content: '';
50 display: block;
51 width: 100%;
52 clear: both;
53 }
54 }
55
56 @mixin prefix($prop, $val) {
57
58 @each $prefix in '-webkit-',
59 '-moz-',
60 '-ms-',
61 '' {
62 #{$prefix}#{$prop}: $val;
63 }
64 }
65
66 *,
67 *:before,
68 *:after {
69 box-sizing: border-box;
70 -webkit-box-sizing: border-box;
71 -moz-box-sizing: border-box;
72 }
73
74 .align-center {
75 text-align: center;
76 }
77
78 .tb-timeline-template1 {
79 width: 100%;
80 margin: 30px auto;
81 position: relative;
82 padding: 0 10px;
83 @include prefix(transition, all .4s ease);
84
85 &:before {
86 content: "";
87 width: 3px;
88 height: 100%;
89 background: $timeline-color;
90 left: 50%;
91 top: 0;
92 position: absolute;
93 }
94
95 &:after {
96 content: "";
97 clear: both;
98 display: table;
99 width: 100%;
100 }
101
102 a {
103 text-decoration: none !important;
104 border-bottom: 0px !important;
105 transition: none !important;
106
107 &:hover,
108 &:focus,
109 &:active {
110 text-decoration: none !important;
111 border-bottom: 0px !important;
112 transition: none !important;
113 }
114 }
115
116 .tb-timeline-item {
117 margin-bottom: 50px;
118 position: relative;
119 @extend %clearfix;
120
121 .timeline-icon {
122 background: $timeline-color;
123 width: 50px;
124 height: 50px;
125 position: absolute;
126 top: 0;
127 left: 50%;
128 overflow: hidden;
129 margin-left: -23px;
130 @include prefix(border-radius, 50%);
131
132 svg {
133 position: relative;
134 top: 14px;
135 left: 14px;
136 }
137 }
138
139 .tb-timeline-content {
140 width: 45%;
141 background: #fff;
142 @include prefix(box-shadow, 0 3px 0 rgba(0, 0, 0, 0.1));
143 @include prefix(border-radius, 5px);
144 @include prefix(transition, all .3s ease);
145
146 .tb-title {
147 margin: 0px;
148 }
149
150 .tb-timeline-title {
151 display: block;
152 padding: 15px;
153 margin-bottom: 10px;
154 background: $timeline-color;
155 color: #fff;
156 font-weight: 300;
157 @include prefix(border-radius, 3px 3px 0 0);
158 }
159
160 &:before {
161 content: '';
162 position: absolute;
163 left: 45%;
164 top: 4%;
165 width: 0;
166 height: 0;
167 border-top: 7px solid transparent;
168 border-bottom: 7px solid transparent;
169 border-left: 7px solid $timeline-color;
170 }
171
172 .tb-timeline-second-content-wrap {
173
174 .tb-timeline-byline {
175 .tb-timeline-bototm-wrap {
176 .tb-timeline-post-tags {
177 float: left;
178 text-align: left;
179
180 a {
181 font-size: 12px;
182 color: #666;
183 font-weight: 500;
184 box-shadow: none;
185 display: inline-block;
186 vertical-align: top;
187 font-family: 'Lato', sans-serif;
188 }
189 }
190
191 .tb-timeline-social-wrap,
192 .tb-social-wrap {
193 float: right;
194
195 .social-share-data {
196 a {
197 color: #797979;
198 font-size: 14px;
199 width: 30px;
200 display: inline-block;
201 vertical-align: middle;
202 text-align: center;
203 }
204 }
205 }
206 }
207
208 .tb-timeline-metadatabox {
209 margin: 0 0 15px 0;
210
211 div {
212 display: inline-block;
213 padding: 0 16px;
214 font-size: 14px;
215 }
216 }
217 }
218 }
219 }
220
221 &:nth-child(even) {
222 .tb-timeline-content {
223 float: right;
224
225 &:before {
226 content: '';
227 right: 45%;
228 left: inherit;
229 border-left: 0;
230 border-right: 7px solid $timeline-color;
231 }
232 }
233 }
234 }
235
236 @media screen and (max-width: 768px) {
237
238 &:not(:last-child):before {
239 background: pink !important;
240 }
241
242 .tb-timeline-social-wrap,
243 .tb-social-wrap {
244 float: none !important;
245 text-align: center;
246 }
247
248 .tb-timeline {
249 padding: 0px;
250 width: 100%;
251
252 &:before {
253 left: 0;
254 }
255
256 .tb-timeline-item {
257 .tb-timeline-content {
258 width: 100%;
259 float: none;
260
261 &:before,
262 &.right:before {
263 left: 0%;
264 margin-left: -6px;
265 border-left: 0;
266 border-right: 7px solid $timeline-color;
267 }
268 }
269
270 .tb-timeline-icon {
271 left: 0;
272 }
273 }
274 }
275 }
276 }
277
278 .tb-timeline-template2 {
279 width: 100%;
280 margin: 30px auto;
281 position: relative;
282 padding: 0 10px;
283 @include prefix(transition, all .4s ease);
284
285 &:before {
286 content: "";
287 width: 3px;
288 height: 100%;
289 background: $timeline-color;
290 left: 50%;
291 top: 0;
292 position: absolute;
293 }
294
295 &:after {
296 content: "";
297 clear: both;
298 display: table;
299 width: 100%;
300 }
301
302 a {
303 text-decoration: none !important;
304 border-bottom: 0px !important;
305 transition: none !important;
306
307 &:hover,
308 &:focus,
309 &:active {
310 text-decoration: none !important;
311 border-bottom: 0px !important;
312 transition: none !important;
313 }
314 }
315
316 .tb-timeline-item {
317 margin-bottom: 50px;
318 position: relative;
319 @extend %clearfix;
320
321 .timeline-icon {
322 background: $timeline-color;
323 width: 50px;
324 height: 50px;
325 position: relative;
326 top: 0;
327 left: 50%;
328 overflow: hidden;
329 margin-left: -23px;
330 @include prefix(border-radius, 50%);
331
332 svg {
333 position: absolute;
334 top: 14px;
335 left: 14px;
336 }
337 }
338
339 .tb-timeline-content {
340 width: 45%;
341 background: #fff;
342 /*padding: 20px;*/
343 @include prefix(box-shadow, 0px 2px 8px 2px rgba(0, 0, 0, 0.1));
344 @include prefix(border-radius, 5px);
345 @include prefix(transition, all .3s ease);
346
347 .tb-inline {
348 display: inline-block;
349 padding: 10px;
350 font-size: 14px;
351 }
352
353 .tb-blogpost-title-wrap {
354 a {
355 color: #333;
356 text-align: left;
357 }
358
359 a,
360 div {
361 display: inline-block;
362 }
363
364 .mdate {
365 text-align: right;
366 padding-left: 15px;
367
368 }
369 }
370
371 .tb-timeline-bototm-wrap {
372 .tb-timeline-post-tags {
373 float: left;
374 text-align: left;
375
376 a {
377 font-size: 12px;
378 color: #666;
379 font-weight: 500;
380 box-shadow: none;
381 display: inline-block;
382 vertical-align: top;
383 font-family: 'Lato', sans-serif;
384 }
385 }
386
387 .tb-timeline-social-wrap {
388 float: right;
389
390 .social-share-data {
391 a {
392 color: #797979;
393 font-size: 14px;
394 width: 30px;
395 display: inline-block;
396 vertical-align: middle;
397 text-align: center;
398 }
399 }
400 }
401 }
402
403 .tb-timeline-second-content-wrap {
404 .tb-timeline-metadatabox {
405 display: inline-block;
406 padding: 0 16px;
407 font-size: 14px;
408 }
409 }
410 }
411
412 &:nth-child(even) {
413 .tb-timeline-content {
414 float: right;
415 }
416 }
417 }
418
419 @media screen and (max-width: 768px) {
420 .tb-timeline-template1:not(:last-child):before {
421 content: "";
422 width: 3px;
423 height: 100%;
424 background: #ee4d4d;
425 left: 50%;
426 top: 0;
427 position: absolute;
428 }
429
430 .tb-timeline {
431 // margin: 30px;
432 padding: 0px;
433 width: 100%;
434
435 &:before {
436 left: 0;
437 }
438
439 .tb-timeline-item {
440 .tb-timeline-content {
441 width: 100%;
442 float: right;
443
444 &:before,
445 &.right:before {
446 left: 10%;
447 margin-left: -6px;
448 border-left: 0;
449 border-right: 7px solid $timeline-color;
450 }
451 }
452
453 .timeline-icon {
454 display: none;
455 }
456 }
457 }
458 }
459 }