editor.scss
64 lines
| 1 | .gb-responsive-tabs { |
| 2 | position: sticky; |
| 3 | top: 0; |
| 4 | background: #fafafa; |
| 5 | border-bottom: 1px solid #ddd; |
| 6 | z-index: 10; |
| 7 | display: flex; |
| 8 | |
| 9 | & + .block-editor-block-card { |
| 10 | .block-editor-block-card__description { |
| 11 | display: none; |
| 12 | } |
| 13 | |
| 14 | .block-editor-block-card__title, |
| 15 | .block-editor-block-card__content { |
| 16 | margin-bottom: 0; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | button { |
| 21 | flex-grow: 1; |
| 22 | justify-content: center; |
| 23 | padding: 7px; |
| 24 | height: unset; |
| 25 | border-radius: unset; |
| 26 | outline: 0 !important; |
| 27 | background: none !important; |
| 28 | |
| 29 | svg { |
| 30 | width: 20px; |
| 31 | height: 20px; |
| 32 | opacity: 0.3; |
| 33 | } |
| 34 | |
| 35 | &.is-pressed:not(:disabled), |
| 36 | &:focus:not(:disabled), |
| 37 | &:active:not(:disabled) { |
| 38 | box-shadow: unset !important; |
| 39 | background: #fff !important; |
| 40 | color: var(--wp-admin-theme-color) !important; |
| 41 | opacity: 1; |
| 42 | |
| 43 | &:hover { |
| 44 | background: #fff !important; |
| 45 | color: var(--wp-admin-theme-color) !important; |
| 46 | } |
| 47 | |
| 48 | svg { |
| 49 | opacity: 1; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | &:hover:not(:disabled) { |
| 54 | box-shadow: unset !important; |
| 55 | background: #fafafa !important; |
| 56 | color: currentColor !important; |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | .block-editor-block-inspector .gb-responsive-tabs + .components-panel__body { |
| 62 | border-top: 0; |
| 63 | } |
| 64 |