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

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