From f41312248cde6be23fa3b647ec51f28c4a8a218b Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Mon, 19 Dec 2022 15:07:41 +0000 Subject: [PATCH] Tidying up CSS --- LICENSE => .github/LICENSE | 0 README.md => .github/README.md | 0 static/css/style.css | 23 +++++++++++------------ static/css/style.css.map | 2 +- static/css/style.scss | 22 ++++++++++------------ templates/home.html | 4 ++-- templates/layout.html | 8 +++++--- 7 files changed, 29 insertions(+), 30 deletions(-) rename LICENSE => .github/LICENSE (100%) rename README.md => .github/README.md (100%) diff --git a/LICENSE b/.github/LICENSE similarity index 100% rename from LICENSE rename to .github/LICENSE diff --git a/README.md b/.github/README.md similarity index 100% rename from README.md rename to .github/README.md diff --git a/static/css/style.css b/static/css/style.css index 2d969f0..8327468 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -32,18 +32,15 @@ nav { position: fixed; top: 0; left: 0; - background-color: rgba(16, 16, 16, 0.6); + background-color: #101010; color: #e8e3e3; - -webkit-backdrop-filter: blur(5rem) saturate(200%); - backdrop-filter: blur(5rem) saturate(200%); box-sizing: border-box; z-index: 2; overflow: hidden; transition: width 0.4s cubic-bezier(0.86, 0, 0.07, 1), background-color 0.3s ease-in-out; } nav:hover { - width: 25rem; - background-color: #101010; + width: 30rem; } nav:hover a span { opacity: 1; @@ -100,11 +97,12 @@ main { box-sizing: border-box; } main header { - margin: 0 0 -10vh 0; + margin: 0; padding: 0; width: 100%; height: 40vh; background-color: #121212; + border-radius: 8px; box-sizing: border-box; } main header img { @@ -116,6 +114,8 @@ main header img { filter: blur(0.5rem); -o-object-fit: cover; object-fit: cover; + -o-object-position: center 0px; + object-position: center 0px; } main header span { position: absolute; @@ -131,7 +131,7 @@ main header span { margin: 0; padding: 0.25rem; position: fixed; - bottom: 1rem; + bottom: 0.75rem; right: -3rem; font-size: 3rem; display: flex; @@ -151,7 +151,7 @@ main header span { .app { margin: 0 0 0 3.5rem; - padding: 1rem; + padding: 0.5rem; width: auto; min-height: 90vh; position: relative; @@ -160,7 +160,6 @@ main header span { gap: 1rem; background-color: #151515; color: #e8e3e3; - border-radius: 8px 8px 0 0; box-sizing: border-box; z-index: 1; overflow: unset; @@ -294,20 +293,20 @@ main header span { margin: 0; padding: 0; width: 100%; - height: calc(100vh - 12rem); + height: auto; position: -webkit-sticky; position: sticky; top: 0; display: flex; + overflow: hidden; border-radius: 4px; - background-color: #121212; box-sizing: border-box; } .image__container img { margin: auto; padding: 0; max-width: 100%; - max-height: 100%; + max-height: 75vh; -o-object-fit: contain; object-fit: contain; -o-object-position: center; diff --git a/static/css/style.css.map b/static/css/style.css.map index 94c53d7..99400b2 100644 --- a/static/css/style.css.map +++ b/static/css/style.css.map @@ -1 +1 @@ -{"version":3,"sources":["style.scss","style.css"],"names":[],"mappings":"AAkBA;EACE,wBAAA;EACA,oIAAA;EAEA,oBAAA;EACA,sBAAA;EACA,kBAAA;AClBF;ADoBA;EACE,yBAAA;EACA,sIAAA;EAEA,oBAAA;EACA,sBAAA;EACA,kBAAA;ACnBF;ADsBA;EACI,SAAA;EACA,UAAA;EAEA,iBAAA;EAEA,yBAzCO;EA2CP,uBAAA;ACvBJ;;AD0BA;EACI,SAAA;EACA,UAAA;EAEA,+BAAA;EACA,aAAA;EACA,cAAA;EAEA,aAAA;EACA,sBAAA;EACA,8BAAA;EAEA,eAAA;EACA,MAAA;EACA,OAAA;EAEA,uCAAA;EACA,cA1DO;EA2DP,kDAAA;UAAA,0CAAA;EAEA,sBAAA;EACA,UAAA;EACA,gBAAA;EACA,wFAAA;AC5BJ;AD8BI;EACI,YAAA;EAEA,yBAxEG;AC2CX;AD+BQ;EACI,UAAA;AC7BZ;ADiCI;EACI,aAAA;EACA,sBAAA;EACA,YAAA;AC/BR;ADiCQ;EACI,SAAA;EACA,8BAAA;EAEA,WAAA;EACA,cAAA;EAEA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,WAAA;EAEA,qBAAA;EACA,cA9FD;EA+FC,0CAAA;EAEA,sBAAA;AC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BAAA;EACA,MAAA;EAEA,aAAA;EAEA,kBAAA;EACA,yBA9YO;EAgZP,sBAAA;ACnHJ;ADqHI;EACI,YAAA;EACA,UAAA;EAEA,eAAA;EACA,gBAAA;EAEA,sBAAA;KAAA,mBAAA;EACA,0BAAA;KAAA,uBAAA;EAEA,kBAAA;ACtHR;;ADyHA;EACI,SAAA;EACA,UAAA;EAEA,WAAA;EAEA,aAAA;EACA,sBAAA;EAEA,yBAxaO;EAyaP,kBAAA;EAEA,sBAAA;AC1HJ;AD4HI;EACI,SAAA;EACA,sBAAA;EAEA,qCAnaM;EAoaN,eAAA;EACA,4BAAA;EACA,gBAAA;EAEA,cA7aA;EA+aA,uBAAA;EACA,gBAAA;AC7HR;AD+HI;EACI,SAAA;EACA,sBAAA;EAEA,oCAhbI;EAibJ,iBAAA;EACA,gBAAA;EAEA,cA/bG;EAicH,uBAAA;EACA,gBAAA;AChIR","file":"style.css"} \ No newline at end of file +{"version":3,"sources":["style.scss","style.css"],"names":[],"mappings":"AAkBA;EACE,wBAAA;EACA,oIAAA;EAEA,oBAAA;EACA,sBAAA;EACA,kBAAA;AClBF;ADoBA;EACE,yBAAA;EACA,sIAAA;EAEA,oBAAA;EACA,sBAAA;EACA,kBAAA;ACnBF;ADsBA;EACI,SAAA;EACA,UAAA;EAEA,iBAAA;EAEA,yBAzCO;EA2CP,uBAAA;ACvBJ;;AD0BA;EACI,SAAA;EACA,UAAA;EAEA,+BAAA;EACA,aAAA;EACA,cAAA;EAEA,aAAA;EACA,sBAAA;EACA,8BAAA;EAEA,eAAA;EACA,MAAA;EACA,OAAA;EAEA,yBA5DO;EA6DP,cA1DO;EA4DP,sBAAA;EACA,UAAA;EACA,gBAAA;EACA,wFAAA;AC5BJ;AD8BI;EACI,YAAA;AC5BR;AD8BQ;EACI,UAAA;AC5BZ;ADgCI;EACI,aAAA;EACA,sBAAA;EACA,YAAA;AC9BR;ADgCQ;EACI,SAAA;EACA,8BAAA;EAEA,WAAA;EACA,cAAA;E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AA;EACA,0BAAA;KAAA,uBAAA;EAEA,kBAAA;AC1GZ;;ADgHA;EACI,SAAA;EACA,UAAA;EAEA,WAAA;EACA,YAAA;EAEA,wBAAA;EAAA,gBAAA;EACA,MAAA;EAEA,aAAA;EACA,gBAAA;EAEA,kBAAA;EAEA,sBAAA;AClHJ;ADoHI;EACI,YAAA;EACA,UAAA;EAEA,eAAA;EACA,gBAAA;EAEA,sBAAA;KAAA,mBAAA;EACA,0BAAA;KAAA,uBAAA;EAEA,kBAAA;ACrHR;;ADwHA;EACI,SAAA;EACA,UAAA;EAEA,WAAA;EAEA,aAAA;EACA,sBAAA;EAEA,yBAtaO;EAuaP,kBAAA;EAEA,sBAAA;ACzHJ;AD2HI;EACI,SAAA;EACA,sBAAA;EAEA,qCAjaM;EAkaN,eAAA;EACA,4BAAA;EACA,gBAAA;EAEA,cA3aA;EA6aA,uBAAA;EACA,gBAAA;AC5HR;AD8HI;EACI,SAAA;EACA,sBAAA;EAEA,oCA9aI;EA+aJ,iBAAA;EACA,gBAAA;EAEA,cA7bG;EA+bH,uBAAA;EACA,gBAAA;AC/HR","file":"style.css"} \ No newline at end of file diff --git a/static/css/style.scss b/static/css/style.scss index 77dd12d..b73b8c4 100644 --- a/static/css/style.scss +++ b/static/css/style.scss @@ -60,9 +60,8 @@ nav { top: 0; left: 0; - background-color: rgba($black300, 0.6); + background-color: $black300; color: $white100; - backdrop-filter: blur(5rem) saturate(200%); box-sizing: border-box; z-index: 2; @@ -70,9 +69,7 @@ nav { transition: width 0.4s cubic-bezier(.86,0,.07,1), background-color 0.3s ease-in-out; &:hover { - width: 25rem; - - background-color: $black300; + width: 30rem; a span { opacity: 1; @@ -149,13 +146,14 @@ main { box-sizing: border-box; header { - margin: 0 0 calc((10vh) * -1) 0; + margin: 0; padding: 0; width: 100%; height: 40vh; background-color: $black200; + border-radius: $rad; box-sizing: border-box; @@ -170,6 +168,7 @@ main { filter: blur(0.5rem); object-fit: cover; + object-position: center 0px; } span { position: absolute; @@ -191,7 +190,7 @@ main { padding: 0.25rem; position: fixed; - bottom: 1rem; + bottom: 0.75rem; right: -3rem; font-size: 3rem; @@ -218,7 +217,7 @@ main { .app { margin: 0 0 0 3.5rem; - padding: 1rem; + padding: 0.5rem; width: auto; min-height: 90vh; @@ -231,7 +230,6 @@ main { background-color: $black100; color: $white100; - border-radius: $rad $rad 0 0; box-sizing: border-box; z-index: 1; @@ -389,15 +387,15 @@ main { padding: 0; width: 100%; - height: calc(100vh - 12rem); + height: auto; position: sticky; top: 0; display: flex; + overflow: hidden; border-radius: calc($rad / 2); - background-color: $black200; box-sizing: border-box; @@ -406,7 +404,7 @@ main { padding: 0; max-width: 100%; - max-height: 100%; + max-height: 75vh; object-fit: contain; object-position: center; diff --git a/templates/home.html b/templates/home.html index 7a79727..ffb27a2 100644 --- a/templates/home.html +++ b/templates/home.html @@ -11,7 +11,7 @@ -