PluginProbe
Polylang / 3.0.5
Polylang v3.0.5
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / css / admin.css

admin.css in Polylang 3.0.5, at css/admin.css

458 lines 7.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* languages admin panel */
2 #add-lang select {
3 width: 95%;
4 }
5
6 .column-locale,
7 .languages .column-slug {
8 width : 15%
9 }
10
11 .column-default_lang {
12 width : 5%;
13 }
14
15 .column-term_group,
16 .column-flag, .column-count {
17 width : 10%;
18 }
19
20 .icon-default-lang:before {
21 font-family: 'dashicons';
22 content: "\f155";
23 }
24 .pll-icon:before{
25 display: inline-block;
26 text-align: left;
27 width: 15px;
28 }
29 .pll-circle:before{
30 content: "\25cf";
31 }
32
33 .form-field input[type="radio"] {
34 width: auto;
35 margin-right: 2px;
36 }
37
38 /* about Polylang metabox */
39 #pll-about-box p,
40 #pll-recommended p {
41 text-align: justify;
42 }
43
44 #pll-about-box input {
45 margin: 0;
46 padding: 0;
47 float: right;
48 }
49
50 /* strings translation table */
51 .stringstranslations .column-name,
52 .stringstranslations .column-context {
53 width: 10%;
54 }
55
56 .stringstranslations .column-string {
57 width: 33%;
58 }
59
60 .translation label {
61 display: inline-block;
62 width: 23%;
63 vertical-align: top;
64 }
65
66 .translation {
67 display: flex; /* fix #691 to remove default margin bottom */
68 }
69 @media screen and (max-width: 782px) { /* reset default display property for small device */
70 .translation{
71 display: block;
72 }
73 }
74 .translation textarea{
75 display: block; /* fix #691 to remove default margin bottom */
76 }
77 .translation input,
78 .translation textarea {
79 width: 72%;
80 box-sizing: border-box; /* to be sure field don't overrun outside their wrapper */
81 margin-bottom: 4px; /* fix #691 set the same margin bottom for both textarea and input tags */
82 }
83
84 /* settings */
85 .pll-settings {
86 margin-top: 20px;
87 }
88
89 .pll-settings .plugin-title {
90 width: 25%;
91 }
92
93 #wpbody-content .pll-settings .pll-configure tr {
94 display: table-row;
95 }
96
97 #wpbody-content .pll-settings .pll-configure td {
98 display: table-cell;
99 }
100
101 #wpbody-content .pll-settings .pll-configure > td {
102 padding: 20px 20px 20px 40px;
103 }
104
105 .pll-configure legend {
106 font-size: 14px;
107 font-weight: 600;
108 margin-bottom: 0.5em;
109 }
110
111 .pll-configure td .description {
112 margin-top: 2px;
113 margin-bottom: 0.5em;
114 }
115
116 .pll-configure p.submit {
117 margin-top: 20px;
118 }
119
120 .pll-configure .button {
121 margin-right: 20px;
122 }
123
124 .pll-configure fieldset {
125 margin-bottom: 1.5em;
126 }
127
128 .pll-inline-block-list {
129 margin: 0;
130 }
131
132 .pll-inline-block-list li {
133 display: inline-block;
134 margin: 0;
135 width: 250px;
136 }
137
138 /* settings URL modifications */
139 #pll-domains-table td {
140 padding: 2px 2px 2px 1.5em;
141 -webkit-box-shadow: none;
142 box-shadow: none;
143 border: none;
144 }
145
146 .pll-settings-url-col {
147 display: inline-block;
148 width: 49%;
149 vertical-align: top;
150 }
151
152 /* settings Activation keys */
153 #pll-licenses-table td {
154 vertical-align: top;
155 }
156
157 #pll-licenses-table label {
158 font-size: 1em;
159 font-weight: 600;
160 }
161
162 .pll-configure .pll-deactivate-license {
163 margin: 0 0 0 20px;
164 }
165
166 /* language columns in edit.php and edit-tags.php */
167 .wp-list-table th[class*='column-language_'],
168 .wp-list-table td[class*='column-language_'] {
169 width: 1.5em;
170 box-sizing: content-box; /* Override ACF 5.9.0 styles */
171 }
172
173 /* Text direction in post.php and edit-tags.php */
174 .pll-dir-rtl textarea,
175 .pll-dir-rtl input[type="text"] {
176 direction: rtl;
177 }
178
179 .pll-dir-ltr textarea,
180 .pll-dir-ltr input[type="text"] {
181 direction: ltr;
182 }
183
184 .pll-dir-ltr .tr_lang,
185 .pll-dir-rtl .tr_lang {
186 direction: inherit;
187 }
188
189 /* languages metabox in post.php */
190 #post-translations p {
191 float: left;
192 }
193
194 #post-translations table {
195 table-layout: fixed;
196 width: 100%;
197 clear: both;
198 }
199
200 #post-translations a {
201 text-decoration: none;
202 }
203
204 #post-translations .pll-language-column,
205 #post-translations .pll-column-icon {
206 width: 20px;
207 }
208
209 #post-translations .tr_lang {
210 width: 100%;
211 }
212
213 #post-translations td {
214 padding: 2px;
215 }
216
217 #post-translations .spinner,
218 #term-translations .spinner {
219 float: none;
220 margin: 0;
221 background-position: center;
222 width: auto;
223 }
224
225 .pll-column-icon {
226 text-align: center;
227 }
228
229 #select-post-language .pll-select-flag {
230 padding: 4px;
231 margin-right: 32px;
232 }
233
234 /* specific cases for media */
235 #select-media-language .pll-select-flag {
236 padding: 4px;
237 margin-right: 10px;
238 }
239
240 .pll-media-edit-column {
241 float: right;
242 }
243
244 /* language and translations in edit-tags.php */
245 .pll-translation-flag { /* also for media */
246 margin-right: 14px;
247 }
248
249 #select-add-term-language .pll-select-flag {
250 padding: 11px;
251 margin-right: 13px;
252 }
253
254 #select-edit-term-language .pll-select-flag {
255 padding: 11px;
256 margin-right: 4px;
257 }
258
259 #term-translations p {
260 /* same style as label */
261 font-weight: 400;
262 font-style: normal;
263 padding: 2px;
264 color: #23282d;
265 }
266
267 #add-term-translations,
268 #edit-term-translations {
269 width: 95%;
270 }
271
272 #term-translations .pll-language-column {
273 line-height: 28px;
274 width: 20%;
275 }
276
277 #term-translations .pll-edit-column,
278 #add-term-translations .pll-language-column {
279 width: 20px;
280 }
281
282 #edit-term-translations .pll-language-column {
283 padding: 15px 10px;
284 font-weight: normal;
285 }
286
287 /* icon fonts */
288 .pll_icon_add:before {
289 content: "\f132";
290 }
291
292 .pll_icon_edit:before {
293 content: "\f464";
294 }
295
296 [class^="pll_icon_"] {
297 font: 20px/1 'dashicons';
298 vertical-align: middle;
299 }
300
301 /* admin bar */
302 #wpadminbar #wp-admin-bar-languages .ab-item img {
303 margin: 0 8px 0 2px;
304 }
305
306 #wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
307 float: none;
308 top: 4px;
309 }
310
311 #wpadminbar #wp-admin-bar-languages .ab-icon:before {
312 content: "\f326";
313 top: 1px;
314 }
315
316 /* Notices */
317 .pll-notice.notice {
318 padding-right: 38px;
319 position: relative;
320 }
321
322 .pll-notice a.notice-dismiss {
323 text-decoration: none;
324 }
325
326 .pll-notice .button {
327 margin-right: 10px;
328 }
329
330 /* Metaboxes holder in Strings translations screen */
331 .languages_page_mlang_strings .metabox-holder > div {
332 display: flex;
333 }
334 .languages_page_mlang_strings .metabox-holder > div > div {
335 flex-grow: 1;
336 }
337 .languages_page_mlang_strings .metabox-holder > div > div:nth-child(2n) {
338 margin-left: 1rem;
339 }
340 .languages_page_mlang_strings .metabox-holder > div > div.closed {
341 border:0;
342 background: none;
343 }
344 .languages_page_mlang_strings .metabox-holder > div > div.closed .postbox-header{
345 border: 1px solid #ccd0d4;
346 background: #fff;
347 }
348
349 @media screen and ( max-width: 782px ) {
350 /* settings */
351 #wpbody-content .pll-settings .pll-configure > td {
352 padding: 20px;
353 }
354
355 #wpbody-content .pll-settings #cb {
356 padding: 20px 9px;
357 }
358
359 /* settings URL modifications */
360 .pll-inline-block {
361 width: auto;
362 }
363
364 .pll-settings-url-col {
365 display: block;
366 width: 100%;
367 }
368
369 /* settings licenses */
370 #wpbody-content .pll-settings #pll-licenses-table td {
371 display: block;
372 }
373
374 .pll-configure .pll-deactivate-license {
375 margin: 10px 0 5px;
376 }
377
378 /* strings translations table */
379 .translation label {
380 display: block;
381 width: 95%;
382 padding-left: 0;
383 }
384
385 .translation input,
386 .translation textarea {
387 width: 95%;
388 }
389
390 /* Metaboxes holder in Strings translations screen */
391 .languages_page_mlang_strings .metabox-holder > div {
392 flex-direction: column;
393 }
394 .languages_page_mlang_strings .metabox-holder > div > div:nth-child(2n) {
395 margin-left: 0;
396 }
397
398 /* hide selected language flag and translations language name */
399 #select-add-term-language .pll-select-flag,
400 #select-edit-term-language .pll-select-flag,
401 #edit-term-translations .pll-language-name {
402 display: none;
403 }
404
405 #edit-term-translations {
406 width: 100%;
407 }
408
409 #add-term-translations .pll-language-column {
410 line-height: 38px;
411 }
412
413 #edit-term-translations td {
414 padding: 8px 10px;
415 }
416
417 #edit-term-translations .pll-language-column,
418 #edit-term-translations .pll-edit-column {
419 width: 20px;
420 }
421
422 /* translations tables should be kept as table */
423 .term-translations .pll-language-column,
424 .term-translations .pll-edit-column,
425 .term-translations .pll-translation-column {
426 display: table-cell;
427 }
428
429 .term-translations .hidden {
430 display: none;
431 }
432
433 /* admin bar */
434 #wpadminbar #wp-admin-bar-languages {
435 display: block; /*shows our menu on mobile devices */
436 }
437
438 #wpadminbar #wp-admin-bar-languages > .ab-item {
439 width: 50px;
440 text-align: center;
441 }
442
443 #wpadminbar #wp-admin-bar-languages > .ab-item .ab-icon:before {
444 font: 32px/1 'dashicons';
445 top: -1px;
446 }
447
448 #wpadminbar #wp-admin-bar-languages > .ab-item img {
449 margin: 19px 0;
450 }
451
452 #wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
453 margin-right: 6px;
454 font-size: 20px !important;
455 line-height: 20px !important;
456 }
457 }
458