aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorPedram Ashofteh Ardakani <pedramardakani@pm.me>2020-05-16 12:48:07 +0430
committerPedram Ashofteh Ardakani <pedramardakani@pm.me>2020-05-16 12:48:07 +0430
commit53e30a3169f5dc02b5e4b57c150249db54a6a728 (patch)
tree0ac09a47b00938d96141ef9088405aaf712cc925 /css
parent6780aff28ca9493b38fdd9539d0c769902eaeadf (diff)
Bring headers closer to text below them
Reduce the margin and padding on top of the paragraphs and below the headers. Mohammad suggested this on savannah: * https://savannah.nongnu.org/bugs/?58377#comment0 Also, add a few sentences in the README.md file.
Diffstat (limited to 'css')
-rw-r--r--css/base.css11
1 files changed, 11 insertions, 0 deletions
diff --git a/css/base.css b/css/base.css
index a115d77..78085af 100644
--- a/css/base.css
+++ b/css/base.css
@@ -56,11 +56,22 @@ body {
h1,
h2,
h3 {
+ /* Bring the headers closer to the text under them, this is a
+ * complementary command with the margin-top in `p` tag styling */
+ padding-bottom: 0;
+ margin-bottom: 0;
/* Set line-height for headers to prevent overlap when browser is
* forced to wrap the words. */
line-height: 1;
}
+p {
+ /* Bring the headers closer to the text under them, this is a
+ * complementary command with the padding & margin bottom in the
+ * header tags above */
+ margin-top: 5px;
+}
+
/* Wrap the entire content of the page in this `div` - the navigation
* bar is an exception, because of its fixed position. */
#container {