@@ -1176,7 +1176,9 @@ h6,
11761176.form-control-wrapper .form-control ,
11771177.form-control ,
11781178.form-control-wrapper .form-control : focus ,
1179- .form-control : focus {
1179+ .form-control : focus ,
1180+ .form-control-wrapper .form-control .focus ,
1181+ .form-control .focus {
11801182 height : 28px ;
11811183 padding : 0 ;
11821184 float : none;
@@ -1189,21 +1191,25 @@ h6,
11891191.form-control-wrapper .form-control : disabled ,
11901192.form-control : disabled ,
11911193.form-control-wrapper .form-control : focus : disabled ,
1192- .form-control : focus : disabled {
1194+ .form-control : focus : disabled ,
1195+ .form-control-wrapper .form-control .focus : disabled ,
1196+ .form-control .focus : disabled {
11931197 border-style : dashed;
11941198}
11951199select .form-control {
11961200 height : 23px ;
11971201}
11981202select [multiple ].form-control ,
1199- select [multiple ].form-control : focus {
1203+ select [multiple ].form-control : focus ,
1204+ select [multiple ].form-control .focus {
12001205 height : 85px ;
12011206}
12021207.form-control-wrapper {
12031208 position : relative;
12041209 /* active state */
12051210}
1206- .form-control-wrapper .form-control : focus {
1211+ .form-control-wrapper .form-control : focus ,
1212+ .form-control-wrapper .form-control .focus {
12071213 outline : none;
12081214}
12091215.form-control-wrapper .floating-label {
@@ -1221,14 +1227,18 @@ select[multiple].form-control:focus {
12211227 font-size : 10px ;
12221228 opacity : 1 ;
12231229}
1224- .form-control-wrapper .form-control : focus : invalid ~ .floating-label {
1230+ .form-control-wrapper .form-control : focus : invalid ~ .floating-label ,
1231+ .form-control-wrapper .form-control .focus : invalid ~ .floating-label {
12251232 color : # f44336 ;
12261233}
1227- .form-control-wrapper .form-control : focus ~ .material-input : after {
1234+ .form-control-wrapper .form-control : focus ~ .material-input : after ,
1235+ .form-control-wrapper .form-control .focus ~ .material-input : after {
12281236 background-color : # 5264ae ;
12291237}
12301238.form-control-wrapper .form-control : focus : invalid ~ .material-input : before ,
1231- .form-control-wrapper .form-control : focus : invalid ~ .material-input : after {
1239+ .form-control-wrapper .form-control .focus : invalid ~ .material-input : before ,
1240+ .form-control-wrapper .form-control : focus : invalid ~ .material-input : after ,
1241+ .form-control-wrapper .form-control .focus : invalid ~ .material-input : after {
12321242 background-color : # f44336 ;
12331243}
12341244.form-control-wrapper .form-control .empty ~ .floating-label {
@@ -1245,7 +1255,8 @@ select[multiple].form-control:focus {
12451255 transform : scaleX (0 );
12461256 transition : transform 0s ;
12471257}
1248- .form-control-wrapper .form-control : focus ~ .material-input : before {
1258+ .form-control-wrapper .form-control : focus ~ .material-input : before ,
1259+ .form-control-wrapper .form-control .focus ~ .material-input : before {
12491260 transform : scaleX (1 );
12501261 transition : transform 0.2s ease-out;
12511262}
@@ -1270,7 +1281,8 @@ select[multiple].form-control:focus {
12701281.form-control-wrapper textarea ~ .form-control-highlight {
12711282 margin-top : -11px ;
12721283}
1273- .form-control-wrapper .form-control : focus ~ .material-input : after {
1284+ .form-control-wrapper .form-control : focus ~ .material-input : after ,
1285+ .form-control-wrapper .form-control .focus ~ .material-input : after {
12741286 -webkit-animation : input-highlight 0.3s ease;
12751287 animation : input-highlight 0.3s ease;
12761288 -webkit-animation-fill-mode : forwards;
@@ -1284,31 +1296,35 @@ select[multiple].form-control:focus {
12841296 display : none;
12851297}
12861298.form-group .has-warning .material-input : before ,
1287- .form-group .has-warning input .form-control : focus ~ .material-input : after {
1299+ .form-group .has-warning input .form-control : focus ~ .material-input : after ,
1300+ .form-group .has-warning input .form-control .focus ~ .material-input : after {
12881301 background : # ff5722 ;
12891302}
12901303.form-group .has-warning .control-label ,
12911304.form-group .has-warning input .form-control : not (.empty ) ~ .floating-label {
12921305 color : # ff5722 ;
12931306}
12941307.form-group .has-error .material-input : before ,
1295- .form-group .has-error input .form-control : focus ~ .material-input : after {
1308+ .form-group .has-error input .form-control : focus ~ .material-input : after ,
1309+ .form-group .has-error input .form-control .focus ~ .material-input : after {
12961310 background : # f44336 ;
12971311}
12981312.form-group .has-error .control-label ,
12991313.form-group .has-error input .form-control : not (.empty ) ~ .floating-label {
13001314 color : # f44336 ;
13011315}
13021316.form-group .has-success .material-input : before ,
1303- .form-group .has-success input .form-control : focus ~ .material-input : after {
1317+ .form-group .has-success input .form-control : focus ~ .material-input : after ,
1318+ .form-group .has-success input .form-control .focus ~ .material-input : after {
13041319 background : # 0f9d58 ;
13051320}
13061321.form-group .has-success .control-label ,
13071322.form-group .has-success input .form-control : not (.empty ) ~ .floating-label {
13081323 color : # 0f9d58 ;
13091324}
13101325.form-group .has-info .material-input : before ,
1311- .form-group .has-info input .form-control : focus ~ .material-input : after {
1326+ .form-group .has-info input .form-control : focus ~ .material-input : after ,
1327+ .form-group .has-info input .form-control .focus ~ .material-input : after {
13121328 background : # 03a9f4 ;
13131329}
13141330.form-group .has-info .control-label ,
@@ -1455,6 +1471,76 @@ select[multiple].form-control:focus {
14551471.form-group-material-lightgrey input .form-control : focus ~ .material-input : after {
14561472 background-color : # ececec ;
14571473}
1474+ .form-group input .form-control .focus ~ .material-input : after ,
1475+ .form-group-default input .form-control .focus ~ .material-input : after {
1476+ background-color : # 3f51b5 ;
1477+ }
1478+ .form-group-primary input .form-control .focus ~ .material-input : after {
1479+ background-color : # 4285f4 ;
1480+ }
1481+ .form-group-success input .form-control .focus ~ .material-input : after {
1482+ background-color : # 0f9d58 ;
1483+ }
1484+ .form-group-info input .form-control .focus ~ .material-input : after {
1485+ background-color : # 03a9f4 ;
1486+ }
1487+ .form-group-warning input .form-control .focus ~ .material-input : after {
1488+ background-color : # ff5722 ;
1489+ }
1490+ .form-group-danger input .form-control .focus ~ .material-input : after {
1491+ background-color : # f44336 ;
1492+ }
1493+ .form-group-material-red input .form-control .focus ~ .material-input : after {
1494+ background-color : # f44336 ;
1495+ }
1496+ .form-group-material-pink input .form-control .focus ~ .material-input : after {
1497+ background-color : # e91e63 ;
1498+ }
1499+ .form-group-material-purple input .form-control .focus ~ .material-input : after {
1500+ background-color : # 9c27b0 ;
1501+ }
1502+ .form-group-material-deeppurple input .form-control .focus ~ .material-input : after {
1503+ background-color : # 673ab7 ;
1504+ }
1505+ .form-group-material-indigo input .form-control .focus ~ .material-input : after {
1506+ background-color : # 3f51b5 ;
1507+ }
1508+ .form-group-material-lightblue input .form-control .focus ~ .material-input : after {
1509+ background-color : # 03a9f4 ;
1510+ }
1511+ .form-group-material-cyan input .form-control .focus ~ .material-input : after {
1512+ background-color : # 00bcd4 ;
1513+ }
1514+ .form-group-material-teal input .form-control .focus ~ .material-input : after {
1515+ background-color : # 009688 ;
1516+ }
1517+ .form-group-material-lightgreen input .form-control .focus ~ .material-input : after {
1518+ background-color : # 8bc34a ;
1519+ }
1520+ .form-group-material-lime input .form-control .focus ~ .material-input : after {
1521+ background-color : # cddc39 ;
1522+ }
1523+ .form-group-material-lightyellow input .form-control .focus ~ .material-input : after {
1524+ background-color : # ffeb3b ;
1525+ }
1526+ .form-group-material-orange input .form-control .focus ~ .material-input : after {
1527+ background-color : # ff9800 ;
1528+ }
1529+ .form-group-material-deeporange input .form-control .focus ~ .material-input : after {
1530+ background-color : # ff5722 ;
1531+ }
1532+ .form-group-material-grey input .form-control .focus ~ .material-input : after {
1533+ background-color : # 9e9e9e ;
1534+ }
1535+ .form-group-material-bluegrey input .form-control .focus ~ .material-input : after {
1536+ background-color : # 607d8b ;
1537+ }
1538+ .form-group-material-brown input .form-control .focus ~ .material-input : after {
1539+ background-color : # 795548 ;
1540+ }
1541+ .form-group-material-lightgrey input .form-control .focus ~ .material-input : after {
1542+ background-color : # ececec ;
1543+ }
14581544.form-group .control-label ,
14591545.form-group-default .control-label {
14601546 color : rgba (0 , 0 , 0 , 0.84 );
@@ -1615,7 +1701,8 @@ select.form-control {
16151701 border-bottom : 1px solid # 757575 ;
16161702 border-radius : 0 ;
16171703}
1618- select .form-control : focus {
1704+ select .form-control : focus ,
1705+ select .form-control .focus {
16191706 box-shadow : none;
16201707 border-color : # 757575 ;
16211708}
0 commit comments