Socket
Socket
Sign inDemoInstall

fileicon.css

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fileicon.css

Fileicon.css - The Customizable pure CSS file icons


Version published
Weekly downloads
67
Maintainers
1
Install size
49.1 kB
Created
Weekly downloads
 

Readme

Source

Languages: 中文文档

Intro

Pure CSS file icons. Help you create file icons with pure CSS codes. (eg. doc, pdf, png, zip and so on).

See the DEMO

Usage

<div class="file-icon file-icon-xl" data-type="doc"></div>

Will display:

doc

Type

Use attribute data-type to define the file type, We had already defined some file type styles, includes:

  • doc, docx
  • xls, xlsx
  • ppt, pptx
  • pdf
  • zip

Size

Use class file-icon-xx for size define, We support some size below:

  • xs (12x16)
  • sm (18x24)
  • default (24x32)
  • lg (48x64)
  • xl (96x128)

Custom

Use data-type css selector to style your file type colors:

.file-icon[data-type=custom] {
  background: #38A240;
}

Who are using

License

Copyright (c) 2014-2015 Picturepan2. MIT Licensed, see LICENSE for details.

Keywords

FAQs

Last updated on 12 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc