mirror of https://github.com/sgoudham/carbon.git
Add window control themes
parent
c82779f2df
commit
d4096d7e16
@ -0,0 +1,18 @@
|
||||
import React from 'react'
|
||||
import { Controls, ControlsBW } from './svg/Controls'
|
||||
|
||||
export default ({ theme }) => (
|
||||
<div className="window-controls">
|
||||
{ theme === 'bw' ? <ControlsBW /> : <Controls /> }
|
||||
<style jsx>{`
|
||||
div {
|
||||
margin-top: -19px;
|
||||
position: relative;
|
||||
top: +30px;
|
||||
margin-left: 18px;
|
||||
z-index: 1;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
</div>
|
||||
)
|
Loading…
Reference in New Issue