﻿/* --------------- EXTERNAL and APP LINK ICONS ------------------*/

/* Automatically add appropriate icon to external links */

a[href^="http://"]:before,
a[href^="https://"]:not([href*="www.virginia.gov"]):before, /*except for anything pointing to Virginia.gov -- commonBanner*/
a[href$='.asp']:before, /*For some reason, .asp and .aspx need their own declaration of rules*/
a[href$='.aspx']:before {
    content: url('../images/icons/global_sm.png');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 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$='.pptx']:not([href*="tstdesigns"])::before,
a[href$='.pps']:not([href*="tstdesigns"])::before {
    content: none;
}


/*Add PDF icon to any link that ends in .pdf*/
a[href$='.pdf']::after {
    content: url('../images/icons/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/icons/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/icons/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,
a[href$='.pps']::after {
    content: url('../images/icons/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/icons/mail-bkgrd.png');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-right: 2px;
    padding-bottom: 5px;
    vertical-align: middle;
}

/*Add Movie icon to any link that ends in .wmv*/
/*a[href$='.wmv']::after {
    content: url('../images/icons/wmv.png');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 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://"]:not([href*="tstdesigns"]):before, /*THIS NEEDS TO BE CHANGED BEFORE LAUNCH AND FOR STAGING TO TEST*/
.noext a[href^="https://"]:not([href*="tstdesigns"]):before {
    content: none;
}

/* Add class to remove pdf icon from FOOTER ONLY*/
.footPDF a[href$='.pdf']::after {
    content: none;
}

/* Add class to remove external link icon from internal apps pages*/
.apps a[href$='.aspx']:before {
    content: none;
}




/* Add class to external links in menu. items need class="menuexit" added in the nav.htm include ONLY on text <li> that leave site NOT on images*/
/*.menuexit a[href^="http://"]:not([href*="tstdesigns"]):after,*/ /*THIS NEEDS TO BE CHANGED BEFORE LAUNCH AND FOR STAGING TO TEST*/
/*.menuexit a[href^="https://"]:not([href*="tstdesigns"]):after {
    content: url('../images/icons/right-arrow15.png');
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    padding-left: 5px;
    vertical-align: middle;
}*/


ul.pList {
    margin-bottom: /*10px*/ 0px;
    margin-top: 0;
    line-height: 30px;
}
