mirror of
https://github.com/SomboChea/ui
synced 2024-09-30 05:17:47 +07:00
ae73772a37
* refactor: added eslint-plugin-import * refactor: disable some rules for muiComponents * fix: fixed import
81 lines
1.6 KiB
TypeScript
81 lines
1.6 KiB
TypeScript
import { injectGlobal } from 'emotion';
|
|
|
|
import { fontSize, fontWeight } from './sizes';
|
|
import colors from './colors';
|
|
import { breakpoints } from './media';
|
|
|
|
const fontFamily = `-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
|
|
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`;
|
|
|
|
export default injectGlobal`
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: ${fontFamily};
|
|
font-size: ${fontSize.base};
|
|
color: ${colors.eclipse};
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
strong {
|
|
font-weight: ${fontWeight.semiBold};
|
|
}
|
|
|
|
.container {
|
|
padding: 15px;
|
|
flex: 1;
|
|
|
|
@media screen and (min-width: ${breakpoints.container}px) {
|
|
max-width: ${breakpoints.container}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%;
|
|
}
|
|
|
|
`;
|