PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.4
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.4
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 / components / buttonSet / editor.scss

editor.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.4, at src/components/buttonSet/editor.scss

71 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .sp-smart-post-button-set {
2 // .sp-smart-post-component-top {}
3 .sp-smart-post-component-title {
4 font-size: 13px;
5 font-weight: 400;
6 line-height: 20px;
7 margin-bottom: 9px;
8 }
9 .sp-smart-post-button-set-list {
10 display: grid;
11 border: 1px solid #ddd;
12 border-radius: 2px;
13 padding: 4px;
14 row-gap: 8px;
15
16 @for $i from 1 through 8 {
17 &.sp-col-#{$i} {
18 grid-template-columns: repeat(#{$i}, 1fr);
19 }
20 }
21
22 .sp-smart-post-button-set-item {
23 display: flex;
24 border-bottom: 1px solid #ddd;
25
26 .sp-item-set-btn {
27 display: inline-grid;
28 position: relative;
29 cursor: pointer;
30 &::after {
31 content: '';
32 position: absolute;
33 top: 50%;
34 right: 0;
35 width: 1px;
36 height: 16px;
37 background: #ddd;
38 transform: translateY(-50%);
39 }
40 }
41 &.active {
42 .sp-item-set-btn {
43 background: #F05D31;
44 border-radius: 1px;
45 .sp-shape-icon {
46 fill: #fff;
47 }
48 }
49
50 }
51 &.active,
52 &:nth-child( 4n ) {
53 .sp-item-set-btn{
54 &::after {
55 display: none;
56 }
57 }
58 }
59 &:nth-last-child( -n+4 ) {
60 border-bottom: none;
61 }
62 }
63 .sp-smart-post-button-set-item:has( + .sp-smart-post-button-set-item.active ) {
64 .sp-item-set-btn{
65 &::after {
66 display: none;
67 }
68 }
69 }
70 }
71 }