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 / common.scss

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

297 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 all TablePress admin screens
3 *
4 * @package TablePress
5 * @subpackage Views CSS
6 * @author Tobias Bäthge
7 * @since 1.0.0
8 */
9
10 /* Move down the header when the Screen Options or Help tabs are opened. */
11 #screen-meta[style$="block;"]$="block;""] ~ #tablepress-page {
12 margin-top: 40px;
13 }
14
15 /* Move the Screen Options and Help link to their original position. Needed due to the full-width header. */
16 #screen-meta-links {
17 position: absolute;
18 right: 0;
19 z-index: 10001; /* Ensure that the tab is always above the arrow of WP feature pointers. */
20 }
21
22 #tablepress-page {
23 margin: 0 0 0 -20px;
24
25 /* Add space between WP core update nag and header navigation. */
26 .update-nag ~ & {
27 margin-top: 25px;
28 }
29
30 #tablepress-body {
31 padding: 0 20px;
32 }
33
34 .header {
35 background: #ffffff;
36 border-bottom: 1px solid #dedae6;
37 align-items: center;
38 display: flex;
39 flex-wrap: wrap;
40 padding-right: 260px; /* Space for the screen meta links. */
41
42 .name {
43 border-right: 1px solid #dedae6;
44 padding: 12px 24px 6px;
45
46 img {
47 vertical-align: middle;
48 margin: 0 12px 6px 0;
49 height: 32px;
50 }
51 }
52 }
53
54 #tablepress-nav {
55 background: #ffffff;
56 padding: 0 0 0 20px;
57 }
58
59 .nav-menu {
60 margin: 0;
61 padding: 0;
62 list-style-type: none;
63 list-style-image: none;
64 display: flex;
65 flex-wrap: wrap;
66
67 .nav-item {
68 margin-bottom: 0;
69 }
70
71 li:hover > a,
72 li > a:focus {
73 border-bottom-color: #049cdb;
74 background-color: #f9f9f9;
75 }
76 }
77
78 .nav-link {
79 white-space: nowrap;
80 border-bottom: 5px solid #ffffff;
81 padding: 18px 18px 12px;
82 font-size: 14px;
83 display: inline-block;
84 text-decoration: none;
85 color: #1e1e1e;
86
87 &.active {
88 border-bottom-color: #049cdb;
89 }
90
91 &.separator {
92 margin-right: 20px;
93 }
94 }
95
96 .buttons {
97 padding: 0 12px;
98
99 .tablepress-button {
100 cursor: pointer;
101 border: 1px solid #ffffff;
102 border-radius: 3px;
103 align-items: center;
104 margin: 10px 12px;
105 padding: 6px 4px 6px 12px;
106 font-size: 14px;
107 line-height: 1;
108 text-decoration: none;
109 transition: color 0.1s, background-color 0.1s, border-color 0.1s;
110 display: inline-flex;
111 color: #ffffff;
112 background-color: #8ab547;
113 border-color: #8ab547;
114
115 &:hover,
116 &:active,
117 &:focus {
118 color: #ffffff;
119 background-color: #69b547;
120 border-color: #69b547;
121 }
122
123 &.renew {
124 background-color: #dba617;
125 border-color: #dba617;
126
127 &:hover,
128 &:active,
129 &:focus {
130 background-color: #ebb72a;
131 border-color: #ebb72a;
132 }
133 }
134
135 .dashicons {
136 margin: 0 6px 0 4px;
137 }
138 }
139 }
140
141 /* Margins for messages on screens */
142 div.notice {
143 margin: 20px 0 0;
144 }
145
146 /* Styling for the "Info" icon next to descriptions/notices. */
147 .info-text {
148 display: flex;
149 gap: 6px;
150 margin: 0;
151
152 svg {
153 min-width: 24px;
154 }
155
156 span {
157 margin-top: 2px;
158 }
159 }
160 }
161
162 /* Styling for the "Add New Table" form. */
163 #tablepress_add-add-table {
164 .form-wrap {
165 max-width: 500px;
166 }
167
168 .form-field {
169 margin: 0;
170
171 }
172
173 /* Number of rows/columns in the "Add New Table" form. */
174 .form-field-small {
175 float: left;
176 width: 150px;
177 margin-right: 20px;
178 }
179 }
180
181 /* Width of the columns on the "All Tables" list. */
182 .tablepress-all-tables {
183 thead {
184 .column-table_id {
185 width: 50px;
186 }
187 .column-table_name {
188 width: 30%;
189 }
190 .column-table_author {
191 width: 12%;
192 }
193 .column-table_last_modified {
194 width: 15%;
195 }
196 }
197
198 /* Font weight for the table ID column. */
199 tbody .column-table_id {
200 font-weight: bold;
201 }
202
203 /* Responsiveness on the All Tables screen. */
204 @media screen and (max-width: 782px) {
205 .column-table_id {
206 display: none !important;
207 padding: 3px 8px 3px 35%;
208 }
209 }
210 }
211
212 /* Positioning of Search results of WP_List_Tables. */
213 #tablepress-page .subtitle {
214 float: left;
215 padding: 8px 0 0 0;
216 }
217
218 /* Tables in postboxes (on the "Edit" and "Plugin Options" screens). */
219 .tablepress-postbox-table {
220 border-spacing: 0;
221 max-width: 1000px;
222 width: 100%;
223
224 /* Default column widths */
225 .column-1 {
226 width: 25%;
227 }
228 .column-2 {
229 width: 75%;
230 }
231
232 th {
233 text-align: left;
234 font-weight: normal;
235 }
236 th,
237 td {
238 padding: 2px;
239 word-wrap: break-word;
240 }
241 .top-border {
242 th,
243 td {
244 padding-top: 6px;
245 }
246 }
247 .bottom-border {
248 th,
249 td {
250 padding-bottom: 6px;
251 border-bottom: 1px solid #eeeeee;
252 }
253 }
254 .top-align {
255 vertical-align: top;
256 padding-top: 6px;
257 }
258 }
259
260 /* Select dropdown alignment. */
261 #tablepress-page select {
262 vertical-align: baseline;
263 }
264
265 /* Alignment of textareas and buttons in postboxes. */
266 #tablepress-page textarea,
267 .tablepress-postbox-table .button {
268 margin: 1px;
269 }
270
271 /* Red color for the "Uninstall TablePress" button on the "Plugin Options" screen. */
272 #uninstall-tablepress {
273 color: #bc0b0b;
274 }
275
276 /* Styling of pills in postbox headings. */
277 .postbox .postbox-header .hndle {
278 display: inline;
279
280 .beta-label {
281 display: inline-block;
282 vertical-align: top;
283 box-sizing: border-box;
284 margin: 1px 0 -1px 6px;
285 padding: 0 5px;
286 min-width: 18px;
287 height: 18px;
288 border-radius: 9px;
289 background-color: #049cdb;
290 color: #ffffff;
291 font-size: 11px;
292 line-height: 1.6;
293 text-align: center;
294 z-index: 26;
295 }
296 }
297