css tweaks, added background image to header

This commit is contained in:
Lynne Megido 2021-01-15 00:56:13 +10:00
parent 91baf3ff67
commit b652cce154
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
7 changed files with 43 additions and 12 deletions

6
.idea/discord.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="DISABLE" />
</component>
</project>

View file

@ -11,5 +11,5 @@ defaults:
collections: collections:
content: content:
output: false output: true
permalink: /:name

View file

@ -24,13 +24,15 @@
<source type="image/webp" srcset="/assets/img/lynnesoft-centred.png"> <source type="image/webp" srcset="/assets/img/lynnesoft-centred.png">
<img id="logo" <img id="logo"
src="/assets/img/lynnesoft-centred.png" src="/assets/img/lynnesoft-centred.png"
alt="A cyan-purple parallelogram with an outline of the letter L in its bottom-left corner."> alt="A cyan-purple parallelogram with an outline of the letter L in its bottom-left corner."
height="442"
width="607">
</picture> </picture>
<nav> <nav>
<a href='/' {%- if page.title == "Home" %} class='current'{% endif -%}>Home</a> <a href='/' {%- if page.title == "Home" %} class='current'{% endif -%}>Home</a>
{%- for html_page in site.content -%} {%- for html_page in site.content -%}
{%- unless html_page.url == '/' -%} {%- unless html_page.url == '/index' -%}
<a href='{{ html_page.url }}' {%- if page.title == html_page.title %} class='current'{% endif -%}> <a href='{{ html_page.url }}' {%- if page.title == html_page.title %} class='current'{% endif -%}>
{{ html_page.title }} {{ html_page.title }}
</a> </a>

BIN
assets/img/background.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
assets/img/background.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

View file

@ -5,7 +5,7 @@ body {
font-family: sans-serif; font-family: sans-serif;
margin: 0; margin: 0;
display: grid; display: grid;
grid-template-columns: max(300px, 20%) auto; grid-template-columns: max(325px, 15%) auto;
background: #ccc; background: #ccc;
} }
@ -21,7 +21,7 @@ h6 a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
h1, h2 { h1, h2, h3 {
font-weight: 400; font-weight: 400;
} }
h1 { h1 {
@ -42,8 +42,13 @@ main article {
font-size: 1.1em; font-size: 1.1em;
} }
p {
line-height: 1.5em;
}
main article h1, main article h1,
main article h2 { main article h2,
main article h3 {
border-left: 5px solid mediumpurple; border-left: 5px solid mediumpurple;
padding-left: 5px; padding-left: 5px;
margin-left: -10px; margin-left: -10px;
@ -51,9 +56,26 @@ main article h2 {
header { header {
/* sidebar */ /* sidebar */
/*background: #6c4e7b;*/ position: relative;
background: #333; }
z-index: 1;
header::after {
/* will use webp with jpeg fallback when
https://developer.mozilla.org/en-US/docs/Web/CSS/image()#browser_compatibility becomes a thing, until then, it's jpeg
only for now :c */
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background: linear-gradient(to bottom, #333, #333 10%, 70%, transparent),
url("/assets/img/background.jpeg") no-repeat bottom center/cover,
#333;
/*background: linear-gradient(to bottom, #333 0%, #333 30%, transparent 80%, transparent 100%), url("/assets/img/background.jpeg") no-repeat bottom center/cover;*/
filter: saturate(33%);
content: "";
} }
nav a { nav a {
@ -69,12 +91,13 @@ nav a {
transition: 0.2s all; transition: 0.2s all;
} }
nav a:hover { nav a:hover {
background: #ffffff44; background: #00000044;
} }
#logo { #logo {
object-fit: contain; object-fit: contain;
display: block; display: block;
width: min(100%, 150px); width: min(100%, 150px);
margin: 30px auto 80px auto; height: auto;
margin: 30px auto 50px auto;
} }