main{ [x-cloak] { display: none !important; } display: flex; justify-content: flex-start; margin-top: -20px; >.sidebar{ width:300px; min-height: 100vh; border-right:1px #ddd solid; box-shadow: 0px 0px 5px #ddd; padding: 50px 20px; button { display: block; outline: none; border:none; color:#1E74FD; background-color: transparent; margin-bottom: 20px; border-bottom: 1px #ccc solid; opacity: .65; &.active{ opacity: 1; } &:hover{ opacity: 1; } } a{ display: block; width: 120px; height: 35px; text-align: center; line-height: 35px; text-decoration: none; background-color: #1E74FD; color:#fff; margin-top: 50px; } } .inputDiv{ padding: 30px; display: flex; flex-direction: column; label{ margin-bottom: 10px; input, select{ border:1px #aaa solid; outline: none; border-radius: 5px; width: 220px; height: 32px; padding: 0 10px; } button{ background-color:#1E74FD ; color:#fff; outline: none; border:none; border:1px #ccc solid; width: 220px; height: 32px; font-weight: 6500; margin-top: 15px; } } } .contract-install-component, .contract-material-component{ p{ margin:0; } width: 100%; max-width: 816px; margin:30px auto; background-color: #f7f7f7 !important; >.btn-list{ display: flex; align-items: center; >button{ padding: 8px; margin: 0 4px; } } >.contract{ background: #fff; width: 100%; margin-top: 15px; padding: 20px ; font-family:'標楷體'; >h2{ font-size: 18pt; text-align: center; } br{ line-height: 2.5; } .d-flex{ display: flex; align-items: center; } .mouseover{ background-color: #f1f1f1; cursor: pointer; } div, section{ font-size: 12pt; line-height: 2.5; &.party{ width: 100%; display: flex; align-items: center; justify-content: space-between; .company-name{ text-indent:80pt; } .notes{ margin-right: 25%; white-space:nowrap } } &.list-content{ margin-left:70px; } &.list-title{ display: flex; align-items: flex-start; >strong{ min-width: 70px; } } } p, article, div{ position: relative; display: block; } .date{ display: flex; align-items: center; width: 100%; margin-top: 300px; p{ width: 50%; letter-spacing: 20px; } >.ml{ width: 50%; display: flex; justify-content: space-between; flex-direction: row-reverse; } } .buttons{ position: absolute; top: 0; right:0; display: flex; z-index: 9; >button{ width: 30px; height: 30px; border-radius: 5px; padding: 0; display: flex; justify-content: center; align-items: center; border:2px #fff solid; outline: none; color:#fff; margin: 0 1px; >i{ font-size: 12px; } &.edit{ background-color: #5BC0DE; } &.add{ background-color: #F0AD4E; } &.delete{ background-color: rgb(211, 0, 0); } } } } >.contract table{ border:none; margin-top: 30px; font-family:'標楷體'; width: 800px; tr:nth-child(even), tr:nth-child(odd) { background-color: #fff; } tr{ font-size: 12pt; width: 100%; position: relative; &.mouseover{ background-color: #f3f3f3; } h2{ font-size: 18pt; } td{ width: 100%; height: 100%; line-height: 2; &.center{ display: flex; justify-content: center; align-items: center; } display: flex; &.list{ width: 100%; height: 100%; white-space: nowrap; display: flex; span{ width: 100px; min-height: 100%; display: block; } >p{ display: block; text-align: justify ; } div, article{ max-width:calc(100% - 100px); white-space: normal; input[type='text'], input[type='number'], input{ border:none !important; border-bottom: 1px #222 solid !important; width:50px; outline: none; text-align: center; } &.text-justify{ display: flex; width: 100%; justify-content: space-between; } } } } &.date{ td{ >div{ width: 100%; text-align: right; &.text-justify{ display: flex; justify-content: space-between; } } } } } td, th{ padding: 8px; } } @keyframes modelanim { 0%{ opacity: 0; } } } .contract-model{ position: fixed; top: 0; left:0; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; z-index: 999; animation: modelanim .2s linear; >.contract-back{ position: absolute; top:0; left:0; width: 100%; height: 100%; background-color: rgba($color: #000000, $alpha: .5); } >.contract-content{ z-index: 999; max-width: 600px; width: 100%; border-radius: 6px; overflow: hidden; background-color: rgba($color: #fff, $alpha: 1.0); >.model-header{ width: 100%; background-color: #1E74FD; height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; >i{ float: right; color:#ffffffb4; cursor: pointer; &:hover{ color:#fff; } } >span{ color:#fff; } } >.content{ padding: 30px; textarea{ width: 100%; resize: vertical; height: 150px; border:1px #ccc solid; outline: none; border-radius: 6px; } } } } .rebtn, .prviewbtn{ background-color : #5BC0DE ; color:#fff; outline: none; border:none; border:1px #ccc solid; width: 100px; height: 32px; font-weight: 600; border-radius: 6px; margin-right: 5px; } .prviewbtn{ background-color: #2E6DA4; } } input[type="checkbox"].scorll ,input[type="radio"].scorll{ position: relative; width:50px; height: 25px; outline: none; background:linear-gradient(to right,#bbb ,#999); -webkit-appearance: none; cursor: pointer; border-radius: 20px; &::before{ content: ''; position: absolute; top: 0; left: 0; width:25px; height: 25px; background: #fff; border-radius: 50%; transform: scale(0.98,0.96); transition: .5s; } &:checked{ background: linear-gradient(to right, #5BC0DE,#2E6DA4); &::before{ left:25px; } } &::after{ content:''; } } .prview table{ border:none; margin-top: 30px; font-family:'標楷體'; width: 800px; border:1px #ccc solid; tr:nth-child(even), tr:nth-child(odd) { background-color: #fff; } tr{ font-size: 12pt; width: 100%; position: relative; &.mouseover{ background-color: #f3f3f3; } h2{ font-size: 18pt; } td{ width: 100%; height: 100%; line-height: 2; &.center{ display: flex; justify-content: center; align-items: center; } display: flex; &.list{ width: 100%; height: 100%; white-space: nowrap; display: flex; span{ width: 100px; min-height: 100%; display: block; } >p{ display: block; text-align: justify ; } div, article{ max-width:calc(100% - 100px); white-space: normal; &.text-justify{ display: flex; width: 100%; justify-content: space-between; } } } } &.date{ td{ >div{ width: 100%; text-align: right; &.text-justify{ display: flex; justify-content: space-between; } } } } } td, th{ padding: 8px; } } main{ table{ border:none; margin-top: 30px; font-family:'標楷體'; width: 800px; tr:nth-child(even), tr:nth-child(odd) { background-color: #fff; } tr{ font-size: 12pt; width: 100%; position: relative; &.mouseover{ background-color: #ccc; } h2{ font-size: 18pt; } td{ width: 100%; height: 100%; line-height: 2; &.center{ display: flex; justify-content: center; align-items: center; } display: flex; &.list{ width: 100%; height: 100%; white-space: nowrap; display: flex; span{ width: 60px; min-height: 100%; display: block; } >p{ display: block; text-align: justify ; } div{ max-width:calc(100% - 60px); white-space: normal; &.text-justify{ display: flex; width: 100%; justify-content: space-between; } } } } &.date{ td{ >div{ width: 100%; text-align: right; &.text-justify{ display: flex; justify-content: space-between; } } } } } td, th{ padding: 8px; } } } .prview{ width: 800px; margin:0 auto; border:1px #ccc solid; padding: 20px; font-family:'標楷體'; &.none{ display: none; } h2{ font-size: 18pt; text-align: center; } p{ font-size: 12pt; } } .loader { border: 4px solid #f3f3f3; /* Light grey */ border-top: 4px solid #999; /* Blue */ border-radius: 50%; width: 20px; height: 20px; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .contract-input-component{ .form{ margin:0 auto; .dropdown{ width:100%; margin-top: 7px; } .savebtn{ margin-right: 13px; display: flex; justify-content: center; align-items: center; width:70px; height: 45px; font-size: 15px; } table{ .alerttext{ font-size: 13px; color:#a00; font-weight: 500; margin: 3px; font-weight: 900; padding: 0; } } input[type="file"]{ padding: 12px 20px; margin: 8px 0; } } .error{ display: flex; flex-direction: column; margin:15px ; .errortext{ font-size: 16px; font-weight: 500; color: #a00; } } .input-group-btn{ font-size: 16px; } @media screen and (max-width: 600px) { table { border: 0; } table thead { display: none; } table tr { margin-bottom: 10px; display: block; border-bottom: 2px solid #ddd; } table td { display: block; text-align: left; font-size: 14px; border-bottom: 1px dotted #ccc; } table td:last-child { border-bottom: 0; } table td:before { content: attr(data-label); float: left; text-transform: uppercase; font-weight: bold; } } }