Author: | colorswall |
---|---|
Views Total: | 997 views |
Official Page: | Go to website |
Last Update: | January 10, 2021 |
License: | MIT |
Preview:

Description:
CSS file icons is a CSS/SCSS library used to create file type and extension icons using pure CSS.
Icons included:
- mp3
- wav
- aif
- cda
- mid
- midi
- mpa
- mkv
- ogg
- wpa
- wpl
- 7z
- zip
- rar
- tar.gz
- pkg
- z
- csv
- dat
- json
- xml
- dat
- db
- dbf
- sql
- ns
- 3ds
- max
- ai
- psd
- ttf
- woff
- woff2
- png
- bmp
- jpg
- jpeg
- gif
- tif
- tiff
- svg
- rss
- torrent
- ppt
- pps
- pptx
- odp
- asp
- c
- cs
- java
- jsp
- swift
- php
- hh
- go
- py
- js
- html
- xhtml
- css
- vb
- rb
- scss
- sass
- less
- jsx
- sh
- pl
- xls
- xlsx
- xlsm
- ods
- dll
- bak
- ini
- dmp
- sys
- cfg
- tmp
- icns
- doc
- docx
- log
- txt
- avi
- mov
- mp4
- mpg
- mpeg
- mkv
- wmv
- wps
- exe
How to use it:
1. Download and include the compiled CSS file css-file-icons.css
on the page.
<link rel="stylesheet" href="build/css-file-icons.css">
2. Add the CSS class fi and an extension class of your choice to the DIV element as follows:
<div class="fi fi-doc"> <div class="fi-content">Word</div> </div> <div class="fi fi-docx"> <div class="fi-content">Word</div> </div>
3. Adjust the size of the file icons with the following classes:
.fi.fi-size-xs
: extra small.fi.fi-size-sm
: default.fi.fi-size-md
: middle size.fi.fi-size-lg
: large.fi.fi-size-xl
: extra large
<div class="fi fi-doc fi-size-lg"> <div class="fi-content">Word</div> </div>
4. Set the radius of the icon border.
- .fi-round-sm
- .fi-round-md
Changelog:
01/10/2021
- v0.1.2: added `.fi-no-hover`
08/31/2020
- v0.1.0
01/14/2018
- v0.0.7
11/25/2018
- add colors for .psd, .png, .bmp, .png, .bmp, .vb