1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-17 00:25:50 +07:00

refactor: update global styles using emotion

This commit is contained in:
Griffithtp
2019-07-05 23:58:18 +01:00
parent a49780f5f0
commit 99e1bb3ea3
7 changed files with 75 additions and 43 deletions

View File

@@ -1,5 +1,7 @@
import { injectGlobal } from 'emotion';
import { injectGlobal, css } from 'emotion';
import { fontSize, fontWeight } from './sizes';
import colors from './colors';
import mq, { breakpoints } from './media';
export default injectGlobal`
html,
@@ -9,6 +11,7 @@ export default injectGlobal`
body {
font-size: ${fontSize.base};
color: ${colors.eclipse};
}
ul {
@@ -20,4 +23,53 @@ export default injectGlobal`
strong {
font-weight: ${fontWeight.semiBold};
}
.container {
padding: 15px;
flex: 1;
@media screen and (min-width: ${breakpoints.large}px) {
max-width: ${breakpoints.large}px;
width: 100%;
margin-left: auto;
margin-right: auto;
};
.el-loading-spinner {
margin-top: 0 !important;
}
}
.content {
display: flex;
}
.page-full-height {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow: hidden;
}
.el-button {
&:hover, &:focus {
color: ${colors.primary};
border-color: ${colors.primary};
}
}
.el-input__inner {
&:hover, &:focus {
border-color: ${colors.primary};
}
}
.el-dialog__headerbtn:hover .el-dialog__close {
color: ${colors.eclipse};
}
.package-list-items {
width: 100%;
}
`;