From b2371a3e473c2c4ed72d127bb0705fdad750cf48 Mon Sep 17 00:00:00 2001 From: Dorian Lesbre <dorian.lesbre@gmail.com> Date: Sun, 27 Dec 2020 12:25:16 +0100 Subject: [PATCH] Added style for section headers --- home/static/css/style.css | 16 ++++++++++++---- home/templates/home.html | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/home/static/css/style.css b/home/static/css/style.css index ebc70a2..9959b29 100644 --- a/home/static/css/style.css +++ b/home/static/css/style.css @@ -75,11 +75,19 @@ section { section > * { max-width: 960px; + margin-left: 15%; + margin-right: 15%; + padding-left: 10px; + padding-right: 10px; +} - margin-left: calc(50% - 480px); - margin-right: calc(50% - 480px); - padding-left: 60px; - padding-right: 60px; +section h2 { + font-size: 1.5rem; + font-weight: 300; + text-align: left; + border-bottom: 2px solid #006809; + border-image-source: linear-gradient(to right, #006809 0%, transparent 75%); + border-image-slice: 1; } section p { diff --git a/home/templates/home.html b/home/templates/home.html index 488f470..9099965 100644 --- a/home/templates/home.html +++ b/home/templates/home.html @@ -22,7 +22,7 @@ <a href="/" class="internal"><div class="navlink">Bouton autre</div></a> </nav> <section> - <h1>A Title</h1> + <h2>A Title</h2> <p>a paragraph</p> <p>another paragraph with <a href="http://www.google.com" class="external">an external link</a></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> -- GitLab