editor.scss
95 lines
| 1 | .gblocks-component-url-input { |
| 2 | width: 100%; |
| 3 | margin-top: 10px; |
| 4 | font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif; |
| 5 | font-size: 13px; |
| 6 | line-height: 1.4; |
| 7 | background: #fff; |
| 8 | border: 1px solid #e2e4e7; |
| 9 | color: #000; |
| 10 | |
| 11 | .gblocks-component-url-input-flex { |
| 12 | display: flex; |
| 13 | align-items: center; |
| 14 | |
| 15 | .editor-url-input { |
| 16 | width: auto; |
| 17 | |
| 18 | input[type="text"]="text""] { |
| 19 | width: 100%; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | .editor-url-input input[type="text"]="text""]::placeholder { |
| 24 | color: #222; |
| 25 | } |
| 26 | |
| 27 | > .dashicon { |
| 28 | width: 20px; |
| 29 | color: #222; |
| 30 | } |
| 31 | |
| 32 | .components-base-control__field { |
| 33 | margin-bottom: 0; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | .gblocks-component-url-input-more-options { |
| 38 | padding: 10px; |
| 39 | border-top: 1px solid #e2e4e7; |
| 40 | |
| 41 | .components-base-control { |
| 42 | margin-bottom: 5px; |
| 43 | } |
| 44 | |
| 45 | .components-base-control .components-base-control__field { |
| 46 | margin-bottom: 0; |
| 47 | } |
| 48 | |
| 49 | .components-base-control:last-child { |
| 50 | margin-bottom: 0; |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | .gblocks-component-url-input-float { |
| 56 | $blocks-button__link-input-width: 260px; |
| 57 | |
| 58 | position: absolute; |
| 59 | min-width: $blocks-button__link-input-width; |
| 60 | max-width: $blocks-button__link-input-width; |
| 61 | box-shadow: 0 3px 30px rgba(25, 30, 35, .1); |
| 62 | z-index: 150; |
| 63 | |
| 64 | // arrow. |
| 65 | &::after, |
| 66 | &::before { |
| 67 | content: " "; |
| 68 | position: absolute; |
| 69 | bottom: 100%; |
| 70 | left: 20px; |
| 71 | width: 0; |
| 72 | height: 0; |
| 73 | pointer-events: none; |
| 74 | border: solid transparent; |
| 75 | } |
| 76 | &::after { |
| 77 | border: 5px solid rgba(255, 255, 255, 0); |
| 78 | border-bottom-color: #fff; |
| 79 | } |
| 80 | &::before { |
| 81 | margin-left: -1px; |
| 82 | border: 6px solid rgba(226, 228, 231, 0); |
| 83 | border-bottom-color: #e2e4e7; |
| 84 | } |
| 85 | |
| 86 | .editor-url-input__suggestions { |
| 87 | max-width: $blocks-button__link-input-width - 36px - 36px; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | .block-editor-block-list__block .gblocks-component-url-input-flex input[type="text"]="text""] { |
| 92 | max-width: 100%; |
| 93 | width: 100%; |
| 94 | } |
| 95 |