components
2 years ago
BorderCSS.js
2 years ago
attributes.js
2 years ago
editor.scss
2 years ago
index.js
2 years ago
editor.scss
71 lines
| 1 | .gblocks-border-row { |
| 2 | .gblocks-flex-control { |
| 3 | align-items: center; |
| 4 | |
| 5 | & > div { |
| 6 | margin-bottom: 10px; |
| 7 | flex-grow: 0; |
| 8 | } |
| 9 | |
| 10 | .gblocks-unit-control { |
| 11 | flex-grow: 1; |
| 12 | } |
| 13 | |
| 14 | .gblocks-border-style button.components-button { |
| 15 | width: 30px; |
| 16 | height: 30px; |
| 17 | min-width: 30px; |
| 18 | border: 1px solid #ccc; |
| 19 | |
| 20 | svg { |
| 21 | width: 15px; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | .gblocks-border-icon { |
| 26 | height: 20px; |
| 27 | width: 20px; |
| 28 | flex-basis: 20px; |
| 29 | |
| 30 | border: 2px solid #ddd; |
| 31 | border-radius: 2px; |
| 32 | |
| 33 | &.borderTop { |
| 34 | border-top-color: #000; |
| 35 | } |
| 36 | |
| 37 | &.borderRight { |
| 38 | border-right-color: #000; |
| 39 | } |
| 40 | |
| 41 | &.borderBottom { |
| 42 | border-bottom-color: #000; |
| 43 | } |
| 44 | |
| 45 | &.borderLeft { |
| 46 | border-left-color: #000; |
| 47 | } |
| 48 | |
| 49 | &.borderAll { |
| 50 | border-color: #000; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | .gblocks-border-colors { |
| 55 | display: flex; |
| 56 | flex-grow: 0; |
| 57 | |
| 58 | > div { |
| 59 | margin: 0; |
| 60 | |
| 61 | .components-base-control__help { |
| 62 | font-size: 10px; |
| 63 | line-height: 1; |
| 64 | margin-top: 5px; |
| 65 | opacity: 0.7; |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 |