From 030bd6c5f47e57a2afda750710e1f2a0db244330 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 5 Jul 2021 14:02:06 +0200 Subject: Refactor header (better BEM) --- app/assets/index.html | 16 ++++++++-------- app/stylesheets/print/header.styl | 29 +++++++---------------------- app/stylesheets/web/header.styl | 16 ++++++++-------- 3 files changed, 23 insertions(+), 38 deletions(-) (limited to 'app') diff --git a/app/assets/index.html b/app/assets/index.html index 9898d2a..5461ac0 100644 --- a/app/assets/index.html +++ b/app/assets/index.html @@ -27,24 +27,24 @@

Ahmed AbdelHalim

Senior Software Developer · DevOps
-
Berlin, Germany
-
+
Berlin, Germany
+ -
diff --git a/app/stylesheets/print/header.styl b/app/stylesheets/print/header.styl index e3b42c8..5b05637 100644 --- a/app/stylesheets/print/header.styl +++ b/app/stylesheets/print/header.styl @@ -1,24 +1,9 @@ -.header { -} - -.header__name { -} - -.header__job-title { -} - -.header__contact-info { -} - -.header__contact-info__location { -} - -.header__contact-info__tel -.header__contact-info__website -.header__contact-info__email -.header__contact-info__srht -.header__contact-info__github -.header__contact-info__stackoverflow -.header__contact-info__linkedin { +.header__tel +.header__website +.header__email +.header__srht +.header__github +.header__stackoverflow +.header__linkedin { display: inline } diff --git a/app/stylesheets/web/header.styl b/app/stylesheets/web/header.styl index 9a5a3f5..3a23a48 100644 --- a/app/stylesheets/web/header.styl +++ b/app/stylesheets/web/header.styl @@ -16,21 +16,21 @@ font-style: normal } -.header__contact-info__location { +.header__location { display: block font-style: italic margin-bottom: 1em } -.header__contact-info__tel -.header__contact-info__website { +.header__tel +.header__website { display: none } -.header__contact-info__email -.header__contact-info__srht -.header__contact-info__github -.header__contact-info__stackoverflow -.header__contact-info__linkedin { +.header__email +.header__srht +.header__github +.header__stackoverflow +.header__linkedin { display: inline } -- cgit v1.2.3