67 */ |
73 */ |
68 /** |
74 /** |
69 * Reset the WP Admin page styles for Gutenberg-like pages. |
75 * Reset the WP Admin page styles for Gutenberg-like pages. |
70 */ |
76 */ |
71 .wp-block-buttons { |
77 .wp-block-buttons { |
72 display: flex; |
|
73 flex-direction: row; |
|
74 flex-wrap: wrap; |
|
75 column-gap: 0.5em; |
|
76 /* stylelint-disable indentation */ |
78 /* stylelint-disable indentation */ |
77 } |
79 } |
78 .wp-block-buttons.is-vertical { |
80 .wp-block-buttons.is-vertical { |
79 flex-direction: column; |
81 flex-direction: column; |
80 } |
|
81 .wp-block-buttons.is-vertical > .wp-block-button { |
|
82 /*rtl:ignore*/ |
|
83 margin-right: 0; |
|
84 } |
82 } |
85 .wp-block-buttons.is-vertical > .wp-block-button:last-child { |
83 .wp-block-buttons.is-vertical > .wp-block-button:last-child { |
86 margin-bottom: 0; |
84 margin-bottom: 0; |
87 } |
85 } |
88 .wp-block-buttons > .wp-block-button { |
86 .wp-block-buttons > .wp-block-button { |
89 display: inline-block; |
87 display: inline-block; |
90 /*rtl:ignore*/ |
88 margin: 0; |
91 margin-left: 0; |
|
92 /*rtl:ignore*/ |
|
93 margin-right: 0.5em; |
|
94 margin-bottom: 0.5em; |
|
95 } |
|
96 .wp-block-buttons > .wp-block-button:last-child { |
|
97 /*rtl:ignore*/ |
|
98 margin-right: 0; |
|
99 } |
89 } |
100 .wp-block-buttons.is-content-justification-left { |
90 .wp-block-buttons.is-content-justification-left { |
101 justify-content: flex-start; |
91 justify-content: flex-start; |
102 } |
92 } |
103 .wp-block-buttons.is-content-justification-left.is-vertical { |
93 .wp-block-buttons.is-content-justification-left.is-vertical { |
110 align-items: center; |
100 align-items: center; |
111 } |
101 } |
112 .wp-block-buttons.is-content-justification-right { |
102 .wp-block-buttons.is-content-justification-right { |
113 justify-content: flex-end; |
103 justify-content: flex-end; |
114 } |
104 } |
115 .wp-block-buttons.is-content-justification-right > .wp-block-button { |
|
116 /*rtl:ignore*/ |
|
117 margin-left: 0.5em; |
|
118 /*rtl:ignore*/ |
|
119 margin-right: 0; |
|
120 } |
|
121 .wp-block-buttons.is-content-justification-right > .wp-block-button:first-child { |
|
122 /*rtl:ignore*/ |
|
123 margin-left: 0; |
|
124 } |
|
125 .wp-block-buttons.is-content-justification-right.is-vertical { |
105 .wp-block-buttons.is-content-justification-right.is-vertical { |
126 align-items: flex-end; |
106 align-items: flex-end; |
127 } |
107 } |
128 .wp-block-buttons.is-content-justification-space-between { |
108 .wp-block-buttons.is-content-justification-space-between { |
129 justify-content: space-between; |
109 justify-content: space-between; |
130 } |
110 } |
131 .wp-block-buttons.aligncenter { |
111 .wp-block-buttons.aligncenter { |
132 text-align: center; |
112 text-align: center; |
133 } |
113 } |
134 .wp-block-buttons.alignleft .wp-block-button { |
|
135 /*rtl:ignore*/ |
|
136 margin-left: 0; |
|
137 /*rtl:ignore*/ |
|
138 margin-right: 0.5em; |
|
139 } |
|
140 .wp-block-buttons.alignleft .wp-block-button:last-child { |
|
141 /*rtl:ignore*/ |
|
142 margin-right: 0; |
|
143 } |
|
144 .wp-block-buttons.alignright .wp-block-button { |
|
145 /*rtl:ignore*/ |
|
146 margin-right: 0; |
|
147 /*rtl:ignore*/ |
|
148 margin-left: 0.5em; |
|
149 } |
|
150 .wp-block-buttons.alignright .wp-block-button:first-child { |
|
151 /*rtl:ignore*/ |
|
152 margin-left: 0; |
|
153 } |
|
154 .wp-block-buttons:not(.is-content-justification-space-between, |
114 .wp-block-buttons:not(.is-content-justification-space-between, |
155 .is-content-justification-right, |
115 .is-content-justification-right, |
156 .is-content-justification-left, |
116 .is-content-justification-left, |
157 .is-content-justification-center) .wp-block-button.aligncenter { |
117 .is-content-justification-center) .wp-block-button.aligncenter { |
158 /* stylelint-enable indentation */ |
118 /* stylelint-enable indentation */ |
159 margin-left: auto; |
119 margin-left: auto; |
160 margin-right: auto; |
120 margin-right: auto; |
161 margin-bottom: 0.5em; |
|
162 width: 100%; |
121 width: 100%; |
163 } |
122 } |
164 |
123 |
165 .wp-block-button.aligncenter { |
124 .wp-block-button.aligncenter { |
166 text-align: center; |
125 text-align: center; |