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/base.styl | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'app/base.styl') 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 + } + } + } +} -- cgit v1.2.3