| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727 |
- /* Form */
- .form-control {
- font-size: 14px;
- border-color: #ebedf2;
- padding: .6rem 1rem;
- height: inherit !important;
- &:focus {
- border-color: #3e93ff;
- }
- }
- /* Form Control Sizes */
- %form-control-lg-style {
- padding: .5rem 1rem !important;
- font-size: 1.25rem !important;
- }
- .form-control-lg {
- @extend %form-control-lg-style;
- }
- .input-group-lg > {
- .form-control {
- @extend %form-control-lg-style;
- }
- .input-group-append > {
- .btn, .input-group-text {
- @extend %form-control-lg-style;
- }
- }
- .input-group-prepend > {
- .btn, .input-group-text {
- @extend %form-control-lg-style;
- }
- }
- }
- %form-control-sm-style {
- padding: .25rem .5rem !important;
- font-size: .875rem !important;
- line-height: 1.5;
- }
- .form-control-sm {
- @extend %form-control-sm-style;
- }
- .input-group-sm > {
- .form-control {
- @extend %form-control-sm-style;
- }
- .input-group-append > {
- .btn, .input-group-text {
- @extend %form-control-sm-style;
- }
- }
- .input-group-prepend > {
- .btn, .input-group-text {
- @extend %form-control-sm-style;
- }
- }
- }
- .form-control::-webkit-input-placeholder { color:inherit;opacity:.7 }
- .form-control:-moz-placeholder { color:inherit;opacity:.7 }
- .form-control::-moz-placeholder { color:inherit;opacity:.7 }
- .form-control:-ms-input-placeholder { color:inherit;opacity:.7 }
- .form-control::-ms-input-placeholder { color:inherit;opacity:.7 }
- .input-group-text {
- border-color : #ebedf2 !important;
- }
- .form-button-action {
- display: inline-flex;
- }
- .form-check-label, .form-radio-label {
- margin-right: 15px;
- }
- /* CheckBox Input */
- .select-all-checkbox + .form-check-sign:before {
- background: #ccc !important;
- border-color: #ccc !important;
- }
- .form-check{
- [type="checkbox"] {
- &:not(:checked), &:checked {
- position: absolute;
- left: -9999px;
- }
- &:not(:checked) + .form-check-sign, &:checked + .form-check-sign, + .form-check-sign {
- position: relative;
- padding-left: 2em;
- color: $body-text-color;
- cursor: pointer;
- }
- &:not(:checked) + .form-check-sign:before, &:checked + .form-check-sign:before, + .form-check-sign:before {
- content: '';
- position: absolute;
- left: 0;
- top: 1px;
- width: 16px;
- height: 16px;
- border: 1px solid #ccc;
- background: $transparent-bg;
- border-radius: 4px;
- }
- &:not(:checked) + .form-check-sign:after, &:checked + .form-check-sign:after, + .form-check-sign:after {
- content: "\f00c";
- display: inline-block;
- position: absolute;
- top: -1px;
- left: 2px;
- width: 18px;
- height: 18px;
- text-align: center;
- font-size: 1.3em;
- line-height: 0.8;
- color: $primary-color;
- transition: all .2s;
- font-family: 'Font Awesome 5 Solid';
- }
- &:not(:checked) + .form-check-sign:after {
- opacity: 0;
- transform: scale(0);
- }
- &:checked + .form-check-sign {
- &:after {
- opacity: 1;
- transform: scale(1);
- }
- font-weight: $font-weight-normal;
- }
- &:disabled {
- &:not(:checked) + .form-check-sign:before {
- box-shadow: none;
- border-color: #bbb;
- background-color: #ddd;
- }
- &:checked + .form-check-sign {
- &:before {
- box-shadow: none;
- border-color: #bbb;
- background-color: #ddd;
- }
- &:after {
- color: #999;
- }
- }
- + .form-check-sign {
- color: #aaa;
- }
- }
- &:checked:focus + .form-check-sign:before, &:not(:checked):focus + .form-check-sign:before {
- border: 1px solid #ccc;
- }
- }
- }
- .form-check-sign:hover:before {
- border: 1px solid #ccc !important;
- }
- .form-check {
- padding-left: 0.75rem;
- }
- .form-check-input {
- position: relative;
- margin-top: .3rem;
- }
- /* Radio Input */
- .form-radio {
- [type="radio"] {
- &:not(:checked), &:checked {
- position: absolute;
- left: -9999px;
- }
- &:not(:checked) + .form-radio-sign, &:checked + .form-radio-sign {
- color: $body-text-color;
- position: relative;
- padding-left: 2em;
- cursor: pointer;
- line-height: 22px;
- font-weight: $font-weight-normal;
- }
- &:not(:checked) + .form-radio-sign:before {
- content: "\f18a";
- font-size: 22px;
- font-family: LineAwesome;
- position: absolute;
- left: 0;
- top: auto;
- background: $transparent-bg;
- line-height: 1;
- color: #bbb;
- }
- &:checked + .form-radio-sign:before {
- content: "\f18a";
- font-size: 22px;
- font-family: LineAwesome;
- position: absolute;
- left: 0;
- top: auto;
- background: $transparent-bg;
- line-height: 1;
- display: none;
- }
- &:not(:checked) + .form-radio-sign:after, &:checked + .form-radio-sign:after {
- content: "\f1bc";
- position: absolute;
- left: 0px;
- top: auto;
- text-align: center;
- font-size: 22px;
- color: #4D7CFE;
- transition: all .2s;
- line-height: 1;
- font-family: LineAwesome;
- }
- &:not(:checked) + .form-radio-sign:after {
- opacity: 0;
- transform: scale(0);
- }
- &:checked + .form-radio-sign {
- &:after {
- opacity: 1;
- transform: scale(1);
- }
- font-weight: $font-weight-normal;
- }
- &:disabled {
- &:not(:checked) + .form-radio-sign:before {
- box-shadow: none;
- opacity: 0.65;
- }
- &:checked + .form-radio-sign {
- &:before {
- box-shadow: none;
- opacity: 0.65;
- }
- &:after {
- opacity: 0.65;
- }
- }
- + .form-radio-sign {
- color: #aaa;
- opacity: 0.65;
- }
- }
- &:checked:focus + .form-radio-sign:before, &:not(:checked):focus + .form-radio-sign:before {
- border: 1px solid #ccc;
- }
- }
- }
- .form-radio {
- padding-left: 0.75rem;
- }
- .form-radio-input {
- position: relative;
- margin-top: .3rem;
- }
- /* Custom Checkbox */
- .custom-checkbox {
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $primary-color;
- }
- &.checkbox-default{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $dark-color;
- }
- }
- &.checkbox-primary{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $primary-color;
- }
- }
- &.checkbox-secondary{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $secondary-color;
- }
- }
- &.checkbox-info{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $info-color;
- }
- }
- &.checkbox-success{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $success-color;
- }
- }
- &.checkbox-warning{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $warning-color;
- }
- }
- &.checkbox-danger{
- .custom-control-input:checked~.custom-control-label::before{
- background-color: $danger-color;
- }
- }
- }
- /* Label */
- .col-form-label {
- line-height: 1.8;
- }
- .required-label{
- color: red;
- }
- .label-align-left{
- text-align: left;
- }
- .label-align-right{
- text-align: right;
- }
- .label-align-center{
- text-align: center;
- }
- /* Input */
- .form-group, .form-check {
- margin-bottom: 0;
- padding: 10px;
- }
- .form-group label, .form-check label {
- margin-bottom: .5rem;
- color: #495057;
- font-weight: $font-weight-bold;
- font-size: 1rem;
- white-space: nowrap;
- }
- .form-group-default {
- background-color: $white-color;
- border: 1px solid rgba(0,0,0,.07);
- border-radius: 4px;
- padding-top: 7px;
- padding-left: 12px;
- padding-right: 12px;
- padding-bottom: 4px;
- overflow: hidden;
- width: 100%;
- -webkit-transition: background-color .2s ease;
- transition: background-color .2s ease;
- margin-bottom: 15px;
- label {
- opacity: 1;
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
- margin: 0;
- display: block;
- -webkit-transition: opacity .2s ease;
- transition: opacity .2s ease;
- }
- label:not(.error){
- font-size: 10.5px !important;
- letter-spacing: .06em;
- text-transform: uppercase;
- font-weight: $font-weight-normal;
- }
- .form-control{
- border: 0;
- min-height: 25px;
- padding: 0;
- margin-top: 6px;
- background: 0 0;
- font-size: 14px;
- }
- select.form-control:not([size]):not([multiple]){
- height: unset !important;
- }
- &.active {
- border-color: rgba(0,0,0,.1)!important;
- background-color: #f0f0f0;
- label {
- opacity: 0.5;
- }
- }
- }
- .form-floating-label{
- position: relative;
- .placeholder {
- position: absolute;
- padding: .375rem .75rem;
- transition: all .2s;
- opacity: 0.8;
- margin-bottom: 0 !important;
- font-size: 14px !important;
- font-weight: $font-weight-normal;
- top: 12px;
- }
-
- .form-control:focus + .placeholder, .form-control:valid + .placeholder, .form-control.filled + .placeholder {
- font-size: 85% !important;
- transform: translate3d(0, -10px, 0);
- top: 0;
- opacity: 1;
- padding: .375rem 0 .75rem;
- font-weight: $font-weight-bold;
- }
- .form-control.filled + .placeholder{
- color: $primary-color !important;
- }
- .form-control ::-webkit-input-placeholder { color: $transparent-bg; }
- .form-control :-moz-placeholder { color: $transparent-bg; }
- .form-control ::-moz-placeholder { color: $transparent-bg; }
- .form-control :-ms-input-placeholder { color: $transparent-bg; }
- .input-border-bottom + .placeholder{
- padding: .375rem 0 .75rem;
- }
- }
- .form-inline label {
- margin-bottom: 0 !important;
- }
- .input-fixed {
- width: 200px;
- }
- .form-control.input-full {
- width: 100% !important;
- }
- .has-success {
- label {
- color: $success-color !important;
- }
- .form-control {
- border-color: $success-color !important;
- color: $success-color !important;
- }
- .input-group-text{
- border-color: $success-color !important;
- background: $success-color !important;
- color: $white-color !important;
- }
- }
- .has-error{
- label {
- color: $danger-color !important;
- }
- .form-control {
- border-color: $danger-color !important;
- color: $danger-color !important;
- }
- .input-group-text{
- border-color: $danger-color !important;
- background: $danger-color !important;
- color: $white-color !important;
- }
- }
- .input-group{
- label{
- &.error, &.success{
- width: 100%;
- order: 100;
- }
- }
- }
- .custom-control{
- position: relative;
- &.custom-radio, &.custom-checkbox{
- margin-bottom: 0;
- padding-left: 2em;
- cursor: pointer;
- line-height: 24px;
- margin-right: 25px;
- display: inline-block;
- label{
- &.error, &.success{
- position: absolute;
- width: 100vh;
- top: 23px;
- left: 0;
- }
- }
- }
- }
- .has-feedback {
- position: relative;
- }
- .form-control-feedback {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- right: 20px;
- }
- .has-success .form-control-feedback {
- color: $success-color;
- }
- .has-error .form-control-feedback {
- color: $danger-color;
- }
- .input-group {
- &.has-icon {
- border-radius: .25rem;
- border: 1px solid #ced4da;
- }
- &.has-success, &.has-icon.has-success {
- border: 1px solid $success-color !important;
- color: $success-color;
- }
- &.has-error {
- border: 1px solid $danger-color !important;
- color: $danger-color;
- }
- &.has-icon {
- &.has-error {
- border: 1px solid $danger-color !important;
- color: $danger-color;
- }
- .form-control {
- border-radius: .25rem;
- border: 0px;
- position: relative;
- }
- .input-group-icon {
- background: $transparent-bg;
- border: 0px;
- }
- }
- }
- .input-square {
- border-radius: 0px !important;
- }
- .input-pill {
- border-radius: 1.3rem !important;
- }
- .input-solid {
- background: #e8e8e8 !important;
- border-color: #e8e8e8 !important;
- }
- .input-border-bottom{
- border-width: 0 0 1px 0;
- border-radius: 0px;
- padding: .75rem 0;
- background: transparent !important;
- }
- /* Input File */
- .input-file {
- input[type="file"], .form-control, .form-control-file{
- width: 0.1px;
- height: 0.1px;
- opacity: 0;
- overflow: hidden;
- position: absolute;
- z-index: -1;
- }
- label{
- &.error, &.success{
- display: block;
- }
- }
- input[type="file"] + label:not(.error), .form-control + label:not(.error), .form-control-file + label:not(.error), .label-input-file {
- font-weight: $font-weight-bold;
- letter-spacing: 0.02em;
- color: white !important;
- display: inline-block;
- }
- &.input-file-image{
- img.img-upload-preview{
- max-width: 100%;
- display: block;
- margin-bottom: 15px;
- box-shadow: 0 1px 15px 1px rgba(39,39,39,.1);
- &.img-circle{
- border-radius: 2000px;
- }
- }
- }
- }
- .form-control {
- &:disabled, &[readonly] {
- background: #e8e8e8 !important;
- border-color: #e8e8e8 !important;
- }
- &:disabled, &[readonly] {
- opacity: 0.6 !important;
- }
- }
- /* Input Group */
- .input-group-text{
- font-size: 14px;
- i.la{
- font-size: 21px;
- }
- i[class*="flaticon"]{
- font-size: 17px;
- }
- }
- /* Input Icon */
- .input-icon {
- position: relative;
- .form-control {
- &:not(:first-child) {
- padding-left: 2.5rem;
- }
- &:not(:last-child) {
- padding-right: 2.5rem;
- }
- }
- .input-icon-addon {
- position: absolute;
- left: 1rem;
- top: 0;
- height: 100%;
- display: flex;
- align-items: center;
- &:last-child {
- left: auto;
- right: 1rem;
- }
- }
- }
- /* Label States */
- label {
- &.error {
- color: $danger-color !important;
- font-size: 80% !important;
- margin-top: .5rem;
- }
- }
- /* Label states for select2 */
- .select2-input {
- position: relative;
- label{
- &.error, &.success {
- position: absolute;
- bottom: -30px;
- }
- }
- .select2{
- margin-bottom: 15px;
- }
- }
- /* Custom Dropzone */
- .dropzone{
- padding: 70px 60px 80px !important;
- border: 2px dashed rgba(0, 0, 0, 0.13) !important;
- background: $transparent-bg !important;
- &:hover {
- background: #fafafa !important;
- transition: all .5s !important;
- }
- .dz-message {
- .icon{
- margin-bottom: 15px;
- font-size: 39px;
- }
- .message{
- font-size: 34px;
- font-weight: 200;
- }
- .note{
- font-size: 16px;
- margin-top: 18px;
- font-weight: $font-weight-light;
- }
- }
- }
- /* Custom Summernote */
- .note-editor.note-frame {
- border: 0px !important;
- box-shadow: none !important;
- .note-toolbar {
- padding: 0 !important;
- border-bottom: 0px !important;
- }
- .note-btn{
- border: 1px solid #eee !important;
- background: #fafafa !important;
- }
- .note-placeholder{
- margin-top: 15px !important;
- }
- .note-codable{
- margin-top: 15px !important;
- }
- .note-editing-area{
- .note-editable{
- margin-top: 15px !important;
- border: 1px solid #eee !important;
- }
- }
- }
|