UNPKG

hair-ui

Version:

A Minimalist Component Library For React.

233 lines (232 loc) 4.15 kB
.btn { border-radius: 4px; box-shadow: 0 0 1px 1px rgba(87, 87, 87, 0.1); transition: 0.3s; margin: 5px; display: -webkit-inline-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; text-overflow: ellipsis; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .btn:hover { cursor: pointer; filter: opacity(0.8); } .btn:active { filter: opacity(1); } .btn-normal { height: 35px; line-height: 35px; padding: 0 20px; font-size: 14px; } .btn-small { height: 30px; line-height: 30px; padding: 0 15px; font-size: 13px; } .btn-mini { height: 25px; line-height: 25px; padding: 0 10px; font-size: 12px; } .btn-primary { background-color: #4091f7; color: white; } .btn-success { background-color: #7ebe50; color: white; } .btn-warning { background-color: #dda450; color: white; } .btn-danger { background-color: #ec5b56; color: white; } .btn-info { background-color: #909398; color: white; } .btn-round { border-radius: 25px; } .btn-plain { background-color: white; color: #606266; border: 1px solid #dcdfe6; } .btn-plain:hover { background-color: #eef5fe; color: #579ff8; border: 1px solid #57a0f882; } .btn-plain:active { border: 1px solid #579ff8; } .btn-plain-disabled { background-color: white; color: #606266; border: 1px solid #dcdfe6; } .btn-disabled, .btn-disabled:active, .btn-disabled:hover { cursor: not-allowed; filter: opacity(0.5); } .card { display: block; margin: 0 10px; border-radius: 4px; background-color: white; box-shadow: 0 0 12px 0 rgba(128, 128, 128, 0.15); border: 1px solid #ebeef5; transition: 0.3s; } .card .card-header { padding: 20px; border-bottom: 1px solid rgba(128, 128, 128, 0.2); } .card .card-body { padding: 20px; } .card .card-footer { padding: 20px; border-top: 1px solid rgba(128, 128, 128, 0.2); } .card:hover { box-shadow: 0 0 8px 2px rgba(128, 128, 128, 0.3); } .input { border: 1px solid #dcdfe6; height: 40px; min-width: 100px; color: #606266; background-color: white; background-image: none; padding: 0 15px; display: inline-block; margin: 5px; border-radius: 4px; transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); font-size: inherit; cursor: pointer; } .input:focus { outline: none; border-color: #409eff; } .input-disabled { background-color: #f5f7fa; border-color: #e4e7ed; color: #c0c4cc; cursor: not-allowed; } .modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10001; background-color: rgba(0, 0, 0, 0.7); -webkit-animation: modalShow 0.2s ease-in; animation: modalShow 0.2s ease-in; } .modal-mask .modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background-color: white; } @-webkit-keyframes modalShow { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes modalShow { 0% { opacity: 0; } 100% { opacity: 1; } } .tag { padding: 5px 10px; display: inline-block; height: 32px; padding: 0 10px; line-height: 30px; font-size: 12px; border-radius: 4px; box-sizing: border-box; white-space: nowrap; border: 1px solid #d9ecff; margin: 5px; } .tag-primary { background-color: #ecf5ff; color: #409eff; } .tag-success { background-color: #f0f9eb; border-color: #e1f3d8; color: #67c23a; } .tag-danger { background-color: #fef0f0; border-color: #fde2e2; color: #f56c6c; } .tag-warning { background-color: #fdf6ec; border-color: #faecd8; color: #e6a23c; } .tag-info { background-color: #f4f4f5; border-color: #e9e9eb; color: #909399; } .image { width: 200px; height: 140px; background-color: #d3d3d3; display: inline-block; } .image-none { -o-object-fit: none; object-fit: none; } .image-cover { -o-object-fit: cover; object-fit: cover; } .image-contain { -o-object-fit: contain; object-fit: contain; } .image-fill { -o-object-fit: fill; object-fit: fill; } .image-scale-down { -o-object-fit: scale-down; object-fit: scale-down; }