removed reset css file, fixed imports

This commit is contained in:
Artur Bien
2019-04-08 20:12:21 +02:00
parent 254095e6a0
commit 95649dcdbf
24 changed files with 41 additions and 249 deletions

View File

@@ -2,7 +2,7 @@ import React from "react";
import propTypes from "prop-types";
import styled from "styled-components";
import { fontSizes } from "../common/theme.variables";
import { fontSizes } from "../common/system";
const StyledAnchor = styled.a`
color: ${({ theme }) => theme.anchor};

View File

@@ -1,7 +1,7 @@
import React from "react";
import propTypes from "prop-types";
import styled from "styled-components";
import { blockSizes } from "../common/theme.variables";
import { blockSizes } from "../common/system";
const StyledBar = styled.div`
display: inline-block;

View File

@@ -7,7 +7,7 @@ import {
createBoxStyles,
createDisabledTextStyles
} from "../common";
import { blockSizes, fontSizes, padding } from "../common/theme.variables";
import { blockSizes, fontSizes, padding } from "../common/system";
const StyledButton = styled.button`
${createBoxStyles()};

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled, { css } from "styled-components";
import { StyledCutout, createDisabledTextStyles, insetShadow } from "../common";
import { padding, fontSizes } from "../common/theme.variables";
import { padding, fontSizes } from "../common/system";
const StyledLabel = styled.label`
display: block;

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { createDisabledTextStyles } from "../common";
import { fontSizes, padding } from "../common/theme.variables";
import { fontSizes, padding } from "../common/system";
const StyledFieldset = styled.fieldset`
position: relative;

View File

@@ -4,7 +4,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { StyledTextInput, StyledCutout } from "../common";
import { Cutout } from "../";
import { blockSizes } from "../common/theme.variables";
import { blockSizes } from "../common/system";
const StyledInputWrapper = styled(Cutout)`
height: ${blockSizes.md};

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { createDisabledTextStyles } from "../common";
import { padding, blockSizes } from "../common/theme.variables";
import { padding, blockSizes } from "../common/system";
const StyledListItem = styled.li`
box-sizing: border-box;

View File

@@ -4,7 +4,7 @@ import propTypes from "prop-types";
import Button from "../Button/Button";
import styled from "styled-components";
import { blockSizes } from "../common/theme.variables";
import { blockSizes } from "../common/system";
import InputBase from "../InputBase/InputBase";
// ⭕⭕⭕⭕⭕ fix functionality and use hooks

View File

@@ -4,7 +4,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { StyledCutout } from "../common";
import { blockSizes } from "../common/theme.variables";
import { blockSizes } from "../common/system";
const Wrapper = styled(StyledCutout)`
display: inline-block;

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled, { css } from "styled-components";
import { StyledCutout, createDisabledTextStyles, insetShadow } from "../common";
import { padding, fontSizes } from "../common/theme.variables";
import { padding, fontSizes } from "../common/system";
const StyledLabel = styled.label`
display: block;

View File

@@ -5,7 +5,7 @@ import Button from "../Button/Button";
import styled from "styled-components";
import { shadow } from "../common";
import { blockSizes, fontSizes, padding } from "../common/theme.variables";
import { blockSizes, fontSizes, padding } from "../common/system";
import { StyledCutout } from "../common";
const StyledSelectWrapper = styled(StyledCutout)`

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { createBorderStyles, createBoxStyles } from "../common";
import { blockSizes, padding } from "../common/theme.variables";
import { blockSizes, padding } from "../common/system";
const StyledTab = styled.div`
${createBoxStyles()}

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { createBorderStyles, createBoxStyles } from "../common";
import { padding } from "../common/theme.variables";
import { padding } from "../common/system";
const StyledTabBody = styled.div`
${createBoxStyles()}

View File

