Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(lsg): add new style for chrome, property pane and element pane
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Frick committed Dec 13, 2017
1 parent 8bf57bd commit a968f87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/component/app.tsx
Expand Up @@ -17,19 +17,24 @@ import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Store } from '../store';
import styledComponents from 'styled-components';
import { colors } from '../lsg/patterns/colors';

globalStyles();

const ElementPane = styledComponents.div`
flex: 2 0 0px;
flex: 3 0 60%;
overflow: scroll;
`;

const PropertyPane = styledComponents.div`
flex: 2 0 0px;
`;

const PatternsPane = styledComponents.div`
flex: 3 0 0px;
flex: 2 0 40%;
overflow: scroll;
border-top: 2px solid ${colors.grey70.toString()};
box-sizing: border-box;
`;

const ProjectPane = styledComponents.div`
Expand Down Expand Up @@ -82,7 +87,7 @@ class App extends React.Component<AppProps> {
// Todo: project and page don't update on page change
const project = this.props.store.getCurrentProject();
const page = this.props.store.getCurrentPage();
const title = `${project && project.getName()} - ${page && page.getName()}`;
const title = `${project && project.getName()} > ${page && page.getName()}`;

return (
<Layout directionVertical>
Expand Down
3 changes: 2 additions & 1 deletion src/lsg/patterns/chrome/index.tsx
Expand Up @@ -19,7 +19,7 @@ const StyledChrome = styled(Space).attrs({
width: 100%;
align-items: center;
font-family: ${fonts().NORMAL_FONT};
height: 38px;
height: 54px;
-webkit-app-region: drag;
-webkit-user-select: none;
user-select: none;
Expand All @@ -30,6 +30,7 @@ const StyledChromeTitle = styled.div`
align-items: center;
margin: 0 auto;
color: ${colors.grey36.toString()};
font-size: 15px;
`;

export default class Chrome extends React.Component<ChromeProps> {
Expand Down
2 changes: 1 addition & 1 deletion src/lsg/patterns/layout/index.tsx
Expand Up @@ -18,7 +18,7 @@ const StyledLayout = styled.div`
const StyledMainArea = styled(StyledLayout)`
box-sizing: border-box;
height: 100vh;
padding-top: 38px;
padding-top: 54px;
`;

const StyledSideBar = styled(StyledLayout)`
Expand Down

0 comments on commit a968f87

Please sign in to comment.