@@ -369,9 +369,99 @@ main {
369369 >div {
370370 padding-left : calc (var (--padding-size ) + 10px );
371371 position : relative ;
372+
373+ div :has (input , textarea , select ) {
374+ margin-bottom : 1.5rem ;
375+
376+ >label {
377+ @include flexColumns ;
378+ position : relative ;
379+ padding : 0 0 10px ;
380+ min-height : 40px ;
381+ height : fit-content ;
382+ border-bottom : 2px solid currentColor ;
383+
384+ >span {
385+ display : inline-block ;
386+ width : 100% ;
387+ background : var (--color-dark );
388+ position : absolute ;
389+ translate : 0 21px 0 ;
390+ font-size : 120% ;
391+ letter-spacing : 2px ;
392+ transition : var (--fast-transition-speed ) ease ;
393+ }
394+
395+ input ,
396+ textarea ,
397+ select {
398+ @include fill ;
399+ margin : 20px 0 0 ;
400+ padding : 0 ;
401+ border : none ;
402+ background-color : transparent ;
403+ color : var (--color-bright );
404+ outline : none ;
405+ font-size : 120% ;
406+ }
407+
408+ textarea {
409+ padding-bottom : .5rem ;
410+ resize : none ;
411+ height : 38px ;
412+ }
413+ }
414+
415+ >label :has (input :valid ,
416+ textarea :valid ,
417+ select :valid ,
418+ input :focus ,
419+ textarea :focus ,
420+ select :focus ) {
421+ >span {
422+ font-size : 80% ;
423+ translate : 0 0 0 ;
424+ }
425+ }
426+
427+ >label :has (textarea ) {
428+ height : fit-content ;
429+ padding-bottom : 0 ;
430+ }
431+ }
432+
433+ button {
434+ width : 100% ;
435+ padding : 0.7rem ;
436+ border : 1px solid transparent ;
437+ border-radius : 4px ;
438+ background : var (--color-bright );
439+ color : var (--color-dark );
440+ font-size : 120% ;
441+ font-weight : bold ;
442+ margin-top : 3rem ;
443+ }
444+
445+ button :hover {
446+ box-shadow : 0 0 1.5rem var (--color-hidden );
447+ }
448+
449+ button :disabled {
450+ border-color : currentColor ;
451+ background-color : var (--color-dark );
452+ color : var (--color-hidden );
453+ }
454+ }
455+
456+ @media screen and (max-width : 900px ) {
457+ >div {
458+ form {
459+ padding-right : calc (var (--padding-size ) + 10px );
460+ }
461+ }
372462 }
373463
374- >div ::after {
464+ >div ::before {
375465 content : ' ' ;
376466 height : 100% ;
377467 width : var (--sm-line-width );
@@ -430,15 +520,15 @@ footer {
430520}
431521
432522::-webkit-scrollbar-track {
433- background : #fff4 ;
523+ background : #fff1 ;
434524}
435525
436526::-webkit-scrollbar-thumb {
437- background : var (--color-active );
527+ background : var (--linear-gradient-medium );
438528}
439529
440530::-webkit-scrollbar-thumb :hover {
441- background : var (--color-active-2 );
531+ background : var (--linear-gradient-medium-invert );
442532}
443533
444534.linear-gradient-md {
@@ -460,6 +550,8 @@ footer {
460550 border : 2px solid currentColor ;
461551 border-width : 0 ;
462552 translate : -100px -100px ;
553+ top : 0 ;
554+ left : 0 ;
463555
464556 >div {
465557 position : absolute ;
0 commit comments