123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- .m-date-picker-rel{
- display: inline-block;
- position: relative;
- .m-date-picker{
- display: inline-block;
- font-size: 14px;
- box-sizing: border-box;
- position: relative;
- .m-input__prefix{
- position: absolute;
- left: 5px;
- top: 0;
- color: #c0c4cc;
- height: 100%;
- text-align: center;
- transition: all .3s;
- .iconfont{
- width: 25px;
- height: 100%;
- line-height: 40px;
- text-align: center;
- transition: all .3s;
- }
- }
- .m-input__inner{
- padding: 0 30px;
- height: 40px;
- line-height: 40px;
- border-radius: 4px;
- border: 1px solid #dcdfe6;
- font-size: 14px;
- outline: none;
- box-sizing: border-box;
- color: #606266;
- background-color: transparent;
- &:focus{
- outline: none;
- border-color: #409eff;
- }
- }
- .m-input__suffix{
- position: absolute;
- height: 100%;
- right: 10px;
- top: 0;
- text-align: center;
- color: #c0c4cc;
- transition: all .3s;
- cursor: pointer;
- .iconfont{
- width: 25px;
- height: 100%;
- line-height: 40px;
- text-align: center;
- transition: all .3s;
- }
- }
- }
- .m-date-picker-disabled{
- cursor: no-drop;
- .m-input__inner{
- cursor: no-drop;
- background-color: #f5f7fa;
- color: #c0c4cc;
- }
- }
- .m-date-panel{
- position: absolute;
- color: #606266;
- border: 1px solid #e4e7ed;
- box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
- background: #fff;
- border-radius: 4px;
- margin: 5px 0;
- z-index: 99;
- .m-date-panel-sidebar{
- position: absolute;
- top: 0;
- bottom: 0;
- width: 100px;
- border-right: 1px solid #e4e4e4;
- box-sizing: border-box;
- padding-top: 6px;
- padding-left: 12px;
- background-color: #fff;
- overflow: auto;
- .m-date-panel-shortcut{
- line-height: 28px;
- font-size: 14px;
- color: #606266;
- cursor: pointer;
- &:hover{
- color: #409eff;
- }
- }
- }
- .m-date-panel-body{
- display: flex;
- .m-date-panel__wrap{
- //临时固定
- width: 320px;
- .m-date-picker__header{
- display: flex;
- padding: 6px 12px;
- align-items: center;
- text-align: center;
- .m-date-picker__btn{
- width: 30px;
- color: #303133;
- &:hover{
- color: #409eff;
- }
- }
- .m-date-picker__header-label{
- flex: 1;
- }
- }
- .m-picker-panel__content{
- padding: 10px;
- }
- }
- .end-picker-date{
- border-left: 1px solid #e4e4e4;
- }
- }
- .m-date-panel__footer{
- border-top: 1px solid #e4e4e4;
- padding: 4px;
- height: 36px;
- line-height: 25px;
- text-align: right;
- box-sizing: border-box;
- .m-date-panel__btn{
- border: none;
- line-height: 28px;
- padding: 0 5px;
- margin: 0 5px;
- cursor: pointer;
- background-color: transparent;
- outline: none;
- font-size: 13px;
- color: #303133;
- }
- .btn__confirm{
- font-weight: 800;
- color: #409eff;
- }
- }
- }
- }
|