PluginProbe
TablePress – Tables in WordPress made easy / 2.2.2
TablePress – Tables in WordPress made easy v2.2.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.2.2, at admin/css/common.scss

282 lines 4.8 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
147 /* Styling for the "Add New Table" form. */
148 #tablepress_add-add-table {
149 .form-wrap {
150 max-width: 500px;
151 }
152
153 .form-field {
154 margin: 0;
155
156 }
157
158 /* Number of rows/columns in the "Add New Table" form. */
159 .form-field-small {
160 float: left;
161 width: 150px;
162 margin-right: 20px;
163 }
164 }
165
166 /* Width of the columns on the "All Tables" list. */
167 .tablepress-all-tables {
168 thead {
169 .column-table_id {
170 width: 50px;
171 }
172 .column-table_name {
173 width: 30%;
174 }
175 .column-table_author {
176 width: 12%;
177 }
178 .column-table_last_modified {
179 width: 15%;
180 }
181 }
182
183 /* Font weight for the table ID column. */
184 tbody .column-table_id {
185 font-weight: bold;
186 }
187
188 /* Responsiveness on the All Tables screen. */
189 @media screen and (max-width: 782px) {
190 .column-table_id {
191 display: none !important;
192 padding: 3px 8px 3px 35%;
193 }
194 }
195 }
196
197 /* Positioning of Search results of WP_List_Tables. */
198 #tablepress-page .subtitle {
199 float: left;
200 padding: 8px 0 0 0;
201 }
202
203 /* Tables in postboxes (on the "Edit" and "Plugin Options" screens). */
204 .tablepress-postbox-table {
205 border-spacing: 0;
206 max-width: 1000px;
207 width: 100%;
208
209 /* Default column widths */
210 .column-1 {
211 width: 25%;
212 }
213 .column-2 {
214 width: 75%;
215 }
216
217 th {
218 text-align: left;
219 font-weight: normal;
220 }
221 th,
222 td {
223 padding: 2px;
224 word-wrap: break-word;
225 }
226 .top-border {
227 th,
228 td {
229 padding-top: 6px;
230 }
231 }
232 .bottom-border {
233 th,
234 td {
235 padding-bottom: 6px;
236 border-bottom: 1px solid #eeeeee;
237 }
238 }
239 .top-align {
240 vertical-align: top;
241 padding-top: 6px;
242 }
243 }
244
245 /* Select dropdown alignment. */
246 #tablepress-page select {
247 vertical-align: baseline;
248 }
249
250 /* Alignment of textareas and buttons in postboxes. */
251 #tablepress-page textarea,
252 .tablepress-postbox-table .button {
253 margin: 1px;
254 }
255
256 /* Red color for the "Uninstall TablePress" button on the "Plugin Options" screen. */
257 #uninstall-tablepress {
258 color: #bc0b0b;
259 }
260
261 /* Styling of pills in postbox headings. */
262 .postbox .postbox-header .hndle {
263 display: inline;
264
265 .beta-label {
266 display: inline-block;
267 vertical-align: top;
268 box-sizing: border-box;
269 margin: 1px 0 -1px 6px;
270 padding: 0 5px;
271 min-width: 18px;
272 height: 18px;
273 border-radius: 9px;
274 background-color: #049cdb;
275 color: #ffffff;
276 font-size: 11px;
277 line-height: 1.6;
278 text-align: center;
279 z-index: 26;
280 }
281 }
282