123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- /* image */
- .img-circle {
- border-radius: 50%;
- }
- .img-lg {
- width: 120px;
- height: 120px;
- }
- /** 表单布局 **/
- .form-header {
- padding-bottom: 5px;
- margin: 8px 10px 25px;
- font-size: 15px;
- border-bottom: 1px solid #dddddd;
- }
- .avatar-upload-preview {
- position: absolute;
- top: 50%;
- width: 200px;
- height: 200px;
- overflow: hidden;
- border-radius: 50%;
- box-shadow: 0 0 4px #cccccc;
- transform: translate(50%, -50%);
- }
- .pull-right {
- float: right !important;
- }
- /* flex */
- .flx-center {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .flx-justify-between {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .flx-align-center {
- display: flex;
- align-items: center;
- }
- /* clearfix */
- .clearfix::after {
- display: block;
- height: 0;
- overflow: hidden;
- clear: both;
- content: '';
- }
- /* 文字单行省略号 */
- .sle {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .text-center {
- text-align: center;
- }
- /* 文字多行省略号 */
- .mle {
- display: -webkit-box;
- overflow: hidden;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- /* 文字多了自动換行 */
- .break-word {
- word-break: break-all;
- word-wrap: break-word;
- }
- /* fade-transform */
- .fade-transform-leave-active,
- .fade-transform-enter-active {
- transition: all 0.2s;
- }
- .fade-transform-enter-from {
- opacity: 0;
- transition: all 0.2s;
- transform: translateX(-30px);
- }
- .fade-transform-leave-to {
- opacity: 0;
- transition: all 0.2s;
- transform: translateX(30px);
- }
- /* breadcrumb-transform */
- .breadcrumb-enter-active {
- transition: all 0.2s;
- }
- .breadcrumb-enter-from,
- .breadcrumb-leave-active {
- opacity: 0;
- transform: translateX(10px);
- }
- /* scroll bar */
- ::-webkit-scrollbar {
- width: 6px;
- height: 6px;
- }
- ::-webkit-scrollbar-thumb {
- background-color: var(--el-border-color-darker);
- border-radius: 20px;
- }
- /* nprogress */
- #nprogress .bar {
- background: var(--el-color-primary) !important;
- }
- #nprogress .spinner-icon {
- border-top-color: var(--el-color-primary) !important;
- border-left-color: var(--el-color-primary) !important;
- }
- #nprogress .peg {
- box-shadow:
- 0 0 10px var(--el-color-primary),
- 0 0 5px var(--el-color-primary) !important;
- }
- /* 外边距、内边距全局样式 */
- @for $i from 0 through 100 {
- .mt#{$i} {
- margin-top: #{$i}px !important;
- }
- .mr#{$i} {
- margin-right: #{$i}px !important;
- }
- .mb#{$i} {
- margin-bottom: #{$i}px !important;
- }
- .ml#{$i} {
- margin-left: #{$i}px !important;
- }
- .pt#{$i} {
- padding-top: #{$i}px !important;
- }
- .pr#{$i} {
- padding-right: #{$i}px !important;
- }
- .pb#{$i} {
- padding-bottom: #{$i}px !important;
- }
- .pl#{$i} {
- padding-left: #{$i}px !important;
- }
- }
|