This commit is contained in:
Gerome Matilla 2020-06-16 16:04:09 +08:00
parent a1f88229fb
commit 26dc3d27ec
3 changed files with 6 additions and 5 deletions

View File

@ -170,7 +170,7 @@
@media screen and (max-width: 470px) {
#weatherScreen {
padding: 6vh 18vw 0vh 18vw;
padding: 6vh 18vw 0 18vw;
}
}
@ -195,7 +195,7 @@
float: none;
clear: none;
margin-left : 0px;
margin-left : 0;
}
/*Add fixed geometry to weatherForecastDay children*/

View File

@ -11,7 +11,7 @@
@media screen and (max-width: 470px) {
#webMenuScreen {
padding: 6vh 18vw 0vh 18vw;
padding: 6vh 18vw 0 18vw;
}
}

View File

@ -53,13 +53,13 @@ class ThemeEngine {
if (!colorRGBA) {
// If RGB - (#RRGGBB)
if (/^#([0-9A-F]{3}){1,2}$/i.test(colorStr)) {
if (/^#[0-9A-F]{3}$/i.test(colorStr)) {
// Add completely opaque alpha
return colorStr + 'FF';
// If three-charactered HEX color - (#RGB)
} else if (/^#([0-9A-F]{3}){1,2}$/i.test(colorStr)) {
} else if (/^#[0-9A-F]{3}$/i.test(colorStr)) {
// Convert it to RRGGBB
return colorStr.replace(/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/, '#$1$1$2$2$3$3');
@ -74,6 +74,7 @@ class ThemeEngine {
} else {
alert('Invalid color');
return false;
}
}