@import "../helpers/index.scss"; @function size($size) { @return map-get($font-size, $size); } @function weight($weight) { @return map-get($font-weight, $weight); } .form-page { padding: 24px; background-color: $white; &__inner { max-width: 752px; } .form-wrapper { .form-container { .form-title { @include font($size: $t3-text, $color: $primary-text-clr, $weight: bold); line-height: 24px; margin: 0 0 16px; } &__inner { padding: 24px; border: 1px solid $grey-light-clr; border-radius: $radius-4; .form-field { max-width: 320px; } } } } } //Old form code .form-wrapper { // margin-top: 60px; &__top-bar { position: fixed; top: 60px; left: 250px; display: flex; align-items: center; width: calc(100% - 250px); height: 60px; padding: 0 20px; background-color: $white; box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06); z-index: 9; .back-btn { @include font($size: $t1-text, $color: #091e42); cursor: pointer; span { color: #0099ff; margin-right: 8px; } } } &__inner { margin-top: 120px; padding: 20px; .paper { padding: 20px; background-color: $white; box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1); border: 1px solid #ebecf0; border-radius: $radius-4; } } .cm-admin-form { max-width: 600px; .form-field { margin-bottom: 20px; .form-label { font-weight: 600; color: #172b4d; font-size: 14px; margin-bottom: 0.5rem; } .form-input { label { @include font($size: $t4-text, $color: #172b4d, $weight: bold); } input { width: 100%; padding: 5px 10px; border: 1px solid #c1c7d0; border-radius: $radius-2; &:focus { border-color: #66afe9 !important; outline: 0 !important; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important; } } } .file-upload { position: relative; display: flex; justify-content: center; align-items: center; width: 250px; height: 80px; border: 2px dashed #c1c7d0; border-radius: $radius-4; cursor: pointer; input[type="file"] { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; cursor: pointer; } label { color: #0099ff; margin: 0; cursor: pointer; } i { color: #0099ff; margin-left: 8px; } } .radio-label { color: #172b4d; font-size: 16px; font-weight: 600; margin-left: 8px; } .checkbox-label { color: #172b4d; font-size: 16px; font-weight: 600; margin-left: 8px; } } .form-actions { input { padding: 5px 10px; color: $white; background-color: #0099ff; border: none; border-radius: $radius-4; } } } } //cocoon field styles .fields-group { display: flex; align-items: center; margin: 16px 0; .field-item { margin: 0 5px; label { @include font($size: $t4-text, $color: #172b4d, $weight: bold); margin-bottom: 4px; } input { width: 100%; padding: 5px 10px; border: 1px solid #c1c7d0; border-radius: $radius-2; &:focus { border-color: #66afe9 !important; outline: 0 !important; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important; } } } .field-remove { margin-top: 25px; a { @include font($size: $t1-text, $color: #ff5656); @include transition-linear; &:hover { transform: scale(1.1); } } } } .add-field-btn { font-size: 14px; margin: 10px 0; }