feat: 🎸 初始化项目

This commit is contained in:
chenkl
2020-12-14 17:32:37 +08:00
commit 26d4c7c568
221 changed files with 23505 additions and 0 deletions

126
src/styles/button.less Normal file
View File

@@ -0,0 +1,126 @@
@import "~ant-design-vue/lib/style/themes/default";
@import "~ant-design-vue/es/button/style/mixin";
// warning button style
@btn-warning-color: #fff;
@btn-warning-bg: @warning-color;
@btn-warning-disabled-border-color: #f3d19e;
@btn-warning-disabled-bg-color: #f3d19e;
// success button style
@btn-success-color: #fff;
@btn-success-bg: @success-color;
@btn-success-disabled-border-color: #b3e19d;
@btn-success-disabled-bg-color: #b3e19d;
// info button style
@btn-info-color: #fff;
@btn-info-bg: #909399;
@btn-info-disabled-border-color: #c8c9cc;
@btn-info-disabled-bg-color: #c8c9cc;
// primary button style
@btn-primary-disabled-border-color: #a0cfff;
@btn-primary-disabled-bg-color: #a0cfff;
// danger button style
@btn-danger-disabled-border-color: #fab6b6;
@btn-danger-disabled-bg-color: #fab6b6;
// set button margin
.ant-btn+.ant-btn {
margin-left: 10px;
}
.button-variant(@color; @background) {
.button-color(@color; @background; @background);
text-shadow: @btn-text-shadow;
box-shadow: @btn-primary-shadow;
&:hover,
&:focus {
.button-color(@color; ~`colorPalette('@{background}', 5) `; ~`colorPalette('@{background}', 5) `);
}
&:active,
&.active {
.button-color(@color; ~`colorPalette('@{background}', 7) `; ~`colorPalette('@{background}', 7) `);
}
.button-disabled();
}
.ant-btn-warning,
.ant-btn-success,
.ant-btn-info {
.ant-btn-group {
&:not(:first-child):not(:last-child) {
border-right-color: @gold-5;
border-left-color: @gold-5;
&:disabled {
border-color: @btn-default-border;
}
}
&:first-child {
&:not(:last-child) {
border-right-color: @gold-5;
&[disabled] {
border-right-color: @btn-default-border;
}
}
}
}
.ant-btn-group &:last-child:not(:first-child),
.ant-btn-group & + & {
border-left-color: @gold-5;
&[disabled] {
border-left-color: @btn-default-border;
}
}
}
.ant-btn-success {
.button-variant(@btn-success-color; @btn-success-bg);
&:not(.ant-btn-link)[disabled] {
color: #fff;
background-color: @btn-success-disabled-bg-color;
border-color: @btn-success-disabled-border-color;
}
}
.ant-btn-info {
.button-variant(@btn-info-color; @btn-info-bg);
&:not(.ant-btn-link)[disabled] {
color: #fff;
background-color: @btn-info-disabled-bg-color;
border-color: @btn-info-disabled-border-color;
}
}
.ant-btn-warning {
.button-variant(@btn-warning-color; @btn-warning-bg);
&:not(.ant-btn-link)[disabled] {
color: #fff;
background-color: @btn-warning-disabled-bg-color;
border-color: @btn-warning-disabled-border-color;
}
}
.ant-btn-primary {
&:not(.ant-btn-link)[disabled] {
color: #fff;
background-color: @btn-primary-disabled-bg-color;
border-color: @btn-primary-disabled-border-color;
}
}
.ant-btn-danger {
&:not(.ant-btn-link)[disabled] {
color: #fff;
background-color: @btn-danger-disabled-bg-color;
border-color: @btn-danger-disabled-border-color;
}
}

7
src/styles/glob.less Normal file
View File

@@ -0,0 +1,7 @@
.hover-effect {
cursor: pointer;
transition: background .3s;
&:hover {
background: rgba(0, 0, 0, .025);
}
}

6
src/styles/index.less Normal file
View File

@@ -0,0 +1,6 @@
@import '~element-plus/lib/theme-chalk/index.css';
@import './transition.less';
@import './silder.less';
@import './glob.less';
// @import './button.less';
// @import './antdv.less';

150
src/styles/reset.css Normal file
View File

@@ -0,0 +1,150 @@
/**
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
* http://cssreset.com
*/
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,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input {
margin: 0;
padding: 0;
border: 0;
/* font-size: 100%; */
/* font-weight: normal; */
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
font-family: "Microsoft YaHei";
font-size: 16px;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* custom */
a {
/* color: #7e8c8d; */
/* text-decoration: none; */
-webkit-backface-visibility: hidden;
}
li {
/* list-style: none; */
}
html,
body {
width: 100%;
}
body {
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

27
src/styles/silder.less Normal file
View File

@@ -0,0 +1,27 @@
.ant-layout-sider-collapsed,
.ant-menu-horizontal {
.dark-active-item {
background: @menuDarkActiveBg;
.ant-menu-submenu-title {
color: @menuDarkActiveText;
}
}
.light-active-item {
background: @menuLightActiveBg;
.ant-menu-submenu-title {
color: @menuLightActiveText;
}
}
}
.dark-popup-active-item {
.ant-menu-submenu-title {
color: @menuDarkActiveText;
}
}
.light-popup-active-item {
.ant-menu-submenu-title {
color: @menuLightActiveText;
}
}

View File

@@ -0,0 +1,32 @@
//globl transition css
/*fade*/
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
/*breadcrumb transition*/
.breadcrumb-enter-active,
.breadcrumb-leave-active {
transition: all .5s;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
opacity: 0;
transform: translateX(20px);
}
.breadcrumb-move {
transition: all .5s;
}
.breadcrumb-leave-active {
position: absolute;
}

29
src/styles/variables.less Normal file
View File

@@ -0,0 +1,29 @@
// Silder
@menuLightActiveText: #1890ff;
@menuLightActiveBg: #e6f7ff;
@menuDarkActiveText: #fff;
@menuDarkActiveBg: #1890ff;
@menuBg: #001529;
@menuLightBg: #fff;
@menuWidth: 200px;
// topSilder
@topSilderHeight: 50px;
// navbar
@navbarHeight: 40px;
// tagsView
@tagsViewHeight: 40px;
// content
@contentBg: #fff;
// html body
@minWidth: 992px;
// deep
@deep: ~'::v-deep';