| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | * @since 1.0.0 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | /* Import spinner and alert box styling. */ |
| 11 | -@import "spinner-alert"; | |
| 11 | +@use "spinner-alert"; | |
| 12 | 12 | |
| 13 | 13 | /* Container for Table Preview, Advanced Editor, and Help Box dialogs. */ |
| 14 | 14 | .hidden-container { |
| 15 | 15 | display: none; |
| @@ -20,15 +20,28 @@ | ||
| 20 | 20 | padding-bottom: 0; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /* Positioning of the "Help" button in the header section of a postbox. */ |
| 24 | -.postbox-header .handle-actions .button-module-help { | |
| 25 | - margin-right: 10px; | |
| 24 | +.postbox-header .handle-actions { | |
| 25 | + .button-module-help { | |
| 26 | + margin-right: 10px; | |
| 27 | + vertical-align: top; | |
| 28 | + margin-top: 1px; | |
| 26 | 29 | |
| 27 | - @media screen and (min-width: 783px) { | |
| 28 | - position: relative; | |
| 29 | - top: -5px; | |
| 30 | + @media screen and (max-width: 782px) { | |
| 31 | + line-height: 2.18181818; | |
| 32 | + vertical-align: top; | |
| 33 | + min-height: auto; | |
| 34 | + margin-bottom: 0; | |
| 35 | + } | |
| 30 | 36 | } |
| 37 | + | |
| 38 | + /* Backward compatibility with WP < 6.5. */ | |
| 39 | + .handle-order-higher, | |
| 40 | + .handle-order-lower, | |
| 41 | + .handlediv { | |
| 42 | + height: 1.62rem; | |
| 43 | + } | |
| 31 | 44 | } |
| 32 | 45 | |
| 33 | 46 | /* Allow wide postboxes to scroll sideways. */ |
| 34 | 47 | body, |
| @@ -89,23 +102,13 @@ | ||
| 89 | 102 | display: inline-block; /* Stretch to the width of the table. */ |
| 90 | 103 | min-width: 99.9%; /* but use the full width, minus approx. 1px as the box is wider than the others otherwise. */ |
| 91 | 104 | } |
| 92 | 105 | |
| 93 | -#tablepress-page .button { | |
| 94 | - vertical-align: baseline; | |
| 106 | +/* Button positioning inside tables in postboxes, like "Table Manipulation". */ | |
| 107 | +.tablepress-postbox-table .button { | |
| 108 | + vertical-align: middle; | |
| 95 | 109 | } |
| 96 | 110 | |
| 97 | -#table-id-shortcode-wrapper { | |
| 98 | - display: flex; | |
| 99 | - justify-content: space-between; | |
| 100 | - flex-wrap: wrap; | |
| 101 | - width: 99%; | |
| 102 | - gap: 5px 0; | |
| 103 | -} | |
| 104 | -#table-information-shortcode { | |
| 105 | - margin: 0 -1px 0 1px; | |
| 106 | -} | |
| 107 | - | |
| 108 | 111 | #tablepress_edit-table-manipulation .column-1, |
| 109 | 112 | #tablepress_edit-table-manipulation .column-2 { |
| 110 | 113 | width: 50%; |
| 111 | 114 | } |
| @@ -114,8 +117,14 @@ | ||
| 114 | 117 | .checkbox-left { |
| 115 | 118 | display: inline-block; |
| 116 | 119 | padding-left: 1.25rem; /* Checkboxes are 1rem wide + 0.25rem margin. */ |
| 117 | 120 | padding-top: 8px; |
| 121 | +} | |
| 122 | + | |
| 123 | +/* Compatibility with WP < 6.6 */ | |
| 124 | +.components-checkbox-control .components-base-control__field:has(> span) { | |
| 125 | + display: flex; | |
| 126 | + align-items: center; | |
| 118 | 127 | } |
| 119 | 128 | |
| 120 | 129 | #table-editor { |
| 121 | 130 | font-size: 14px; |