diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-07-05 12:05:25 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-07-05 12:05:25 +0200 |
| commit | d2ae7fb89b94e725b74e7bd54ee4eb548783d044 (patch) | |
| tree | a58241329b24ced7e7950dde279070f15bd271f8 /app/stylesheets/web/education.styl | |
| parent | 936e7ebc1e581ec63bc4d4fbea8dd700ce8906de (diff) | |
Convert the education block to use BEM convention
Diffstat (limited to 'app/stylesheets/web/education.styl')
| -rw-r--r-- | app/stylesheets/web/education.styl | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app/stylesheets/web/education.styl b/app/stylesheets/web/education.styl new file mode 100644 index 0000000..d6ea3a6 --- /dev/null +++ b/app/stylesheets/web/education.styl @@ -0,0 +1,58 @@ +.education { + // add empty space to the end of page (as big as the header) + margin-bottom: 150px +} + +.education__details { + display: flex + flex-flow: row wrap + justify-content: space-between + @media screen and (max-width: 780px) { + flex-flow: column wrap + } +} + +.education__details__degree { + min-width: 100% + align-self: center + font-size: 1.1em + margin-bottom: 0 +} + +.education__details__university +.education__details__gpa +.education__details__duration +.education__details__location { + min-width: 50% + margin: 0 +} + +.education__details__university { +} + +.education__details__gpa { + order: 3 + @media screen and (max-width: 780px) { + order: 2 + } +} + +.education__details__duration { + order: 2 + text-align: right + align-self: flex-end + @media screen and (max-width: 780px) { + text-align: left + align-self: flex-start + } +} + +.education__details__location { + order: 4 + text-align: right + align-self: flex-end + @media screen and (max-width: 780px) { + text-align: left + align-self: flex-start + } +} |
