PluginProbe
TablePress – Tables in WordPress made easy / 3.0.4
TablePress – Tables in WordPress made easy v3.0.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 2.4.4 All 44 releases
tablepress / admin / css / edit.scss

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

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