.o-button { display: inline-flex; justify-content: center; align-items: center; min-width: 60px; height: $height; padding: 0 $padding; color: #fff; font-size: $font-size--sm; line-height: 1; border: none; border-radius: $radius--sm; background-color: $blue; transition: background-color .4s; user-select: none; cursor: pointer; &--sm { height: $height--sm; } &:hover { background-color: rgba($blue, .8); } &:active { background-color: darken($blue, 5%); } &__icon { font-size: $font-size--md; margin-right: $spacing--xs; } &--cancel { color: $gray--dark; background-color: $gray--light; &:hover, &:active { color: $primary; background-color: $blue--light; } &:active { outline: 1px solid #3a8ee6; } } } .o-pagination-button { border-color: $blue; background-color: $blue; &:hover { border-color: rgba($blue, .8); background-color: rgba($blue, .8); } } .o-tag { min-width: 80px; text-align: center; } .o-next { display: inline-block; width: 1em; height: 1em; text-align: center; &::before { content: ''; display: inline-block; border-top: .5em solid transparent; border-bottom: .5em solid transparent; border-left: .68em solid currentcolor; } &::after { content: ''; display: inline-block; height: 1em; border-left: .1em solid currentcolor; } } .o-thumbnail { display: inline-flex; justify-content: center; align-items: center; width: 80px !important; height: 45px !important; } .o-select-option { max-width: 400px; } .o-date-picker { &.hide-footer { .el-picker-panel__footer .el-button--text { display: none; } } } .o-upload { display: flex; .el-upload { display: flex; flex: 1 1 auto; } .el-upload-dragger { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; width: auto; height: auto; padding: $spacing; color: $gray; font-size: $font-size--sm; font-weight: bold; &.is-dragover { border-width: 1px; } } .o-upload__icon { margin: 0; color: $blue; font-size: $font-size--xl; line-height: 1; } &__accept { margin-top: $spacing--xs; font-size: $font-size--xs; font-weight: normal; } } .o-info { padding: 0 $spacing; color: $info--dark; line-height: normal; & > div + div { margin-top: $spacing--3xs; } } .o-expand-icon { transition: transform 0.2s; &.expand { transform: rotate(90deg); } } .o-tab { display: inline-flex; align-items: center; vertical-align: bottom; &__icon { padding: 0 $spacing--xs; margin-left: -$spacing--xs; color: $blue; font-size: 1.4em; font-weight: bold; line-height: 1; } } .o-icon { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; font-size: 18px; @extend .has-bg; &.lg { width: 64px; height: 64px; font-size: 32px; } &.md { width: 48px; height: 48px; font-size: 24px; } &.medium { width: 32px; height: 32px; font-size: 18px; } &.sm { width: 24px; height: 24px; font-size: 16px; } &--hover { border-radius: 50%; transition: background-color 0.4s; &:hover { background-color: $gray--light; } } } .o-link { display: inline-block; color: $gray; font-size: $font-size--xs; &::after { content: attr(href); } &:hover { color: $blue; text-decoration: underline; } } .o-simple-video { object-fit: contain; &::-webkit-media-controls-enclosure { display: none; } } .o-video { position: relative; padding-top: $padding--16_9; border-radius: $radius--sm; background-color: #000; overflow: hidden; &.controls:hover, &.mask { .o-video__mask { display: inline-block; } } &.offline { background: url("~@/assets/image_offline.svg") 0 0 / 100% 100% no-repeat; .o-video__mask { display: none; } } &__player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } &__mask { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); } &__btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; color: #fff; font-size: 48px; border-radius: 50%; background-color: rgba(#000, 0.5); transform: translate(-50%, -50%); } }