.inputs { // display: table-caption; div { margin-bottom: 20px; display: table; width: 100% !important; vertical-align: middle; div { margin-bottom: 0px; } } .error { color: #ff5e5e; font-size: 12px; } .field_with_errors { input { border: 1px solid #ff5e5e; } input:focus { border: 1px solid #ff5e5e !important; } } label { font-size: 15px; padding-top: 10px; color: #666; width: 100px; display: table-cell; vertical-align: top; } .hint { font-size: 12px; color: #999; } // 嵌套表单 nested_form table { max-width: 900px; min-width: 600px; overflow: auto; margin-left: 90px; tr { .input span { width: 100% !important; } td { border-bottom: none; label { padding-top: 0px; } } } tr:nth-child(even) { background: unset; } } .add_nested_fields { display: inline-block; font-size: 0.64285714rem; line-height: 1; vertical-align: baseline; margin: 0em 0.14285714em; background-image: none; padding: 0.5833em 0.833em; text-transform: none; font-weight: bold; border: 0px solid transparent; border-radius: 0.28571429rem; -webkit-transition: background 0.1s ease; transition: background 0.1s ease; background-color: #21BA45; color: #FFFFFF; text-shadow: none; background-image: none; -webkit-box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset; box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset; } .add_nested_fields:hover { background-color: #16ab39; } .add_nested_fields:active { background-color: #198f35; } .remove_nested_fields { display: inline-block; font-size: 0.64285714rem; line-height: 1; vertical-align: baseline; margin: 0em 0.14285714em; background-image: none; padding: 0.5833em 0.833em; text-transform: none; font-weight: bold; border: 0px solid transparent; border-radius: 0.28571429rem; -webkit-transition: background 0.1s ease; transition: background 0.1s ease; background-color: #DB2828; color: #FFFFFF; text-shadow: none; background-image: none; -webkit-box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset; box-shadow: 0px 0em 0px 0px rgba(34, 36, 38, 0.15) inset; } .remove_nested_fields:hover { background-color: #d01919; } .remove_nested_fields:active { background-color: #b21e1e; } } .actions { height: 40px; padding: 20px 20px 0px 0px; input { width: auto; text-align: center; float: left; margin-right: 10px; } a { display: block; width: auto; text-align: center; float: left; margin-right: 10px; } } .error_notification { color: #ff5e5e; }