| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- #app,
- body,
- html {
- height: 100%;
- }
- body {
- font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
- '微软雅黑', Arial, sans-serif;
- line-height: 1.5;
- color: #515a6e;
- font-size: 14px;
- background-color: #f7f7f7;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- //重置样式
- .anticon {
- svg {
- vertical-align: initial;
- }
- }
- a {
- color: #2d8cf0;
- background: transparent;
- text-decoration: none;
- outline: none;
- cursor: pointer;
- transition: color 0.2s ease;
- }
- a:active,
- a:hover {
- outline-width: 0;
- }
- a:hover {
- color: #57a3f3;
- }
- a:active {
- color: #2b85e4;
- }
- a:active,
- a:hover {
- outline: 0;
- text-decoration: none;
- }
- /* 滚动条凹槽的颜色,还可以设置边框属性 */
- *::-webkit-scrollbar-track-piece {
- background-color: #f8f8f8;
- -webkit-border-radius: 2em;
- -moz-border-radius: 2em;
- border-radius: 2em;
- }
- /* 滚动条的宽度 */
- *::-webkit-scrollbar {
- width: 12px;
- height: 12px;
- }
- /* 滚动条的设置 */
- *::-webkit-scrollbar-thumb {
- border-radius: 6px;
- border: 2px solid transparent;
- background-color: #ddd;
- background-clip: padding-box;
- }
- /* 滚动条鼠标移上去 */
- *::-webkit-scrollbar-thumb:hover {
- background-color: #bbb;
- }
- html[data-theme='dark'] {
- *::-webkit-scrollbar {
- background-color: rgb(24, 24, 28);
- }
- *::-webkit-scrollbar-track-piece {
- background-color: rgb(24, 24, 28);
- }
- *::-webkit-scrollbar-thumb {
- background-color: rgba(255, 255, 255, 0.2);
- }
- *::-webkit-scrollbar-thumb:hover {
- background-color: rgba(255, 255, 255, 0.3);
- }
- }
- /* router view transition */
- .zoom-fade-enter-active,
- .zoom-fade-leave-active {
- transition: transform 0.35s, opacity 0.28s ease-in-out;
- }
- .zoom-fade-enter-from {
- opacity: 0;
- transform: scale(0.97);
- }
- .zoom-fade-leave-to {
- opacity: 0;
- transform: scale(1.03);
- }
- //antd 卡片样式定制
- body .n-card {
- transition: all 0.2s ease-in-out;
- }
- body .n-icon {
- vertical-align: middle;
- }
- body .proCard {
- border-radius: 4px;
- border: none;
- .el-card__body {
- padding: 16px;
- //&:first-child {
- // padding-top: 16px;
- //}
- }
- }
- body .proCard.tabsCard {
- .el-card__body {
- padding-top: 0;
- }
- }
- body .n-modal {
- border-radius: 6px;
- }
- //body .proCardTabs{
- // .n-card__content{ padding-top: 3px}
- // .n-card__content:first-child{ padding-top: 3px}
- //}
- .n-layout-page-header {
- margin: 0 -10px;
- .n-card {
- border-radius: revert;
- }
- }
- // 约定 menu 动画一致性
- .el-menu {
- transition: border-color var(--el-transition-duration),
- background-color var(--el-transition-duration), color var(--el-transition-duration);
- }
- //表头高度加高
- .el-table .el-table__cell {
- padding: 12px 0;
- }
- //表格分页宽度
- .el-pagination .el-select .el-input {
- width: 100px;
- }
|