adjusted sizing and spacing of body and header text, images, video
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<script lang="ts">
|
||||
import SeparatorLine from "./separator-line.svelte";
|
||||
|
||||
let {
|
||||
title,
|
||||
date = "",
|
||||
@@ -71,7 +69,7 @@
|
||||
{/if}
|
||||
{/snippet}
|
||||
|
||||
<SeparatorLine />
|
||||
<hr>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<script lang="ts">
|
||||
import SeparatorLine from "./separator-line.svelte";
|
||||
|
||||
let {
|
||||
title,
|
||||
date = "",
|
||||
@@ -19,144 +17,63 @@
|
||||
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="subcontainer">
|
||||
<div class="img-container">
|
||||
{#if banner}
|
||||
{#if pixelated}
|
||||
<img class="banner pixelated-img" src="{banner}" alt="{bannerAlt}">
|
||||
{:else}
|
||||
<img class="banner" src="{banner}" alt="{bannerAlt}">
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="text-container">
|
||||
{@render titles({title, subtitle, date})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- {#if banner}
|
||||
<div class="subcontainer">
|
||||
<div class="img-container">
|
||||
{#if pixelated}
|
||||
<img class="pixelated-img" src="{banner}" alt="{bannerAlt}">
|
||||
{:else}
|
||||
<img src="{banner}" alt="{bannerAlt}">
|
||||
{/if}
|
||||
</div>
|
||||
<div class="text-container">
|
||||
{@render titles({title, subtitle, date})}
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="subcontainer">
|
||||
<div class="text-container">
|
||||
{@render titles({title, subtitle, date})}
|
||||
</div>
|
||||
</div>
|
||||
{/if} -->
|
||||
</div>
|
||||
|
||||
{#snippet titles({title, subtitle, date}: {title: string, subtitle: string, date: string})}
|
||||
<h1 class="title">{title}</h1>
|
||||
{#if subtitle}
|
||||
<p class="subtitle">[ {subtitle} ]</p>
|
||||
{/if}
|
||||
<div class="title-container">
|
||||
<h1 class="title">{title}</h1>
|
||||
{#if subtitle}
|
||||
<p class="subtitle">[ {subtitle} ]</p>
|
||||
{/if}
|
||||
</div>
|
||||
{#if date}
|
||||
<p class="date">» {date}</p>
|
||||
{/if}
|
||||
{/snippet}
|
||||
|
||||
<SeparatorLine />
|
||||
<div class="container">
|
||||
{#if banner}
|
||||
{#if pixelated}
|
||||
<img class="banner pixelated-img" src="{banner}" alt="{bannerAlt}">
|
||||
{:else}
|
||||
<img class="banner" src="{banner}" alt="{bannerAlt}">
|
||||
{/if}
|
||||
{/if}
|
||||
{@render titles({title, subtitle, date})}
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
width: 100%;
|
||||
background-color: var(--color-background-highlight);
|
||||
}
|
||||
|
||||
.subcontainer {
|
||||
max-width: var(--page-width);
|
||||
/* min-height: 250px;
|
||||
max-height: 600px; */
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.banner {
|
||||
/* position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0; */
|
||||
max-height: 260px;
|
||||
}
|
||||
|
||||
.img-container {
|
||||
flex-grow: 1;
|
||||
width: 50%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.text-container {
|
||||
margin-left: var(--margin-content-side);
|
||||
margin-right: var(--margin-content-side);
|
||||
/* position: absolute;
|
||||
bottom: 0; */
|
||||
}
|
||||
|
||||
.container img {
|
||||
height: 100%;
|
||||
max-height: 300px;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.title-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.title {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
height: fit-content;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0px;
|
||||
/* font-style: italic; */
|
||||
}
|
||||
|
||||
.date {
|
||||
font-family: var(--font-title);
|
||||
font-weight: 800;
|
||||
font-weight:700;
|
||||
font-size: 1.3rem;
|
||||
margin-top: 0;
|
||||
color: var(--color-highlight);
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-style: italic;
|
||||
font-family: var(--font-mono);
|
||||
font-weight: 800;
|
||||
font-size: 1.3rem;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
.subcontainer {
|
||||
height: fit-content;
|
||||
flex-direction: column;
|
||||
}
|
||||
.text-container {
|
||||
width: initial;
|
||||
}
|
||||
.img-container {
|
||||
width: 100%;
|
||||
}
|
||||
.img-container img {
|
||||
height: 200px;
|
||||
}
|
||||
.subtitle {
|
||||
font-size: 1.0rem;
|
||||
line-height: 1.1rem;
|
||||
}
|
||||
font-weight: 500;
|
||||
font-size: 1.0rem;
|
||||
}
|
||||
</style>
|
||||
@@ -1,37 +1,20 @@
|
||||
<script lang="ts">
|
||||
let {
|
||||
useContentWidth,
|
||||
}: {
|
||||
useContentWidth?: boolean;
|
||||
} = $props();
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
{#if useContentWidth}
|
||||
<div class="main-content content-width">
|
||||
<slot />
|
||||
</div>
|
||||
{:else}
|
||||
<div class="main-content page-width">
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="main-content">
|
||||
{@render children()}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.main-content {
|
||||
width: 100%;
|
||||
max-width: var(--page-width);
|
||||
box-sizing: border-box;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.content-width {
|
||||
max-width: var(--content-width);
|
||||
}
|
||||
|
||||
.page-width {
|
||||
max-width: var(--page-width);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
.main-content {
|
||||
padding: 0 8px;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<script lang="ts">
|
||||
import SeparatorLine from "./separator-line.svelte";
|
||||
|
||||
var ratCounter = 0;
|
||||
|
||||
let playSound = function() {
|
||||
@@ -16,7 +14,7 @@
|
||||
|
||||
<footer>
|
||||
<div class="background">
|
||||
<SeparatorLine noMargin />
|
||||
<hr>
|
||||
<div class="content-container">
|
||||
<div class="content-box center-box">
|
||||
<p>〔 2023–2026 〕denizk0461</p>
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<a href="/about">About</a>
|
||||
{/snippet}
|
||||
|
||||
<div class="header-content coloured-header">
|
||||
<!-- <div class="header-content coloured-header">
|
||||
{@render headerContent()}
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<style>
|
||||
.header-content {
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<script lang="ts">
|
||||
let {
|
||||
noMargin,
|
||||
}: {
|
||||
noMargin?: boolean;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
{#if noMargin}
|
||||
<hr style="margin-top: 0px; margin-bottom: 0px;">
|
||||
{:else}
|
||||
<hr style="margin-top: 20px; margin-bottom: 20px;">
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
hr {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
border: none;
|
||||
border-top: 2px dashed var(--color-highlight);
|
||||
}
|
||||
</style>
|
||||
@@ -98,22 +98,22 @@
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
/* .toc-list li {
|
||||
list-style: none;
|
||||
} */
|
||||
|
||||
.toc-list a {
|
||||
width: 100%;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-right: 24px;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease-in-out;
|
||||
transition-property: color background-color;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.toc-list a, .toc-list a:link, .toc-list a:visited {
|
||||
color: var(--color-text);
|
||||
}
|
||||
.toc-list a:hover {
|
||||
color: var(--color-text-dark);
|
||||
background-color: var(--color-highlight);
|
||||
@@ -133,7 +133,7 @@
|
||||
padding-left: 116px;
|
||||
}
|
||||
.toc-level-1::before, .toc-level-2::before, .toc-level-3::before {
|
||||
content: "↳ ";
|
||||
content: "└ ";
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -8,7 +8,7 @@
|
||||
<span>〔</span>
|
||||
<a href="https://www.rainbowcemetery.com/devring/prev.php?id=18">↫ PREV</a>
|
||||
<a href="https://www.rainbowcemetery.com/devring/rand.php?id=18">RAND</a>
|
||||
<a href="https://www.rainbowcemetery.com/devring/list.php?id=18">LI<i>S</i>T</a>
|
||||
<a href="https://www.rainbowcemetery.com/devring/list.php?id=18">LIST</a>
|
||||
<a href="https://www.rainbowcemetery.com/devring/next.php?id=18">NEXT ↬</a>
|
||||
<span>〕</span>
|
||||
</div>
|
||||
@@ -22,14 +22,23 @@
|
||||
align-items: center;
|
||||
margin: 16px auto;
|
||||
}
|
||||
.webring-row a {
|
||||
a {
|
||||
margin: 0 4px;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:link, a:visited {
|
||||
color: var(--color-highlight);
|
||||
}
|
||||
a:hover {
|
||||
font-weight: 700;
|
||||
}
|
||||
.webring-row {
|
||||
font-family: 'Space Mono';
|
||||
font-family: var(--font-mono);
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
span {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user