@@ -545,4 +545,40 @@ main .form .form-image-wrapper img {
545
545
main form .wizard > .current-wizard-step .panel-wrapper : first-of-type ~ .wizard-button-wrapper > .wizard-button-prev ,
546
546
main form .wizard > .current-wizard-step .panel-wrapper : last-of-type ~ .wizard-button-wrapper > .wizard-button-next {
547
547
display : none;
548
+ }
549
+
550
+ /** custom css goes here */
551
+
552
+ /* Base style for labels */
553
+ main .form : not (.checkbox-wrapper , .radio-wrapper ) > label {
554
+ margin : 15px 5px 0 ;
555
+ position : absolute;
556
+ transition : .3s cubic-bezier (.25 , .8 , .5 , 1 );
557
+ }
558
+
559
+ main .form [data-empty = 'true' ] > input : not (: focus ) {
560
+ color : transparent;
561
+ }
562
+
563
+ /* Style for labels when input is active or not empty */
564
+ main .form [data-active = 'true' ] > label ,
565
+ main .form [data-empty = 'false' ] > label {
566
+ margin-left : 0 ;
567
+ font-size : var (--form-font-size-xs );
568
+ color : var (--label-color );
569
+ transform : translateY (-30px ); /* move as per the height of input elements */
570
+ z-index : 1 ;
571
+ }
572
+
573
+ /* remove placeholder when not focused */
574
+ main .form input : placeholder-shown : not (: focus )::placeholder {
575
+ color : transparent;
576
+ }
577
+
578
+ /* remove default browser placeholder for date field when not focused */
579
+ input [type = 'date' ]: not (: focus): in- range::-webkit-datetime-edit-year-field ,
580
+ input [type = 'date' ]: not (: focus): in- range::-webkit-datetime-edit-month-field ,
581
+ input [type = 'date' ]: not (: focus): in- range::-webkit-datetime-edit-day-field ,
582
+ input [type = 'date' ]: not (: focus ): in-range ::-webkit-datetime-edit-text {
583
+ color : transparent;
548
584
}
0 commit comments