Change viewport styling to more closely match v4

Styling for addon-viewport iframe was a 10px black border which was a
little intrusive when working on stories. This commit changes the iframe
style to a more familiar style that mimics v4 with horizontal centering
and a subtle box-shadow.
This commit is contained in:
Luke Glazebrook 2019-03-09 00:28:50 +00:00
parent 745b6ebede
commit e8303e270c

View File

@ -129,9 +129,12 @@ export default class ViewportTool extends Component {
<Global
styles={{
[`#${iframeId}`]: {
border: '10px solid black',
position: 'relative',
display: 'block',
margin: '10px auto',
border: '1px solid #888',
borderRadius: 4,
margin: 10,
boxShadow: '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08);',
...(isRotated ? flip(item.value || {}) : item.value || {}),
},