From bb655fdc6dfd22db4aa95a987922ca18a55ad640 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Sun, 18 Sep 2016 13:46:56 +0200 Subject: [PATCH] px to em --- app/assets/stylesheets/welcome.scss | 63 ++++++++++++++++------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/app/assets/stylesheets/welcome.scss b/app/assets/stylesheets/welcome.scss index d51c8c8..9f3ae0c 100644 --- a/app/assets/stylesheets/welcome.scss +++ b/app/assets/stylesheets/welcome.scss @@ -52,7 +52,7 @@ hr { } p { padding-top: 5px; - text-indent: 10px; + text-indent: 0.5em; } #header { @@ -60,8 +60,8 @@ p { position: fixed; width: 100%; - height: 80px; - margin-top: 30px; + height: 5em; + margin-top: 1.875em; z-index: 10; } @@ -71,26 +71,31 @@ p { left: 85%; transform: translate(-50%, -50%); - width: 430px; + width: 26.875em; + clear: both; } -#logo img,#logo a { - position: absolute; - left: 30px; +#logo { + height: 100%; + width: 100%; +} +#logo img, +#logo a { + position: relative; top: 50%; transform: translate(0, -50%); + float: left; } #logo img { - border: 2px solid white; - border-radius: 10px; + border: 0.125em solid white; + border-radius: 0.625em; padding: 2px; opacity: 0.4; + margin: 0 1em; } #logo a { color: rgb(255,255,255); - left: 120px; - text-decoration: none; - font-size: 30px; + font-size: 1.875em; font-family: Arkitech; } @@ -104,7 +109,7 @@ p { } #nav li a { color: rgba(255,255,255,0.4); - font-size: 16px; + font-size: 1em; text-decoration: none; font-weight: bold; outline: 0; @@ -115,7 +120,7 @@ p { } #nav li a.active { color: rgba(255,255,255,1); - border-bottom: 2px solid rgb(255,255,255); + border-bottom: 0.125em solid rgb(255,255,255); } #section1 .content, #section3 .content, #section5 .content { @@ -147,7 +152,7 @@ p { background: rgb(22, 27, 28); position: relative; width: 100%; - height: 140px; + height: 8.75em; font-size: x-small; } #footer p { @@ -160,10 +165,10 @@ p { float: left; padding-left: 10px; padding-right: 10px; - border-right: 1px solid rgb(214,206,204); + border-right: 0.0625em solid rgb(214,206,204); } #footer .license { - bottom: 0px; + bottom: 0; width: 100%; position: absolute; } @@ -176,7 +181,7 @@ p { #footer .license div { display: inline-block; position: relative; - left: 0px; + left: 0; vertical-align: middle; } @@ -199,9 +204,9 @@ p { text-align: justify; padding: 10px; width: 30%; - height: 160px; + height: 10em; overflow: hidden; - box-shadow: 10px 10px 10px rgba(0,0,0,0.7); + box-shadow: 0.625em 0.625em 0.625em rgba(0,0,0,0.7); } #about a { outline: 0; @@ -269,8 +274,8 @@ p { .quote-container { position: relative; - width: 500px; - top: 10px; + width: 31.25em; + top: 0.625em; left: 50%; transform: translate(-50%, 0); } @@ -337,14 +342,14 @@ p { .textbox { text-align: center; border-style: solid; - border-radius: 10px; - border-width: 3px; + border-radius: 0.625em; + border-width: 0.1875em; } .separator { position: relative; - border-bottom: 1px dotted black; - height: 0px; + border-bottom: 0.0625em dotted black; + height: 0; width: 20%; left: 50%; transform: translate(-50%, 0); @@ -381,13 +386,13 @@ p { } .dictionary ol li q { display: block; - text-indent: 10px; + text-indent: 0.625em; font-family: serif; font-size: small; } .dictionary ol li i { display: block; - right: 10px; + right: 0.625em; font-size: x-small; position: absolute; } @@ -417,7 +422,7 @@ p { .source { position: absolute; font-size: x-small; - bottom: 35px; + bottom: 3.5em; width: 30%; } /*