add content, adjust styles

This commit is contained in:
Joshua Seigler 2017-02-11 22:47:32 -05:00
parent ce68ce48ee
commit a5a06c1028
7 changed files with 37 additions and 13 deletions

View file

@ -1,6 +1,6 @@
+++ ---
date = "2017-02-11T16:15:16-05:00" date: "2017-02-11T16:15:16-05:00"
title = "First impressions of Hugo" title: "Site redesign!"
+++ ---
I rebuilt the site with a from-scratch Hugo theme. Styles are assembled from LESS with a Gulp task runner.
It's pretty great! Afterwards, static assets are revision-hashed, and markup is reformatted.

View file

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<article> <article>
<h1>{{ .Title }}</h1> <h2>{{ .Title }}</h2>
{{ .Content }} {{ .Content }}
</article> </article>
{{ end }} {{ end }}

View file

@ -14,6 +14,7 @@ html {
overflow: hidden; overflow: hidden;
color: white; color: white;
text-shadow: 0 0 0.1em rgba(255, 255, 255, 0.5); text-shadow: 0 0 0.1em rgba(255, 255, 255, 0.5);
line-height: 1.2;
} }
a { a {
color: inherit; color: inherit;
@ -37,8 +38,16 @@ h4 {
font-size: inherit; font-size: inherit;
font-weight: bold; font-weight: bold;
border-bottom: 0.1em dotted; border-bottom: 0.1em dotted;
margin-bottom: -0.1em;
margin-top: 1em; margin-top: 1em;
} }
h1 {
text-align: center;
}
h3 {
border-bottom: none;
margin-bottom: 0;
}
header { header {
background-color: white; background-color: white;
color: #20282a; color: #20282a;
@ -46,8 +55,11 @@ header {
header nav a { header nav a {
text-decoration: none; text-decoration: none;
} }
header nav a:hover { header nav a:hover,
text-decoration: underline; header nav a:focus {
color: white;
background-color: #20282a;
outline: none;
} }
header nav a:before { header nav a:before {
content: '['; content: '[';

File diff suppressed because one or more lines are too long

View file

@ -16,6 +16,7 @@ html {
overflow: hidden; overflow: hidden;
color: @color-text; color: @color-text;
text-shadow: 0 0 0.1em fade(@color-text, 50%); text-shadow: 0 0 0.1em fade(@color-text, 50%);
line-height: 1.2;
} }
a { a {
color: inherit; color: inherit;
@ -32,15 +33,26 @@ h1, h2, h3, h4 {
font-size: inherit; font-size: inherit;
font-weight: bold; font-weight: bold;
border-bottom: 0.1em dotted; border-bottom: 0.1em dotted;
margin-bottom: -0.1em;
margin-top: 1em; margin-top: 1em;
} }
h1 {
text-align: center;
}
h3 {
border-bottom: none;
margin-bottom: 0;
}
header { header {
background-color: @color-text; background-color: @color-text;
color: #20282a; color: #20282a;
nav a { nav a {
text-decoration: none; text-decoration: none;
&:hover { &:hover, &:focus {
text-decoration: underline; color: @color-text;
background-color: #20282a;
outline: none;
} }
&:before { &:before {
content: '['; content: '[';

View file

@ -44,7 +44,7 @@ body {
perspective-origin: ~'calc(100vw - 31vh) 45vh'; perspective-origin: ~'calc(100vw - 31vh) 45vh';
} }
.wrapper { .wrapper {
transform: rotateZ(1.3deg) rotateX(-8.8deg) rotateY(-9.3deg) scale(0.3) translate3d(-56.2vh, 86.1vh, 46.3vh); transform: rotateZ(1.3deg) rotateX(-8.8deg) rotateY(-9.3deg) scale(0.3) translate3d(-56.2vh, 86.1vh, 46.3vh);
transform-origin: top right; transform-origin: top right;
padding: 1vh; padding: 1vh;
width: 100vh; width: 100vh;