clean up menu controls position, about page

main
Jake Dexheimer 6 years ago
parent b5a1052b40
commit 4571b03eb4

@ -211,6 +211,7 @@ class Carbon extends React.PureComponent {
height: auto; height: auto;
min-width: inherit; min-width: inherit;
padding: 18px 18px; padding: 18px 18px;
padding-left: 12px;
${config.lineNumbers ? 'padding-left: 12px;' : ''} border-radius: 5px; ${config.lineNumbers ? 'padding-left: 12px;' : ''} border-radius: 5px;
font-family: ${config.fontFamily}, monospace !important; font-family: ${config.fontFamily}, monospace !important;
font-size: ${config.fontSize}; font-size: ${config.fontSize};

@ -53,11 +53,11 @@ export default ({ titleBar, theme, handleTitleBarChange, copyable, code }) => (
)} )}
<style jsx> <style jsx>
{` {`
div { .window-controls {
margin-top: -24px; margin-top: -24px;
position: relative; position: relative;
top: 34px; top: ${theme === 'bw' ? 36 : 34}px;
margin-left: 18px; margin-left: ${theme === 'bw' ? 16 : 14}px;
z-index: 2; z-index: 2;
} }

@ -11,7 +11,7 @@ export const Controls = () => (
) )
export const ControlsBW = () => ( export const ControlsBW = () => (
<svg xmlns="http://www.w3.org/2000/svg" width="54" height="16" viewBox="0 0 54 14"> <svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14">
<g fill="none" fillRule="evenodd" stroke="#878787" transform="translate(1 1)"> <g fill="none" fillRule="evenodd" stroke="#878787" transform="translate(1 1)">
<circle cx="6" cy="6" r="6" /> <circle cx="6" cy="6" r="6" />
<circle cx="26" cy="6" r="6" /> <circle cx="26" cy="6" r="6" />

@ -1,6 +1,5 @@
import React from 'react' import React from 'react'
import Page from '../components/Page' import Page from '../components/Page'
import { COLORS } from '../lib/constants'
export default () => ( export default () => (
<Page> <Page>
@ -66,9 +65,13 @@ export default () => (
</div> </div>
<style jsx> <style jsx>
{` {`
h4 {
font-weight: 600;
}
p, p,
li { li {
color: ${COLORS.GRAY}; color: #fff;
} }
span { span {

Loading…
Cancel
Save