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 +155 -81 2.4.1 → 3.4 View file →
@@ -6,39 +6,26 @@
6 6 * @author Tobias Bäthge
7 7 * @since 1.0.0
8 8 */
9 9
10 -/* Import spinner and alert box styling. */
11 -@import "spinner-alert";
12 -
13 -/* Container for Table Preview, Advanced Editor, and Help Box dialogs. */
10 +/* Container for Advanced Editor and Help Box dialogs. */
14 11 .hidden-container {
15 12 display: none;
16 13 }
17 14
18 -.help-box {
19 - padding-top: 0;
20 - padding-bottom: 0;
15 +.postbox {
16 + scroll-margin-top: 72px;
21 17 }
22 18
23 19 /* Positioning of the "Help" button in the header section of a postbox. */
24 -.postbox-header .handle-actions {
25 - .button-module-help {
26 - margin-right: 10px;
27 -
28 - @media screen and (max-width: 782px) {
29 - line-height: 2.18181818;
30 - vertical-align: top;
31 - min-height: auto;
32 - margin-bottom: 0;
33 - }
20 +.postbox .postbox-header .hndle {
21 + &:has(> .help-container) {
22 + justify-content: flex-start;
23 + gap: 12px;
34 24 }
35 25
36 - /* Backward compatibility with WP < 6.5. */
37 - .handle-order-higher,
38 - .handle-order-lower,
39 - .handlediv {
40 - height: 1.62rem;
26 + > .help-container {
27 + height: 24px;
41 28 }
42 29 }
43 30
44 31 /* Allow wide postboxes to scroll sideways. */
@@ -56,39 +43,145 @@
56 43 body #wp-link-backdrop {
57 44 z-index: 100103;
58 45 }
59 46
60 -/* Table Preview (CSS for actual preview is directly in the preview HTML). */
61 -#table-preview {
62 - padding: 0;
47 +/* Fix height of the wpLink dialog, to prevent vertical scrolling in WP 7.0+. */
48 +body[class*="branch-7-"] #wp-link-wrap {
49 + height: 642px;
50 + margin-top: -321px;
51 +}
63 52
64 - &-iframe {
65 - width: 100%;
66 - height: 100%;
53 +/* Header Bar. */
54 +#tablepress-header-bar-section {
55 + margin-bottom: 20px;
56 + padding: 8px 12px;
57 + border: 1px solid #c3c4c7;
58 + background: #ffffff;
59 +
60 + /* Sticky at top of page. */
61 + @media screen and (min-width: 601px) {
62 + position: sticky;
63 + top: calc(var(--wp-admin--admin-bar--height, 32px) - 1px); /* 1px offset to remove top border. */
64 + z-index: 9989; /* Above the table editor, but below the admin menu and WP Pointers. */
67 65 }
66 + /* Full width on smaller screens, to prevent the table editor from being visible near the right edge when scrolling. */
67 + @media screen and (min-width: 601px) and (max-width: 782px) {
68 + margin-left: -11px;
69 + margin-right: -21px;
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 + }
68 92 }
69 93
94 +/* Table name and ID display in header. */
95 +.tablepress-header-table-name,
96 +.tablepress-header-table-id {
97 + white-space: nowrap;
98 + overflow: hidden;
99 + text-overflow: ellipsis;
100 +}
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 +
152 +/* Background color for the readonly Shortcode text field. */
153 +#table-information-shortcode {
154 + &,
155 + + .components-input-control__suffix {
156 + background-color: #f0f0f1;
157 + }
158 +}
159 +
70 160 /* Styling and positioning of buttons in wpdialogs. */
71 -.ui-dialog {
161 +.wp-core-ui .ui-dialog {
72 162 .button {
73 163 box-shadow: none;
74 164 }
75 165 .ui-dialog-buttonset {
76 166 width: 100%;
167 + display: flex;
168 + justify-content: space-between;
169 + align-items: center;
77 170 }
78 171 .button-cancel,
79 172 .button-cancel:hover {
80 - color: #b32d2e;
173 + color: #cc1818;
81 174 border-color: transparent;
82 175 background-color: transparent;
83 176 text-decoration: underline;
84 177 }
85 - .button-ok {
86 - float: right;
178 + .button-cancel:hover {
179 + text-decoration: none;
87 180 }
88 181 }
89 182
90 -/* Content of the Advanced Editor wpdialog */
183 +/* Content of the Advanced Editor wpdialog. */
91 184 #advanced-editor {
92 185 padding: 5px;
93 186
94 187 .wp-editor-container {
@@ -96,47 +189,19 @@
96 189 }
97 190 }
98 191
99 192 #tablepress-page #tablepress_edit-table-data {
100 - display: inline-block; /* Stretch to the width of the table. */
101 - min-width: 99.9%; /* but use the full width, minus approx. 1px as the box is wider than the others otherwise. */
193 + display: inline-block; /* Stretch to the width of the table... */
194 + min-width: calc(100% - 2px); /* but use the full width, minus 2px to account for the borders. */
102 195 }
103 196
104 -/* Button positioning inside tables in postboxes, like "Table Manipulation". */
105 -.tablepress-postbox-table .button {
106 - vertical-align: middle;
107 -}
197 +/* Jspreadsheet CSS. */
108 198
109 -#table-id-shortcode-wrapper {
110 - display: flex;
111 - justify-content: space-between;
112 - flex-wrap: wrap;
113 - width: 99%;
114 - gap: 5px 0;
115 -}
116 -#table-information-shortcode {
117 - margin: 0 -1px 0 1px;
118 -}
119 -
120 -#tablepress_edit-table-manipulation .column-1,
121 -#tablepress_edit-table-manipulation .column-2 {
122 - width: 50%;
123 -}
124 -
125 -/* Align with checkbox labels */
126 -.checkbox-left {
127 - display: inline-block;
128 - padding-left: 1.25rem; /* Checkboxes are 1rem wide + 0.25rem margin. */
129 - padding-top: 8px;
130 -}
131 -
132 199 #table-editor {
133 200 font-size: 14px;
134 201 }
135 202
136 -/* Jspreadsheet CSS * /
137 -
138 -/* Minimum row height, using :after to keep resize animation */
203 +/* Minimum row height, using :after to keep resize animation. */
139 204 .jexcel > tbody > tr:after {
140 205 content: "";
141 206 display: inline-block;
142 207 min-height: 22px;
@@ -171,9 +236,9 @@
171 236 }
172 237
173 238 .jexcel > tbody > tr > td {
174 239 vertical-align: top;
175 - word-break: break-word;
240 + word-break: break-word; /* stylelint-disable-line declaration-property-value-keyword-no-deprecated */
176 241 padding: 0;
177 242
178 243 &:first-child {
179 244 padding: 4px;
@@ -193,15 +258,18 @@
193 258 }
194 259 }
195 260
196 261 /* Fixed header. */
197 -@media screen and (min-width: 601px) {
198 - .admin-bar .jexcel > thead > tr > td {
199 - top: calc(var(--wp-admin--admin-bar--height) - 1px) /* 1px offset to remove top cell border. */;
262 +.admin-bar .jexcel > thead > tr > td {
263 + @media screen and (min-width: 601px) {
264 + top: calc(var(--wp-admin--admin-bar--height) + 118px); /* Offset for the Header Bar and Toolbar, minus top and bottom borders. */
200 265 }
266 + @media screen and (min-width: 783px) {
267 + top: calc(var(--wp-admin--admin-bar--height) + 111px); /* Offset for the Header Bar and Toolbar, minus top and bottom borders. */
268 + }
201 269 }
202 270
203 -/* 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. */
204 272 .jexcel > tbody > tr > .jexcel_row {
205 273 body & {
206 274 position: sticky;
207 275 z-index: 21; /* Prevent drag corner from floating above fixed left column. */
@@ -275,18 +343,28 @@
275 343 /* Context menu. */
276 344 .jcontextmenu {
277 345 margin: 1px; /* Don't trigger actions by accident */
278 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;
279 349
280 - > div.header {
281 - display: none !important;
282 - }
283 - > div a {
284 - color: #111111;
285 - font-size: 14px;
286 - }
287 350 > div {
288 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 + }
289 367 }
290 368 > .jcontextmenu-disabled,
291 369 > .jcontextmenu-disabled a {
292 370 color: #999999;
@@ -294,9 +372,5 @@
294 372 }
295 373 > div.jcontextmenu-disabled:hover {
296 374 background: transparent;
297 375 }
298 -}
299 -/* WP Feature Pointers */
300 -.pointer-tp21_edit_screen_options .wp-pointer-arrow {
301 - left: 225px;
302 376 }