PluginProbe
TablePress – Tables in WordPress made easy / 2.4.2
TablePress – Tables in WordPress made easy v2.4.2
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
tablepress / admin / css / edit.scss

edit.scss in TablePress – Tables in WordPress made easy 2.4.2, at admin/css/edit.scss

303 lines 7.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * CSS code for the "Edit" screen
3 *
4 * @package TablePress
5 * @subpackage Views CSS
6 * @author Tobias Bäthge
7 * @since 1.0.0
8 */
9
10 /* Import spinner and alert box styling. */
11 @import "spinner-alert";
12
13 /* Container for Table Preview, Advanced Editor, and Help Box dialogs. */
14 .hidden-container {
15 display: none;
16 }
17
18 .help-box {
19 padding-top: 0;
20 padding-bottom: 0;
21 }
22
23 /* 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 }
34 }
35
36 /* Backward compatibility with WP < 6.5. */
37 .handle-order-higher,
38 .handle-order-lower,
39 .handlediv {
40 height: 1.62rem;
41 }
42 }
43
44 /* Allow wide postboxes to scroll sideways. */
45 body,
46 div#post-body.metabox-holder.columns-1 {
47 overflow: visible !important;
48 }
49
50 /* Add space between the screen options fieldsets. */
51 #tablepress-screen-options {
52 margin-top: 20px;
53 }
54
55 /* Move backdrop of the wpLink dialog above the "Advanced Editor" dialog. */
56 body #wp-link-backdrop {
57 z-index: 100103;
58 }
59
60 /* Table Preview (CSS for actual preview is directly in the preview HTML). */
61 #table-preview {
62 padding: 0;
63
64 &-iframe {
65 width: 100%;
66 height: 100%;
67 }
68 }
69
70 /* Styling and positioning of buttons in wpdialogs. */
71 .ui-dialog {
72 .button {
73 box-shadow: none;
74 }
75 .ui-dialog-buttonset {
76 width: 100%;
77 }
78 .button-cancel,
79 .button-cancel:hover {
80 color: #b32d2e;
81 border-color: transparent;
82 background-color: transparent;
83 text-decoration: underline;
84 }
85 .button-ok {
86 float: right;
87 }
88 }
89
90 /* Content of the Advanced Editor wpdialog */
91 #advanced-editor {
92 padding: 5px;
93
94 .wp-editor-container {
95 border: none;
96 }
97 }
98
99 #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. */
102 }
103
104 /* Button positioning inside tables in postboxes, like "Table Manipulation". */
105 .tablepress-postbox-table .button {
106 vertical-align: middle;
107 }
108
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 #table-editor {
133 font-size: 14px;
134 }
135
136 /* Jspreadsheet CSS * /
137
138 /* Minimum row height, using :after to keep resize animation */
139 .jexcel > tbody > tr:after {
140 content: "";
141 display: inline-block;
142 min-height: 22px;
143 }
144
145 .jexcel > thead > tr > td {
146 text-align: center !important;
147 z-index: 22; /* Prevent drag corner from floating above fixed header. */
148
149 /* Use custom sorting arrow icons. */
150 &:not(:first-child,.dragging,.dragging-left,.dragging-right) {
151 /* stylelint-disable-next-line function-url-quotes */
152 background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23999' d='M1408 1088q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45zm0-384q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45 19-45l448-448q19-19 45-19t45 19l448 448q19 19 19 45z'/%3E%3C/svg%3E");
153 background-position: center right 10px;
154 background-repeat: no-repeat;
155 }
156 &.arrow-up:not(.dragging,.dragging-left,.dragging-right) {
157 /* stylelint-disable-next-line function-url-quotes */
158 background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1408 1088q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z'/%3E%3C/svg%3E");
159 }
160 &.arrow-down:not(.dragging,.dragging-left,.dragging-right) {
161 /* stylelint-disable-next-line function-url-quotes */
162 background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1408 704q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45 19-45l448-448q19-19 45-19t45 19l448 448q19 19 19 45z'/%3E%3C/svg%3E");
163 }
164 }
165
166 /* Override default opacity, to not have text shine through when the header row/column is fixed to the top/left of the screen. */
167 .jexcel > thead > tr > td.dragging,
168 .jexcel > tbody > tr.dragging > td {
169 background-color: #ffffff;
170 opacity: 1;
171 }
172
173 .jexcel > tbody > tr > td {
174 vertical-align: top;
175 word-break: break-word;
176 padding: 0;
177
178 &:first-child {
179 padding: 4px;
180 }
181
182 /* Show all lines of text in an edited cell. */
183 &.editing {
184 --table-editor-line-clamp-editing: 0;
185 }
186
187 > div {
188 display: -webkit-box;
189 -webkit-line-clamp: var(--table-editor-line-clamp-editing, var(--table-editor-line-clamp));
190 -webkit-box-orient: vertical;
191 overflow: hidden;
192 padding: 4px;
193 }
194 }
195
196 /* 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. */;
200 }
201 }
202
203 /* Fixed left column, taking into account the width of the admin bar. */
204 .jexcel > tbody > tr > .jexcel_row {
205 body & {
206 position: sticky;
207 z-index: 21; /* Prevent drag corner from floating above fixed left column. */
208 left: 160px;
209 }
210 body.folded & {
211 left: 36px;
212 }
213 body.auto-fold & {
214 @media only screen and (max-width: 960px) {
215 left: 36px;
216 }
217 @media screen and (max-width: 782px) {
218 left: 0;
219 }
220 }
221 }
222
223 .jexcel tbody tr:nth-child(even) td:not(.jexcel_row) {
224 background-color: #f9f9f9;
225 }
226
227 .jexcel_container .jexcel tbody tr td.highlight {
228 background-color: rgba(0, 94, 255, 0.05);
229 }
230
231 .jexcel_container .jexcel tbody tr.head-row td:not(.jexcel_row):not(.column-hidden),
232 .jexcel_container .jexcel tbody tr.foot-row td:not(.jexcel_row):not(.column-hidden) {
233 background-color: #d9edf7;
234 }
235
236 .jexcel_container .jexcel tbody tr.row-hidden td:not(.jexcel_row),
237 .jexcel_container .jexcel tbody tr td.column-hidden {
238 background-color: rgba(255, 224, 224, 0.7);
239 }
240
241 .jexcel > tbody > tr > .highlight {
242 &-top {
243 border-top: 1px solid rgb(82, 146, 247);
244 }
245 &-left {
246 border-left: 1px solid rgb(82, 146, 247);
247 }
248 &-right {
249 border-right: 1px solid rgb(82, 146, 247);
250 }
251 &-bottom {
252 border-bottom: 1px solid rgb(82, 146, 247);
253 }
254 }
255
256 .jexcel_corner {
257 background-color: rgb(82, 146, 247);
258 }
259
260 .jexcel > tbody > tr > td > textarea {
261 font-size: inherit;
262 box-shadow: none;
263 padding: 3px !important;
264 line-height: 1 !important;
265 }
266
267 /* Fullscreen mode. */
268 .admin-bar .jexcel_container.fullscreen .jexcel > thead > tr > td {
269 top: 0;
270 }
271 .jexcel_container.fullscreen {
272 z-index: 99999;
273 }
274
275 /* Context menu. */
276 .jcontextmenu {
277 margin: 1px; /* Don't trigger actions by accident */
278 z-index: 99999; /* Hover above WP Admin bar */
279
280 > div.header {
281 display: none !important;
282 }
283 > div a {
284 color: #111111;
285 font-size: 14px;
286 }
287 > div {
288 padding: 4px 4px 4px 16px;
289 }
290 > .jcontextmenu-disabled,
291 > .jcontextmenu-disabled a {
292 color: #999999;
293 cursor: default;
294 }
295 > div.jcontextmenu-disabled:hover {
296 background: transparent;
297 }
298 }
299 /* WP Feature Pointers */
300 .pointer-tp21_edit_screen_options .wp-pointer-arrow {
301 left: 225px;
302 }
303