| 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 |
} |