{"id":23743015,"url":"https://github.com/joe-watkins/icon-fonts-using-href-attribute-selectors","last_synced_at":"2026-03-05T11:30:20.898Z","repository":{"id":10185885,"uuid":"12274070","full_name":"joe-watkins/icon-fonts-using-href-attribute-selectors","owner":"joe-watkins","description":"Instead of using classes or extra markup we leverage href attribute selectors","archived":false,"fork":false,"pushed_at":"2013-08-21T15:54:41.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T11:49:15.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joe-watkins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-21T15:42:45.000Z","updated_at":"2021-09-26T12:09:57.000Z","dependencies_parsed_at":"2022-08-07T05:15:33.004Z","dependency_job_id":null,"html_url":"https://github.com/joe-watkins/icon-fonts-using-href-attribute-selectors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joe-watkins%2Ficon-fonts-using-href-attribute-selectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joe-watkins%2Ficon-fonts-using-href-attribute-selectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joe-watkins%2Ficon-fonts-using-href-attribute-selectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joe-watkins%2Ficon-fonts-using-href-attribute-selectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joe-watkins","download_url":"https://codeload.github.com/joe-watkins/icon-fonts-using-href-attribute-selectors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239889814,"owners_count":19713844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-31T11:49:21.094Z","updated_at":"2026-03-05T11:30:20.842Z","avatar_url":"https://github.com/joe-watkins.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Icon Fonts using href attribute selectors.\n\nInstead of using classes or extra markup we leverage href attribute selectors. In this example we are using a custom/bundled Icomoon icon font\n\n## Demo\nhttp://codepen.io/joe-watkins/full/wyehm\n\n## Usage\nDownload in integrate the custom Icomoon web font into your project... then include the needed CSS. I've included the .scss file as well.\n\n## html\n\t\u003cdiv class=\"icomoon-files\"\u003e\n\t  \u003cul\u003e\n\t    \u003cli\u003e\u003ca href=\"file.pdf\"\u003eI'm a .pdf\u003c/a\u003e\u003c/li\u003e\n\t    \u003cli\u003e\u003ca href=\"file.doc\"\u003eI'm a .doc\u003c/a\u003e\u003c/li\u003e\n\t    \u003cli\u003e\u003ca href=\"file.zip\"\u003eI'm a .zip\u003c/a\u003e\u003c/li\u003e\n\t    \u003cli\u003e\u003ca href=\"file.csv\"\u003eI'm a .csv\u003c/a\u003e\u003c/li\u003e\n\t    \u003cli\u003e\u003ca href=\"file.ppt\"\u003eI'm a .ppt\u003c/a\u003e\u003c/li\u003e\n\t  \u003c/ul\u003e\n\t\u003c/div\u003e\n\n## CSS\n\t.icomoon-files a:before {\n\t  font-family: 'IcoMoonFiles';\n\t}\n\t.icomoon-files [href$=\".pdf\"]:before {\n\t  content: \"\\e008\";\n\t  color: #dc0012;\n\t}\n\t.icomoon-files [href$=\".doc\"]:before {\n\t  content: \"\\e00a\";\n\t  color: #24468d;\n\t}\n\t.icomoon-files [href$=\".csv\"]:before {\n\t  content: \"\\e00b\";\n\t  color: #006e01;\n\t}\n\t.icomoon-files [href$=\".zip\"]:before {\n\t  content: '\\e00c';\n\t  color: #ed7a0e;\n\t}\n\t.icomoon-files [href$=\".ppt\"]:before {\n\t  content: '\\e00d';\n\t  color: #dc5900;\n\t}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoe-watkins%2Ficon-fonts-using-href-attribute-selectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoe-watkins%2Ficon-fonts-using-href-attribute-selectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoe-watkins%2Ficon-fonts-using-href-attribute-selectors/lists"}