PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | admin/css/edit.scss +99 -20 3.3.2 → 3.4 View file →
@@ -67,8 +67,29 @@
67 67 @media screen and (min-width: 601px) and (max-width: 782px) {
68 68 margin-left: -11px;
69 69 margin-right: -21px;
70 70 }
71 +
72 + /* Fixed left header bar, taking into account the width of the admin menu. */
73 + .tablepress-header-bar-wrapper {
74 + max-width: 1000px;
75 +
76 + body & {
77 + position: sticky;
78 + left: 172px;
79 + }
80 + body.folded & {
81 + left: 48px;
82 + }
83 + body.auto-fold & {
84 + @media only screen and (max-width: 960px) {
85 + left: 48px;
86 + }
87 + @media screen and (max-width: 782px) {
88 + left: 0;
89 + }
90 + }
91 + }
71 92 }
72 93
73 94 /* Table name and ID display in header. */
74 95 .tablepress-header-table-name,
@@ -77,8 +98,58 @@
77 98 overflow: hidden;
78 99 text-overflow: ellipsis;
79 100 }
80 101
102 +/* Table Editor Toolbar. */
103 +#tablepress-table-editor-toolbar-section {
104 + margin: -6px 0 0;
105 + padding: 4px 0;
106 + background: #ffffff;
107 +
108 + /* Sticky at top of page. */
109 + @media screen and (min-width: 601px) {
110 + position: sticky;
111 + top: calc(var(--wp-admin--admin-bar--height, 32px) + 53px);
112 + z-index: 9988; /* Above the table editor, but below the admin menu, WP Pointers, and the Header Bar. */
113 + }
114 + @media screen and (min-width: 601px) and (max-width: 782px) {
115 + top: calc(var(--wp-admin--admin-bar--height, 32px) + 60px);
116 + }
117 +
118 + /* Fixed left toolbar, taking into account the width of the admin menu. */
119 + .tablepress-toolbar-scroll-wrapper {
120 + body & {
121 + position: sticky;
122 + left: 172px;
123 + width: auto;
124 + }
125 + body.folded & {
126 + left: 48px;
127 + }
128 + body.auto-fold & {
129 + @media only screen and (max-width: 960px) {
130 + left: 48px;
131 + }
132 + @media screen and (max-width: 782px) {
133 + left: 0;
134 + }
135 + }
136 + }
137 +
138 + /* Backward compatibility with WP < 6.9. */
139 + .components-button.is-compact.has-icon:not(.has-text) {
140 + width: auto;
141 + }
142 +
143 + .tablepress-toolbar-button-text {
144 + font-weight: normal;
145 +
146 + @media screen and (max-width: 600px) {
147 + display: none;
148 + }
149 + }
150 +}
151 +
81 152 /* Background color for the readonly Shortcode text field. */
82 153 #table-information-shortcode {
83 154 &,
84 155 + .components-input-control__suffix {
@@ -86,24 +157,27 @@
86 157 }
87 158 }
88 159
89 160 /* Styling and positioning of buttons in wpdialogs. */
90 -.ui-dialog {
161 +.wp-core-ui .ui-dialog {
91 162 .button {
92 163 box-shadow: none;
93 164 }
94 165 .ui-dialog-buttonset {
95 166 width: 100%;
167 + display: flex;
168 + justify-content: space-between;
169 + align-items: center;
96 170 }
97 171 .button-cancel,
98 172 .button-cancel:hover {
99 - color: #b32d2e;
173 + color: #cc1818;
100 174 border-color: transparent;
101 175 background-color: transparent;
102 176 text-decoration: underline;
103 177 }
104 - .button-ok {
105 - float: right;
178 + .button-cancel:hover {
179 + text-decoration: none;
106 180 }
107 181 }
108 182
109 183 /* Content of the Advanced Editor wpdialog. */
@@ -119,13 +193,8 @@
119 193 display: inline-block; /* Stretch to the width of the table... */
120 194 min-width: calc(100% - 2px); /* but use the full width, minus 2px to account for the borders. */
121 195 }
122 196
123 -#tablepress_edit-table-manipulation .column-1,
124 -#tablepress_edit-table-manipulation .column-2 {
125 - width: 50%;
126 -}
127 -
128 197 /* Jspreadsheet CSS. */
129 198
130 199 #table-editor {
131 200 font-size: 14px;
@@ -167,9 +236,9 @@
167 236 }
168 237
169 238 .jexcel > tbody > tr > td {
170 239 vertical-align: top;
171 - word-break: break-word;
240 + word-break: break-word; /* stylelint-disable-line declaration-property-value-keyword-no-deprecated */
172 241 padding: 0;
173 242
174 243 &:first-child {
175 244 padding: 4px;
@@ -191,16 +260,16 @@
191 260
192 261 /* Fixed header. */
193 262 .admin-bar .jexcel > thead > tr > td {
194 263 @media screen and (min-width: 601px) {
195 - top: calc(var(--wp-admin--admin-bar--height) + 59px); /* Offset of 61px for the Header Bar and 2px to remove top and bottom border. */
264 + top: calc(var(--wp-admin--admin-bar--height) + 118px); /* Offset for the Header Bar and Toolbar, minus top and bottom borders. */
196 265 }
197 266 @media screen and (min-width: 783px) {
198 - top: calc(var(--wp-admin--admin-bar--height) + 52px); /* Offset of 54px for the Header Bar and 2px to remove top and bottom border. */
267 + top: calc(var(--wp-admin--admin-bar--height) + 111px); /* Offset for the Header Bar and Toolbar, minus top and bottom borders. */
199 268 }
200 269 }
201 270
202 -/* Fixed left column, taking into account the width of the admin bar. */
271 +/* Fixed left column, taking into account the width of the admin menu. */
203 272 .jexcel > tbody > tr > .jexcel_row {
204 273 body & {
205 274 position: sticky;
206 275 z-index: 21; /* Prevent drag corner from floating above fixed left column. */
@@ -274,18 +343,28 @@
274 343 /* Context menu. */
275 344 .jcontextmenu {
276 345 margin: 1px; /* Don't trigger actions by accident */
277 346 z-index: 99999; /* Hover above WP Admin bar */
347 + background-color: var(--wpds-color-background-surface-neutral-strong, #ffffff); /* stylelint-disable-line plugin-wpds/no-token-fallback-values */
348 + border-radius: 4px;
278 349
279 - > div.header {
280 - display: none !important;
281 - }
282 - > div a {
283 - color: #111111;
284 - font-size: 14px;
285 - }
286 350 > div {
287 351 padding: 4px 4px 4px 16px;
352 + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); /* stylelint-disable-line plugin-wpds/no-token-fallback-values */
353 + font-family: var(--wpds-typography-font-family-body, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif); /* stylelint-disable-line plugin-wpds/no-token-fallback-values */
354 +
355 + &.header {
356 + display: none !important;
357 + }
358 +
359 + &:hover {
360 + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, #ffffff)); /* stylelint-disable-line plugin-wpds/no-token-fallback-values */
361 + }
362 +
363 + a {
364 + font-size: 13px;
365 + color: #1e1e1e;
366 + }
288 367 }
289 368 > .jcontextmenu-disabled,
290 369 > .jcontextmenu-disabled a {
291 370 color: #999999;