body { margin: 0; height: 100vh; display: flex; flex-direction: column; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; } a, button, input { -webkit-tap-highlight-color:rgba(255,0,0,0); text-decoration: none; } .button--tiny { background-color: #ffffff; color: #606266; outline: none; white-space: nowrap; border: 1px solid #dcdfe6; border-radius: 4px; cursor: pointer; line-height: 1; transition: .3s; width: 100%; padding: 0px 5px; font-size: 12px; font-weight: 500; -webkit-appearance: none; text-align: center; } .button { background-color: #ffffff; color: #606266; outline: none; white-space: nowrap; border: 1px solid #dcdfe6; border-radius: 4px; cursor: pointer; line-height: 1; transition: .3s; width: 100%; padding: 12px 20px; font-size: 14px; font-weight: 500; -webkit-appearance: none; text-align: center; } .button:focus, .button:hover { color: #409eff; border-color: #c6e2ff; background-color: #ecf5ff; } .button--round { border-radius: 20px; padding: 12px 23px; } .button--primary { color: #fff; background-color: #409eff; border-color: #409eff; } .button--primary:focus, .button--primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; } .button--primary.is-active, .button--primary:active { background: #3a8ee6; border-color: #3a8ee6; color: #fff; } .button--success { color: #fff; background-color: #67c23a; border-color: #67c23a; } .button--success:focus, .button--success:hover { background: #85ce61; border-color: #85ce61; color: #fff; } .button--success.is-active, .button--success:active { background: #5daf34; border-color: #5daf34; color: #fff; } .button--info { color: #fff; background-color: #909399; border-color: #909399; } .button--info:focus, .button--info:hover { background: #a6a9ad; border-color: #a6a9ad; color: #fff; } .button--info.is-active, .button--info:active { background-color: #82848a; border-color: #82848a; color: #fff; } .button--warning { color: #fff; background-color: #e6a23c; border-color: #e6a23c; } .button--warning:focus,.button--warning:hover { background: #ebb563; border-color: #ebb563; color: #fff } .button--warning.is-active,.button--warning:active { background: #cf9236; border-color: #cf9236; color: #fff } .button--danger { color: #fff; background-color: #f56c6c; border-color: #f56c6c } .button--danger:focus,.button--danger:hover { background: #f78989; border-color: #f78989; color: #fff } .button--danger.is-active,.button--danger:active { background: #dd6161; border-color: #dd6161; color: #fff } .input { -webkit-appearance: none; background-color: #fff; border-radius: 4px; border: 1px solid #dcdfe6; box-sizing: border-box; color: #606266; font-size: inherit; height: 40px; outline: none; padding: 0 15px; width: 100%; transition: .1s; } .input:focus { border: 1px solid #3a8ee6 } .login--panel { input{ -webkit-appearance: none; background-color: #fff; border-radius: 4px; border: 1px solid #dcdfe6; box-sizing: border-box; color: #606266; font-size: inherit; height: 40px; outline: none; padding: 0 15px; width: 100%; transition: .1s; } input:focus{ border: 1px solid #3a8ee6 } } .nav { list-style: none; min-height: 50px; margin: 0px; padding:0px; overflow: hidden; border-bottom: 1px solid #dadfe6; li { float: right; } li a { display: block; color: #9ecdfc; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { color: #409eff; } li select { margin: 16px; border: none; background:#ffffff; font-weight:400; color:#5c5c5c; } // .active { // border-bottom: 2px solid #409eff; // color: #409eff; // } } .alert { position: relative; padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem; } .alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .closebtn { float: right; font-size: 1.5rem; margin-left: 15px; color: inherit; font-weight: bold; line-height: 0.7; cursor: pointer; transition: 0.3s; } .closebtn:hover { color: black; } .login--panel { width: 300px; position: relative; margin: auto; input { margin-top: 10px; } } aside { width: 240px; background-color: #66CC99; .title { display: block; color: white; font-size: 30px; padding: 20px 50px; } ul { width: 100%; margin: 0px; padding-left: 0px; } ul li { display: block; font-size: 14px; width: 100%; } ul li a { display: block; padding: 10px 0px 10px 30px; color: white; } ul li a:hover { display: block; background-color: #ffffff18; color: white; text-decoration: none; } .active { display: block; background-color: #ffffff50; color: white; text-decoration: none; } ul li a i { margin-right: 5px; margin-left: 20px; } } content { flex: auto; display: flex; overflow-y: auto; article { flex: auto; overflow-y: auto; } aside { flex: none; width: 240px; overflow-y: auto; } } .table { width: 100%; border-collapse: collapse; table-layout: fixed; td, th { text-align: left; border: 1px solid #f0f0f0; padding: 8px; height: 22px; } } .table--horizontal { td, th { overflow: hidden; //超出部分被隐藏 text-overflow: ellipsis; //超出部分用省略号代替 } } .table--vertical { td, th { word-wrap: break-word; //自动换行 } } .table--hover tbody tr:hover { color: #212529; background-color: rgba(0, 0, 0, 0.075); } .panel { margin: 20px; padding: 20px; margin-bottom: 10px; background-color: #fff; -webkit-box-shadow: 0px 0px 10px 0 rgba(0,0,0,0.06); box-shadow: 0px 0px 10px 0 rgba(0,0,0,0.06); border-radius: 1px; } .field { input[type="text"], input[type="number"], textarea, select { margin: 10px 0px 15px 0px; -webkit-appearance: none; background-color: #fff; border-radius: 4px; border: 1px solid #dcdfe6; box-sizing: border-box; color: #606266; font-size: inherit; height: 40px; outline: none; padding: 0 15px; width: 90%; transition: .1s; margin-left: 1%; } input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus { border: 1px solid #3a8ee6 } } .title--actions { display: block; width: 100%; a { width: auto; display: block; float: right; } } .actions { height: 40px; padding: 20px 20px 20px 0px; button { width: auto; height: 100%; text-align: center; float: left; margin-right: 10px; } a { display: block; width: auto; text-align: center; float: left; margin-right: 10px; } }