commit d258089144d539609dfb684e88227526e16a2878
parent 49ad199b69e246a5183aaf6a294d369ba43ab537
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sun, 5 Jan 2020 21:49:59 -0600
Slim down the CSS a bit
Diffstat:
2 files changed, 7 insertions(+), 18 deletions(-)
diff --git a/layouts/partials/css/color.css b/layouts/partials/css/color.css
@@ -12,13 +12,6 @@ a:focus, a:hover {
background: var(--accent-color);
color: var(--background-color);
}
-input, textarea {
- background: var(--alt-background-color);
- color: var(--text-color);
-}
-::placeholder {
- color: var(--text-color);
-}
article article {
border-color: var(--alt-background-color);
}
diff --git a/layouts/partials/css/custom.css b/layouts/partials/css/custom.css
@@ -1,9 +1,11 @@
body {
font-family: sans-serif;
}
+article article, form, header {
+ margin-bottom: 1em;
+}
input, textarea {
- padding: 5px;
- margin: 0.5em 0 1em 0;
+ margin: 0.5em 0 0.5em 0;
}
textarea {
resize: vertical;
@@ -11,23 +13,16 @@ textarea {
width: 100%;
box-sizing: border-box;
}
-header h1 {
+h1 {
font-size: 180%;
}
-header h1, header h3 {
- margin-bottom: 0.1em;
-}
header nav {
+ margin-top: -1.5em;
font-size: 90%;
}
-header {
- margin-bottom: 1em;
-}
article article {
border-top: 1px solid;
- margin-bottom: 1em;
}
-{{ partial "css/color.css" . | safeCSS }}
:root {
--background-color: #dcc;
--alt-background-color: #baa;
@@ -42,3 +37,4 @@ article article {
--text-color: #dcc;
}
}
+{{ partial "css/color.css" . | safeCSS }}