fix: clean up random stuff man idk

This commit is contained in:
afn 2022-11-26 01:11:52 -05:00
parent 875c94d0bc
commit 33953db98a
11 changed files with 207 additions and 219 deletions

View File

@ -13,19 +13,18 @@ html {
padding: 0; padding: 0;
font-size: 100%; font-size: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow-y: scroll;
} }
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: var(--bg-color); background-color: var(--bg-color);
overflow: hidden;
} }
html, html,
body { body {
width: 100vw; max-width: 100%;
overflow: auto;
} }
.wrapper { .wrapper {
@ -44,8 +43,8 @@ body {
--grey-three: #373e4d; --grey-three: #373e4d;
--grey-four: #182244; --grey-four: #182244;
--grey-five: hsl(208, 30%, 75%); --grey-five: hsl(208, 30%, 75%);
--grey-six: hsla(220, 12%, 15%, 0.655); --grey-six: #202126;
--grey-seven: #535563; --grey-seven: #202126;
--bezier-one: cubic-bezier(0.25, 0.46, 0.45, 0.94); --bezier-one: cubic-bezier(0.25, 0.46, 0.45, 0.94);
} }
@ -67,7 +66,7 @@ h1 {
h2 { h2 {
color: var(--grey-five); color: var(--grey-five);
font-weight: 400; font-weight: 400;
font-size: 1.2rem; font-size: 1.3rem;
} }
h3 { h3 {
@ -98,13 +97,14 @@ h6 {
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 11px; width: 5px;
background-color: transparent; background-color: transparent;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background-color: var(--grey-two); background-color: var(--grey-six);
background-clip: content-box; background-clip: content-box;
border-radius: 100px;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {

View File

@ -10,7 +10,7 @@
<style> <style>
.hero-img :global(img) { .hero-img :global(img) {
height: 100%; height: 100%;
border-radius: 2rem; border-radius: 1.75rem;
} }
.hero-img { .hero-img {
@ -20,12 +20,9 @@
z-index: -1; z-index: -1;
width: auto; width: auto;
float: right; float: right;
padding: 0.75rem 0.75rem; padding: 0.5rem 0.5rem;
border-radius: 2.5rem; border-radius: 1.75rem;
background-color: var(--grey-two); background-color: var(--grey-six);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
box-shadow:0 50px 100px -20px rgba(16, 22, 31, 0.25), 0 30px 60px -30px rgba(18, 19, 22, 0.767), inset 0 -2px 20px 0 rgba(20, 21, 23, 0.598);
user-select: none; user-select: none;
} }

View File

@ -46,4 +46,24 @@
background-color: var(--grey-two); background-color: var(--grey-two);
color: var(--accent-color); color: var(--accent-color);
} }
@media (max-width: 768px) {
li {
padding: 1rem 1.5rem;
text-align: left;
justify-content: left;
border-radius: 16px;
font-size: 1.2rem;
}
li.selected {
background-color: var(--accent-color);
}
li.selected {
color: var(--grey-four)
}
}
</style> </style>

View File

@ -15,7 +15,7 @@
<style> <style>
.package { .package {
padding: 0.6rem; padding: 0.6rem 1rem;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
@ -23,23 +23,7 @@
gap: 0.6rem; gap: 0.6rem;
width: 100%; width: 100%;
user-select: none; user-select: none;
transition: all 0.4s var(--bezier-one); transition: background-color 0.4s var(--bezier-one);
}
.package::before {
content: '';
height: 5px;
inline-size: 4px;
border-radius: 200px;
background-color: var(--accent-color);
transition: all 0.2s var(--bezier-one);
opacity: 0;
}
.selected::before {
height: 20px;
transition: all 0.3s var(--bezier-one);
opacity: 1;
} }
h3 { h3 {
@ -48,16 +32,18 @@
.package > h3 { .package > h3 {
color: var(--grey-five); color: var(--grey-five);
transition: all 0.3s var(--bezier-one); transition: color 0.3s var(--bezier-one);
} }
.selected > h3 { .selected > h3 {
color: var(--accent-color); color: var(--grey-four);
transition: all 0.3s var(--bezier-one); transition: color 0.3s var(--bezier-one);
} }
.package:hover,
.selected { .selected {
background-color: var(--accent-color);
}
.package:hover:not(.selected) {
background-color: var(--grey-six); background-color: var(--grey-six);
} }

View File

@ -10,16 +10,8 @@ import { slide } from 'svelte/transition';
div { div {
position: fixed; position: fixed;
width: 100vw; width: 100vw;
top: 75px; top: 70px;
z-index: 999; z-index: 999;
/* background-color: var(--grey-six); guh @xafn */ background-color: var(--grey-seven);
background-color: hsla(220, 12%, 15%, 0.95);
border-style: solid;
border-color: var(--accent-color);
/* its rotated for some reason :skull: */
border-left: 0.5rem;
border-right: 0.5rem;
} }
</style> </style>

View File

@ -9,7 +9,7 @@
let menuOpen = false; let menuOpen = false;
onMount(() => { onMount(() => {
return RouterEvents.subscribe(event => { return RouterEvents.subscribe((event) => {
if (event.navigating) { if (event.navigating) {
menuOpen = false; menuOpen = false;
} }
@ -31,7 +31,9 @@
<Navigation href="/download">Download</Navigation> <Navigation href="/download">Download</Navigation>
<div hidden> <div hidden>
<!-- This is just temporary so the build doesn't fail --> <!-- This is just temporary so the build doesn't fail -->
<Navigation is_selected={target => target.startsWith("/docs")} href="/docs">Docs</Navigation> <Navigation is_selected={(target) => target.startsWith('/docs')} href="/docs"
>Docs</Navigation
>
</div> </div>
<Navigation href="/patches">Patches</Navigation> <Navigation href="/patches">Patches</Navigation>
</span> </span>
@ -48,7 +50,13 @@
</span> </span>
<!-- Should probably be moved to its own component. --> <!-- Should probably be moved to its own component. -->
<button class="menu-btn mobile" class:open={menuOpen} on:click={() => {menuOpen = !menuOpen}}> <button
class="menu-btn mobile"
class:open={menuOpen}
on:click={() => {
menuOpen = !menuOpen;
}}
>
<span class="menu-btn__burger" /> <span class="menu-btn__burger" />
</button> </button>
</div> </div>
@ -58,11 +66,20 @@
{#if menuOpen} {#if menuOpen}
<MobileDropdown> <MobileDropdown>
<div class="mobile-menu"> <div class="mobile-menu">
<div>
<Navigation href="/">Home</Navigation> <Navigation href="/">Home</Navigation>
<Navigation href="/download">Download</Navigation> <Navigation href="/download">Download</Navigation>
<Navigation href="/patches">Patches</Navigation> <Navigation href="/patches">Patches</Navigation>
<Navigation href="/contributors">Contributors</Navigation> </div>
<Navigation href="/api-settings">Settings</Navigation>
<div class="bottom-mobile-container">
<Navigation href="/contributors/">
<img src="/icons/contrib.svg" alt="Contributors" />
</Navigation>
<Navigation href="/api-settings/">
<img src="/icons/settings.svg" alt="Settings" />
</Navigation>
</div>
</div> </div>
</MobileDropdown> </MobileDropdown>
{/if} {/if}
@ -76,19 +93,17 @@
top: 0; top: 0;
left: 0; left: 0;
z-index: 999; z-index: 999;
border-bottom: 0.5px solid var(--grey-three);
} }
.navbar { .navbar {
padding: 0 1rem 0 2rem; padding: 0 1rem 0 2rem;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
min-height: 70px; min-height: 70px;
width: 100%; width: 100%;
z-index: 999; z-index: 999;
background-color: var(--grey-six); background-color: var(--grey-seven);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
} }
.desktop { .desktop {
@ -98,12 +113,15 @@
} }
.mobile-menu { .mobile-menu {
display: block; display: flex;
width: 80vw; flex-direction: column;
height: 100vh; gap: 0.5rem;
width: 85vw;
height: calc(100vh - 70px);
white-space: pre; white-space: pre;
padding: 2rem 0;
margin: 0 auto; margin: 0 auto;
padding: 1ch 0; justify-content: space-between;
} }
a { a {
@ -128,19 +146,29 @@
gap: 2.5rem; gap: 2.5rem;
} }
img { img {
height: 20px; height: 20px;
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 768px) {
.desktop { .desktop {
display: none; display: none;
} }
img {
height: 25px;
}
}
.bottom-mobile-container {
display: flex;
float: bottom;
} }
/* Hamburger mmm yum */ /* Hamburger mmm yum */
@media screen and (min-width: 600px) { @media screen and (min-width: 768px) {
.mobile { .mobile {
display: none !important; display: none !important;
} }

View File

@ -127,7 +127,7 @@
} }
.patch-container:active { .patch-container:active {
background-color: var(--grey-three); filter: brightness(1.5);
} }
.title { .title {
@ -171,4 +171,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
</style> </style>

View File

@ -12,13 +12,13 @@
<style> <style>
.menu { .menu {
height: calc(100vh - 7.5rem); height: calc(100vh - 7rem);
width: 100%; width: 100%;
padding: 0px 10px 30px 10px; padding: 0px 30px 30px 10px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: sticky; position: sticky;
top: 7.5rem; top: 7rem;
overflow-y: scroll; overflow-y: scroll;
} }

View File

@ -5,7 +5,7 @@
<section class="hero"> <section class="hero">
<div class="hero-text"> <div class="hero-text">
<h1> <h1>
Your favourite <br />apps, <span class="flicker">ad</span><span class="blue">vanced.</span> <span>Re</span>Vanced
</h1> </h1>
<h2> <h2>
@ -21,7 +21,7 @@
<style> <style>
h2 { h2 {
margin-top: 1.75\rem; margin-top: 1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
@ -39,52 +39,13 @@
gap: 1rem; gap: 1rem;
} }
.blue { span {
color: var(--accent-color); color: var(--accent-color);
} }
@keyframes flicker {
0% {
color: var(--grey-two);
}
10% {
color: var(--accent-color);
}
15% {
color: var(--grey-two);
}
35% {
color: var(--accent-color);
}
45% {
color: var(--accent-color);
}
50% {
color: var(--grey-two);
}
52.5% {
color: var(--accent-color);
}
85% {
color: var(--accent-color);
}
100% {
color: var(--grey-two);
}
}
.flicker {
color: var(--accent-color);
/* animation: flicker 2s forwards;
animation-timing-function: var(--bezier-one);
animation-delay: 1.5s;
animation-iteration-count: 1; */
}
h1 { h1 {
line-height: 1em; line-height: 1em;
font-size: 4rem; font-size: 5rem;
} }
@media (max-width: 768px) { @media (max-width: 768px) {

View File

@ -13,7 +13,7 @@
<div class="menu"> <div class="menu">
<DocsNavTree tree={data.tree} /> <DocsNavTree tree={data.tree} />
</div> </div>
<slot></slot> <slot />
</section> </section>
<style lang="scss"> <style lang="scss">

View File

@ -31,7 +31,7 @@
</svelte:head> </svelte:head>
<main> <main>
<aside in:fly={{ y: 10, easing: quintOut, duration: 750 }}> <aside in:fly={{ y: 10, easing: quintOut, duration: 750, delay: 100 }}>
<TreeMenu title="packages"> <TreeMenu title="packages">
{#each packages as pkg} {#each packages as pkg}
<TreeMenuButton bind:current name={pkg} /> <TreeMenuButton bind:current name={pkg} />
@ -39,13 +39,15 @@
</TreeMenu> </TreeMenu>
</aside> </aside>
<div class="patches-container" in:fly={{ y: 10, easing: quintOut, duration: 750 }}> <div class="patches-container">
{#each patches as patch} {#each patches as patch}
{#key current}
{#if search(current, patch.compatiblePackages) || !current} {#if search(current, patch.compatiblePackages) || !current}
<div> <div in:fly={{ x: 10, easing: quintOut, duration: 750, delay: 100 }}>
<PatchCell bind:current {patch} /> <PatchCell bind:current {patch} />
</div> </div>
{/if} {/if}
{/key}
{/each} {/each}
</div> </div>
</main> </main>
@ -62,13 +64,13 @@
} }
.patches-container { .patches-container {
margin-top: 7.5rem; margin-top: 7rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
width: 100%; width: 100%;
position: sticky; position: sticky;
z-index: 1; z-index: 1;
min-height: calc(100vh - 7.5rem); min-height: calc(100vh - 7rem);
} }
</style> </style>