mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-29 10:56:10 +00:00
Tidying up CSS
This commit is contained in:
parent
3f64c56ec8
commit
f41312248c
0
LICENSE → .github/LICENSE
vendored
0
LICENSE → .github/LICENSE
vendored
0
README.md → .github/README.md
vendored
0
README.md → .github/README.md
vendored
|
@ -32,18 +32,15 @@ nav {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: rgba(16, 16, 16, 0.6);
|
background-color: #101010;
|
||||||
color: #e8e3e3;
|
color: #e8e3e3;
|
||||||
-webkit-backdrop-filter: blur(5rem) saturate(200%);
|
|
||||||
backdrop-filter: blur(5rem) saturate(200%);
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: width 0.4s cubic-bezier(0.86, 0, 0.07, 1), background-color 0.3s ease-in-out;
|
transition: width 0.4s cubic-bezier(0.86, 0, 0.07, 1), background-color 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
nav:hover {
|
nav:hover {
|
||||||
width: 25rem;
|
width: 30rem;
|
||||||
background-color: #101010;
|
|
||||||
}
|
}
|
||||||
nav:hover a span {
|
nav:hover a span {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -100,11 +97,12 @@ main {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
main header {
|
main header {
|
||||||
margin: 0 0 -10vh 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40vh;
|
height: 40vh;
|
||||||
background-color: #121212;
|
background-color: #121212;
|
||||||
|
border-radius: 8px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
main header img {
|
main header img {
|
||||||
|
@ -116,6 +114,8 @@ main header img {
|
||||||
filter: blur(0.5rem);
|
filter: blur(0.5rem);
|
||||||
-o-object-fit: cover;
|
-o-object-fit: cover;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
-o-object-position: center 0px;
|
||||||
|
object-position: center 0px;
|
||||||
}
|
}
|
||||||
main header span {
|
main header span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -131,7 +131,7 @@ main header span {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 1rem;
|
bottom: 0.75rem;
|
||||||
right: -3rem;
|
right: -3rem;
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -151,7 +151,7 @@ main header span {
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
margin: 0 0 0 3.5rem;
|
margin: 0 0 0 3.5rem;
|
||||||
padding: 1rem;
|
padding: 0.5rem;
|
||||||
width: auto;
|
width: auto;
|
||||||
min-height: 90vh;
|
min-height: 90vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -160,7 +160,6 @@ main header span {
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
background-color: #151515;
|
background-color: #151515;
|
||||||
color: #e8e3e3;
|
color: #e8e3e3;
|
||||||
border-radius: 8px 8px 0 0;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
overflow: unset;
|
overflow: unset;
|
||||||
|
@ -294,20 +293,20 @@ main header span {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 12rem);
|
height: auto;
|
||||||
position: -webkit-sticky;
|
position: -webkit-sticky;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: #121212;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.image__container img {
|
.image__container img {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 75vh;
|
||||||
-o-object-fit: contain;
|
-o-object-fit: contain;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
-o-object-position: center;
|
-o-object-position: center;
|
||||||
|
|
|
@ -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;ACnCZ;ADsCY;EACI,SAAA;EAEA,iBAAA;EAEA,cAzGL;ACmEX;ADwCY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A,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"}
|
|
@ -60,9 +60,8 @@ nav {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
background-color: rgba($black300, 0.6);
|
background-color: $black300;
|
||||||
color: $white100;
|
color: $white100;
|
||||||
backdrop-filter: blur(5rem) saturate(200%);
|
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 2;
|
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;
|
transition: width 0.4s cubic-bezier(.86,0,.07,1), background-color 0.3s ease-in-out;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
width: 25rem;
|
width: 30rem;
|
||||||
|
|
||||||
background-color: $black300;
|
|
||||||
|
|
||||||
a span {
|
a span {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -149,13 +146,14 @@ main {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
header {
|
header {
|
||||||
margin: 0 0 calc((10vh) * -1) 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40vh;
|
height: 40vh;
|
||||||
|
|
||||||
background-color: $black200;
|
background-color: $black200;
|
||||||
|
border-radius: $rad;
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
@ -170,6 +168,7 @@ main {
|
||||||
filter: blur(0.5rem);
|
filter: blur(0.5rem);
|
||||||
|
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
object-position: center 0px;
|
||||||
}
|
}
|
||||||
span {
|
span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -191,7 +190,7 @@ main {
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 1rem;
|
bottom: 0.75rem;
|
||||||
right: -3rem;
|
right: -3rem;
|
||||||
|
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
|
@ -218,7 +217,7 @@ main {
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
margin: 0 0 0 3.5rem;
|
margin: 0 0 0 3.5rem;
|
||||||
padding: 1rem;
|
padding: 0.5rem;
|
||||||
|
|
||||||
width: auto;
|
width: auto;
|
||||||
min-height: 90vh;
|
min-height: 90vh;
|
||||||
|
@ -231,7 +230,6 @@ main {
|
||||||
|
|
||||||
background-color: $black100;
|
background-color: $black100;
|
||||||
color: $white100;
|
color: $white100;
|
||||||
border-radius: $rad $rad 0 0;
|
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
@ -389,15 +387,15 @@ main {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 12rem);
|
height: auto;
|
||||||
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
border-radius: calc($rad / 2);
|
border-radius: calc($rad / 2);
|
||||||
background-color: $black200;
|
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
@ -406,7 +404,7 @@ main {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 75vh;
|
||||||
|
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: center;
|
object-position: center;
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
if ($(window).height() + $(window).scrollTop() >= $(document).height() - 100) {
|
if ($(window).height() + $(window).scrollTop() >= $(document).height() - 200) {
|
||||||
loadMore(imageIndex);
|
loadMore(imageIndex);
|
||||||
imageIndex += 10;
|
imageIndex += 10;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<script src="https://unpkg.com/phosphor-icons" defer></script>
|
<script src="https://unpkg.com/phosphor-icons" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav id="navRoot">
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url_for('home') }}"><i class="ph-house-line-fill"></i><span>Home</span></a>
|
<a href="{{ url_for('home') }}"><i class="ph-house-line-fill"></i><span>Home</span></a>
|
||||||
<a href=""><i class="ph-package-fill"></i><span>Groups</span></a>
|
<a href=""><i class="ph-package-fill"></i><span>Groups</span></a>
|
||||||
|
@ -31,13 +31,15 @@
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
let navToggle = true;
|
||||||
|
|
||||||
document.onscroll = function() {
|
document.onscroll = function() {
|
||||||
document.querySelector('header').style.opacity = `${1 - window.scrollY / 169}`;
|
document.querySelector('header').style.opacity = `${1 - window.scrollY / 169}`;
|
||||||
document.querySelector('header').style.height = `calc(40vh + ${window.scrollY / 5}px)`;
|
document.querySelector('header img').style.cssText = `object-position: center ${window.scrollY / 2}px`;
|
||||||
|
|
||||||
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 20) {
|
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 20) {
|
||||||
document.querySelector('#topButton').style.opacity = 1;
|
document.querySelector('#topButton').style.opacity = 1;
|
||||||
document.querySelector('#topButton').style.right = "1rem";
|
document.querySelector('#topButton').style.right = "0.75rem";
|
||||||
} else {
|
} else {
|
||||||
document.querySelector('#topButton').style.opacity = 0;
|
document.querySelector('#topButton').style.opacity = 0;
|
||||||
document.querySelector('#topButton').style.right = "-3rem";
|
document.querySelector('#topButton').style.right = "-3rem";
|
||||||
|
|
Loading…
Reference in a new issue