← All changes
|
modules/widget-visibility/widget-conditions/widget-conditions.css
+43
-18
12.3.2
→
16.3-a.7
View file →
| @@ -1,21 +1,22 @@ | ||
| 1 | 1 | .wp-customizer .expanded .widget-conditional .widget-conditional-inner { |
| 2 | 2 | width: 98%; |
| 3 | - -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ | |
| 4 | - -moz-box-sizing: border-box; /* Firefox, other Gecko */ | |
| 5 | 3 | box-sizing: border-box; |
| 6 | 4 | } |
| 7 | 5 | |
| 8 | -.wp-customizer .expanded .widget-conditional .form{ | |
| 6 | +.wp-customizer .expanded .widget-conditional .form { | |
| 9 | 7 | overflow: scroll; |
| 10 | 8 | margin-bottom: 20px; |
| 11 | 9 | } |
| 10 | + | |
| 12 | 11 | .widget-liquid-right .widget.expanded { |
| 13 | 12 | overflow: visible; |
| 14 | 13 | } |
| 14 | + | |
| 15 | 15 | .widget-conditional-hide { |
| 16 | 16 | display: none; |
| 17 | 17 | } |
| 18 | + | |
| 18 | 19 | .widget-conditional .widget-conditional-inner { |
| 19 | 20 | background: #f6f7f7; |
| 20 | 21 | border: 1px solid #dcdcde; |
| 21 | 22 | padding: 12px 10px 0; |
| @@ -20,47 +21,55 @@ | ||
| 20 | 21 | border: 1px solid #dcdcde; |
| 21 | 22 | padding: 12px 10px 0; |
| 22 | 23 | |
| 23 | 24 | } |
| 25 | + | |
| 24 | 26 | .widget-conditional { |
| 25 | 27 | margin-bottom: 12px; |
| 26 | 28 | margin-top: 10px; |
| 27 | 29 | } |
| 28 | -.widget-conditional .conditions{ | |
| 30 | + | |
| 31 | +.widget-conditional .conditions { | |
| 29 | 32 | margin-bottom: 12px; |
| 30 | 33 | } |
| 34 | + | |
| 31 | 35 | .widget-conditional .condition, |
| 32 | 36 | .widget-conditional .condition-top { |
| 33 | - clear:both; | |
| 37 | + clear: both; | |
| 34 | 38 | } |
| 39 | + | |
| 35 | 40 | .widget-conditional .condition { |
| 36 | 41 | padding-top: 12px; |
| 37 | 42 | position: relative; |
| 38 | 43 | } |
| 44 | + | |
| 39 | 45 | .widget-conditional .condition select { |
| 40 | 46 | width: 120px; |
| 41 | 47 | position: relative; |
| 42 | 48 | z-index: 2; |
| 43 | 49 | } |
| 50 | + | |
| 44 | 51 | .widget-conditional .condition-top select { |
| 45 | 52 | width: auto; |
| 46 | 53 | } |
| 54 | + | |
| 47 | 55 | .widget-conditional .condition-control { |
| 48 | 56 | padding-top: 4px; |
| 49 | 57 | clear: both; |
| 50 | 58 | margin-top: -20px; |
| 51 | 59 | } |
| 60 | + | |
| 52 | 61 | .widget-conditional .selection { |
| 53 | 62 | margin-right: 50px; |
| 54 | 63 | margin-left: 20px; |
| 55 | 64 | } |
| 65 | + | |
| 56 | 66 | .widget-conditional .conditions-rule-has-children { |
| 57 | 67 | display: block; |
| 58 | 68 | } |
| 69 | + | |
| 59 | 70 | .widget-conditional .condition .actions { |
| 60 | 71 | margin-top: -28px; |
| 61 | -}.widget-conditional .condition .actions { | |
| 62 | - margin-top: -28px; | |
| 63 | 72 | } |
| 64 | 73 | |
| 65 | 74 | .widget-conditional .condition-control a { |
| 66 | 75 | text-decoration: none; |
| @@ -73,19 +82,21 @@ | ||
| 73 | 82 | .wp-block-legacy-widget__edit-form .widget-conditional .condition-control a { |
| 74 | 83 | top: 20px; |
| 75 | 84 | } |
| 76 | 85 | |
| 77 | -.widget-conditional .condition-control a:before { | |
| 86 | +.widget-conditional .condition-control a::before { | |
| 78 | 87 | position: absolute; |
| 79 | 88 | text-indent: 0; |
| 80 | 89 | top: 0; |
| 81 | 90 | left: 0; |
| 82 | 91 | } |
| 92 | + | |
| 83 | 93 | .wp-block-legacy-widget__edit-form .widget-inside.widget-inside .widget-conditional .condition-control .delete-condition, |
| 84 | 94 | .widget-conditional .condition-control .delete-condition { |
| 85 | 95 | left: 0; |
| 86 | 96 | color: #f11; |
| 87 | 97 | } |
| 98 | + | |
| 88 | 99 | .widget-conditional .condition-control .add-condition { |
| 89 | 100 | right: 0; |
| 90 | 101 | } |
| 91 | 102 | |
| @@ -93,10 +104,10 @@ | ||
| 93 | 104 | font-family: dashicons; |
| 94 | 105 | } |
| 95 | 106 | |
| 96 | 107 | .wp-block-legacy-widget__edit-form .widget-inside.widget-inside .widget-conditional-inner select { |
| 97 | - display:initial; | |
| 98 | - width:auto; | |
| 108 | + display: initial; | |
| 109 | + width: auto; | |
| 99 | 110 | background-color: #fff; |
| 100 | 111 | } |
| 101 | 112 | |
| 102 | 113 | .wp-block-legacy-widget__edit-form .widget-inside.widget-inside .widget-conditional .widget-conditional-inner select:disabled { |
| @@ -105,9 +116,9 @@ | ||
| 105 | 116 | background-color: #f6f7f7; |
| 106 | 117 | } |
| 107 | 118 | |
| 108 | 119 | .editor-styles-wrapper .wp-block-legacy-widget__edit-form .widget-inside.widget-inside .widget-conditional .alignleft { |
| 109 | - margin-left:20px | |
| 120 | + margin-left: 20px; | |
| 110 | 121 | } |
| 111 | 122 | |
| 112 | 123 | .widget-conditional .condition:last-child .condition-conjunction, |
| 113 | 124 | .widget-conditional .condition:last-child .condition-intersection { |
| @@ -124,8 +135,9 @@ | ||
| 124 | 135 | |
| 125 | 136 | .wp-core-ui .button.display-options { |
| 126 | 137 | margin-right: 5px; |
| 127 | 138 | } |
| 139 | + | |
| 128 | 140 | .wp-core-ui .button.display-options:hover { |
| 129 | 141 | text-decoration: none; |
| 130 | 142 | } |
| 131 | 143 | |
| @@ -133,12 +145,15 @@ | ||
| 133 | 145 | min-width: 0; |
| 134 | 146 | max-width: none; |
| 135 | 147 | height: auto; |
| 136 | 148 | } |
| 149 | + | |
| 137 | 150 | .wp-customizer .widget-conditional .condition-control a { |
| 138 | 151 | top: 15px; |
| 139 | 152 | } |
| 153 | + | |
| 140 | 154 | @media screen and ( max-width: 782px ) { |
| 155 | + | |
| 141 | 156 | .widget-conditional .condition-control a { |
| 142 | 157 | top: 20px; |
| 143 | 158 | } |
| 144 | 159 | } |
| @@ -143,10 +158,12 @@ | ||
| 143 | 158 | } |
| 144 | 159 | } |
| 145 | 160 | |
| 146 | 161 | .wp-block-legacy-widget__edit-form .widget-inside.widget-inside .widget-conditional-inner { |
| 162 | + | |
| 147 | 163 | /* |
| 148 | - * fonts of labels are reset to 13px in gutenberg editor for legacy widgets, ensure a consistent look on non-labels | |
| 164 | + * fonts of labels are reset to 13px in gutenberg editor for legacy widgets | |
| 165 | + * ensure a consistent look on non-labels | |
| 149 | 166 | */ |
| 150 | 167 | font-size: 13px; |
| 151 | 168 | } |
| 152 | 169 | |
| @@ -153,12 +170,12 @@ | ||
| 153 | 170 | /* |
| 154 | 171 | * Rules for gutenberg advanced panel |
| 155 | 172 | */ |
| 156 | 173 | |
| 157 | - .widget-vis__wrapper .components-base-control, | |
| 158 | - .widget-vis__rule .components-base-control { | |
| 159 | - margin-bottom: 12px; | |
| 160 | - } | |
| 174 | +.widget-vis__wrapper .components-base-control, | |
| 175 | +.widget-vis__rule .components-base-control { | |
| 176 | + margin-bottom: 12px; | |
| 177 | +} | |
| 161 | 178 | |
| 162 | 179 | .widget-vis__rule { |
| 163 | 180 | padding: 12px; |
| 164 | 181 | border: 1px solid #dcdcde; |
| @@ -173,8 +190,12 @@ | ||
| 173 | 190 | justify-content: stretch; |
| 174 | 191 | align-items: center; |
| 175 | 192 | } |
| 176 | 193 | |
| 194 | +.widget-vis__rule-minor { | |
| 195 | + margin-top: 8px; | |
| 196 | +} | |
| 197 | + | |
| 177 | 198 | .widget-vis__if, |
| 178 | 199 | .widget-vis__is { |
| 179 | 200 | margin-right: 8px; |
| 180 | 201 | width: 10px; |
| @@ -206,7 +227,11 @@ | ||
| 206 | 227 | top: 4px; |
| 207 | 228 | } |
| 208 | 229 | |
| 209 | 230 | .widget-vis__select-multi-level select option:disabled { |
| 210 | - font-size: 18px; | |
| 211 | - font-weight: 600; | |
| 231 | + font-size: 18px; | |
| 232 | + font-weight: 600; | |
| 233 | +} | |
| 234 | + | |
| 235 | +.widget-vis__delete-rule .components-button.is-secondary { | |
| 236 | + margin-top: 8px; | |
| 212 | 237 | } |