From 98eecd3ad3bd2a14c1cb13e7d07cd49dcb0a5299 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sat, 21 Dec 2019 23:34:11 -0500 Subject: [PATCH] refactor: move CSS to its own file This will be important when it comes to having centralized CSS across each of the HTML files (one file per "page" on the site). --- Makefile | 2 +- index.html | 19 +------------------ style.css | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 style.css diff --git a/Makefile b/Makefile index 6d880a2..a2148cc 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,3 @@ .PHONY: install install: - cp -f index.html /srv/http/index.html + cp -f index.html style.css /srv/http/ diff --git a/index.html b/index.html index a4830d7..5041559 100644 --- a/index.html +++ b/index.html @@ -3,24 +3,7 @@ alex.karle.co - + diff --git a/style.css b/style.css new file mode 100644 index 0000000..1f7d81c --- /dev/null +++ b/style.css @@ -0,0 +1,18 @@ +body { + background-color: #F5F5F5; + font-family: "Courier New", monospace; + margin-left: 40px; + margin-right: 40px; + font-size: 1em; +} + +@media only screen and (min-width: 992px) { + #content { + width: 60%; + margin: 0 auto; + } +} + +.new-post { + margin-top: 80px; +} -- libgit2 1.1.1