diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-05-06 22:36:02 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-05-06 22:36:02 +0200 |
| commit | 1c3ce08c5c918eb55166d173cf79e15fe00973c9 (patch) | |
| tree | 7f15f118dd3dc998096fc96123e9f5e62867743b /app/base.styl | |
| parent | 11363adc5ec5fefb35d8aa43d691b3265cde22de (diff) | |
Finish the styling of the work Experience section
Diffstat (limited to 'app/base.styl')
| -rw-r--r-- | app/base.styl | 58 |
1 files changed, 57 insertions, 1 deletions
diff --git a/app/base.styl b/app/base.styl index 43be22d..76825be 100644 --- a/app/base.styl +++ b/app/base.styl @@ -96,7 +96,6 @@ article { dl { display: flex flex-flow: row wrap - // justify-content: space-between; } dt { @@ -118,3 +117,60 @@ article { } } } + +.work { + article > .info { + display: flex + flex-flow: row wrap + justify-content: space-between; + + @media screen and (max-width: 740px) { + flex-flow: column wrap + } + + // company + h2 { + order: 0 + min-width: 50% + margin-top: 0.2em + margin-bottom: 0 + } + + // title + em:nth-of-type(1) { + order: 2 + min-width: 50% + + @media screen and (max-width: 740px) { + order: 1 + } + } + + // location + em:nth-of-type(2) { + order 1 + min-width: 50% + text-align: right + align-self: flex-end + + @media screen and (max-width: 740px) { + order: 2 + text-align: left + align-self: flex-start + } + } + + // duration + em:nth-of-type(3) { + order: 3 + min-width: 50% + text-align: right + align-self: flex-end + + @media screen and (max-width: 740px) { + text-align: left + align-self: flex-start + } + } + } +} |
