website-name less distractive; added border to articles

This commit is contained in:
Vrifox 2020-09-27 22:28:13 +02:00
parent bfb8c020f8
commit 133a7eca33
9 changed files with 31 additions and 22 deletions

View file

@ -28,10 +28,11 @@ header {
flex-flow: column; flex-flow: column;
height: max-content; height: max-content;
transition: background .2s; transition: background .2s;
border: 1px solid rgb(60, 60, 90);
img { img {
order: -1; order: -1;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
border-radius: 5px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 20px -20px; margin: -20px -20px 20px -20px;
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
object-fit: cover; object-fit: cover;

View file

@ -16,19 +16,20 @@
max-width: 100%; max-width: 100%;
margin-bottom: 15px; margin-bottom: 15px;
border-radius: 5px; border-radius: 5px;
border: 1px solid rgb(60, 60, 90);
} }
a { a {
background: rgb(60, 60, 90); background: rgb(60, 60, 90);
color: rgb(240, 240, 255); color: rgb(240, 240, 250);
transition: background .2s, color .2s; transition: background .2s, color .2s;
margin: -5px 0; margin: -5px 0;
padding: 5px 5px; padding: 5px 5px;
border-radius: 5px; border-radius: 5px;
} &:hover {
a:hover { background: rgb(255, 130, 130);
background: rgb(255, 130, 130); color: rgb(255, 255, 255);
color: rgb(255, 255, 255); text-decoration: none;
text-decoration: none; }
} }
aside { aside {
margin-top: 80px; margin-top: 80px;
@ -42,9 +43,9 @@
color: rgb(180, 180, 220); color: rgb(180, 180, 220);
padding: 10px; padding: 10px;
margin-left: 10px; margin-left: 10px;
} &:hover {
a:hover { background: rgb(70, 70, 105);
background: rgb(70, 70, 105); }
} }
} }
} }

View file

@ -29,11 +29,12 @@ header {
grid-template-areas: "img h1" grid-template-areas: "img h1"
"img p"; "img p";
transition: background .2s; transition: background .2s;
border: 1px solid rgb(60, 60, 90);
img { img {
object-fit: cover; object-fit: cover;
height: 180px; height: 180px;
width: 120px; width: 120px;
border-radius: 5px; border-radius: 5px 0px 0px 5px;
border: 0px solid rgb(40, 40, 60); border: 0px solid rgb(40, 40, 60);
grid-area: img; grid-area: img;
margin: -20px; margin: -20px;
@ -79,10 +80,11 @@ header {
flex-flow: column; flex-flow: column;
height: max-content; height: max-content;
transition: background .2s; transition: background .2s;
border: 1px solid rgb(60, 60, 90);
img { img {
order: -1; order: -1;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
border-radius: 5px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 20px -20px; margin: -20px -20px 20px -20px;
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
object-fit: cover; object-fit: cover;

View file

@ -22,9 +22,9 @@ body {
a { a {
color: rgb(255, 130, 130); color: rgb(255, 130, 130);
text-decoration: none; text-decoration: none;
} &:hover {
a:hover { text-decoration: underline;
text-decoration: underline; }
} }
.container { .container {

View file

@ -9,10 +9,12 @@ nav {
a { a {
color: rgb(245, 245, 245); color: rgb(245, 245, 245);
text-decoration: none; text-decoration: none;
background: rgb(255, 130, 130); padding: 20px 30px;
padding: 5px 10px; display: block;
border-radius: 20px; transition: background .2s;
text-shadow: rgb(255, 100, 100) 2px 2px; }
a:hover {
background: rgb(50, 50, 75);
} }
} }
.website-nav { .website-nav {

View file

@ -28,10 +28,11 @@ header {
max-width: 562px; max-width: 562px;
height: max-content; height: max-content;
transition: background .2s; transition: background .2s;
border: 1px solid rgb(60, 60, 90);
img { img {
order: -1; order: -1;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
border-radius: 5px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 20px -20px; margin: -20px -20px 20px -20px;
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
object-fit: cover; object-fit: cover;

View file

@ -2,6 +2,8 @@ baseURL: https://vrifox.cc/
languageCode: en-us languageCode: en-us
title: vrifox.cc title: vrifox.cc
enableRobotsTXT: true enableRobotsTXT: true
params:
menuname: vrifox.cc
menu: menu:
main: main:
- identifier: blog - identifier: blog

View file

@ -14,7 +14,7 @@
</p> </p>
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
{{ with .Params.featured_image }} {{ with .Params.featured_image }}
<img src="{{ . | relURL }}_720w" loading="lazy"> <img src="{{ . | relURL }}" loading="lazy">
{{ end }} {{ end }}
{{ .Content }} {{ .Content }}
<aside class="meta"> <aside class="meta">

View file

@ -1,7 +1,7 @@
<nav> <nav>
<div class="container"> <div class="container">
<section class="website-name"> <section class="website-name">
<a href="{{ .Site.BaseURL }}">Vrifox</a> <a href="{{ .Site.BaseURL }}">{{ .Site.Params.menuname }}</a>
</section> </section>
<section class="website-nav"> <section class="website-nav">
<ul> <ul>