tyh-ui
Version:
tyh ui is a set of desktop lightweight UI component library based on Vue # 2.0.
1 lines • 10.9 kB
CSS
*{margin:0;padding:0}.tyh-backTop{position:fixed;width:40px;height:40px;background:#fff;box-shadow:0 2px 12px 0 rgba(0,0,0,.2);border-radius:50%;user-select:none;cursor:pointer;display:flex;justify-content:center;align-items:center;color:#484848;font-size:14px;z-index:999999}.tyh-backTop:hover{transition:background .2s;background:#f4f8fd}.tyh-card{border:1px solid #dcdee2;border-radius:4px}.tyh-card .tyh-card-header{border-bottom:1px solid #dcdee2;height:48px;padding:0 20px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;font-size:15px;color:#2c405a}.tyh-card .tyh-card-header .tyh-card-title{font-weight:600;color:#5d5d5d}.tyh-card .tyh-card-header .tyh-card-subtitle{font-size:14px}.tyh-card .tyh-card-content{padding:15px 20px;box-sizing:border-box;font-size:14px;color:#303133}.tyh-card-shadow-always{box-shadow:2px 2px 18px 3px rgba(0,0,0,.1),0 0 4px 0 rgba(0,0,0,.1)}.tyh-card-shadow-hover:hover{transition:box-shadow .25s;box-shadow:2px 2px 18px 3px rgba(0,0,0,.1),0 0 4px 0 rgba(0,0,0,.1)}.tyh-crumbs{width:100%;display:flex;align-items:center;height:30px}.tyh-crumbs-item{cursor:pointer;user-select:none;font-size:14px;display:flex;justify-content:center;align-items:center;color:#333}.tyh-crumbs-item .tyh-icon{width:28px;display:inline-block;text-align:center}.tyh-crumbs-item:last-child .tyh-icon{display:none}.tyh-crumbs-item__to{font-weight:600;color:#333}.tyh-division{border-right:none;border-left:none;border-bottom:none;border-top:1px solid silver;padding-left:20px}.tyh-division .tyh-division-text{padding:0 21px;color:#515a6e;font-size:13px}.tyh-division .tyh-division-text--left{text-align:left;margin-left:30px}.tyh-division .tyh-division-text--center{text-align:center}.tyh-division .tyh-division-text--right{text-align:right;margin-right:30px}.tyh-input{display:inline-block;position:relative;width:100%;box-sizing:border-box;transition:.35s}.tyh-input .tyh-input-input{width:100%;border-radius:5px;color:#3f536e;border:1px solid #c5d9e8;outline:0;padding:0 10px;transition:border .35s;background:#fff;box-sizing:border-box}.tyh-input .tyh-input-input:focus{border:1px solid #3a6ff4}.tyh-input .tyh-input-icon{position:absolute;left:10px;user-select:none}.tyh-input .tyh-input-icon-large,.tyh-input .tyh-input-input-large{line-height:40px;font-size:15px}.tyh-input .tyh-input-icon-medium,.tyh-input .tyh-input-input-medium{line-height:35px;font-size:14px}.tyh-input .tyh-input-icon-small,.tyh-input .tyh-input-input-small{line-height:30px;font-size:13px}.tyh-input .tyh-input-icon-mini,.tyh-input .tyh-input-input-mini{line-height:25px;font-size:12px}.tyh-input .tyh-input-icon-padding{padding-left:26px}.tyh-input .tyh-input-clear-padding{padding-right:26px}.tyh-input .tyh-input-clear{position:absolute;right:10px;margin:auto}.tyh-input-disabled{background:#f5f7fa;border-color:#e4e7ed;color:#c0c4cc;cursor:not-allowed}.tyh-list{width:100%;border:1px solid #dcdee2;border-radius:6px;color:#515a6e;padding:0}.tyh-list .tyh-list-header{min-height:45px;font-weight:600;border-bottom:1px solid #dcdee2;display:flex;align-items:center;padding:10px 20px;box-sizing:border-box}.tyh-list .tyh-list-content{min-height:45px}.tyh-list .tyh-list-content .note{padding:20px}.tyh-list .tyh-list-content .tyh-list-content-ul{padding:0}.tyh-list .tyh-list-content .tyh-list-content-ul .tyh-list-content-li{min-height:45px;list-style:none;border-bottom:1px solid #dcdee2;display:flex;align-items:center;padding:10px 20px;box-sizing:border-box;cursor:pointer}.tyh-list .tyh-list-content .tyh-list-content-ul .tyh-list-content-li:last-child{border:none}.tyh-list .tyh-list-content .tyh-list-content-ul .tyh-list-content-li .tyh-list-content-li-num{width:25px;display:inline-block;text-align:center;color:#34373f;font-weight:600;margin-right:23px}.tyh-list .tyh-list-content .tyh-list-content-ul .tyh-list-content-li-zebra:nth-child(odd){background:#fafafa}.tyh-list .tyh-list-footer{min-height:45px;font-weight:600;display:flex;align-items:center;padding:10px 20px;border-top:1px solid #dcdee2;box-sizing:border-box}.tyh-menu{width:100%;height:60px;display:flex;align-items:center;padding:0 30px;box-sizing:border-box;user-select:none}.tyh-menu-bottom-shadow{box-shadow:0 7px 19px rgba(0,0,0,.1)}.tyh-menu-item .tyh-menu-item-span{border-bottom:3px solid transparent;line-height:57px;height:57px;display:inline-block;padding:0 22px;font-size:15px;cursor:pointer;position:relative}.tyh-menu-item .tyh-menu-item-span::after{content:"";width:0;height:2px;background:#409eff;position:absolute;left:100%;bottom:0;transition:all .4s}.tyh-menu-item .tyh-menu-item-span:hover::after{width:100%;left:0;transition-delay:.1s}.tyh-menu-item .tyh-menu-item.active::after{width:100%}.tyh-menu-item .tyh-menu-item-prohibit{cursor:not-allowed;color:#909090}.tyh-menu-item .tyh-menu-item-prohibit::after{background:0 0}.tyh-message{display:inline-block;min-width:130px;height:35px;border-radius:4px;padding:0 23px;box-sizing:border-box;background:#fff;box-shadow:0 0 8px 2px rgba(0,0,0,.1);user-select:none;z-index:4000;transform:translateX(-50%);position:fixed;top:-37px;left:50%;animation:tyhMessage .17s linear forwards}.tyh-message .tyh-message-body{width:100%;height:100%;display:inline-block;display:flex;justify-content:center;align-items:center}.tyh-message .tyh-message-body .tyh-message-message{margin-left:7px;font-size:13px}@keyframes tyhMessage{to{top:20px}}.tyh-message-body--{color:#484848}.tyh-message-body--primary{color:#409eff}.tyh-message-body--success{color:#f05048}.tyh-message-body--danger{color:#2ea44f}.tyh-message-body--warning{color:#f70}.tyh-tips{width:320px;min-height:80px;background-color:#fff;border-radius:5px;padding:15px;box-sizing:border-box;position:fixed;box-shadow:2px 2px 15px 1px rgba(0,0,0,.2);z-index:4000}.tyh-tips .tyh-tips-header{display:flex;justify-content:space-between;align-items:center}.tyh-tips .tyh-tips-header .tyh-tips-title{color:#2c405a}.tyh-tips .tyh-tips-header .tyh-tips-close{font-size:14px;cursor:pointer}.tyh-tips .tyh-tips-title-message{font-size:15px;color:#5d5d5d;margin-top:5px}.tyh-tips-top-right{top:20px;right:-320px;animation:tyhTipsTopRight .23s linear forwards}.tyh-tips-bottom-right{bottom:20px;right:-320px;animation:tyhTipsBottomRight .23s linear forwards}.tyh-tips-top-left{top:20px;left:-320px;animation:tyhTipsTopLeft .23s linear forwards}.tyh-tips-bottom-left{bottom:20px;left:-320px;animation:tyhTipsBottomLeft .23s linear forwards}@keyframes tyhTipsTopRight{to{right:20px}}@keyframes tyhTipsBottomRight{to{right:20px}}@keyframes tyhTipsTopLeft{to{left:20px}}@keyframes tyhTipsBottomLeft{to{left:20px}}.tyh-button{min-width:40px;padding:0 22px;height:35px;border-radius:5px;cursor:pointer;user-select:none;border:none;transition:.3s}.tyh-button-primary{background:#3a6ff4}.tyh-button-primary:hover{background:#5d88f6;box-shadow:0 0 3px #5d88f6}.tyh-button-primary:active{background:#0852f3}.tyh-button-success{background:#54c600}.tyh-button-success:hover{background:#6bdb18;box-shadow:0 0 3px #6bdb18}.tyh-button-success:active{background:#45a200}.tyh-button-danger{background:#d10f1b}.tyh-button-danger:hover{background:#ea3941;box-shadow:0 0 3px #ea3941}.tyh-button-danger:active{background:#b90510}.tyh-button-warning{background:#fbcc30}.tyh-button-warning:hover{background:#fbd659;box-shadow:0 0 3px #fbd659}.tyh-button-warning:active{background:#dfb118}.tyh-button-,.tyh-button-default{background:#f4f5f5}.tyh-button-:hover,.tyh-button-default:hover{background:#eee;box-shadow:0 0 3px #eee}.tyh-button-:active,.tyh-button-default:active{background:#dbdbdb}.tyh-button-round{border-radius:30px}.tyh-button-simple-danger,.tyh-button-simple-default,.tyh-button-simple-primary,.tyh-button-simple-success,.tyh-button-simple-warning{background:#f4f5f5}.tyh-button-simple-primary:hover{background:#eee;box-shadow:0 0 3px #eee}.tyh-button-simple-primary:active{background:#dbdbdb}.tyh-button-simple-success:hover{background:#eee;box-shadow:0 0 3px #eee}.tyh-button-simple-success:active{background:#dbdbdb}.tyh-button-simple-danger:hover{background:#eee;box-shadow:0 0 3px #eee}.tyh-button-simple-danger:active{background:#dbdbdb}.tyh-button-simple-warning:hover{background:#eee;box-shadow:0 0 3px #eee}.tyh-button-simple-warning:active{background:#dbdbdb}.tyh-button-simple-default:hover{background:#eee;box-shadow:0 0 3px #eee}.tyh-button-simple-default:active{background:#dbdbdb}.tyh-button-disabled-danger,.tyh-button-disabled-default,.tyh-button-disabled-primary,.tyh-button-disabled-success,.tyh-button-disabled-warning{opacity:.6;cursor:no-drop}.tyh-button-disabled-primary{background:#3a6ff4}.tyh-button-disabled-success{background:#54c600}.tyh-button-disabled-danger{background:#d10f1b}.tyh-button-disabled-warning{background:#fbcc30}.tyh-button-disabled-default{background:#f4f5f5}.tyh-button-simple-disabled-danger,.tyh-button-simple-disabled-default,.tyh-button-simple-disabled-primary,.tyh-button-simple-disabled-success,.tyh-button-simple-disabled-warning{opacity:.6;cursor:no-drop}.tyh-button-size-large{width:100%}.tyh-button-size-small{min-width:30px;padding:0 17px;height:30px}.tyh-button-size-mini{min-width:20px;padding:0 12px;height:25px}.tyh-button-square{border-radius:0}.tyh-link{font-size:15px;user-select:none;cursor:pointer}.tyh-link-primary{color:#3a6ff4}.tyh-link-success{color:#54c600}.tyh-link-danger{color:#d10f1b}.tyh-link-warning{color:#fbcc30}.tyh-link-default{color:#3f536e}.tyh-link-prohibit-danger,.tyh-link-prohibit-default,.tyh-link-prohibit-primary,.tyh-link-prohibit-success,.tyh-link-prohibit-warning{opacity:.5;cursor:no-drop}.tyh-tag{min-width:57px;height:28px;border-radius:4px;display:inline-block;font-size:14px;text-align:center;line-height:28px;cursor:default;user-select:none;padding:0 6px}.tyh-tag-primary{background:#3a6ff4}.tyh-tag-success{background:#54c600}.tyh-tag-danger{background:#d10f1b}.tyh-tag-warning{background:#fbcc30}.tyh-tag-default{background:#e3e3e3}.tyh-tag-round{border-radius:15px}.tyh-tag-small{min-width:49px;height:25px;line-height:26px;font-size:13px}.tyh-tag-mini{min-width:41px;height:22px;line-height:22px;font-size:12px}.tyh-ui-close-03{cursor:pointer}.tyh-table{background:#fff;overflow:auto;display:inline-block;width:100%}.tyh-table .tyh-table-table{border-collapse:collapse}.tyh-table .tyh-table-table .tyh-tbody-td,.tyh-table .tyh-table-table .tyh-thead-td{padding:10px;box-sizing:border-box}.tyh-table .tyh-table-table .tyh-thead{border-bottom:1px solid #dcdfe6;color:#6e6e6e}.tyh-table .tyh-table-table .tyh-tbody .tyh-tbody-tr{border-bottom:1px solid #dcdfe6;color:grey}.tyh-table .tyh-table-table .tyh-tbody .tyh-tbody-tr:hover{background:#f5f7fa}.tyh-table .tyh-table-table .tyh-tbody .tyh-tbody-tr-zebra:nth-child(odd){background:#fafafa}.tyh-table .tyh-table-table .tyh-table-border{border:1px solid #dcdfe6}