@@ -2,7 +2,7 @@ import React from "react";
import propTypes from "prop-types";
import styled from "styled-components";
import { padding } from "../common/theme.variables";
import { padding } from "../common/system";
const StyledTd = styled.td`
padding: 0 ${padding.sm};

View File

@@ -3,7 +3,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { createBorderStyles } from "../common";
import { padding } from "../common/theme.variables";
import { padding } from "../common/system";
// ⭕⭕⭕⭕ move text down on Click

View File

@@ -2,7 +2,7 @@ import React from "react";
import propTypes from "prop-types";
import styled from "styled-components";
import { blockSizes, colors } from "../common/theme.variables";
import { blockSizes, colors } from "../common/system";
const StyledTr = styled.tr`
color: inherit;

View File

@@ -3,12 +3,7 @@ import propTypes from "prop-types";
import styled from "styled-components";
import { StyledCutout, insetShadow, createDisabledTextStyles } from "../common";
import {
blockSizes,
fontSizes,
padding,
fontFamily
} from "../common/theme.variables";
import { blockSizes, fontSizes, padding, fontFamily } from "../common/system";
const StyledTextAreaWrapper = styled(StyledCutout)`
display: inline-block;

View File

@@ -2,7 +2,7 @@ import React from "react";
import propTypes from "prop-types";
import styled from "styled-components";
import { padding } from "../common/theme.variables";
import { padding } from "../common/system";
const StyledWindowContent = styled.div`
padding: ${padding.md};

View File

@@ -2,7 +2,7 @@ import React from "react";
import propTypes from "prop-types";
import styled from "styled-components";
import { blockSizes, padding } from "../common/theme.variables";
import { blockSizes, padding } from "../common/system";
const SlyledWindowHeader = styled.div`
height: ${blockSizes.md};

View File

@@ -1,5 +1,5 @@
import styled, { css } from "styled-components";
import { colors, fontSizes, padding, fontFamily } from "./theme.variables";
import { fontSizes, padding, fontFamily } from "./system";
export const shadow = `4px 4px 10px 0 rgba(0, 0, 0, 0.35)`;
export const insetShadow = `inset 3px 3px 10px rgba(0, 0, 0, 0.2)`;

View File

@@ -0,0 +1,20 @@
// TODO - implement styled-system
export const fontSizes = {
sm: "15px",
md: "16px",
lg: "17px"
};
export const blockSizes = {
sm: "27px",
md: "35px",
lg: "43px"
};
export const padding = {
sm: "0.5rem",
md: "1rem",
lg: "1.25rem"
};
export const fontFamily = "sans-serif";

View File

@@ -1,34 +0,0 @@
export const colors = {
bg: "#ced0cf",
dark: "#050608",
light: "#ffffff",
darkGray: "#888c8f",
lightGray: "#dfe0e3",
navy: "#000080",
blue: "#1034a6",
lightYellow: "#fefbcc",
purple: "#440381"
};
export const styles = {
shadow: "4px 4px 10px 0 rgba(0, 0, 0, 0.35)"
};
export const fontSizes = {
sm: "15px",
md: "16px",
lg: "17px"
};
export const blockSizes = {
sm: "27px",
md: "35px",
lg: "43px"
};
export const padding = {
sm: "0.5rem",
md: "1rem",
lg: "1.25rem"
};
export const fontFamily = "sans-serif";

View File

@@ -1,189 +0,0 @@
/* reset css */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* end of reset css */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
a {
color: inherit;
text-decoration: none;
}
ul,
li {
list-style-type: none;
}
button {
outline: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
margin: 0;
padding: 0;
font-family: sans-serif;
/* -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; */
color: black;
background: #ced0cf;
overflow: auto;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
html,
body {
width: 100%;
height: 100%;
position: fixed;
top: 0;
}
#root {
height: 100%;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}

View File

@@ -20,7 +20,7 @@ const Wrapper = styled.div`
/* background: #050608; */
`;
const ratio = 0.8;
const ratio = 1;
const Main = styled.main`
display: inline-block;