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 margin-right: 0; |
|
83 } |
82 } |
84 .wp-block-buttons.is-vertical > .wp-block-button:last-child { |
83 .wp-block-buttons.is-vertical > .wp-block-button:last-child { |
85 margin-bottom: 0; |
84 margin-bottom: 0; |
86 } |
85 } |
87 .wp-block-buttons > .wp-block-button { |
86 .wp-block-buttons > .wp-block-button { |
88 display: inline-block; |
87 display: inline-block; |
89 margin-left: 0; |
88 margin: 0; |
90 margin-right: 0.5em; |
|
91 margin-bottom: 0.5em; |
|
92 } |
|
93 .wp-block-buttons > .wp-block-button:last-child { |
|
94 margin-right: 0; |
|
95 } |
89 } |
96 .wp-block-buttons.is-content-justification-left { |
90 .wp-block-buttons.is-content-justification-left { |
97 justify-content: flex-start; |
91 justify-content: flex-start; |
98 } |
92 } |
99 .wp-block-buttons.is-content-justification-left.is-vertical { |
93 .wp-block-buttons.is-content-justification-left.is-vertical { |
106 align-items: center; |
100 align-items: center; |
107 } |
101 } |
108 .wp-block-buttons.is-content-justification-right { |
102 .wp-block-buttons.is-content-justification-right { |
109 justify-content: flex-end; |
103 justify-content: flex-end; |
110 } |
104 } |
111 .wp-block-buttons.is-content-justification-right > .wp-block-button { |
|
112 margin-left: 0.5em; |
|
113 margin-right: 0; |
|
114 } |
|
115 .wp-block-buttons.is-content-justification-right > .wp-block-button:first-child { |
|
116 margin-left: 0; |
|
117 } |
|
118 .wp-block-buttons.is-content-justification-right.is-vertical { |
105 .wp-block-buttons.is-content-justification-right.is-vertical { |
119 align-items: flex-end; |
106 align-items: flex-end; |
120 } |
107 } |
121 .wp-block-buttons.is-content-justification-space-between { |
108 .wp-block-buttons.is-content-justification-space-between { |
122 justify-content: space-between; |
109 justify-content: space-between; |
123 } |
110 } |
124 .wp-block-buttons.aligncenter { |
111 .wp-block-buttons.aligncenter { |
125 text-align: center; |
112 text-align: center; |
126 } |
113 } |
127 .wp-block-buttons.alignleft .wp-block-button { |
|
128 margin-left: 0; |
|
129 margin-right: 0.5em; |
|
130 } |
|
131 .wp-block-buttons.alignleft .wp-block-button:last-child { |
|
132 margin-right: 0; |
|
133 } |
|
134 .wp-block-buttons.alignright .wp-block-button { |
|
135 margin-right: 0; |
|
136 margin-left: 0.5em; |
|
137 } |
|
138 .wp-block-buttons.alignright .wp-block-button:first-child { |
|
139 margin-left: 0; |
|
140 } |
|
141 .wp-block-buttons:not(.is-content-justification-space-between, |
114 .wp-block-buttons:not(.is-content-justification-space-between, |
142 .is-content-justification-right, |
115 .is-content-justification-right, |
143 .is-content-justification-left, |
116 .is-content-justification-left, |
144 .is-content-justification-center) .wp-block-button.aligncenter { |
117 .is-content-justification-center) .wp-block-button.aligncenter { |
145 /* stylelint-enable indentation */ |
118 /* stylelint-enable indentation */ |
146 margin-right: auto; |
119 margin-right: auto; |
147 margin-left: auto; |
120 margin-left: auto; |
148 margin-bottom: 0.5em; |
|
149 width: 100%; |
121 width: 100%; |
150 } |
122 } |
151 |
123 |
152 .wp-block-button.aligncenter { |
124 .wp-block-button.aligncenter { |
153 text-align: center; |
125 text-align: center; |