editor.scss in Tableberg – Simple Gutenberg Table Block 1.1.5, at src/blocks/toggle/editor.scss
| 1 | .tab-headings { |
| 2 | display: flex; |
| 3 | gap: 16px; |
| 4 | padding: 10px 0; |
| 5 | overflow-x: scroll; |
| 6 | } |
| 7 | |
| 8 | .tab-heading { |
| 9 | cursor: pointer; |
| 10 | display: flex; |
| 11 | justify-content: center; |
| 12 | align-items: center; |
| 13 | overflow: visible; |
| 14 | position: relative; |
| 15 | |
| 16 | &:hover .tab-heading-remove { |
| 17 | display: flex; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | .tab-heading p { |
| 22 | padding: 3px; |
| 23 | margin: 0px 10px; |
| 24 | text-align: center; |
| 25 | font-size: 1rem; |
| 26 | width: auto; |
| 27 | white-space: noWrap; |
| 28 | display: inline-block; |
| 29 | } |
| 30 | |
| 31 | .tab-heading-remove { |
| 32 | display: none; |
| 33 | position: absolute; |
| 34 | top: -8px; |
| 35 | right: -5px; |
| 36 | height: 16px; |
| 37 | width: 16px; |
| 38 | background-color: #ff4d4d; |
| 39 | border-radius: 50%; |
| 40 | cursor: pointer; |
| 41 | align-items: center; |
| 42 | justify-content: center; |
| 43 | padding: 0; |
| 44 | border: none; |
| 45 | } |
| 46 | |
| 47 | .tab-heading-remove:hover { |
| 48 | background-color: #ff0000; |
| 49 | transform: scale(1.1); |
| 50 | transition: |
| 51 | background-color 0.2s ease, |
| 52 | transform 0.2s ease; |
| 53 | } |
| 54 | |
| 55 | .tab-heading p:focus { |
| 56 | outline: none; |
| 57 | cursor: pointer; |
| 58 | } |
| 59 | |
| 60 | .tab-heading-add { |
| 61 | background-color: black; |
| 62 | height: 26px; |
| 63 | width: 26px; |
| 64 | border: none; |
| 65 | border-radius: none; |
| 66 | display: flex; |
| 67 | justify-content: center; |
| 68 | align-items: center; |
| 69 | } |
| 70 | .tab-heading-add button { |
| 71 | color: white; |
| 72 | } |
| 73 |