From 08788aa48f30c6821fdd4ec15b16f05f075769d7 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 7 May 2021 06:54:57 +0200 Subject: Style the education section of the page --- app/assets/index.html | 12 ++++++------ app/base.styl | 41 +++++++++++++++++++++++++++++++++++++++++ app/print.styl | 14 ++++++++++++++ 3 files changed, 61 insertions(+), 6 deletions(-) diff --git a/app/assets/index.html b/app/assets/index.html index 9f9cff5..8e9856a 100644 --- a/app/assets/index.html +++ b/app/assets/index.html @@ -239,13 +239,13 @@ -
+ diff --git a/app/base.styl b/app/base.styl index a85c430..a633bbb 100644 --- a/app/base.styl +++ b/app/base.styl @@ -192,3 +192,44 @@ article { } } } + +.education { + article { + display: flex + flex-flow: row wrap + justify-content: space-between; + // add empty space to the end of page (as big as the header) + margin-bottom: 160px + + @media screen and (max-width: 740px) { + flex-flow: column wrap + } + + // title + h2 { + margin: 0 + min-width: 100% + font-size: 1.2em + align-self: center + } + + // university + p:nth-of-type(1) { + min-width: 50% + margin: 0 + text-align: left + } + + // grade + p:nth-of-type(2) { + min-width: 50% + margin: 0 + text-align: right + + @media screen and (max-width: 740px) { + text-align: left + align-self: flex-start + } + } + } +} diff --git a/app/print.styl b/app/print.styl index 0d5915d..9c1ff49 100644 --- a/app/print.styl +++ b/app/print.styl @@ -76,3 +76,17 @@ article { } } } + +.education { + article { + // title + h2 { + margin-top: 1.2em + } + + // university/grade + p { + margin-bottom: -0.4em + } + } +} -- cgit v1.2.3