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