Hi,
I have a CSS with a style,
/* Text-Field */
.text-field {
padding: 1%;
}
input:focus ~ .label,
input:not(:focus):valid ~ .label{
position: absolute;
top: 2.5%;
bottom: 10px;
left: 20px;
font-size: 15px;
opacity: 1;
}
.inputText {
font-size: 14px;
width:100%x;
height: 20px;
}
.label {
position: absolute;
pointer-events: none;
left: 2%;
top: 8%;
transition: 0.2s ease all;
opacity: 0.5;
}
When I save and run the application, I do not get the expected result. After code inspect, I found that the CSS was not properly loaded.
I refreshed the playcanvas editor and found the CSS modified.
/* Text-Field *//*
.text-field {
padding: 1%;
}/
input:focus ~ .label,
input:not(:focus):valid ~ .label{
position: absolute;
top: 2.5%;
bottom: 10px;
left: 20px;
font-size: 15px;
opacity: 1;
}
.inputText {
font-size: 14px;
width:100%x;
height: 20px;
}
.label {
position: absolute;
pointer-events: none;
left: 2%;
top: 8%;
transition: 0.2s ease all;
opacity: 0.5;
}
After I correct and save, yet I get some garbled characters. Would be great if anybody could help me out.
Thanks.