\LoadClass{article} % base class

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{resumeclass}[2015/11/26 John Rizkalla's resume class]

% General settings and setup
\RequirePackage[margin=1.8cm]{geometry}

\setlength{\parindent}{0pt}         % Turn off indentation
%\usepackage{mathpazo}               % Font
%\linespread{1.5}
%\RequirePackage{boisik}
%\RequirePackage{DejaVuSerifCondensed}
\RequirePackage[sfdefault, scaled=1.00]{quattrocento}
\RequirePackage[T1]{fontenc}

\pagenumbering{gobble}


% some colors
\RequirePackage{xcolor}
\definecolor{norm-color}{rgb}{0, 0, 0}
\definecolor{sec-color}{HTML}{008AB8}
\definecolor{subsec-color}{HTML}{008AB8}
%\definecolor{lst-color} {HTML}{0088B5}
\definecolor{lst-color} {HTML}{000000}
\definecolor{lst-color2} {HTML}{000000}
%\definecolor{lst-color2}{HTML}{97FF91}
\definecolor{lst-color} {HTML}{000000}


\usepackage[hyperfootnotes=false]{hyperref}               % for links
%\hypersetup{
%    colorlinks=true,
%    allcolors={popout-color},
%}

\RequirePackage[document]{ragged2e} % For right justified text


% Lists
\setlength{\textfloatsep}{0cm}

% Enumerations and Itemize
\RequirePackage{enumitem}
\setlist[itemize]{label={\color{sec-color}$>$}}

% Commands
\newcommand{\JRbreak}{\vspace*{.2cm}}

\newenvironment{JRItemize}%
{\begin{itemize}\setlength\itemsep{0.1pt}}%
{\end{itemize}}


% With surrounding [] that everyone thinks is ``ugly'' and ``unprofessional'' but I think are nice
%\newenvironment{JRSec}[1]%
%{\color{sec-color}{\hspace*{-.3cm}\sc \Large #1}\\[.2cm] \begin{math} \left [ \begin{minipage}{.95\textwidth}\vspace*{.1cm} \color{norm-color}}
%{\vspace*{.1cm}\end{minipage} \color{sec-color}\right ] \end{math}\vspace*{.3cm}\color{norm-color}}


\newenvironment{JRSec}[1]%
{\vspace*{.3cm}\color{sec-color}{\hspace*{-.3cm}\sc \Large #1}\\[.2cm] \begin{minipage}{.95\textwidth}\vspace*{.1cm} \color{norm-color}}
{\vspace*{.1cm}\end{minipage} \color{sec-color}\color{norm-color}}

% \begin{JRSubsec}[<dates>]{<title>}

\newenvironment{JRSubsec}[2][\ ]%
{{\vspace*{.1cm}\color{subsec-color} \large #2 \hfill #1\\[-.2cm]\color{sec-color}\rule{\textwidth}{.5pt}}\vspace*{.05cm}}%
{}
