123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- .el-switch {
- display: -webkit-inline-box;
- display: -ms-inline-flexbox;
- display: inline-flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- position: relative;
- font-size: 14px;
- line-height: 20px;
- height: 20px;
- vertical-align: middle; }
- .el-switch.is-disabled .el-switch__core,
- .el-switch.is-disabled .el-switch__label {
- cursor: not-allowed; }
- .el-switch__label {
- -webkit-transition: .2s;
- transition: .2s;
- height: 20px;
- display: inline-block;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- vertical-align: middle;
- color: #303133; }
- .el-switch__label.is-active {
- color: #2D74E7; }
- .el-switch__label--left {
- margin-right: 10px; }
- .el-switch__label--right {
- margin-left: 10px; }
- .el-switch__label * {
- line-height: 1;
- font-size: 14px;
- display: inline-block; }
- .el-switch__input {
- position: absolute;
- width: 0;
- height: 0;
- opacity: 0;
- margin: 0; }
- .el-switch__core {
- margin: 0;
- display: inline-block;
- position: relative;
- width: 40px;
- height: 20px;
- border: 1px solid #DCDFE6;
- outline: none;
- border-radius: 10px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- background: #DCDFE6;
- cursor: pointer;
- -webkit-transition: border-color .3s, background-color .3s;
- transition: border-color .3s, background-color .3s;
- vertical-align: middle; }
- .el-switch__core:after {
- content: "";
- position: absolute;
- top: 1px;
- left: 1px;
- border-radius: 100%;
- -webkit-transition: all .3s;
- transition: all .3s;
- width: 16px;
- height: 16px;
- background-color: #FFFFFF; }
- .el-switch.is-checked .el-switch__core {
- border-color: #2D74E7;
- background-color: #2D74E7; }
- .el-switch.is-checked .el-switch__core::after {
- left: 100%;
- margin-left: -17px; }
- .el-switch.is-disabled {
- opacity: 0.6; }
- .el-switch--wide .el-switch__label.el-switch__label--left span {
- left: 10px; }
- .el-switch--wide .el-switch__label.el-switch__label--right span {
- right: 10px; }
- .el-switch .label-fade-enter,
- .el-switch .label-fade-leave-active {
- opacity: 0; }
|