Balance padding with window controls

main
Jake Dexheimer 8 years ago
parent 204c8cd393
commit 3a84948ce5

@ -34,7 +34,8 @@ const CodeImage = (props) => {
// create styles // create styles
const containerStyle = { const containerStyle = {
background: config.background, background: config.background,
padding: `${config.paddingVertical} ${config.paddingHorizontal}` padding: `${config.paddingVertical} ${config.paddingHorizontal}`,
paddingTop: `calc(${config.paddingVertical} - 19px)` // TODO fix hack: accomodates for space taken up by window controls
} }
return ( return (

@ -11,9 +11,9 @@ export default () => (
</svg> </svg>
<style jsx>{` <style jsx>{`
div { div {
position: absolute; position: relative;
top: +30px;
margin-left: 18px; margin-left: 18px;
margin-top: 12px;
z-index: 1; z-index: 1;
} }
`} `}

Loading…
Cancel
Save