@@ -744,10 +744,26 @@ h2 {
744744}
745745
746746select {
747- border-radius : 4 px ;
747+ border-radius : 8 px ;
748748 border : 1px solid var (--vp-c-divider );
749- padding : 0 4 px ;
749+ padding : 8 px 12 px ;
750750 width : 300px ;
751+ background-color : var (--vp-c-bg-soft );
752+ color : var (--vp-c-text-1 );
753+ font-size : 14px ;
754+ transition : all 0.2s ease ;
755+ cursor : pointer ;
756+ outline : none ;
757+ }
758+
759+ select :hover {
760+ border-color : var (--vp-c-brand-1 );
761+ background-color : var (--vp-c-bg );
762+ }
763+
764+ select :focus {
765+ border-color : var (--vp-c-brand-1 );
766+ box-shadow : 0 0 0 3px var (--vp-c-brand-soft );
751767}
752768
753769.my-btn {
@@ -781,17 +797,160 @@ select {
781797
782798.textarea {
783799 border : 1px solid var (--vp-c-divider );
784- border-radius : 4px ;
785- width : calc (100% - 12px );
786- padding : 4px 8px ;
800+ border-radius : 8px ;
801+ width : calc (100% - 24px );
802+ padding : 12px ;
803+ background-color : var (--vp-c-bg-soft );
804+ color : var (--vp-c-text-1 );
805+ font-size : 14px ;
806+ font-family : var (--vp-font-family-mono );
807+ line-height : 1.5 ;
808+ transition : all 0.2s ease ;
809+ outline : none ;
810+ resize : vertical ;
811+ }
812+
813+ .textarea :hover {
814+ border-color : var (--vp-c-brand-1 );
815+ background-color : var (--vp-c-bg );
816+ }
817+
818+ .textarea :focus {
819+ border-color : var (--vp-c-brand-1 );
820+ box-shadow : 0 0 0 3px var (--vp-c-brand-soft );
787821}
788822
789823.input {
790824 display : block ;
791825 border : 1px solid var (--vp-c-divider );
792- border-radius : 4 px ;
826+ border-radius : 8 px ;
793827 width : 100% ;
794- padding : 4px 8px ;
828+ padding : 10px 12px ;
829+ background-color : var (--vp-c-bg-soft );
830+ color : var (--vp-c-text-1 );
831+ font-size : 14px ;
832+ transition : all 0.2s ease ;
833+ outline : none ;
834+ box-sizing : border-box ;
835+ }
836+
837+ .input :hover {
838+ border-color : var (--vp-c-brand-1 );
839+ background-color : var (--vp-c-bg );
840+ }
841+
842+ .input :focus {
843+ border-color : var (--vp-c-brand-1 );
844+ box-shadow : 0 0 0 3px var (--vp-c-brand-soft );
845+ }
846+
847+ /* Radio button styles */
848+ input [type = " radio" ] {
849+ appearance : none ;
850+ width : 18px ;
851+ height : 18px ;
852+ border : 2px solid var (--vp-c-border );
853+ border-radius : 50% ;
854+ background-color : var (--vp-c-bg );
855+ cursor : pointer ;
856+ position : relative ;
857+ vertical-align : middle ;
858+ margin-right : 6px ;
859+ transition : all 0.2s ease ;
860+ }
861+
862+ input [type = " radio" ]:hover {
863+ border-color : var (--vp-c-brand-1 );
864+ background-color : var (--vp-c-bg-soft );
865+ }
866+
867+ input [type = " radio" ]:checked {
868+ border-color : var (--vp-c-brand-1 );
869+ background-color : var (--vp-c-brand-1 );
870+ }
871+
872+ input [type = " radio" ]:checked ::after {
873+ content : ' ' ;
874+ position : absolute ;
875+ top : 50% ;
876+ left : 50% ;
877+ transform : translate (-50% , -50% );
878+ width : 8px ;
879+ height : 8px ;
880+ border-radius : 50% ;
881+ background-color : var (--vp-c-bg );
882+ }
883+
884+ input [type = " radio" ]:disabled {
885+ opacity : 0.5 ;
886+ cursor : not-allowed ;
887+ }
888+
889+ /* Checkbox styles */
890+ input [type = " checkbox" ] {
891+ appearance : none ;
892+ width : 18px ;
893+ height : 18px ;
894+ border : 2px solid var (--vp-c-border );
895+ border-radius : 4px ;
896+ background-color : var (--vp-c-bg );
897+ cursor : pointer ;
898+ position : relative ;
899+ vertical-align : middle ;
900+ margin-right : 6px ;
901+ transition : all 0.2s ease ;
902+ }
903+
904+ input [type = " checkbox" ]:hover {
905+ border-color : var (--vp-c-brand-1 );
906+ background-color : var (--vp-c-bg-soft );
907+ }
908+
909+ input [type = " checkbox" ]:checked {
910+ border-color : var (--vp-c-brand-1 );
911+ background-color : var (--vp-c-brand-1 );
912+ }
913+
914+ input [type = " checkbox" ]:checked ::after {
915+ content : ' ' ;
916+ position : absolute ;
917+ top : 2px ;
918+ left : 5px ;
919+ width : 4px ;
920+ height : 8px ;
921+ border : solid var (--vp-c-bg );
922+ border-width : 0 2px 2px 0 ;
923+ transform : rotate (45deg );
924+ }
925+
926+ input [type = " checkbox" ]:disabled {
927+ opacity : 0.5 ;
928+ cursor : not-allowed ;
929+ }
930+
931+ /* Label styles */
932+ label {
933+ cursor : pointer ;
934+ user-select : none ;
935+ color : var (--vp-c-text-1 );
936+ font-size : 14px ;
937+ line-height : 1.5 ;
938+ transition : color 0.2s ease ;
939+ }
940+
941+ label :hover {
942+ color : var (--vp-c-brand-1 );
943+ }
944+
945+ input [type = " radio" ]:disabled + label ,
946+ input [type = " checkbox" ]:disabled + label {
947+ opacity : 0.5 ;
948+ cursor : not-allowed ;
949+ }
950+
951+ input [type = " radio" ]:disabled + label :hover ,
952+ input [type = " checkbox" ]:disabled + label :hover {
953+ color : var (--vp-c-text-1 );
795954}
796955
797956.command-container {
0 commit comments