
.automaticon a {
  display: inline-block;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.automaticon a:before,
.automaticon.add-extension a:after {
  font-weight: normal;
  line-height: 1;
}

.automaticon a:before {
  margin: 0 .3em 0 .1em;
  font-family: FontAwesome;
  font-style: normal;
}

.automaticon.add-extension a:after {
  margin-left: .3em;
  font-style: italic;
  font-size: 70%;
  opacity: .7;
}

.automaticon a.no-automaticon:before,
.automaticon a.no-automaticon:after {
  content: " " !important;
}


/**********************************************************
  SETTING UP THE CONTENT
*/

/*--------------------------------------------------------
  SELECT BY EXTENSION (FILE TYPES) */

/* Adobe PDF */
.automaticon [href$=".pdf"]:before { content: "\f1c1"; }
.automaticon.add-extension [href$=".pdf"]:after { content: "[PDF]"; }

/* Text-Files like Word or .txt */
.automaticon [href$=".doc"]:before,
.automaticon [href$=".rtf"]:before,
.automaticon [href$=".txt"]:before { content: "\f0f6"; }

.automaticon.add-extension [href$=".doc"]:after { content: "[DOC]"; }
.automaticon.add-extension [href$=".rtf"]:after { content: "[RTF]"; }
.automaticon.add-extension [href$=".txt"]:after { content: "[TXT]"; }

/* Excel-Files */
.automaticon [href$=".xls"]:before,
.automaticon [href$=".csv"]:before,
.automaticon [href$=".xlw"]:before,
.automaticon [href$=".xlt"]:before { content: "\f0ce"; }

.automaticon.add-extension [href$=".xls"]:after { content: "[XLS]"; }
.automaticon.add-extension [href$=".csv"]:after { content: "[CSV]"; }
.automaticon.add-extension [href$=".xlw"]:after { content: "[XLW]"; }
.automaticon.add-extension [href$=".xlt"]:after { content: "[XLT]"; }

/* Feeds */
.automaticon [href$=".rss"]:before,
.automaticon [href$=".atom"]:before { content: "\f09e"; }

.automaticon.add-extension [href$=".rss"]:after { content: "[RSS]"; }
.automaticon.add-extension [href$=".atom"]:after { content: "[ATOM]"; }

/* Compressed File-Types */
.automaticon [href$=".zip"]:before,
.automaticon [href$=".gz"]:before,
.automaticon [href$=".rar"]:before,
.automaticon [href$=".gzip"]:before,
.automaticon [href$=".tar"]:before { content: "\f066"; }

.automaticon.add-extension [href$=".zip"]:after { content: "[ZIP]"; }
.automaticon.add-extension [href$=".gz"]:after { content: "[GZ]"; }
.automaticon.add-extension [href$=".rar"]:after { content: "[RAR]"; }
.automaticon.add-extension [href$=".gzip"]:after { content: "[GZIP]"; }
.automaticon.add-extension [href$=".tar"]:after { content: "[TAR]"; }



/* Audio Files */
.automaticon [href$=".mp3"]:before,
.automaticon [href$=".wav"]:before,
.automaticon [href$=".ogg"]:before,
.automaticon [href$=".wma"]:before,
.automaticon [href$=".m4a"]:before { content: "\f026"; }

.automaticon.add-extension [href$=".mp3"]:after { content: "[MP3]"; }
.automaticon.add-extension [href$=".wav"]:after { content: "[WAV]"; }
.automaticon.add-extension [href$=".ogg"]:after { content: "[OGG]"; }
.automaticon.add-extension [href$=".wma"]:after { content: "[WMA]"; }
.automaticon.add-extension [href$=".m4a"]:after { content: "[M4A]"; }

/* Video Files */
.automaticon [href$=".mov"]:before,
.automaticon [href$=".mpg"]:before,
.automaticon [href$=".mpeg"]:before,
.automaticon [href$=".mp4"]:before,
.automaticon [href$=".wmv"]:before,
.automaticon [href$=".flv"]:before,
.automaticon [href$=".avi"]:before { content: "\f03d"; }

.automaticon.add-extension [href$=".mov"]:after { content: "[MOV]"; }
.automaticon.add-extension [href$=".mpg"]:after { content: "[MPG]"; }
.automaticon.add-extension [href$=".mpeg"]:after { content: "[MPEG]"; }
.automaticon.add-extension [href$=".mp4"]:after { content: "[MP4]"; }
.automaticon.add-extension [href$=".wmv"]:after { content: "[WMV]"; }
.automaticon.add-extension [href$=".flv"]:after { content: "[FLV]"; }
.automaticon.add-extension [href$=".avi"]:after { content: "[AVI]"; }


.automaticon [download]:before { content: "\f019"; }
/*
.automaticon [target="_blank"]:before { content: "\f0c5"; }
*/