From dec12cb6d26d1f53518fef99b705ba18f0c89a35 Mon Sep 17 00:00:00 2001 From: lukas-heiligenbrunner Date: Fri, 20 Mar 2020 16:28:33 +0100 Subject: [PATCH] experience more responsive mobile design --- css/experience.css | 50 ++++++++++++++++++++++++++++++++++++++-------- css/general.css | 2 +- css/home.css | 48 +++++++++++++++++++++++--------------------- 3 files changed, 68 insertions(+), 32 deletions(-) diff --git a/css/experience.css b/css/experience.css index b8de576..120ec31 100644 --- a/css/experience.css +++ b/css/experience.css @@ -1,3 +1,10 @@ +/*! + * experience.css - https://heili.eu + * Licensed under the MIT license - http://opensource.org/licenses/MIT + * E-mail: lukas.heiligenbrunner@gmail.com + * Copyright (c) 2020 Lukas Heiligenbrunner + */ + #section3 { background-color: #53bf65; } @@ -54,16 +61,9 @@ height: 260px; background-color: #357840; color: white; - border-radius: 5mm;; + border-radius: 5mm; } -/*! - * experience.css - https://heili.eu - * Licensed under the MIT license - http://opensource.org/licenses/MIT - * E-mail: lukas.heiligenbrunner@gmail.com - * Copyright (c) 2020 Lukas Heiligenbrunner - */ - .ratiobtn { display: none; } @@ -84,3 +84,37 @@ margin-top: 5mm; font-size: large; } + +/* Screen smaller than 600px -- general small width screens */ +@media screen and (max-width: 1200px) { + #section3 { + height: 100%; + } + .tab { + display: inline-block; + width: 20%; + /*float: left;*/ + + margin-right: 0; + + border: 0mm solid hsla(0, 100%, 50%, 0); + padding-left: 0; + clear: none; + margin-bottom: 70px; + } + + .content { + position: static; + display: block; + float: none; + width: auto; + height: 450px; + } + + .ratiobtn:checked + .tab { + color: aqua; + transition: border-left-color 500ms; + } + +} + diff --git a/css/general.css b/css/general.css index a900a57..c0b31e1 100644 --- a/css/general.css +++ b/css/general.css @@ -16,7 +16,7 @@ body, html, #maincontent { height: 80%; padding-top: 70px; padding-bottom: 70px; - min-height: 530px; + min-height: 570px; } #backtotopbutton { diff --git a/css/home.css b/css/home.css index 36a7dec..76b9d86 100644 --- a/css/home.css +++ b/css/home.css @@ -8,6 +8,7 @@ #section1 { background-color: #311E25; color: white; + padding-top: 200px; } .lightOpacity { @@ -19,6 +20,7 @@ } #preTitle { + font-size: 35px; opacity: 0.8; color: #fffd80; } @@ -28,36 +30,32 @@ height: 400px; } -/* screen larger than 600px -- desktop */ -@media screen and (min-width: 1201px) { - #section1 { - padding-top: 200px; - } +#titleText { + font-size: 80px; +} - #preTitle { - font-size: 35px; - } +#subTitleText { + font-size: 50px; +} - #titleText { - font-size: 80px; - } +#meaningFullSentence { + width: 40%; +} - #subTitleText { - font-size: 50px; - } +/* todo maybe a bit weird?? */ +#homepicture:hover { + box-shadow: rgba(2, 12, 27, 0.7) 0px 10px 30px 0px; + transition: all 500ms; +} - #meaningFullSentence { - width: 40%; - } - - /* todo maybe a bit weird?? */ - #homepicture:hover { - box-shadow: rgba(2, 12, 27, 0.7) 0px 10px 30px 0px; - transition: all 500ms; +/* height smaller than 720px */ +@media screen and (max-height: 720px) { + #homepicture { + height: 300px; } } -/* Screen smaller than 600px -- mobile */ +/* Screen smaller than 600px -- general small width screens */ @media screen and (max-width: 1200px) { #section1 { padding-top: 100px; @@ -85,4 +83,8 @@ height: 300px; width: 100%; } +} + +@media only screen and (min-width: 600px) { + /* For tablets: */ } \ No newline at end of file