fix(client/web): remove css loader (#57)
This commit is contained in:
parent
10c13f5ad8
commit
047e3a8601
12 changed files with 83 additions and 73 deletions
|
@ -11,6 +11,12 @@
|
|||
<script src="/static/js/react.development.js?v=16.8.6"></script>
|
||||
<script src="/static/js/react-dom.development.js?v=16.8.6"></script>
|
||||
<script src="/static/js/immutable.min.js?v=4.0.0-rc.12"></script>
|
||||
<link rel="stylesheet" href="/static/css/animation.css">
|
||||
<link rel="stylesheet" href="/static/css/color.css">
|
||||
<link rel="stylesheet" href="/static/css/desktop.css">
|
||||
<link rel="stylesheet" href="/static/css/reset.css">
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
<link rel="stylesheet" href="/static/css/white.css">
|
||||
<!-- <link
|
||||
rel="apple-touch-icon"
|
||||
sizes="57x57"
|
||||
|
|
|
@ -11,6 +11,12 @@
|
|||
<script src="/static/js/react.production.min.js?v=16.8.6"></script>
|
||||
<script src="/static/js/react-dom.production.min.js?v=16.8.6"></script>
|
||||
<script src="/static/js/immutable.min.js?v=4.0.0-rc.12"></script>
|
||||
<link rel="stylesheet" href="/static/css/animation.css">
|
||||
<link rel="stylesheet" href="/static/css/color.css">
|
||||
<link rel="stylesheet" href="/static/css/desktop.css">
|
||||
<link rel="stylesheet" href="/static/css/reset.css">
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
<link rel="stylesheet" href="/static/css/white.css">
|
||||
<!-- <link
|
||||
rel="apple-touch-icon"
|
||||
sizes="57x57"
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
"@types/jest": "^24.0.12",
|
||||
"assert": "^2.0.0",
|
||||
"babel-loader": "^8.2.2",
|
||||
"css-loader": "^2.1.1",
|
||||
"deep-diff": "^1.0.2",
|
||||
"html-webpack-plugin": "^4.0.0-beta.5",
|
||||
"jest": "^26.6.3",
|
||||
|
@ -44,7 +43,7 @@
|
|||
"tslint": "^5.16.0",
|
||||
"typescript": "^4.1.3",
|
||||
"uglifyjs-webpack-plugin": "^2.1.3",
|
||||
"webpack": "^5.0.0-rc.6",
|
||||
"webpack": "^5.0.0",
|
||||
"webpack-bundle-analyzer": "^3.3.2",
|
||||
"webpack-cli": "^4.2.0",
|
||||
"webpack-merge": "^4.2.1",
|
||||
|
|
|
@ -3,12 +3,12 @@ import * as ReactDOM from "react-dom";
|
|||
|
||||
import { StateMgr } from "./components/state_mgr";
|
||||
|
||||
import "./theme/reset.css";
|
||||
import "./theme/white.css";
|
||||
// import "./theme/reset.css";
|
||||
// import "./theme/white.css";
|
||||
// TODO: it fails in jest preprocessor now
|
||||
import "./theme/style.css";
|
||||
import "./theme/desktop.css";
|
||||
import "./theme/color.css";
|
||||
// import "./theme/style.css";
|
||||
// import "./theme/desktop.css";
|
||||
// import "./theme/color.css";
|
||||
|
||||
|
||||
ReactDOM.render(<StateMgr />, document.getElementById("mount"));
|
||||
|
|
|
@ -1,99 +0,0 @@
|
|||
@charset "utf-8";
|
||||
|
||||
.anm-rotate {
|
||||
animation: rotate 1s infinite linear;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
20% {
|
||||
transform: rotate(72deg);
|
||||
}
|
||||
40% {
|
||||
transform: rotate(144deg);
|
||||
}
|
||||
60% {
|
||||
transform: rotate(216deg);
|
||||
}
|
||||
80% {
|
||||
transform: rotate(288deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.fade-in {
|
||||
/* animation-direction: reverse; */
|
||||
animation: fade-in 0.2s 1 linear;
|
||||
opacity: 0.5;
|
||||
/* padding: 0; */
|
||||
transform: translate(0, 0.4rem);
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
0% {
|
||||
opacity: 0.5;
|
||||
transform: translate(0, 0.4rem);
|
||||
/* padding: 0.4rem 0; */
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translate(0, 0);
|
||||
/* transform: translate(0, 0.4rem); */
|
||||
/* padding: 0; */
|
||||
}
|
||||
}
|
||||
|
||||
.notification-resize {
|
||||
animation: resize 2s 1 linear;
|
||||
/* transform: translate(100%, 0%); */
|
||||
}
|
||||
|
||||
@keyframes resize {
|
||||
0% {
|
||||
/* transform: translate(0, 0); */
|
||||
opacity: 0;
|
||||
transform: scale(1, 0);
|
||||
}
|
||||
5% {
|
||||
/* transform: translate(0, 8rem); */
|
||||
opacity: 0.8;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
95% {
|
||||
/* transform: translate(0, 8rem); */
|
||||
opacity: 0.8;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
/* transform: translate(0, 0rem); */
|
||||
opacity: 0;
|
||||
transform: scale(1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fade {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.notification-cool-down {
|
||||
animation: cooldown 0.3s 1 linear;
|
||||
}
|
||||
|
||||
@keyframes cooldown {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.opacity-trans {
|
||||
transition: opacity 0.15s linear;
|
||||
}
|
|
@ -1,375 +0,0 @@
|
|||
.blue0-font {
|
||||
color: #3498db;
|
||||
}
|
||||
|
||||
.blue1-font {
|
||||
color: #2980b9;
|
||||
}
|
||||
|
||||
.cyan0-font {
|
||||
color: #1abc9c;
|
||||
}
|
||||
|
||||
.cyan1-font {
|
||||
color: #16a085;
|
||||
}
|
||||
|
||||
.purple0-font {
|
||||
color: #9b59b6;
|
||||
}
|
||||
|
||||
.purple1-font {
|
||||
color: #8e44ad;
|
||||
}
|
||||
|
||||
.red0-font {
|
||||
color: #e74c3c;
|
||||
}
|
||||
|
||||
.red1-font {
|
||||
color: #c0392b;
|
||||
}
|
||||
|
||||
.yellow0-font {
|
||||
color: #f1c40f;
|
||||
}
|
||||
|
||||
.yellow1-font {
|
||||
color: #f39c12;
|
||||
}
|
||||
|
||||
.yellow2-font {
|
||||
color: #e67e22;
|
||||
}
|
||||
|
||||
.yellow3-font {
|
||||
color: #d35400;
|
||||
}
|
||||
|
||||
.green0-font {
|
||||
color: #2ecc71;
|
||||
}
|
||||
|
||||
.green1-font {
|
||||
color: #27ae60;
|
||||
}
|
||||
|
||||
.white-font {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.white0-font {
|
||||
color: #ecf0f1;
|
||||
}
|
||||
|
||||
.white1-font {
|
||||
color: #bdc3c7;
|
||||
}
|
||||
|
||||
.grey0-font {
|
||||
color: #95a5a6;
|
||||
}
|
||||
|
||||
.grey1-font {
|
||||
color: #7f8c8d;
|
||||
}
|
||||
|
||||
.black-font {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.black0-font {
|
||||
color: #34495e;
|
||||
}
|
||||
|
||||
.black1-font {
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
.blue0-bg {
|
||||
background-color: #3498db;
|
||||
}
|
||||
|
||||
.blue1-bg {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
.cyan0-bg {
|
||||
background-color: #1abc9c;
|
||||
}
|
||||
|
||||
.cyan1-bg {
|
||||
background-color: #16a085;
|
||||
}
|
||||
|
||||
.purple0-bg {
|
||||
background-color: #9b59b6;
|
||||
}
|
||||
|
||||
.purple1-bg {
|
||||
background-color: #8e44ad;
|
||||
}
|
||||
|
||||
.red0-bg {
|
||||
background-color: #e74c3c;
|
||||
}
|
||||
|
||||
.red1-bg {
|
||||
background-color: #c0392b;
|
||||
}
|
||||
|
||||
.yellow0-bg {
|
||||
background-color: #f1c40f;
|
||||
}
|
||||
|
||||
.yellow1-bg {
|
||||
background-color: #f39c12;
|
||||
}
|
||||
|
||||
.yellow2-bg {
|
||||
background-color: #e67e22;
|
||||
}
|
||||
|
||||
.yellow3-bg {
|
||||
background-color: #d35400;
|
||||
}
|
||||
|
||||
.green0-bg {
|
||||
background-color: #2ecc71;
|
||||
}
|
||||
|
||||
.green1-bg {
|
||||
background-color: #27ae60;
|
||||
}
|
||||
|
||||
.white-bg {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.white0-bg {
|
||||
background-color: #ecf0f1;
|
||||
}
|
||||
|
||||
.white1-bg {
|
||||
background-color: #bdc3c7;
|
||||
}
|
||||
|
||||
.grey0-bg {
|
||||
background-color: #95a5a6;
|
||||
}
|
||||
|
||||
.grey1-bg {
|
||||
background-color: #7f8c8d;
|
||||
}
|
||||
|
||||
.black-bg {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.black0-bg {
|
||||
background-color: #34495e;
|
||||
}
|
||||
|
||||
.black1-bg {
|
||||
background-color: #2c3e50;
|
||||
}
|
||||
|
||||
.padding-xs {
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.padding-s {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.padding-m {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.padding-l {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.padding-xl {
|
||||
padding: 4rem;
|
||||
}
|
||||
|
||||
.padding-l-xs {
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
|
||||
.padding-l-s {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
.padding-l-m {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.padding-l-l {
|
||||
padding-left: 2rem;
|
||||
}
|
||||
|
||||
.padding-l-xl {
|
||||
padding-left: 4rem;
|
||||
}
|
||||
|
||||
.padding-r-xs {
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
|
||||
.padding-r-s {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.padding-r-m {
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.padding-r-l {
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.padding-r-xl {
|
||||
padding-right: 4rem;
|
||||
}
|
||||
|
||||
.padding-t-xs {
|
||||
padding-top: 0.25rem;
|
||||
}
|
||||
|
||||
.padding-t-s {
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
.padding-t-m {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.padding-t-l {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.padding-t-xl {
|
||||
padding-top: 4rem;
|
||||
}
|
||||
|
||||
.padding-b-xs {
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.padding-b-s {
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.padding-b-m {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.padding-b-l {
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.padding-b-xl {
|
||||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
.margin-xs {
|
||||
margin: 0.25rem;
|
||||
}
|
||||
|
||||
.margin-s {
|
||||
margin: 0.5rem;
|
||||
}
|
||||
|
||||
.margin-m {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.margin-l {
|
||||
margin: 2rem;
|
||||
}
|
||||
|
||||
.margin-xl {
|
||||
margin: 4rem;
|
||||
}
|
||||
|
||||
.margin-l-xs {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.margin-l-s {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.margin-l-m {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.margin-l-l {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
.margin-l-xl {
|
||||
margin-left: 4rem;
|
||||
}
|
||||
|
||||
.margin-r-xs {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.margin-r-s {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.margin-r-m {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.margin-r-l {
|
||||
margin-right: 2rem;
|
||||
}
|
||||
|
||||
.margin-r-xl {
|
||||
margin-right: 4rem;
|
||||
}
|
||||
|
||||
.margin-t-xs {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.margin-t-s {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.margin-t-m {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.margin-t-l {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.margin-t-xl {
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
.margin-b-xs {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.margin-b-s {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.margin-b-m {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.margin-b-l {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.margin-b-xl {
|
||||
margin-bottom: 4rem;
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
.desktop .font-xs {
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.8rem;
|
||||
}
|
||||
|
||||
.desktop .font-s {
|
||||
font-size: 1.4rem;
|
||||
line-height: 2.1rem;
|
||||
}
|
||||
|
||||
.desktop .font-m {
|
||||
font-size: 1.6rem;
|
||||
line-height: 2.4rem;
|
||||
}
|
||||
|
||||
.desktop .font-l {
|
||||
font-size: 1.8rem;
|
||||
line-height: 2.7rem;
|
||||
}
|
||||
|
||||
.desktop .font-xl {
|
||||
font-size: 2.0rem;
|
||||
line-height: 3rem;
|
||||
}
|
|
@ -1,123 +0,0 @@
|
|||
@charset "utf-8";
|
||||
|
||||
html,
|
||||
body,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
html {
|
||||
background-color: #ecf0f1;
|
||||
/* background: url("bg.jpg") no-repeat left center fixed;
|
||||
background-size: auto 100%; */
|
||||
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
||||
font-size: 62.5%;
|
||||
}
|
||||
body {
|
||||
line-height: 200%;
|
||||
}
|
||||
*:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a,
|
||||
a:link,
|
||||
a:visited,
|
||||
a:hover,
|
||||
a:active,
|
||||
button,
|
||||
img {
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-khtml-user-select: none; /* Konqueror HTML */
|
||||
-moz-user-select: none; /* Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
|
||||
}
|
||||
a {
|
||||
color: #16a085;
|
||||
opacity: 100%;
|
||||
text-decoration: none;
|
||||
transition: color 1s 1 linear;
|
||||
}
|
||||
a:hover {
|
||||
color: #2ecc71;
|
||||
}
|
||||
a:active {
|
||||
}
|
||||
a::selection {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
button:active {
|
||||
/* animation: fade 0.1s 1 linear; */
|
||||
}
|
||||
button:hover {
|
||||
/* animation: fade 0.1s 1 linear; */
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
text-align: left;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.4rem;
|
||||
height: 1.4rem;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
padding: 0.8rem 1rem;
|
||||
width: 10rem;
|
||||
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border-radius: 0.5rem;
|
||||
padding: 0.8rem 1rem;
|
||||
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
|
||||
font-weight: bold;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
opacity: 0.9;
|
||||
}
|
|
@ -1,582 +0,0 @@
|
|||
#bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#top-bar {
|
||||
line-height: 3rem;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.container-center {
|
||||
margin: 2rem auto auto auto;
|
||||
width: 96%;
|
||||
max-width: 960px;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.layouter .vcell {
|
||||
text-align: left;
|
||||
padding: 0.5rem 2rem;
|
||||
border-bottom: solid 1px #e8e8e8;
|
||||
}
|
||||
|
||||
#panes {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
z-index: 100;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
#panes .container {
|
||||
max-width: 960px;
|
||||
width: 96%;
|
||||
background-color: white;
|
||||
z-index: 101;
|
||||
text-align: left;
|
||||
margin: 3rem auto 8rem auto;
|
||||
border-radius: 0.6rem;
|
||||
}
|
||||
|
||||
#panes .return-btn {
|
||||
position: fixed;
|
||||
max-width: 960px;
|
||||
width: 96%;
|
||||
margin: auto;
|
||||
z-index: 101;
|
||||
text-align: center;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: 0.6rem;
|
||||
}
|
||||
|
||||
#op-bar {
|
||||
/* width: 96%; */
|
||||
/* max-width: 960px; */
|
||||
|
||||
/* position: fixed;
|
||||
top: 6rem;
|
||||
right: auto;
|
||||
bottom: auto;
|
||||
left: auto; */
|
||||
line-height: 3rem;
|
||||
border-radius: 0.6rem;
|
||||
}
|
||||
|
||||
#item-list {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
#item-list .container {
|
||||
width: 100%;
|
||||
color: #34495e;
|
||||
font-size: 1.4rem;
|
||||
line-height: 5rem;
|
||||
background-color: white;
|
||||
border-radius: 0.8rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#item-list table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#item-list tr {
|
||||
border-top: solid 1px transparent;
|
||||
}
|
||||
|
||||
#item-list .dot {
|
||||
overflow: hidden;
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
#item-list .item-name-cell {
|
||||
max-width: 30%;
|
||||
}
|
||||
|
||||
#item-list .item-name-vertical {
|
||||
width: 14rem;
|
||||
}
|
||||
|
||||
#item-list .item-name-horizontal {
|
||||
width: 48rem;
|
||||
}
|
||||
|
||||
#item-list .item-name {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow-wrap: break-word;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#item-list .item-op {
|
||||
line-height: 4rem;
|
||||
}
|
||||
|
||||
tr button {
|
||||
background-color: #95a5a6;
|
||||
}
|
||||
|
||||
#item-list tr.selected button {
|
||||
background-color: #e74c3c;
|
||||
}
|
||||
|
||||
#item-list tr:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
#panel {
|
||||
position: fixed;
|
||||
top: 4rem;
|
||||
right: 0.5rem;
|
||||
bottom: 6rem;
|
||||
left: 0.5rem;
|
||||
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
border-radius: 1.4rem;
|
||||
background-color: white;
|
||||
}
|
||||
#panel-head {
|
||||
text-align: left;
|
||||
/* box-shadow: 0 0.2rem 3rem rgba(0, 0, 0, 0.1); */
|
||||
|
||||
padding: 1rem 2rem 1rem 2rem;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
|
||||
font-size: 2rem;
|
||||
line-height: 3.9rem;
|
||||
}
|
||||
|
||||
#panel-head-menu {
|
||||
text-align: right;
|
||||
|
||||
/* height: 3rem; */
|
||||
|
||||
position: absolute;
|
||||
top: 4rem;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
/* display: flex;
|
||||
justify-content: space-between; */
|
||||
padding: 1rem 2rem;
|
||||
line-height: 4rem;
|
||||
/* background-color: rgba(255, 255, 255, 0.6); */
|
||||
}
|
||||
.text-header {
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
color: #16a085;
|
||||
margin: auto;
|
||||
line-height: 4rem;
|
||||
}
|
||||
#panel-body {
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
|
||||
position: absolute;
|
||||
top: 6rem;
|
||||
right: 0;
|
||||
bottom: 0.5rem;
|
||||
left: 0;
|
||||
/* box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1); */
|
||||
}
|
||||
#nav-bar {
|
||||
text-align: center;
|
||||
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 0 1rem 0;
|
||||
|
||||
position: absolute;
|
||||
top: auto;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 5rem;
|
||||
box-shadow: 0 -0.2rem 3rem rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.nav-bar-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
.win-left-bar {
|
||||
text-align: right;
|
||||
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
/* right: auto; */
|
||||
/* bottom: 0.5rem; */
|
||||
left: -0.5rem;
|
||||
/* box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1); */
|
||||
}
|
||||
|
||||
.win-right-bar {
|
||||
text-align: left;
|
||||
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
/* right: auto; */
|
||||
/* bottom: 0.5rem; */
|
||||
right: -0.5rem;
|
||||
/* box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1); */
|
||||
}
|
||||
.right-bar {
|
||||
font-size: 1.3rem;
|
||||
line-height: 3rem;
|
||||
|
||||
width: 20rem;
|
||||
position: absolute;
|
||||
left: 2rem;
|
||||
top: 4rem;
|
||||
}
|
||||
.link-list {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.ad-wrap {
|
||||
padding: 0 0 1rem 0;
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
.ad-wrap-title {
|
||||
line-height: 200%;
|
||||
}
|
||||
|
||||
/* layoout */
|
||||
.flex-2col-parent {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.flex-2col {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 50%;
|
||||
}
|
||||
.flex-23col {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 66%;
|
||||
}
|
||||
.flex-13col {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 31%;
|
||||
}
|
||||
.flex-col-parent {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.flex-col {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.clearfix {
|
||||
clear: both;
|
||||
}
|
||||
.section {
|
||||
text-align: left;
|
||||
/* margin-bottom: 2rem; */
|
||||
padding: 2rem;
|
||||
}
|
||||
.section-h {
|
||||
text-align: left;
|
||||
/* margin-bottom: 2rem; */
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
|
||||
.font-grey {
|
||||
color: #999;
|
||||
}
|
||||
.margin-m {
|
||||
margin: 0.5rem;
|
||||
}
|
||||
.margin-right-s {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
.margin-right-m {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.margin-l {
|
||||
margin: 1rem;
|
||||
}
|
||||
.margin-h-l {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
.margin-h-m {
|
||||
margin: 0.8rem 0;
|
||||
}
|
||||
.margin-right-l {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
.margin-left-s {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
.margin-left-m {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
.margin-left-l {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
/* font */
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.weight-normal {
|
||||
font-weight: normal;
|
||||
}
|
||||
.h1,
|
||||
.h2 {
|
||||
font-size: 2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.h3,
|
||||
.h4 {
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.h5,
|
||||
.h6 {
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.noselect {
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-khtml-user-select: none; /* Konqueror HTML */
|
||||
-moz-user-select: none; /* Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
|
||||
}
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* component */
|
||||
.icon-s {
|
||||
width: 1.4rem;
|
||||
height: 1.4rem;
|
||||
margin: -0.2rem 0.5rem auto 0.5rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.btn {
|
||||
font-size: 1.4rem;
|
||||
line-height: 2.4rem;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 2rem;
|
||||
}
|
||||
.pane {
|
||||
font-size: 1.4rem;
|
||||
text-align: left;
|
||||
|
||||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
padding: 8rem 0 10rem 0;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.menu-container {
|
||||
text-align: center;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
.menu {
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
font-size: 1.4rem;
|
||||
line-height: 2rem;
|
||||
text-align: center;
|
||||
padding: 1rem 1rem;
|
||||
display: inline-block;
|
||||
border-radius: 4rem;
|
||||
}
|
||||
.wide-btn {
|
||||
color: white;
|
||||
text-align: center;
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
margin: 2rem 2rem 6rem 2rem;
|
||||
border-radius: 2rem;
|
||||
}
|
||||
.border {
|
||||
height: 1px;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.notification-container {
|
||||
position: absolute;
|
||||
top: 10rem;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
left: 0;
|
||||
max-height: 10rem;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
max-width: 48rem;
|
||||
}
|
||||
.notification {
|
||||
/* color: white; */
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
/* font-weight: bold; */
|
||||
font-size: 1.4rem;
|
||||
line-height: 2rem;
|
||||
text-align: center;
|
||||
padding: 1rem 2rem;
|
||||
display: inline-block;
|
||||
border-radius: 1rem;
|
||||
margin: 0.5rem 0.5rem;
|
||||
}
|
||||
.notification-ok {
|
||||
color: white;
|
||||
fill: #2ecc71;
|
||||
}
|
||||
.notification-error {
|
||||
color: white;
|
||||
fill: #e74c3c;
|
||||
}
|
||||
.notification-warn {
|
||||
color: white;
|
||||
fill: #f1c40f;
|
||||
}
|
||||
.font-size-m {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
.news {
|
||||
font-size: 1.2rem;
|
||||
line-height: 4rem;
|
||||
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.news .title {
|
||||
font-size: 1.6rem;
|
||||
line-height: 2.5rem;
|
||||
|
||||
display: inline-block;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.news .desc {
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.8rem;
|
||||
}
|
||||
.bottom-line {
|
||||
padding: 3rem 0;
|
||||
text-align: center;
|
||||
color: #16a085;
|
||||
}
|
||||
|
||||
select {
|
||||
background: white;
|
||||
border: transparent;
|
||||
color: black;
|
||||
font-size: 2rem;
|
||||
}
|
||||
.dot {
|
||||
border-radius: 50%;
|
||||
height: 0.8rem;
|
||||
width: 0.8rem;
|
||||
display: inline-block;
|
||||
line-height: 3rem;
|
||||
}
|
||||
|
||||
input.white-square {
|
||||
border: solid 2px #fff;
|
||||
background: transparent;
|
||||
padding: 0.4rem 0.8rem;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: inline-block;
|
||||
padding: 1rem 1.5rem;
|
||||
border-radius: 0.6rem;
|
||||
line-height: 3rem;
|
||||
}
|
||||
|
||||
.grid .title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.grid .desc {
|
||||
font-size: 1.2rem;
|
||||
color: #7f8c8d;
|
||||
}
|
||||
|
||||
.grid-dot {
|
||||
position: relative;
|
||||
right: -1rem;
|
||||
top: -1rem;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.hr {
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.4rem;
|
||||
line-height: 1.6rem;
|
||||
font-weight: normal;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
.row {
|
||||
text-align: left;
|
||||
padding: 1rem 0;
|
||||
} */
|
||||
|
||||
.inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
div.hr {
|
||||
height: 1px;
|
||||
background-color: #95a5a6;
|
||||
margin: 1rem auto 1rem auto;
|
||||
}
|
||||
|
||||
.tail {
|
||||
font-size: 1.2rem;
|
||||
text-align: center;
|
||||
}
|
|
@ -1,69 +0,0 @@
|
|||
.theme-white .bg {
|
||||
background-color: #ecf0f1;
|
||||
}
|
||||
|
||||
.theme-white .text-color {
|
||||
color: #34495e;
|
||||
}
|
||||
|
||||
.theme-white .bg-img {
|
||||
background: url("/static/img/textured_paper.png") repeat fixed center;
|
||||
/* background: url("/static/img/huangpu.jpg") repeat fixed center; */
|
||||
}
|
||||
|
||||
.theme-white .top-bar {
|
||||
background: rgba( 255, 255, 255, 0.9 );
|
||||
box-shadow: 0 5px 30px 0 rgba( 31, 38, 135, 0.1 );
|
||||
backdrop-filter: blur( 9.5px );
|
||||
-webkit-backdrop-filter: blur( 9.5px );
|
||||
}
|
||||
|
||||
/* .theme-white div.hr {
|
||||
background-color: white;
|
||||
} */
|
||||
|
||||
.theme-white .op-bar {
|
||||
background: rgba( 255, 255, 255, 0.9 );
|
||||
box-shadow: 0 5px 30px 0 rgba( 31, 38, 135, 0.1 );
|
||||
backdrop-filter: blur( 9.5px );
|
||||
-webkit-backdrop-filter: blur( 9.5px );
|
||||
}
|
||||
|
||||
.theme-white .panel {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
.theme-white .panel-head {
|
||||
/* background-color: white; */
|
||||
border-bottom: solid 1px #ecf0f1;
|
||||
}
|
||||
|
||||
.theme-white .panel-head-menu {
|
||||
background-color: white;
|
||||
color: #34495e;
|
||||
border-bottom: solid 1px #ecf0f1;
|
||||
}
|
||||
|
||||
.theme-white .panel-body {
|
||||
/* background-color: #fafafa; */
|
||||
color: #34495e;
|
||||
}
|
||||
|
||||
.theme-white .nav-bar {
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
color: #7f8c8d;
|
||||
fill: black;
|
||||
}
|
||||
|
||||
.theme-white .news .title {
|
||||
color: #34495e;
|
||||
}
|
||||
|
||||
.theme-white .border {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
.theme-white .wide-btn {
|
||||
color: white;
|
||||
background-color: #16a085;
|
||||
}
|
|
@ -6,6 +6,7 @@ const TerserPlugin = require("terser-webpack-plugin");
|
|||
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
|
||||
.BundleAnalyzerPlugin;
|
||||
|
||||
|
||||
module.exports = {
|
||||
module: {
|
||||
rules: [
|
||||
|
@ -23,19 +24,7 @@ module.exports = {
|
|||
loader: "ts-loader",
|
||||
include: [path.resolve(__dirname, "src")],
|
||||
exclude: [/node_modules/, /\.test\.(ts|tsx)$/],
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
"style-loader",
|
||||
{
|
||||
loader: "css-loader",
|
||||
options: {
|
||||
url: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue