PluginProbe
TablePress – Tables in WordPress made easy / 3.0
TablePress – Tables in WordPress made easy v3.0
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 2.4.4 All 44 releases
← All changes | admin/css/edit.scss +64 -65 trunk3.0 View file →
@@ -6,26 +6,41 @@
6 6 * @author Tobias Bäthge
7 7 * @since 1.0.0
8 8 */
9 9
10 -/* Container for Advanced Editor and Help Box dialogs. */
10 +/* Import spinner and alert box styling. */
11 +@use "spinner-alert";
12 +
13 +/* Container for Table Preview, Advanced Editor, and Help Box dialogs. */
11 14 .hidden-container {
12 15 display: none;
13 16 }
14 17
15 -.postbox {
16 - scroll-margin-top: 72px;
18 +.help-box {
19 + padding-top: 0;
20 + padding-bottom: 0;
17 21 }
18 22
19 23 /* Positioning of the "Help" button in the header section of a postbox. */
20 -.postbox .postbox-header .hndle {
21 - &:has(> .help-container) {
22 - justify-content: flex-start;
23 - gap: 12px;
24 +.postbox-header .handle-actions {
25 + .button-module-help {
26 + margin-right: 10px;
27 + vertical-align: top;
28 + margin-top: 1px;
29 +
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 + }
24 36 }
25 37
26 - > .help-container {
27 - height: 24px;
38 + /* Backward compatibility with WP < 6.5. */
39 + .handle-order-higher,
40 + .handle-order-lower,
41 + .handlediv {
42 + height: 1.62rem;
28 43 }
29 44 }
30 45
31 46 /* Allow wide postboxes to scroll sideways. */
@@ -43,74 +58,39 @@
43 58 body #wp-link-backdrop {
44 59 z-index: 100103;
45 60 }
46 61
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 -}
62 +/* Table Preview (CSS for actual preview is directly in the preview HTML). */
63 +#table-preview {
64 + padding: 0;
52 65
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. */
66 + &-iframe {
67 + width: 100%;
68 + height: 100%;
65 69 }
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 70 }
72 71
73 -/* Table name and ID display in header. */
74 -.tablepress-header-table-name,
75 -.tablepress-header-table-id {
76 - white-space: nowrap;
77 - overflow: hidden;
78 - text-overflow: ellipsis;
79 -}
80 -
81 -/* Background color for the readonly Shortcode text field. */
82 -#table-information-shortcode {
83 - &,
84 - + .components-input-control__suffix {
85 - background-color: #f0f0f1;
86 - }
87 -}
88 -
89 72 /* Styling and positioning of buttons in wpdialogs. */
90 -.wp-core-ui .ui-dialog {
73 +.ui-dialog {
91 74 .button {
92 75 box-shadow: none;
93 76 }
94 77 .ui-dialog-buttonset {
95 78 width: 100%;
96 - display: flex;
97 - justify-content: space-between;
98 - align-items: center;
99 79 }
100 80 .button-cancel,
101 81 .button-cancel:hover {
102 - color: #cc1818;
82 + color: #b32d2e;
103 83 border-color: transparent;
104 84 background-color: transparent;
105 85 text-decoration: underline;
106 86 }
107 - .button-cancel:hover {
108 - text-decoration: none;
87 + .button-ok {
88 + float: right;
109 89 }
110 90 }
111 91
112 -/* Content of the Advanced Editor wpdialog. */
92 +/* Content of the Advanced Editor wpdialog */
113 93 #advanced-editor {
114 94 padding: 5px;
115 95
116 96 .wp-editor-container {
@@ -118,24 +98,42 @@
118 98 }
119 99 }
120 100
121 101 #tablepress-page #tablepress_edit-table-data {
122 - display: inline-block; /* Stretch to the width of the table... */
123 - min-width: calc(100% - 2px); /* but use the full width, minus 2px to account for the borders. */
102 + display: inline-block; /* Stretch to the width of the table. */
103 + min-width: 99.9%; /* but use the full width, minus approx. 1px as the box is wider than the others otherwise. */
124 104 }
125 105
106 +/* Button positioning inside tables in postboxes, like "Table Manipulation". */
107 +.tablepress-postbox-table .button {
108 + vertical-align: middle;
109 +}
110 +
126 111 #tablepress_edit-table-manipulation .column-1,
127 112 #tablepress_edit-table-manipulation .column-2 {
128 113 width: 50%;
129 114 }
130 115
131 -/* Jspreadsheet CSS. */
116 +/* Align with checkbox labels */
117 +.checkbox-left {
118 + display: inline-block;
119 + padding-left: 1.25rem; /* Checkboxes are 1rem wide + 0.25rem margin. */
120 + padding-top: 8px;
121 +}
132 122
123 +/* Compatibility with WP < 6.6 */
124 +.components-checkbox-control .components-base-control__field:has(> span) {
125 + display: flex;
126 + align-items: center;
127 +}
128 +
133 129 #table-editor {
134 130 font-size: 14px;
135 131 }
136 132
137 -/* Minimum row height, using :after to keep resize animation. */
133 +/* Jspreadsheet CSS * /
134 +
135 +/* Minimum row height, using :after to keep resize animation */
138 136 .jexcel > tbody > tr:after {
139 137 content: "";
140 138 display: inline-block;
141 139 min-height: 22px;
@@ -192,15 +190,12 @@
192 190 }
193 191 }
194 192
195 193 /* Fixed header. */
196 -.admin-bar .jexcel > thead > tr > td {
197 - @media screen and (min-width: 601px) {
198 - top: calc(var(--wp-admin--admin-bar--height) + 59px); /* Offset of 61px for the Header Bar and 2px to remove top and bottom border. */
194 +@media screen and (min-width: 601px) {
195 + .admin-bar .jexcel > thead > tr > td {
196 + top: calc(var(--wp-admin--admin-bar--height) - 1px) /* 1px offset to remove top cell border. */;
199 197 }
200 - @media screen and (min-width: 783px) {
201 - top: calc(var(--wp-admin--admin-bar--height) + 52px); /* Offset of 54px for the Header Bar and 2px to remove top and bottom border. */
202 - }
203 198 }
204 199
205 200 /* Fixed left column, taking into account the width of the admin bar. */
206 201 .jexcel > tbody > tr > .jexcel_row {
@@ -296,5 +291,9 @@
296 291 }
297 292 > div.jcontextmenu-disabled:hover {
298 293 background: transparent;
299 294 }
295 +}
296 +/* WP Feature Pointers */
297 +.pointer-tp21_edit_screen_options .wp-pointer-arrow {
298 + left: 225px;
300 299 }