admin.js
6 years ago
class-milestone-widget.php
3 years ago
milestone-widget.css
4 years ago
milestone.js
6 years ago
milestone.php
5 years ago
style-admin.css
4 years ago
style-admin.css
71 lines
| 1 | .milestone-widget fieldset { |
| 2 | margin-bottom: 1em; |
| 3 | } |
| 4 | |
| 5 | .milestone-widget fieldset * { |
| 6 | vertical-align: middle; |
| 7 | } |
| 8 | |
| 9 | .jp-ms-data-time input[type="text"] { |
| 10 | text-align: right; |
| 11 | width: 2.1em; |
| 12 | } |
| 13 | |
| 14 | .jp-ms-data-time .month { |
| 15 | width: 5.4em; |
| 16 | |
| 17 | } |
| 18 | |
| 19 | .jp-ms-data-time .year[type="text"] { |
| 20 | text-align: right; |
| 21 | width: 3.2em; |
| 22 | } |
| 23 | |
| 24 | .jp-ms-data-time input[type="text"] { |
| 25 | text-align: right; |
| 26 | width: 3.2em; |
| 27 | } |
| 28 | |
| 29 | .jp-ms-data-time .year[type="text"] { |
| 30 | width: 4.5em; |
| 31 | } |
| 32 | |
| 33 | .jp-ms-data-time .assistive-text, |
| 34 | .jp-ms-data-unit .assistive-text { |
| 35 | position: absolute !important; |
| 36 | clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ |
| 37 | clip: rect(1px, 1px, 1px, 1px); |
| 38 | } |
| 39 | |
| 40 | @media screen and (max-width: 782px) { |
| 41 | .jp-ms-data-time input[type="text"], |
| 42 | .jp-ms-data-time .year[type="text"] { |
| 43 | width: 2.8em; |
| 44 | |
| 45 | } |
| 46 | |
| 47 | .jp-ms-data-time .year[type="text"] { |
| 48 | width: 4em; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /* Fix styles of the Milestone block when it is dispayed as a part of the Legacy Widget block */ |
| 53 | .wp-block-legacy-widget__edit-form .widget-inside .widget-content .jp-ms-data-time .month { |
| 54 | display: inline-block; |
| 55 | width: 6.5em; |
| 56 | min-height: 34px; |
| 57 | } |
| 58 | |
| 59 | .wp-block-legacy-widget__edit-form .widget-inside .widget-content .jp-ms-data-time input[type="text"] { |
| 60 | display: inline-block; |
| 61 | width: 3.2em; |
| 62 | } |
| 63 | |
| 64 | .wp-block-legacy-widget__edit-form .widget-inside .widget-content .jp-ms-data-time .year[type="text"] { |
| 65 | width: 4.5em; |
| 66 | } |
| 67 | |
| 68 | .editor-styles-wrapper ul.milestone-type { |
| 69 | list-style-type: none; |
| 70 | padding-left: 0; |
| 71 | } |