【新增】前端代码第一次提交
This commit is contained in:
BIN
src/styles/FormCreate/fonts/fontello.woff
Normal file
BIN
src/styles/FormCreate/fonts/fontello.woff
Normal file
Binary file not shown.
22
src/styles/FormCreate/index.scss
Normal file
22
src/styles/FormCreate/index.scss
Normal file
@@ -0,0 +1,22 @@
|
||||
// 使用字体图标来源 https://fontello.com/
|
||||
|
||||
@font-face {
|
||||
font-family: 'fc-icon';
|
||||
src: url('@/styles/FormCreate/fonts/fontello.woff') format('woff');
|
||||
}
|
||||
|
||||
.icon-doc-text:before {
|
||||
content: '\f0f6';
|
||||
}
|
||||
|
||||
.icon-server:before {
|
||||
content: '\f233';
|
||||
}
|
||||
|
||||
.icon-address-card-o:before {
|
||||
content: '\f2bc';
|
||||
}
|
||||
|
||||
.icon-user-o:before {
|
||||
content: '\f2c0';
|
||||
}
|
6
src/styles/global.module.scss
Normal file
6
src/styles/global.module.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
@use './variables.scss' as *;
|
||||
// 导出变量
|
||||
:export {
|
||||
namespace: $namespace;
|
||||
elNamespace: $elNamespace;
|
||||
}
|
37
src/styles/index.scss
Normal file
37
src/styles/index.scss
Normal file
@@ -0,0 +1,37 @@
|
||||
@use './var.css';
|
||||
@use './FormCreate/index.scss';
|
||||
@use './theme.scss';
|
||||
@use 'element-plus/theme-chalk/dark/css-vars.css';
|
||||
|
||||
.reset-margin [class*='el-icon'] + span {
|
||||
margin-left: 2px !important;
|
||||
}
|
||||
|
||||
// 解决抽屉弹出时,body宽度变化的问题
|
||||
.el-popup-parent--hidden {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
// 解决表格内容超过表格总宽度后,横向滚动条前端顶不到表格边缘的问题
|
||||
.el-scrollbar__bar {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
/* nprogress 适配 element-plus 的主题色 */
|
||||
#nprogress {
|
||||
& .bar {
|
||||
background-color: var(--el-color-primary) !important;
|
||||
}
|
||||
|
||||
& .peg {
|
||||
box-shadow:
|
||||
0 0 10px var(--el-color-primary),
|
||||
0 0 5px var(--el-color-primary) !important;
|
||||
}
|
||||
|
||||
& .spinner-icon {
|
||||
border-top-color: var(--el-color-primary);
|
||||
border-left-color: var(--el-color-primary);
|
||||
}
|
||||
}
|
6
src/styles/theme.scss
Normal file
6
src/styles/theme.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
// .text-color {
|
||||
// color: var(--el-text-color-regular);
|
||||
// }
|
||||
// .dark .dark\:text-color {
|
||||
// color: rgba(255, 255, 255, var(--dark-text-color));
|
||||
// }
|
74
src/styles/var.css
Normal file
74
src/styles/var.css
Normal file
@@ -0,0 +1,74 @@
|
||||
:root {
|
||||
--login-bg-color: #a4dfea;
|
||||
|
||||
--left-menu-max-width: 200px;
|
||||
|
||||
--left-menu-min-width: 64px;
|
||||
|
||||
--left-menu-bg-color: #001529;
|
||||
|
||||
--left-menu-bg-light-color: #0f2438;
|
||||
|
||||
--left-menu-bg-active-color: var(--el-color-primary);
|
||||
|
||||
--left-menu-text-color: #bfcbd9;
|
||||
|
||||
--left-menu-text-active-color: #fff;
|
||||
|
||||
--left-menu-collapse-bg-active-color: var(--el-color-primary);
|
||||
/* left menu end */
|
||||
|
||||
/* logo start */
|
||||
--logo-height: 50px;
|
||||
|
||||
--logo-title-text-color: #fff;
|
||||
/* logo end */
|
||||
|
||||
/* header start */
|
||||
--top-header-bg-color: '#fff';
|
||||
|
||||
--top-header-text-color: 'inherit';
|
||||
|
||||
--top-header-hover-color: #f6f6f6;
|
||||
|
||||
--top-tool-height: var(--logo-height);
|
||||
|
||||
--top-tool-p-x: 0;
|
||||
|
||||
--tags-view-height: 35px;
|
||||
/* header start */
|
||||
|
||||
/* tab menu start */
|
||||
--tab-menu-max-width: 80px;
|
||||
|
||||
--tab-menu-min-width: 30px;
|
||||
|
||||
--tab-menu-collapse-height: 36px;
|
||||
/* tab menu end */
|
||||
|
||||
--app-content-padding: 20px;
|
||||
|
||||
--app-content-bg-color: #f5f7f9;
|
||||
|
||||
--app-footer-height: 50px;
|
||||
|
||||
--transition-time-02: 0.2s;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--app-content-bg-color: var(--el-bg-color);
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
*,
|
||||
:after,
|
||||
:before {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
4
src/styles/variables.scss
Normal file
4
src/styles/variables.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
// 命名空间
|
||||
$namespace: v;
|
||||
// el命名空间
|
||||
$elNamespace: el;
|
Reference in New Issue
Block a user