Skip to content

Instantly share code, notes, and snippets.

@kopepasah
Created April 18, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kopepasah/11046910 to your computer and use it in GitHub Desktop.
Save kopepasah/11046910 to your computer and use it in GitHub Desktop.
Less code for web font version of Entypo (also includes the CSS output).
@font-face {
font-family: 'Entypo';
src: url('entypo.eot');
src: url('entypo.eot?#iefix') format('embedded-opentype'), url('entypo.woff') format('woff'), url('entypo.ttf') format('truetype'), url('entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
.entypo {
display: inline-block;
font-family: Entypo;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.entypo-phone:before {
content: '\1F4DE';
}
.entypo-mobile:before {
content: '\1F4F1';
}
.entypo-mouse:before {
content: '\E789';
}
.entypo-address:before {
content: '\E723';
}
.entypo-mail:before {
content: '\2709';
}
.entypo-paper-plane:before {
content: '\1F53F';
}
.entypo-pencil:before {
content: '\270E';
}
.entypo-feather:before {
content: '\2712';
}
.entypo-attach:before {
content: '\1F4CE';
}
.entypo-inbox:before {
content: '\E777';
}
.entypo-reply:before {
content: '\E712';
}
.entypo-reply-all:before {
content: '\E713';
}
.entypo-forward:before {
content: '\27A6';
}
.entypo-user:before {
content: '\1F464';
}
.entypo-users:before {
content: '\1F465';
}
.entypo-add-user:before {
content: '\E700';
}
.entypo-vcard:before {
content: '\E722';
}
.entypo-export:before {
content: '\E715';
}
.entypo-location:before {
content: '\E724';
}
.entypo-map:before {
content: '\E727';
}
.entypo-compass:before {
content: '\E728';
}
.entypo-direction:before {
content: '\27A2';
}
.entypo-hair-cross:before {
content: '\1F3AF';
}
.entypo-share:before {
content: '\E73C';
}
.entypo-shareable:before {
content: '\E73E';
}
.entypo-heart:before {
content: '\2665';
}
.entypo-heart-empty:before {
content: '\2661';
}
.entypo-star:before {
content: '\2605';
}
.entypo-star-empty:before {
content: '\2606';
}
.entypo-thumbs-up:before {
content: '\1F44D';
}
.entypo-thumbs-down:before {
content: '\1F44E';
}
.entypo-chat:before {
content: '\E720';
}
.entypo-comment:before {
content: '\E718';
}
.entypo-quote:before {
content: '\275E';
}
.entypo-home:before {
content: '\2302';
}
.entypo-popup:before {
content: '\E74C';
}
.entypo-search:before {
content: '\1F50D';
}
.entypo-flashlight:before {
content: '\1F526';
}
.entypo-print:before {
content: '\E716';
}
.entypo-bell:before {
content: '\1F514';
}
.entypo-link:before {
content: '\1F517';
}
.entypo-flag:before {
content: '\2691';
}
.entypo-cog:before {
content: '\2699';
}
.entypo-tools:before {
content: '\2692';
}
.entypo-trophy:before {
content: '\1F3C6';
}
.entypo-tag:before {
content: '\E70C';
}
.entypo-camera:before {
content: '\1F4F7';
}
.entypo-megaphone:before {
content: '1F4E3';
}
.entypo-moon:before {
content: '\0045';
}
.entypo-palette:before {
content: '\1F3A8';
}
.entypo-leaf:before {
content: '\1F342';
}
.entypo-note:before {
content: '\266A';
}
.entypo-beamed-note:before {
content: '\266B';
}
.entypo-new:before {
content: '\1F4A5';
}
.entypo-graduation-cap:before {
content: '\1F393';
}
.entypo-book:before {
content: '\1F4D5';
}
.entypo-newspaper:before {
content: '\1F4F0';
}
.entypo-bag:before {
content: '\1F45C';
}
.entypo-airplane:before {
content: '\2708';
}
.entypo-lifebuoy:before {
content: '\E788';
}
.entypo-eye:before {
content: '\E70A';
}
.entypo-clock:before {
content: '\1F554';
}
.entypo-mic:before {
content: '\1F3A4';
}
.entypo-calendar:before {
content: '\1F4C5';
}
.entypo-flash:before {
content: '\26A1';
}
.entypo-thunder-cloud:before {
content: '\26C8';
}
.entypo-droplet:before {
content: '\1F4A7';
}
.entypo-cd:before {
content: '\1F4BF';
}
.entypo-briefcase:before {
content: '\1F4BC';
}
.entypo-air:before {
content: '\1F4A8';
}
.entypo-hourglass:before {
content: '\23F3';
}
.entypo-gauge:before {
content: '\1F6C7';
}
.entypo-language:before {
content: '\1F394';
}
.entypo-network:before {
content: '\E776';
}
.entypo-key:before {
content: '\1F511';
}
.entypo-battery:before {
content: '\1F50B';
}
.entypo-bucket:before {
content: '\1F4FE';
}
.entypo-magnet:before {
content: '\E7A1';
}
.entypo-drive:before {
content: '\1F4FD';
}
.entypo-cup:before {
content: '\2615';
}
.entypo-rocket:before {
content: '\1F680';
}
.entypo-brush:before {
content: '\E79A';
}
.entypo-suitcase:before {
content: '\1F6C6';
}
.entypo-traffic-cone:before {
content: '\1F6C8';
}
.entypo-globe:before {
content: '\1F30E';
}
.entypo-keyboard:before {
content: '\2328';
}
.entypo-browser:before {
content: '\E74E';
}
.entypo-publish:before {
content: '\E74D';
}
.entypo-progress-3:before {
content: '\E76B';
}
.entypo-progress-2:before {
content: '\E76A';
}
.entypo-progress-1:before {
content: '\E769';
}
.entypo-progress-0:before {
content: '\E768';
}
.entypo-light-down:before {
content: '\1F505';
}
.entypo-light-up:before {
content: '\1F506';
}
.entypo-adjust:before {
content: '\25D1';
}
.entypo-code:before {
content: '\E714';
}
.entypo-monitor:before {
content: '\1F4BB';
}
.entypo-infinity:before {
content: '\221E';
}
.entypo-light-bulb:before {
content: '\1F4A1';
}
.entypo-credit-card:before {
content: '\1F4B3';
}
.entypo-database:before {
content: '\1F4F8';
}
.entypo-voicemail:before {
content: '\2707';
}
.entypo-clipboard:before {
content: '\1F4CB';
}
.entypo-cart:before {
content: '\E73D';
}
.entypo-box:before {
content: '\1F4E6';
}
.entypo-ticket:before {
content: '\1F3AB';
}
.entypo-rss:before {
content: '\E73A';
}
.entypo-signal:before {
content: '\1F4F6';
}
.entypo-thermometer:before {
content: '\1F4FF';
}
.entypo-water:before {
content: '\1F4A6';
}
.entypo-sweden:before {
content: '\F601';
}
.entypo-line-graph:before {
content: '\1F4C8';
}
.entypo-pie-chart:before {
content: '\25F4';
}
.entypo-bar-graph:before {
content: '\1F4CA';
}
.entypo-area-graph:before {
content: '\1F53E';
}
.entypo-lock:before {
content: '\1F512';
}
.entypo-lock-open:before {
content: '\1F513';
}
.entypo-logout:before {
content: '\E741';
}
.entypo-login:before {
content: '\E740';
}
.entypo-check:before {
content: '\2713';
}
.entypo-cross:before {
content: '\274C';
}
.entypo-squared-minus:before {
content: '\229F';
}
.entypo-squared-plus:before {
content: '\229E';
}
.entypo-squared-cross:before {
content: '\274E';
}
.entypo-circled-minus:before {
content: '\2296';
}
.entypo-circled-plus:before {
content: '\2295';
}
.entypo-circled-cross:before {
content: '\2716';
}
.entypo-minus:before {
content: '\2796';
}
.entypo-plus:before {
content: '\2795';
}
.entypo-erase:before {
content: '\232B';
}
.entypo-block:before {
content: '\1F6AB';
}
.entypo-info:before {
content: '\2139';
}
.entypo-circled-info:before {
content: '\E705';
}
.entypo-help:before {
content: '\2753';
}
.entypo-circled-help:before {
content: '\E704';
}
.entypo-warning:before {
content: '\26A0';
}
.entypo-cycle:before {
content: '\1F504';
}
.entypo-cw:before {
content: '\27F3';
}
.entypo-ccw:before {
content: '\27F2';
}
.entypo-shuffle:before {
content: '\1F500';
}
.entypo-back:before {
content: '\1F519';
}
.entypo-level-down:before {
content: '\21B3';
}
.entypo-retweet:before {
content: '\E717';
}
.entypo-loop:before {
content: '\1F501';
}
.entypo-back-in-time:before {
content: '\E771';
}
.entypo-level-up:before {
content: '\21B0';
}
.entypo-switch:before {
content: '\21C6';
}
.entypo-numbered-list:before {
content: '\E005';
}
.entypo-add-to-list:before {
content: '\E003';
}
.entypo-layout:before {
content: '\268F';
}
.entypo-list:before {
content: '\2630';
}
.entypo-text-doc:before {
content: '\1F4C4';
}
.entypo-text-doc-inverted:before {
content: '\E731';
}
.entypo-doc:before {
content: '\E730';
}
.entypo-docs:before {
content: '\E736';
}
.entypo-landscape-doc:before {
content: '\E737';
}
.entypo-picture:before {
content: '\1F304';
}
.entypo-video:before {
content: '\1F3AC';
}
.entypo-music:before {
content: '\1F3B5';
}
.entypo-folder:before {
content: '\1F4C1';
}
.entypo-archive:before {
content: '\E800';
}
.entypo-trash:before {
content: '\E729';
}
.entypo-upload:before {
content: '\1F4E4';
}
.entypo-download:before {
content: '\1F4E5';
}
.entypo-save:before {
content: '\1F4BE';
}
.entypo-install:before {
content: '\E778';
}
.entypo-cloud:before {
content: '\2601';
}
.entypo-upload-cloud:before {
content: '\E711';
}
.entypo-bookmark:before {
content: '\1F516';
}
.entypo-bookmarks:before {
content: '\1F4D1';
}
.entypo-open-book:before {
content: '\1F4D6';
}
.entypo-play:before {
content: '\25B6';
}
.entypo-paus:before {
content: '\2016';
}
.entypo-record:before {
content: '\25CF';
}
.entypo-stop:before {
content: '\25A0';
}
.entypo-ff:before {
content: '\23E9';
}
.entypo-fb:before {
content: '\23EA';
}
.entypo-to-start:before {
content: '\23EE';
}
.entypo-to-end:before {
content: '\23ED';
}
.entypo-resize-full:before {
content: '\E744';
}
.entypo-resize-small:before {
content: '\E746';
}
.entypo-volume:before {
content: '\23F7';
}
.entypo-sound:before {
content: '\1F50A';
}
.entypo-mute:before {
content: '\1F507';
}
.entypo-flow-cascade:before {
content: '\1F568';
}
.entypo-flow-branch:before {
content: '\1F569';
}
.entypo-flow-tree:before {
content: '\1F56A';
}
.entypo-flow-line:before {
content: '\1F56B';
}
.entypo-flow-parallel:before {
content: '\1F56C';
}
.entypo-left-bold:before {
content: '\E4AD';
}
.entypo-down-bold:before {
content: '\E4B0';
}
.entypo-up-bold:before {
content: '\E4AF';
}
.entypo-right-bold:before {
content: '\E4AE';
}
.entypo-left:before {
content: '\2B05';
}
.entypo-down:before {
content: '\2B07';
}
.entypo-up:before {
content: '\2B06';
}
.entypo-right:before {
content: '\27A1';
}
.entypo-circled-left:before {
content: '\E759';
}
.entypo-circled-down:before {
content: '\E758';
}
.entypo-circled-up:before {
content: '\E75B';
}
.entypo-circled-right:before {
content: '\E75A';
}
.entypo-triangle-left:before {
content: '\25C2';
}
.entypo-triangle-down:before {
content: '\25BE';
}
.entypo-triangle-up:before {
content: '\25B4';
}
.entypo-triangle-right:before {
content: '\25B8';
}
.entypo-chevron-left:before {
content: '\E75D';
}
.entypo-chevron-down:before {
content: '\E75C';
}
.entypo-chevron-up:before {
content: '\E75F';
}
.entypo-chevron-right:before {
content: '\E75E';
}
.entypo-chevron-small-left:before {
content: '\E761';
}
.entypo-chevron-small-down:before {
content: '\E760';
}
.entypo-chevron-small-up:before {
content: '\E763';
}
.entypo-chevron-small-right:before {
content: '\E762';
}
.entypo-chevron-thin-left:before {
content: '\E765';
}
.entypo-chevron-thin-down:before {
content: '\E764';
}
.entypo-chevron-thin-up:before {
content: '\E767';
}
.entypo-chevron-thin-right:before {
content: '\E766';
}
.entypo-left-thin:before {
content: '\2190';
}
.entypo-down-thin:before {
content: '\2193';
}
.entypo-up-thin:before {
content: '\2191';
}
.entypo-right-thin:before {
content: '\2192';
}
.entypo-arrow-combo:before {
content: '\E74F';
}
.entypo-three-dots:before {
content: '\23F6';
}
.entypo-two-dots:before {
content: '\23F5';
}
.entypo-dot:before {
content: '\23F4';
}
.entypo-cc:before {
content: '\1F545';
}
.entypo-cc-by:before {
content: '\1F546';
}
.entypo-cc-nc:before {
content: '\1F547';
}
.entypo-cc-nc-eu:before {
content: '\1F548';
}
.entypo-cc-nc-jp:before {
content: '\1F549';
}
.entypo-cc-sa:before {
content: '\1F54A';
}
.entypo-cc-nd:before {
content: '\1F54B';
}
.entypo-cc-pd:before {
content: '\1F54C';
}
.entypo-cc-zero:before {
content: '\1F54D';
}
.entypo-cc-share:before {
content: '\1F54E';
}
.entypo-cc-remix:before {
content: '\1F54F';
}
.entypo-db-logo:before {
content: '\1F5F9';
}
.entypo-db-shape:before {
content: '\1F5FA';
}
@font-face {
font-family: 'Entypo';
src: url('entypo.eot');
src: url('entypo.eot?#iefix') format('embedded-opentype'),
url('entypo.woff') format('woff'),
url('entypo.ttf') format('truetype'),
url('entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@character-map: phone, '\1F4DE',
mobile, '\1F4F1',
mouse, '\E789',
address, '\E723',
mail, '\2709',
paper-plane, '\1F53F',
pencil, '\270E',
feather, '\2712',
attach, '\1F4CE',
inbox, '\E777',
reply, '\E712',
reply-all, '\E713',
forward, '\27A6',
user, '\1F464',
users, '\1F465',
add-user, '\E700',
vcard, '\E722',
export, '\E715',
location, '\E724',
map, '\E727',
compass, '\E728',
direction, '\27A2',
hair-cross, '\1F3AF',
share, '\E73C',
shareable, '\E73E',
heart, '\2665',
heart-empty, '\2661',
star, '\2605',
star-empty, '\2606',
thumbs-up, '\1F44D',
thumbs-down, '\1F44E',
chat, '\E720',
comment, '\E718',
quote, '\275E',
home, '\2302',
popup, '\E74C',
search, '\1F50D',
flashlight, '\1F526',
print, '\E716',
bell, '\1F514',
link, '\1F517',
flag, '\2691',
cog, '\2699',
tools, '\2692',
trophy, '\1F3C6',
tag, '\E70C',
camera, '\1F4F7',
megaphone, '1F4E3',
moon, '\0045',
palette, '\1F3A8',
leaf, '\1F342',
note, '\266A',
beamed-note, '\266B',
new, '\1F4A5',
graduation-cap, '\1F393',
book, '\1F4D5',
newspaper, '\1F4F0',
bag, '\1F45C',
airplane, '\2708',
lifebuoy, '\E788',
eye, '\E70A',
clock, '\1F554',
mic, '\1F3A4',
calendar, '\1F4C5',
flash, '\26A1',
thunder-cloud, '\26C8',
droplet, '\1F4A7',
cd, '\1F4BF',
briefcase, '\1F4BC',
air, '\1F4A8',
hourglass, '\23F3',
gauge, '\1F6C7',
language, '\1F394',
network, '\E776',
key, '\1F511',
battery, '\1F50B',
bucket, '\1F4FE',
magnet, '\E7A1',
drive, '\1F4FD',
cup, '\2615',
rocket, '\1F680',
brush, '\E79A',
suitcase, '\1F6C6',
traffic-cone, '\1F6C8',
globe, '\1F30E',
keyboard, '\2328',
browser, '\E74E',
publish, '\E74D',
progress-3, '\E76B',
progress-2, '\E76A',
progress-1, '\E769',
progress-0, '\E768',
light-down, '\1F505',
light-up, '\1F506',
adjust, '\25D1',
code, '\E714',
monitor, '\1F4BB',
infinity, '\221E',
light-bulb, '\1F4A1',
credit-card, '\1F4B3',
database, '\1F4F8',
voicemail, '\2707',
clipboard, '\1F4CB',
cart, '\E73D',
box, '\1F4E6',
ticket, '\1F3AB',
rss, '\E73A',
signal, '\1F4F6',
thermometer, '\1F4FF',
water, '\1F4A6',
sweden, '\F601',
line-graph, '\1F4C8',
pie-chart, '\25F4',
bar-graph, '\1F4CA',
area-graph, '\1F53E',
lock, '\1F512',
lock-open, '\1F513',
logout, '\E741',
login, '\E740',
check, '\2713',
cross, '\274C',
squared-minus, '\229F',
squared-plus, '\229E',
squared-cross, '\274E',
circled-minus, '\2296',
circled-plus, '\2295',
circled-cross, '\2716',
minus, '\2796',
plus, '\2795',
erase, '\232B',
block, '\1F6AB',
info, '\2139',
circled-info, '\E705',
help, '\2753',
circled-help, '\E704',
warning, '\26A0',
cycle, '\1F504',
cw, '\27F3',
ccw, '\27F2',
shuffle, '\1F500',
back, '\1F519',
level-down, '\21B3',
retweet, '\E717',
loop, '\1F501',
back-in-time, '\E771',
level-up, '\21B0',
switch, '\21C6',
numbered-list, '\E005',
add-to-list, '\E003',
layout, '\268F',
list, '\2630',
text-doc, '\1F4C4',
text-doc-inverted, '\E731',
doc, '\E730',
docs, '\E736',
landscape-doc, '\E737',
picture, '\1F304',
video, '\1F3AC',
music, '\1F3B5',
folder, '\1F4C1',
archive, '\E800',
trash, '\E729',
upload, '\1F4E4',
download, '\1F4E5',
save, '\1F4BE',
install, '\E778',
cloud, '\2601',
upload-cloud, '\E711',
bookmark, '\1F516',
bookmarks, '\1F4D1',
open-book, '\1F4D6',
play, '\25B6',
paus, '\2016',
record, '\25CF',
stop, '\25A0',
ff, '\23E9',
fb, '\23EA',
to-start, '\23EE',
to-end, '\23ED',
resize-full, '\E744',
resize-small, '\E746',
volume, '\23F7',
sound, '\1F50A',
mute, '\1F507',
flow-cascade, '\1F568',
flow-branch, '\1F569',
flow-tree, '\1F56A',
flow-line, '\1F56B',
flow-parallel, '\1F56C',
left-bold, '\E4AD',
down-bold, '\E4B0',
up-bold, '\E4AF',
right-bold, '\E4AE',
left, '\2B05',
down, '\2B07',
up, '\2B06',
right, '\27A1',
circled-left, '\E759',
circled-down, '\E758',
circled-up, '\E75B',
circled-right, '\E75A',
triangle-left, '\25C2',
triangle-down, '\25BE',
triangle-up, '\25B4',
triangle-right, '\25B8',
chevron-left, '\E75D',
chevron-down, '\E75C',
chevron-up, '\E75F',
chevron-right, '\E75E',
chevron-small-left, '\E761',
chevron-small-down, '\E760',
chevron-small-up, '\E763',
chevron-small-right, '\E762',
chevron-thin-left, '\E765',
chevron-thin-down, '\E764',
chevron-thin-up, '\E767',
chevron-thin-right, '\E766',
left-thin, '\2190',
down-thin, '\2193',
up-thin, '\2191',
right-thin, '\2192',
arrow-combo, '\E74F',
three-dots, '\23F6',
two-dots, '\23F5',
dot, '\23F4',
cc, '\1F545',
cc-by, '\1F546',
cc-nc, '\1F547',
cc-nc-eu, '\1F548',
cc-nc-jp, '\1F549',
cc-sa, '\1F54A',
cc-nd, '\1F54B',
cc-pd, '\1F54C',
cc-zero, '\1F54D',
cc-share, '\1F54E',
cc-remix, '\1F54F',
db-logo, '\1F5F9',
db-shape, '\1F5FA';
@character-count: length( @character-map );
.entypo-characters( @character-count ) when ( @character-count > 0 ) {
.entypo-characters( ( @character-count - 2 ) );
@character: extract( @character-map, @character-count - 1 );
@unicode: extract( @character-map, @character-count );
&-@{character}:before {
content: @unicode;
}
}
.entypo {
display: inline-block;
font-family: Entypo;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.entypo-characters( @character-count );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment