From b22b437093cbcda52f92a743d667cdd3685cc6e1 Mon Sep 17 00:00:00 2001
From: alcysec <alcysec@users.noreply.github.com>
Date: Fri, 12 Oct 2018 19:22:01 +0300
Subject: Header icons aligned

---
 yaac-another-awesome-cv.cls | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

(limited to 'yaac-another-awesome-cv.cls')

diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls
index 4b75448..0bf2eaf 100755
--- a/yaac-another-awesome-cv.cls
+++ b/yaac-another-awesome-cv.cls
@@ -73,6 +73,7 @@
 \RequirePackage{tikz}
 \RequirePackage[skins]{tcolorbox}
 \RequirePackage{fancyhdr}
+\RequirePackage{xparse}
 
 
 \DeclareUnicodeCharacter{00E9}{\'{e}}
@@ -165,16 +166,21 @@
 \newlength{\leftcolumn}
 \setlength{\leftcolumn}{2.5cm}
 
+% Font Awesome icons box
+\NewDocumentCommand\faIconBox{m s O{solid}}{
+  \makebox[1.5em][c]{\IfBooleanTF{#2}{\csname fa#1\endcsname*}{\csname fa#1\endcsname}[#3]}
+}
+
 % Font Awesome icons aliases
-\newcommand{\mailSymbol}{\faAt}
-\newcommand{\locationSymbol}{\faMapMarker*}
-\newcommand{\infoSymbol}{\faInfo}
-\newcommand{\linkedinSymbol}{\faLinkedinIn}
-\newcommand{\viadeoSymbol}{\faViadeo}
-\newcommand{\mobileSymbol}{\faMobile*}
-\newcommand{\githubSymbol}{\faGithub}
-\newcommand{\mediumSymbol}{\faMedium}
-\newcommand{\bitbucketSymbol}{\faBitbucket}
+\newcommand{\mailSymbol}{\faIconBox{At}}
+\newcommand{\locationSymbol}{\faIconBox{MapMarker}*}
+\newcommand{\infoSymbol}{\faIconBox{Info}}
+\newcommand{\linkedinSymbol}{\faIconBox{LinkedinIn}}
+\newcommand{\viadeoSymbol}{\faIconBox{Viadeo}}
+\newcommand{\mobileSymbol}{\faIconBox{Mobile}*}
+\newcommand{\githubSymbol}{\faIconBox{Github}}
+\newcommand{\mediumSymbol}{\faIconBox{Medium}}
+\newcommand{\bitbucketSymbol}{\faIconBox{Bitbucket}}
 
 \newcommand\link[2]{\color{linkcolor}\href{#1}{#2}\color{Black} }
 \newcommand\important[1]{\textbf #1}
-- 
cgit v1.2.1

