From 59faacff6e104995930c10133255547b858ee344 Mon Sep 17 00:00:00 2001 From: lukas-heiligenbrunner Date: Mon, 16 Mar 2020 19:47:15 +0100 Subject: [PATCH] font size improvements --- css/index.css | 44 ++++++++++++++++++++++++++++++++++++++++++-- index.html | 12 ++++++------ 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/css/index.css b/css/index.css index 71e775a..58daac3 100644 --- a/css/index.css +++ b/css/index.css @@ -16,10 +16,50 @@ body, html { color: white; } -#nameText { +.lightOpacity{ + opacity: 0.6; +} + +.bigText{ transition-delay: 200ms; font-family: 'Helvetica Neue', fantasy; - font-size: 40pt; -webkit-font-smoothing: antialiased /* todo here!*/ +} + +#preTitle{ + opacity: 0.8; +} + +/* screen larger than 600px -- desktop */ +@media screen and (min-width: 601px) { + #preTitle{ + font-size: 35px; + } + #titleText { + font-size: 80px; + } + #subTitleText{ + font-size: 50px; + } + #meaningFullSentence{ + width: 40%; + } +} + +/* Screen smaller than 600px -- mobile */ +@media screen and (max-width: 600px) { + #preTitle{ + font-size: 15px; + } + #titleText { + font-size: 30px; + } + #subTitleText{ + font-size: 20px; + } + #meaningFullSentence{ + width: 100%; + font-size: 13px; + } } \ No newline at end of file diff --git a/index.html b/index.html index fcd4797..af69c6a 100644 --- a/index.html +++ b/index.html @@ -58,13 +58,13 @@