PluginProbe
TablePress – Tables in WordPress made easy / 1.14
TablePress – Tables in WordPress made easy v1.14
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.css

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

242 lines 5.0 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 /* Hour glass cursor, while waiting for AJAX */
11 body.wait * {
12 cursor: wait !important;
13 }
14
15 /* container for Table Preview and Advanced Editor Thickboxes */
16 .hidden-container {
17 display: none;
18 }
19
20 /* Margin in Help boxes */
21 .hidden-help-box-container p {
22 margin: 6px;
23 }
24
25 /* Allow wide tables to scroll sideways, only on "Edit" screen */
26 body,
27 #wpwrap,
28 #wpbody-content,
29 div#post-body.metabox-holder.columns-1 {
30 overflow: visible !important; /* !important is necessary to override an inline style that postboxes.js sets via JS */
31 }
32
33 /* Move Thickbox more to the front, so that it's always above a jQuery UI dialog */
34 #TB_HideSelect {
35 z-index: 301099;
36 }
37 #TB_overlay,
38 .media-modal {
39 z-index: 301100;
40 }
41 #TB_window {
42 z-index: 301102;
43 }
44 #TB_load {
45 z-index: 301103;
46 }
47
48 /* Move backdrop of the wpLink dialog above the "Advanced Editor" dialog */
49 body #wp-link-backdrop {
50 z-index: 100103;
51 }
52
53 /* Table Preview (CSS for actual preview is directly in the preview HTML) */
54 #table-preview-iframe {
55 width: 100%;
56 height: 100%;
57 }
58 /* Account for additional padding of #TB_WindowContent in direct preview */
59 #table-preview {
60 height: 100%;
61 margin: -2px -15px -15px -15px;
62 }
63
64 /* Content of the Advanced Editor jQueryUI dialog */
65 #advanced-editor {
66 padding: 5px;
67 }
68 #advanced-editor .wp-editor-container {
69 border: none;
70 }
71 #advanced-editor .submitbox {
72 padding: 5px 5px 0;
73 font-size: 12px;
74 }
75 #advanced-editor-confirm {
76 float: right;
77 }
78 #advanced-editor-cancel {
79 line-height: 30px;
80 }
81
82 /* Spinner/loading animation that is shown during saving/preview preparation */
83 .spinner.animation-saving,
84 .spinner.animation-preview {
85 float: none;
86 margin: 0 0 0 6px;
87 }
88
89 /* Margins for dynamically created (inline) .notice messages */
90 #tablepress-page div.ajax-alert {
91 margin: -10px 0 15px;
92 }
93 #tablepress-page div.ajax-alert p {
94 font-weight: bold;
95 }
96 #tablepress-page div.ajax-alert pre {
97 margin: -6px 0 0.5em 2px;
98 }
99 #tablepress-page div.ajax-alert pre + p {
100 display: none;
101 }
102
103 #tablepress-page #tablepress_edit-table-data {
104 display: inline-block; /* Stretch to the width of the table */
105 min-width: 99.9%; /* but use the full width, minus approx. 1px as the box is wider than the others otherwise */
106 }
107 /* Reinstate hide-if-js functionality, due to higher specificity of ID selectors (necessary when hiding postboxes) */
108 #tablepress-page #tablepress_edit-table-data.hide-if-js {
109 display: none;
110 }
111
112 #tablepress-page #table-new-id {
113 width: 120px;
114 }
115
116 #table-information-shortcode {
117 vertical-align: middle;
118 }
119
120 #tablepress-page .button {
121 vertical-align: baseline;
122 }
123
124 /* Table cells */
125 #edit-form-body td {
126 padding: 2px 1px;
127 height: 32px;
128 }
129
130 /* Cells of currently focused row ("auto grow") */
131 .no-js #edit-form-body td,
132 #edit-form-body .focus td {
133 height: 70px;
134 }
135
136 /* Alternating row colors */
137 #edit-form-body .odd {
138 background-color: #f1f1f1;
139 }
140
141 #edit-form-body textarea {
142 display: block;
143 min-width: 150px;
144 border-color: #dddddd;
145 border-radius: 0;
146 width: 100%;
147 width: auto\0/IE; /* IE hack, as cells will otherwise shrink and overlap instead of horizontal scrolling kicking in */
148 height: 100%;
149 resize: both;
150 margin: 0;
151 }
152 #edit-form-body textarea:focus {
153 border-color: #333333;
154 }
155
156 /* For faster drawing performance, and hopefully faster scrolling */
157 #tablepress-page input[type="text"],
158 #tablepress-page textarea,
159 #tablepress-page select {
160 box-shadow: none;
161 transition: none;
162 }
163
164 #edit-form-foot input[type="checkbox"] {
165 margin: 6px 0 3px;
166 }
167
168 #edit-form {
169 border-collapse: collapse;
170 }
171
172 /* Allow moving rows and columns with jQueryUI sortable */
173 #edit-form .move-handle {
174 display: block;
175 margin: auto;
176 width: 16px;
177 height: 16px;
178 text-align: center;
179 font-weight: bold;
180 }
181 .js #edit-form .move-handle {
182 cursor: move;
183 }
184 #edit-form-body .move-handle {
185 margin: auto 3px;
186 min-width: 16px;
187 width: auto;
188 }
189
190 #edit-form .move-hover {
191 position: absolute;
192 z-index: 1000;
193 height: 26px; /* height of "#edit-form-body td" - 6px */
194 }
195 #edit-form .focus .move-hover {
196 height: 64px; /* height of "#edit-form-body .focus td" - 6px */
197 }
198
199 /* Highlighting of table head and foot in table cells */
200 #edit-form-body .head-row,
201 #edit-form-body .foot-row {
202 background-color: #d9edf7;
203 }
204
205 /* Head cells (column letters) and sorting */
206 #edit-form-head .sort-control {
207 float: right;
208 height: 18px;
209 cursor: pointer;
210 margin-right: 2px;
211 }
212 #edit-form-head .sorting-indicator {
213 visibility: visible;
214 }
215 #edit-form-head .sort-asc .sorting-indicator:before {
216 content: '\f142';
217 }
218 #edit-form-head .sort-desc .sorting-indicator:before {
219 content: '\f140';
220 }
221
222 /* (red) highlighting of hidden rows and columns */
223 #edit-form .row-hidden td,
224 /* #edit-form .row-hidden th, */
225 #edit-form .row-hidden textarea,
226 #edit-form .column-hidden,
227 #edit-form .column-hidden textarea {
228 background-color: #ffe0e0;
229 }
230
231 #tablepress_edit-table-manipulation .column-1 {
232 width: 45%;
233 }
234 #tablepress_edit-table-manipulation .column-2 {
235 width: 55%;
236 }
237
238 /* Align with checkbox labels */
239 .checkbox-left {
240 padding-left: 24px; /* Checkboxes are 16px wide + 4px margin, with 4px :before */
241 }
242