// scroll ::-webkit-scrollbar { width: .5rem; height: .5rem; background: hsla(0, 0%, 100%, 0.6); } ::-webkit-scrollbar-track { border-radius: 0; } ::-webkit-scrollbar-thumb { border-radius: 0; background-color: rgba(95,95,95,.4); transition: background-color .15s; &:hover { background-color: rgba(95,95,95, .7); } } // common style .clearfix { &:before, &:after { display: table; content: " "; } &:after { clear: both; } } .list-unstyled { padding-left: 0; list-style: none; } .list-inline li { display: inline-block; padding-left: 5px; padding-right: 5px; } .hide { opacity: 0; visibility: hidden; pointer-events: none; } .pull-left { float: left; } .pull-right { float: right; } .container { width: $container-width; margin: 0 auto; } .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { display: block; margin-left: 180px; &:before, &:after { display: table; content: " "; } &:after { clear: both; } } .dropdown { position: relative; .dropdown-toggle { cursor: pointer; } .dropdown-menu { position: absolute; left: 0; top: 100%; min-width: 100%; display: none; background-color: $white; z-index: 100; } &:hover { .dropdown-menu { display: block; } } } // button .btn { display: inline-block; height: 36px; line-height: 1; padding: 3px 12px; margin: 0; border: 1px solid transparent; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; &.btn-default { color: $text; background-color: $white; border-color: $dividers; } &.btn-primary { color: $white; background-color: $primary; border-color: $primary; } } // form .form-control { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: $white; background-image: none; border: $border; color: $text; display: inline-block; font-size: inherit; height: 36px; line-height: 1; outline: none; padding: 3px 10px; width: 100%; &.input-primary { border-color: $primary; } } .input-group { position: relative; display: inline-table; width: 100%; border-collapse: separate; .form-control, .input-group-btn { display: table-cell; } .input-group-addon, .input-group-btn { position: relative; width: 1px; white-space: nowrap; vertical-align: middle; } .form-control { position: relative; z-index: 2; float: left; width: 100%; } .input-group-btn { .btn { position: relative; } } } // vue animate .slide-down-enter-active, .slide-down-leave-active { transition: all .4s cubic-bezier(0, 1.2, 1, 0.5); opacity: .7; transform: translate3d(0, 4em, 0); } .slide-down-enter, .slide-down-leave-active { opacity: .3; transform: translate3d(0, 4em, 0); } .slide-left-enter-active, .slide-left-leave-active { transition: all .2s cubic-bezier(0, 1.2, 1, 0.5); opacity: .5; transform: translate3d(2em, 0, 0); } .slide-left-enter, .slide-left-leave-active { opacity: .3; transform: translate3d(2em, 0, 0); } .slide-right-enter-active, .slide-right-leave-active { transition: all .4s cubic-bezier(0, 1.2, 1, 0.5); opacity: .5; transform: translate3d(5em, 0, 0); } .slide-right-enter, .slide-right-leave-active { opacity: .3; transform: translate3d(5em, 0, 0); } .fade-enter-active, .fade-leave-active { transition: opacity .25s } .fade-enter, .fade-leave-active { opacity: 0 } .fade-move { transition: transform .25s; } .page-enter-active, .page-leave-active { transition: opacity .25s } .page-enter, .page-leave-active { opacity: 0 } .module-enter-active, .module-leave-active { transition: opacity .25s } .module-enter, .module-leave-active { opacity: 0 } .aside-enter-active { transition: opacity .25s cubic-bezier(1, -1.17, 1, -1.17); } .aside-leave-active { transition: opacity 0s } .aside-enter, .aside-leave-active { opacity: 0 } // 轮播 .swiper-pagination-bullet{ width: 12px !important; height: 12px !important; opacity: 1 !important; background: none !important; border: #fff 1px solid; } .swiper-pagination-bullet.swiper-pagination-bullet-active{ background: #fff !important; } .swiper-pagination-fraction, .swiper-pagination-custom, .swiper-container-horizontal > .swiper-pagination-bullets{ bottom: 20px !important; } .swiper-button-prev i,.swiper-button-next i{ font-size: 40px; color: #fff; opacity: 1; font-weight: 900; text-shadow: 2px 0px 5px #333; } .swiper-button-prev,.swiper-button-next{ background: none !important; width: 40px !important; height: 80px !important; line-height: 80px; margin-top: -45px !important; opacity: .6; } .swiper-button-prev:hover,.swiper-button-next:hover{ opacity: 1; } .menu-title{ line-height: 30px; font-size: 14px; margin-bottom: 10px; } .menu-title a { color: #5078cb; font-size: 14px; }