Merge pull request #86 from teaxyz/styling-work

Have more styling items to check off, but merging this PR to consolidate with main
This commit is contained in:
Thomas Smith 2022-12-19 17:14:57 -05:00 committed by GitHub
commit b08e997ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 41 additions and 18 deletions

View file

@ -22,3 +22,20 @@ html {
font-family: sono, sans-serif; font-family: sono, sans-serif;
} }
} }
.text-primary,
header,
h1,
h2,
h3,
h4,
h5,
h6,
button,
.click-copy {
font-family: 'pp-neue-machina' !important;
}
.pk-version {
font-family: 'sono';
}

View file

@ -18,7 +18,7 @@
{#if courses.length} {#if courses.length}
<Posts posts={courses} /> <Posts posts={courses} />
{:else} {:else}
<section class="h-64 border border-gray p-4"> <section class="h-64 border border-gray bg-black p-4">
<Preloader /> <Preloader />
</section> </section>
{/if} {/if}

View file

@ -63,7 +63,7 @@
<ul id="NavBar"> <ul id="NavBar">
<nav data-tauri-drag-region class="flex justify-between"> <nav data-tauri-drag-region class="flex justify-between">
<div class="flex gap-1 p-3"> <div class="flex gap-1 p-3 pt-3">
<button class="titlebar-button" id="titlebar-close" on:click={appWindow.close}> <button class="titlebar-button" id="titlebar-close" on:click={appWindow.close}>
<img src="/images/close.svg" alt="close" /> <img src="/images/close.svg" alt="close" />
</button> </button>
@ -139,8 +139,8 @@
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 16px; width: 12px;
height: 16px; height: 12px;
border-radius: 8px; border-radius: 8px;
opacity: 0.9; opacity: 0.9;
} }

View file

@ -18,7 +18,7 @@
{#if news.length} {#if news.length}
<Posts posts={news} /> <Posts posts={news} />
{:else} {:else}
<section class="h-64 border border-gray p-4"> <section class="h-64 border border-gray bg-black p-4">
<Preloader /> <Preloader />
</section> </section>
{/if} {/if}

View file

@ -34,7 +34,7 @@
</article> </article>
</header> </header>
<footer class="flex h-20 border-t border-gray text-white"> <footer class="flex h-20 border-t border-gray text-white">
<input class="flex-grow bg-black pl-4" disabled value={copyValue} /> <input class="click-copy flex-grow bg-black pl-4" disabled value={copyValue} />
<Button class="w-16 border-0 border-l-2 text-sm" onClick={onCopy}>{copyButtonText}</Button> <Button class="w-16 border-0 border-l-2 text-sm" onClick={onCopy}>{copyButtonText}</Button>
<Button class="w-56 border-0 border-l-2 text-sm" onClick={() => console.log('cli')} <Button class="w-56 border-0 border-l-2 text-sm" onClick={() => console.log('cli')}
>OPEN IN TERMINAL</Button >OPEN IN TERMINAL</Button

View file

@ -18,12 +18,13 @@
</nav> </nav>
<section class="pt-24"> <section class="pt-24">
{#if backLink} {#if backLink}
<header class="px-16 py-2 text-3xl text-gray hover:text-primary"> <header class="border-b border-gray px-16 text-3xl text-gray hover:text-primary">
<a href={backLink}>&#8592</a> <a href={backLink}>&#8592</a>
</header> </header>
{/if} {/if}
<figure /> <figure />
<div class="px-16">
<div class="content">
<!-- all pages get inserted in this slot --> <!-- all pages get inserted in this slot -->
<slot /> <slot />
</div> </div>
@ -49,7 +50,8 @@
height: 100vh; height: 100vh;
overflow-y: scroll; overflow-y: scroll;
} }
@media screen and (min-width: 1215px) {
@media screen and (min-width: 1440px) {
figure { figure {
position: fixed; position: fixed;
z-index: 0; z-index: 0;
@ -59,10 +61,13 @@
bottom: 0px; bottom: 0px;
background-image: url('/images/gui-background-grid.svg'); background-image: url('/images/gui-background-grid.svg');
background-size: cover; background-size: cover;
background-repeat: repeat; background-repeat: repeat-y;
}
.content {
padding: 0vw 3.6vw !important;
} }
} }
@media screen and (max-width: 1215px) { @media screen and (max-width: 1440px) {
figure { figure {
position: fixed; position: fixed;
z-index: 0; z-index: 0;
@ -74,14 +79,16 @@
background-size: contain; background-size: contain;
background-repeat: repeat; background-repeat: repeat;
} }
.content {
padding: 0vw 3.33vw;
}
} }
header { header {
position: absolute; position: absolute;
top: 0px; top: 0px;
left: 0px; left: 0px;
width: 100%; width: 100%;
height: 50px; height: 40px;
border-bottom: #ccc 1px solid;
} }
slot { slot {

View file

@ -65,7 +65,7 @@
focus = i; focus = i;
resetLoop(); resetLoop();
}} }}
class={`bg-purple h-4 w-4 rounded-lg border-2 border-white transition-colors ${ class={`bg-purple h-3 w-3 rounded-lg border border-white transition-colors ${
i === focus ? 'bg-purple-900' : '' i === focus ? 'bg-purple-900' : ''
}`} }`}
/> />

View file

@ -31,8 +31,7 @@
<style> <style>
.gallery-item :global(.featured-img) { .gallery-item :global(.featured-img) {
box-shadow: 0px 0px 12px #0c0c0c !important; box-shadow: 0px 0px 12px #0c0c0c !important;
width: 100%; object-fit: cover;
height: 100%;
} }
.card-thumb-label i { .card-thumb-label i {
font-size: 1.5vw; font-size: 1.5vw;

View file

@ -36,7 +36,7 @@
<footer class="mt-4 flex items-center justify-between"> <footer class="mt-4 flex items-center justify-between">
<div> <div>
<p> <p>
<span class="text-xs">V&NonBreakingSpace;{pkg.version}</span> <span class="pk-version text-xs">V&NonBreakingSpace;{pkg.version}</span>
<!-- <!--
TODO: uncomment once install counts improve TODO: uncomment once install counts improve
<br> <br>

View file

@ -16,7 +16,7 @@
}; };
</script> </script>
<section class={`flex items-center py-2 ${size} ${clazz}`}> <section class={`flex items-center border-b border-r-0 border-l-0 py-2 ${size} ${clazz}`}>
<div class="icon pl-4"> <div class="icon pl-4">
<i class="icon-search-icon" /> <i class="icon-search-icon" />
</div> </div>