From 6a40dedf64addf0d6176189c754965845054e84b Mon Sep 17 00:00:00 2001 From: xebobytes Date: Sat, 18 Nov 2023 15:25:18 +0100 Subject: [PATCH] centering portrait in banner --- assets/css/main.css | 45 +++++++++++++++++++++++++-------------------- index.html | 5 +++-- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 0fed5a1..3fcb95b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -9,7 +9,7 @@ Adapted by xebobytes * @Date: Thursday, April 28th 2022, 4:26:16 pm * @Filename: main.css * @Last modified by: - * @Last modified time: Friday, November 17th 2023, 4:35:12 pm + * @Last modified time: Saturday, November 18th 2023, 3:08:23 pm */ @@ -2290,9 +2290,9 @@ nav { flex-shrink: 0; display: block; margin: -6em 0 2em 4em; - padding: 0px 2%; /* TODO kein padding*/ + padding: 0px; width: 40%;} - #banner .image img /*added video*/ { + #banner .image img { height: 100%; /*max-height: 65vh;*/ /*max-height: 28rem;*/ @@ -2305,24 +2305,26 @@ nav { -ms-object-position: 40% 25%; /* center */ object-position: 40% 25%; /* center */ margin: auto;/*width: 100%;*/ } - #banner .image video{ - height: 100%; + #banner .image video /*new*/{ + /*height: 100%;*/ + width: 100%; /*max-height: 65vh;*/ /*max-height: 28rem;*/ - -moz-object-fit: cover; - -webkit-object-fit: cover; - -ms-object-fit: cover; - object-fit: cover; - -moz-object-position: 40% 22%; /* center */ - -webkit-object-position: 40% 22%; /* center */ - -ms-object-position: 40% 22%; /* center */ - object-position: 40% 22%; /* center */ - margin: auto;/*width: 100%;*/ } + -moz-object-fit: none; + -webkit-object-fit: none; + -ms-object-fit: none; + object-fit: none; + -moz-object-position: center; /* 40% 22% */ + -webkit-object-position: center; /* center */ + -ms-object-position: center; /* center */ + object-position: center; /* center */ + /*margin: auto;*/ + /*width: 100%;*/ } } @media screen and (max-width: 2150px){ #banner .image { - max-height: 29rem; } } + /*max-height: 29rem;*/ } } @media screen and (max-width: 1050px) /*(orientation: portrait)*/ { #banner { @@ -2352,19 +2354,22 @@ nav { -webkit-flex-shrink: 0; -ms-flex-shrink: 0; flex-shrink: 0; - margin: -4em 0 4em 0; - height: 25em; + margin: -4em 0 3em 0; + height: auto; /*25em;*/ /*max-height: 50vh;*/ min-height: 18em; width: 100%; - padding: 0px 15%;} + /*padding: 0px 15%;*/} } @media screen and (orientation: portrait) and (max-width: 480px) { #banner .image { - max-height: 39vh; } + /*max-height: 39vh;*/ } #banner .image video{ /*new*/ margin-top: 2em; - margin-left: -4em; + height: auto; + width: 100%; + object-fit: fill; + /*margin-left: -4em;*/ } /*#banner .image { margin-top: -4em; diff --git a/index.html b/index.html index 08a7f72..4e88880 100644 --- a/index.html +++ b/index.html @@ -76,14 +76,15 @@

Hi, I'm Sven Kiefer, a PhD candidate in astrophysics.

-

Welcome to the fascinating field of exoplanets! While I focused more on the observational aspect of exoplanet science during my Bachelor and Masters, I am now implementing models to study cloud formation in 3D exoplanet atmospheres. I want to deepen our under­standing of how clouds form on exoplanets and how they affect the planets' chemistry and climate.

+

Welcome to the fascinating field of exoplanets! While I focused more on the observational aspect of exoplanet science during my Bachelor and Master, I am now implementing models to study cloud formation in 3D exoplanet atmospheres. I want to deepen our under­standing of how clouds form on exoplanets and how they affect the planets' chemistry and climate.