123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- /**
- * @author https://gitee.com/chu1204505056/vue-admin-better (不想保留author可删除)
- * @description 全局样式
- */
- @charset "utf-8";
- @import './normalize.scss';
- @import './transition.scss';
- @import './loading.scss';
- $base: '.vab';
- @mixin scrollbar {
- max-height: 88vh;
- margin-bottom: 0.5vh;
- overflow-y: auto;
- &::-webkit-scrollbar {
- width: 0;
- height: 0;
- background: transparent;
- }
- &::-webkit-scrollbar-thumb {
- background-color: rgba(144, 147, 153, 0.3);
- border-radius: 10px;
- }
- &::-webkit-scrollbar-thumb:hover {
- background-color: rgba(144, 147, 153, 0.3);
- }
- }
- @mixin base-scrollbar {
- &::-webkit-scrollbar {
- width: 13px;
- height: 13px;
- }
- &::-webkit-scrollbar-thumb {
- background-color: rgba(0, 0, 0, 0.4);
- background-clip: padding-box;
- border: 3px solid transparent;
- border-radius: 7px;
- }
- &::-webkit-scrollbar-thumb:hover {
- background-color: rgba(0, 0, 0, 0.5);
- }
- &::-webkit-scrollbar-track {
- background-color: transparent;
- }
- &::-webkit-scrollbar-track:hover {
- background-color: #f8fafc;
- }
- }
- img {
- object-fit: cover;
- }
- a {
- color: $base-color-blue;
- text-decoration: none;
- cursor: pointer;
- }
- * {
- transition: $base-transition;
- }
- svg {
- transition: none;
- * {
- transition: none;
- }
- }
- html {
- body {
- position: relative;
- height: 100vh;
- padding: 0;
- margin: 0;
- font-family: Avenir, Helvetica, Arial, sans-serif;
- font-size: $base-font-size-default;
- color: #2c3e50;
- background: #f6f8f9;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- @include base-scrollbar;
- div {
- @include base-scrollbar;
- }
- svg,
- i {
- &:hover {
- opacity: 0.8;
- }
- }
- .v-modal {
- backdrop-filter: blur(10px);
- }
- .el-tag + .el-tag {
- margin-left: 10px;
- }
- .editor-toolbar {
- .no-mobile,
- .fa-question-circle {
- display: none;
- }
- }
- .el-divider--horizontal {
- margin: 10px 0 25px 0;
- .el-divider__text {
- display: -webkit-box;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- }
- }
- .el-image-viewer {
- &__close {
- .el-icon-circle-close {
- color: $base-color-white;
- }
- }
- }
- .vue-admin-beautiful-wrapper {
- .app-main-container {
- @include base-scrollbar;
- > [class*='-container'] {
- * {
- transition: none;
- }
- padding: $base-padding;
- background: $base-color-white;
- }
- }
- }
- /* 进度条开始 */
- #nprogress {
- position: fixed;
- z-index: $base-z-index;
- .bar {
- background: $base-color-blue !important;
- }
- .peg {
- box-shadow: 0 0 10px $base-color-blue, 0 0 5px $base-color-blue !important;
- }
- }
- .el-table {
- .el-table__body-wrapper {
- @include base-scrollbar;
- }
- th {
- background: #f5f7fa;
- }
- td,
- th {
- position: relative;
- box-sizing: border-box;
- padding: 7.5px 0;
- .cell {
- font-size: $base-font-size-default;
- font-weight: normal;
- color: #606266;
- .el-image {
- width: 50px;
- height: 50px;
- border-radius: $base-border-radius;
- }
- }
- }
- }
- .el-pagination {
- padding: 2px 5px;
- margin: 15px 0 0 0;
- font-weight: normal;
- color: $base-color-black;
- text-align: center;
- }
- .el-menu.el-menu--popup.el-menu--popup-right-start {
- @include scrollbar;
- }
- .el-menu.el-menu--popup.el-menu--popup-bottom-start {
- @include scrollbar;
- }
- .el-submenu__title i {
- color: $base-color-white;
- }
- .el-dialog,
- .el-message-box {
- &__body {
- border-top: 1px solid $base-border-color;
- .el-form {
- padding-right: 30px;
- }
- }
- &__footer {
- padding: $base-padding;
- text-align: right;
- border-top: 1px solid $base-border-color;
- }
- &__content {
- padding: 20px 20px 20px 20px;
- }
- }
- .el-card {
- margin-bottom: 15px;
- &__body {
- padding: $base-padding;
- }
- }
- .select-tree-popper {
- .el-scrollbar {
- .el-scrollbar__view {
- .el-select-dropdown__item {
- height: auto;
- max-height: 274px;
- padding: 0;
- overflow-y: auto;
- line-height: 26px;
- }
- }
- }
- }
- }
- .side-bar-container {
- .el-menu-item,
- .el-submenu {
- margin: 7px !important;
- border-radius: 5px !important;
- &:hover {
- border-radius: 5px !important;
- }
- &.is-active {
- background: $base-color-default !important;
- }
- }
- }
- }
|