|
5 | 5 | const {StyleSheet} = require('aphrodite')
|
6 | 6 | const globalStyles = require('./global')
|
7 | 7 |
|
| 8 | +// #9283 |
| 9 | +// Create 25x25 squares and place the buttons at the center of each container |
| 10 | +const buttonContainer = { |
| 11 | + boxSizing: 'border-box', |
| 12 | + display: 'flex', |
| 13 | + alignItems: 'center', |
| 14 | + justifyContent: 'center', |
| 15 | + height: globalStyles.navigationBar.urlbarForm.height, |
| 16 | + width: globalStyles.navigationBar.urlbarForm.height, |
| 17 | + minHeight: globalStyles.navigationBar.urlbarForm.height, |
| 18 | + minWidth: globalStyles.navigationBar.urlbarForm.height, |
| 19 | + WebkitAppRegion: 'no-drag' |
| 20 | +} |
| 21 | + |
8 | 22 | const styles = StyleSheet.create({
|
9 | 23 | formControl: {
|
10 | 24 | background: '#fff',
|
@@ -200,19 +214,16 @@ const styles = StyleSheet.create({
|
200 | 214 | width: '100%'
|
201 | 215 | },
|
202 | 216 |
|
203 |
| - // #9283 |
204 |
| - // Create 25x25 squares and place the buttons at the center of each container |
205 |
| - navigator__buttonContainer: { |
| 217 | + // See urlBar.js and publisherToggle.js |
| 218 | + // TODO: rename buttonContainer and urlbarIconContainer |
| 219 | + navigator__buttonContainer: buttonContainer, |
| 220 | + navigator__urlbarForm__buttonContainer_showNoScriptInfo: buttonContainer, |
| 221 | + navigator__urlbarForm__urlbarIconContainer: buttonContainer, |
| 222 | + |
| 223 | + // Add border to the bookmark button and publisher button only |
| 224 | + navigator__buttonContainer_outsideOfURLbar: { |
206 | 225 | border: `1px solid ${globalStyles.color.urlBarOutline}`,
|
207 |
| - borderRadius: globalStyles.radius.borderRadiusURL, |
208 |
| - boxSizing: 'border-box', |
209 |
| - display: 'flex', |
210 |
| - alignItems: 'center', |
211 |
| - height: globalStyles.navigationBar.urlbarForm.height, |
212 |
| - width: globalStyles.navigationBar.urlbarForm.height, |
213 |
| - minHeight: globalStyles.navigationBar.urlbarForm.height, |
214 |
| - minWidth: globalStyles.navigationBar.urlbarForm.height, |
215 |
| - WebkitAppRegion: 'no-drag' |
| 226 | + borderRadius: globalStyles.radius.borderRadiusURL |
216 | 227 | }
|
217 | 228 | })
|
218 | 229 |
|
|
0 commit comments