Last active
December 10, 2015 18:58
-
-
Save mrcave/4478189 to your computer and use it in GitHub Desktop.
Spruce up your files & links elements
http://lightignite.com/spruce-up-your-files-links-elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.linksModule li{ | |
width: 165px; | |
float: left; | |
padding: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li.filelink-ext-doc, li.filelink-ext-docx, li.filelink-ext-rtf{ | |
background: url(/path/to/file-type-icons/doc.png) no-repeat; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* override default styles */ | |
.linksModule ul{ | |
list-style-type:none; | |
list-style:none; | |
} | |
.linksModule li{ | |
list-style-type:none; | |
list-style:none; | |
padding-left: 20px !important; | |
margin:3px 0; | |
background: url(/path/to/file-type-icons/empty.png) no-repeat; | |
vertical-align: middle; | |
} | |
/* set file-type icons */ | |
li.filelink-ext-doc, li.filelink-ext-docx{ | |
background: url(/path/to/file-type-icons/doc.png) no-repeat; | |
} | |
li.filelink-ext-pdf{ | |
background: url(/path/to/file-type-icons/pdf.png) no-repeat; | |
} | |
li.filelink-ext-ppt, li.filelink-ext-pptx{ | |
background: url(/path/to/file-type-icons/ppt.png) no-repeat; | |
} | |
li.filelink-url{ | |
background: url(/path/to/file-type-icons/link.png) no-repeat; | |
} | |
li.filelink-ext-mov, li.filelink-ext-wmv, li.filelink-ext-mpg, li.filelink-ext-mp4{ | |
background: url(/path/to/file-type-icons/movies.png) no-repeat; | |
} | |
li.filelink-ext-txt{ | |
background: url(/path/to/file-type-icons/txt.png) no-repeat; | |
} | |
li.filelink-ext-xls{ | |
background: url(/path/to/file-type-icons/xls.png) no-repeat; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zip, txt, html, htm, js, css, ico, xml, swf, gif, jpg, jpeg, bmp, png, aif, aifc, aiff, asf, asx, au, avi, class, flv, m1v, m3u, mid, midi, mov, mp2, mp2v, mp3, mpa, mpe, mpeg, mpg, mpv2, mvr, rm, rma, rmi, rmv, snd, wav, wax, wm, wma, wmp, wmv, wmx, wvx, doc, docx, pdf, xls, xlsx, ppt, pptx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li id="FileLink_Link139015" class="filelink-ext-docx" onmousedown="hasMouseDown=true;" onmousemove="checkMouse()" onmouseup="hasMouseDown=false;"> | |
<a href="/Websites/lightignite/files/Content/2237712/Word.docx" target="_self">Word</a> | |
<span class="fileSize">(0.02 KB)</span> | |
<span class="description"></span> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.linksModule ul{ | |
list-style-type:none; | |
list-style:none; | |
} | |
.linksModule li{ | |
list-style-type:none; | |
list-style:none; | |
padding-left: 20px !important; | |
margin:3px 0; | |
background: url(/path/to/file-type-icons/default.png) no-repeat; | |
vertical-align: middle; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment