Some cleaning and mobile support

This commit is contained in:
Nox Sluijtman 2022-09-26 19:31:12 +02:00
parent 0934cae834
commit f5c6b310c1
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ .Content -}} {{ .Content -}}
<div class="posts"> <div class="posts">
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }}
@ -10,7 +10,6 @@
{{ end }} {{ end }}
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
<div class="posts">
<table class="post-meta"> <table class="post-meta">
{{ range .Paginator.Pages }} {{ range .Paginator.Pages }}
<tr> <tr>

View file

@ -2,7 +2,7 @@
@import "gruvbox.css"; @import "gruvbox.css";
:root{ :root{
scrollbar-color: var(--ansi00-soft) var(--ansi00-hard); scrollbar-color: var(--ansi08) transparent;
} }
:target{background-color: var(--ansi00-soft);} :target{background-color: var(--ansi00-soft);}
::selection{ ::selection{
@ -76,8 +76,9 @@ header{text-transform: capitalize; text-align:center;border-bottom:2pt solid; fo
-moz-animation: gay 8s ease-in-out infinite; -moz-animation: gay 8s ease-in-out infinite;
-webkit-animation: gay 8s ease-in-out infinite; -webkit-animation: gay 8s ease-in-out infinite;
} }
table{color: var(--ansi07); margin-bottom: .5em; } .posts{ overflow-x: auto; }
.post-meta{ width: 100%; background-color: var(--ansi00); border-radius: 1em; padding:.5em;} .post-meta{ width: 100%; background-color: var(--ansi00); border-radius: 1em; padding:.5em;}
table{color: var(--ansi07); margin-bottom: .5em;}
.post-meta a{text-decoration: none;} .post-meta a{text-decoration: none;}
.post-tags a{ color:inherit;} .post-tags a{ color:inherit;}
.post-tags a:hover{text-decoration:none; color:var(--ansi15); background:inherit;} .post-tags a:hover{text-decoration:none; color:var(--ansi15); background:inherit;}