-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
全局样式文件规范化 font-size改为自动换算rem 不同size下的elment base font-size变更
- Loading branch information
1 parent
8c78f47
commit d7ee0dd
Showing
15 changed files
with
156 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import '@/event/module'; | ||
import '@/styles/common.scss'; | ||
import '@/styles/index.scss'; | ||
import { bootscrapt } from './app'; | ||
bootscrapt(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//自定义 element-ui 样式 | ||
.me-large { | ||
//这里强制将font-size-base设置为large | ||
--el-font-size-base: var(--el-font-size-large); | ||
} | ||
.me-small { | ||
//这里强制将font-size-base设置为small | ||
--el-font-size-base: var(--el-font-size-small); | ||
} | ||
//颜色选择器预定义样式加上border | ||
.el-color-predefine__color-selector > div { | ||
border: 1px solid var(--el-border-color); | ||
} | ||
.me-sidebar-drawer { | ||
.el-drawer__body { | ||
padding: 0; | ||
} | ||
} | ||
.el-breadcrumb { | ||
font-size: var(--el-font-size-base); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
@import './element-plus.scss'; | ||
@import './transition.scss'; | ||
html { | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
color: var(--el-text-color-primary); | ||
|
||
#app { | ||
width: 100%; | ||
height: 100vh; | ||
} | ||
} | ||
|
||
div, | ||
span { | ||
box-sizing: border-box; | ||
} | ||
} | ||
|
||
.me-large { | ||
font-size: var(--el-font-size-base); | ||
} | ||
|
||
.me-default { | ||
font-size: var(--el-font-size-base); | ||
} | ||
|
||
.me-small { | ||
font-size: var(--el-font-size-small); | ||
} | ||
|
||
//鼠标变小手 | ||
.pointer { | ||
cursor: pointer; | ||
} | ||
|
||
//用felx 子元素居中 | ||
.flex-center { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
//去a标签默认样式 | ||
a:hover, | ||
a:visited, | ||
a:link, | ||
a:active { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
//超出一行... | ||
.ellipsis-1 { | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
//超出两行... | ||
.ellipsis-2 { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
-webkit-box-orient: vertical; | ||
-webkit-line-clamp: 2; | ||
} | ||
|
||
//超出三行... | ||
.ellipsis-3 { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
-webkit-box-orient: vertical; | ||
-webkit-line-clamp: 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//动画样式文件 | ||
|
||
/* fade-transform */ | ||
.fade-transform-leave-active, | ||
.fade-transform-enter-active { | ||
transition: all 0.5s; | ||
} | ||
|
||
.fade-transform-enter { | ||
opacity: 0; | ||
transform: translateX(-30px); | ||
} | ||
|
||
.fade-transform-leave-to { | ||
opacity: 0; | ||
transform: translateX(30px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$page-padding: 20px; | ||
$header-top-height: 48px; | ||
$header-tag-height: 35px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters