Minor style changes

main
Jake Dexheimer 7 years ago
parent dd40da7328
commit 8886fed9ba

@ -1,6 +1,6 @@
import React from 'react' import React from 'react'
import enhanceWithClickOutside from 'react-click-outside' import enhanceWithClickOutside from 'react-click-outside'
import { BlockPicker } from 'react-color' import { TwitterPicker } from 'react-color'
class ColorPicker extends React.Component { class ColorPicker extends React.Component {
constructor() { constructor() {
@ -33,7 +33,7 @@ class ColorPicker extends React.Component {
<div className="bg-color" style={{background: this.props.bg}} onClick={this.toggle}></div> <div className="bg-color" style={{background: this.props.bg}} onClick={this.toggle}></div>
</div> </div>
<div className="colorpicker-picker" hidden={!this.state.isVisible}> <div className="colorpicker-picker" hidden={!this.state.isVisible}>
<BlockPicker color={this.props.bg} onChangeComplete={this.handlePickColor} /> <TwitterPicker color={this.props.bg} onChangeComplete={this.handlePickColor} />
</div> </div>
<style jsx>{` <style jsx>{`
.colorpicker-container { .colorpicker-container {
@ -67,8 +67,8 @@ class ColorPicker extends React.Component {
.colorpicker-picker { .colorpicker-picker {
position: absolute; position: absolute;
margin-left: -32px; margin-left: 32px;
margin-top: 9px; margin-top: 10px;
} }
`}</style> `}</style>
</div> </div>

@ -38,9 +38,10 @@ class Settings extends React.Component {
</div> </div>
<style jsx>{` <style jsx>{`
.settings-container { .settings-container {
display: flex;
position: relative;
height: 100%; height: 100%;
width: 37px; width: 37px;
display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 3px; border-radius: 3px;
@ -72,11 +73,12 @@ class Settings extends React.Component {
.settings-settings { .settings-settings {
display: none; display: none;
position: absolute;
top: 48px;
left: 0;
border: 0.5px solid #000; border: 0.5px solid #000;
width: 184px; width: 184px;
border-radius: 3px; border-radius: 3px;
position: absolute;
margin-top: 132px;
background: ${PALETTE.EDITOR_BG}; background: ${PALETTE.EDITOR_BG};
} }
`}</style> `}</style>

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
export default () => ( export default () => (
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 280 280"> <svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 280 280">
<g fill="#F8E81C" fillRule="evenodd"> <g fill="#F8E81C" fillRule="evenodd">
<path fillRule="nonzero" d="M140,280 C62.680135,280 0,217.319865 0,140 C0,62.680135 62.680135,0 140,0 C217.319865,0 280,62.680135 280,140 C280,217.319865 217.319865,280 140,280 Z M140,272 C212.901587,272 272,212.901587 272,140 C272,67.098413 212.901587,8 140,8 C67.098413,8 8,67.098413 8,140 C8,212.901587 67.098413,272 140,272 Z M140.501845,259.926199 C74.5455954,259.926199 21.0774908,206.458095 21.0774908,140.501845 C21.0774908,74.5455954 74.5455954,21.0774908 140.501845,21.0774908 C206.458095,21.0774908 259.926199,74.5455954 259.926199,140.501845 C259.926199,206.458095 206.458095,259.926199 140.501845,259.926199 Z M140.501845,251.926199 C202.039817,251.926199 251.926199,202.039817 251.926199,140.501845 C251.926199,78.9638734 202.039817,29.0774908 140.501845,29.0774908 C78.9638734,29.0774908 29.0774908,78.9638734 29.0774908,140.501845 C29.0774908,202.039817 78.9638734,251.926199 140.501845,251.926199 Z"/> <path fillRule="nonzero" d="M140,280 C62.680135,280 0,217.319865 0,140 C0,62.680135 62.680135,0 140,0 C217.319865,0 280,62.680135 280,140 C280,217.319865 217.319865,280 140,280 Z M140,272 C212.901587,272 272,212.901587 272,140 C272,67.098413 212.901587,8 140,8 C67.098413,8 8,67.098413 8,140 C8,212.901587 67.098413,272 140,272 Z M140.501845,259.926199 C74.5455954,259.926199 21.0774908,206.458095 21.0774908,140.501845 C21.0774908,74.5455954 74.5455954,21.0774908 140.501845,21.0774908 C206.458095,21.0774908 259.926199,74.5455954 259.926199,140.501845 C259.926199,206.458095 206.458095,259.926199 140.501845,259.926199 Z M140.501845,251.926199 C202.039817,251.926199 251.926199,202.039817 251.926199,140.501845 C251.926199,78.9638734 202.039817,29.0774908 140.501845,29.0774908 C78.9638734,29.0774908 29.0774908,78.9638734 29.0774908,140.501845 C29.0774908,202.039817 78.9638734,251.926199 140.501845,251.926199 Z"/>
<g transform="translate(49 118)"> <g transform="translate(49 118)">

@ -86,15 +86,17 @@ class Index extends React.Component {
<style jsx>{` <style jsx>{`
.main { .main {
display: flex; display: flex;
justify-content: center;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
height: 100vh; height: 100vh;
min-width: 848px; min-width: 848px;
min-height: 704px;
} }
.header { .header {
margin: 40px 0 32px; margin: 40px 0 48px;
width: 704px; width: 648px;
} }
.header-content { .header-content {

Loading…
Cancel
Save