[ux] new style
This commit is contained in:
@@ -1,120 +1,126 @@
|
|||||||
@home_background: #222C32;
|
:focus {outline:none;}
|
||||||
@background: white;
|
::-moz-focus-inner {border:0;}
|
||||||
@success: #c7ffbc;
|
|
||||||
|
blockquote {
|
||||||
|
border-left: 3px solid grey;
|
||||||
|
font-style: italic;
|
||||||
|
color: #666;
|
||||||
|
padding-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: sans-serif;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 .4rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: .8rem;
|
||||||
|
font-weight: 700;
|
||||||
|
background: rgba(0,0,0,.1);
|
||||||
|
color: rgba(0,0,0,.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
font-family: sans-serif;
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
text-rendering: optimizeSpeed;
|
||||||
|
background-color: #333;
|
||||||
|
overflow-y: auto;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
#__nuxt, #__layout {
|
#__nuxt, #__layout {
|
||||||
height: 100%;
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main {
|
||||||
|
min-height: 200px;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
transition: all .3s;
|
||||||
|
background-color: white;
|
||||||
|
&.dark {
|
||||||
|
background-color: #333;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#home {
|
#content {
|
||||||
background-color: @home_background;
|
flex-grow: 1;
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
a, a:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
margin: 0px;
|
|
||||||
background-color: @background;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-family: BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif !important;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-form-item {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-main {
|
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
border-radius: 0px;
|
width: 100%;
|
||||||
margin: auto;
|
margin: 0 auto;
|
||||||
padding: 10px;
|
}
|
||||||
overflow: unset;
|
|
||||||
|
#header, #footer {
|
||||||
|
color: white;
|
||||||
|
background-color: #222;
|
||||||
|
font-size: 18px;
|
||||||
|
// > *{
|
||||||
|
// max-width: 1200px;
|
||||||
|
// margin: 0 auto;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-select-dropdown {
|
|
||||||
max-width: 100%;
|
#footer {
|
||||||
left: 0px;
|
a {
|
||||||
|
color: orangered;
|
||||||
|
transition: color .4s;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: orange;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#links a {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
min-height: 6em;
|
||||||
|
padding-top: 2em;
|
||||||
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#header .el-menu--horizontal {
|
||||||
|
background-color: #222;
|
||||||
|
color: white;
|
||||||
|
.el-menu-item, .el-submenu__title {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-menu-item:not(.is-disabled):focus,
|
||||||
|
.el-menu-item.is-active,
|
||||||
|
.el-menu-item:not(.is-disabled):hover,
|
||||||
|
.el-submenu:focus > .el-submenu__title,
|
||||||
|
.el-submenu:hover > .el-submenu__title,
|
||||||
|
.el-submenu.is-active > .el-submenu__title,
|
||||||
|
.el-submenu.is-opened {
|
||||||
|
color: white;
|
||||||
|
background-color: #333
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.page-enter-active, .page-leave-active {
|
.page-enter-active, .page-leave-active {
|
||||||
transition: opacity .2s, transform .3s;
|
transition: opacity .2s, transform .2s;
|
||||||
}
|
}
|
||||||
.page-enter, .page-leave-active {
|
.page-enter, .page-leave-active {
|
||||||
transition: opacity .3s, transform .2s;
|
transition: opacity .2s, transform .2s;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateX(30px);
|
transform: translateX(30px);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
.el-card {
|
||||||
font-family: BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif !important;
|
max-width: 700px;
|
||||||
margin-bottom: 0px;
|
margin: 0 auto;
|
||||||
white-space: pre-line;
|
|
||||||
font-family: unset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-message-box {
|
.el-menu-item {
|
||||||
max-width: 95%;
|
a {
|
||||||
}
|
color: #303133;
|
||||||
|
display: block;
|
||||||
.el-popover {
|
text-decoration: none;
|
||||||
word-break: normal;
|
text-overflow: ellipsis;
|
||||||
}
|
overflow: hidden;
|
||||||
|
|
||||||
.el-dialog {
|
|
||||||
z-index: 100;
|
|
||||||
max-width: 550px;
|
|
||||||
.el-dialog__body {
|
|
||||||
word-break: unset;
|
|
||||||
}
|
}
|
||||||
.el-dialog__headerbtn {
|
}
|
||||||
font-size: 27px;
|
|
||||||
top: 9px;
|
|
||||||
right: 10px;
|
|
||||||
.el-dialog__close {
|
|
||||||
color: red;
|
|
||||||
// padding: 5px;
|
|
||||||
// background-color: #f0f0f0;
|
|
||||||
// border-radius: 22px;
|
|
||||||
// border: 1px solid #f0f0f0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-input__icon {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 768px) {
|
|
||||||
.el-dialog {
|
|
||||||
margin-top: 0px !important;
|
|
||||||
border-radius: 0px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-main {
|
|
||||||
margin-top: 0px !important;
|
|
||||||
border-radius: 0px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-menu-item {
|
|
||||||
padding: 0px 17px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -19,14 +19,15 @@ module.exports = {
|
|||||||
/*
|
/*
|
||||||
** Customize the progress-bar color
|
** Customize the progress-bar color
|
||||||
*/
|
*/
|
||||||
// loading: { color: '#fff' },
|
loading: { color: 'orange', height: '5px' },
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Global CSS
|
** Global CSS
|
||||||
*/
|
*/
|
||||||
css: [
|
css: [
|
||||||
'bootstrap/dist/css/bootstrap.min.css',
|
'bootstrap/dist/css/bootstrap.min.css',
|
||||||
'element-ui/lib/theme-chalk/index.css'
|
'element-ui/lib/theme-chalk/index.css',
|
||||||
|
'element-ui/lib/theme-chalk/display.css',
|
||||||
|
'@/assets/style.less'
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -42,7 +43,12 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
|
|
||||||
render: {
|
render: {
|
||||||
compressor: false
|
compressor: false,
|
||||||
|
bundleRenderer: {
|
||||||
|
shouldPreload: (file, type) => {
|
||||||
|
return ['script', 'style', 'font'].includes(type)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
** Nuxt.js modules
|
** Nuxt.js modules
|
||||||
@@ -62,7 +68,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
redirect: {
|
redirect: {
|
||||||
login: '/?ref=login'
|
login: '/login'
|
||||||
},
|
},
|
||||||
strategies: {
|
strategies: {
|
||||||
local: {
|
local: {
|
||||||
@@ -81,23 +87,10 @@ module.exports = {
|
|||||||
** Build configuration
|
** Build configuration
|
||||||
*/
|
*/
|
||||||
build: {
|
build: {
|
||||||
optimization: {
|
transpile: [/^element-ui/, /^vue-awesome/, /^@nuxt/],
|
||||||
splitChunks: {
|
|
||||||
cacheGroups: {
|
|
||||||
element: {
|
|
||||||
test: /[\\/]node_modules[\\/](element-ui)[\\/]/,
|
|
||||||
name: 'element-ui',
|
|
||||||
chunks: 'all'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
transpile: [/^element-ui/, /^vue-awesome/],
|
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
layouts: true
|
layouts: true
|
||||||
},
|
},
|
||||||
parallel: true,
|
|
||||||
hardSource: true,
|
|
||||||
cache: true
|
cache: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user