This commit is contained in:
j 2017-03-05 20:58:21 +01:00
parent 8a3c7e08d3
commit 1f4e1edc6e
1 changed files with 5 additions and 3 deletions

View File

@ -17,10 +17,10 @@ body {
#text {
color: #fff;
text-align: center;
font-family: 'Menlow Regular';
font-family: Menlo;
font-variant: small-caps;
//text-transform: uppercase;
font-weight: bold;
//font-weight: bold;
text-shadow: 2px 4px 3px black;
}
#text2 {
@ -57,7 +57,8 @@ function onLoad() {
}
function handleFontSize() {
// Set base font-size to 10% of window height
//document.body.style.fontSize = (window.innerHeight * 0.1) + "px";
document.body.style.fontSize = (window.innerHeight * 0.05) + "px";
/*
var fontSize = window.innerHeight * 0.1;
text.style.position = 'absolute';
@ -70,6 +71,7 @@ function handleFontSize() {
} while (text.getBoundingClientRect().width < (window.innerWidth - padding));
text.style.position = '';
text.style.paddingLeft = '0';
*/
}
window.addEventListener("load", onLoad, false);
window.addEventListener("resize", handleFontSize, false);