﻿/*****EXTERNAL and APP LINK ICONS**********************************************************EXTERNAL and APP LINK ICONS**********************************************EXTERNAL and APP LINK ICONS***********************/

/* Add Icon to external links */
a[href^="http://"]:before,
a[href^="https://"]:not([href*="www.virginia.gov"]):before,
/*a[href^="https://"]:before,*/
/*a[href^="https://"]:not([href*="www.virginia.gov"]):before,*/
/*a[href^="https://"]:not([href*="www.virginia.gov/agencies"]):before,*/
/*a[href^="https://"]:not([href^="https://www.virginia.gov/agencies"]):before,*/
/*For some reason, .asp and .aspx need their own declaration of rules*/
a[href$='.aspx']:before {
    content: url('../images/global.png');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 3px;
    padding-right: 5px;
    vertical-align: middle;
}

/*Removes external link from in front of app links of pdf, word, excel, ppt ---- focuses on type of file instead*/
a[href$='.pdf']:not([href*="tstdesigns"])::before,
a[href$='.doc']:not([href*="tstdesigns"])::before,
a[href$='.docx']:not([href*="tstdesigns"])::before,
a[href$='.xls']:not([href*="tstdesigns"])::before,
a[href$='.xlsx']:not([href*="tstdesigns"])::before,
a[href$='.ppt']:not([href*="tstdesigns"])::before,
a[href$='.ppt']:not([href*="tstdesigns"])::before,
a[href$='.wmv']:not([href*="tstdesigns"])::before {
    content: none;
}



/*Add PDF icon to any link that ends in .pdf*/
a[href$='.pdf']::after {
    content: url('../images/pdf.gif');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 5px;
    vertical-align: middle;
}


/*Add Word icon to any link that ends in .doc, .docx*/
a[href$='.doc']::after,
a[href$='.docx']::after {
    content: url('../images/doc.gif');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 5px;
    vertical-align: middle;
}

/*Add Excel icon to any link that ends in .xls, .xlsx*/
a[href$='.xls']::after,
a[href$='.xlsx']::after {
    content: url('../images/xls.gif');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 5px;
    vertical-align: middle;
}

/*Add PPT icon to any link that ends in .ppt, .pptx*/
a[href$='.ppt']::after,
a[href$='.pptx']::after {
    content: url('../images/ppt.gif');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 5px;
    vertical-align: middle;
}

/* Add Icon to email links */
a[href^=mailto]::before {
    content: url('../images/mail_sm.png');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-right: 1px;
    padding-bottom: 5px;
    vertical-align: middle;
}


/* Add class to remove external link icon - currently used for footer and google directions link in VABOARD*/
.noext a[href^="http://"]:before, 
.noext a[href^="https://"]:before {
    content: none;
}



