PluginProbe
TablePress – Tables in WordPress made easy / 2.2.1
TablePress – Tables in WordPress made easy v2.2.1
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.2.1, at admin/css/edit.scss

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