Skip to content

Commit

Permalink
Remove custom icons font using standard Font Awesome icons instead.
Browse files Browse the repository at this point in the history
Enlarge the icon font-size a bit because of the new icons used.
  • Loading branch information
tmcgee committed Oct 3, 2015
1 parent 5c3772c commit b47185b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 60 deletions.
52 changes: 16 additions & 36 deletions widgets/Share/css/Share.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@charset "UTF-8";

.cmvShareWidget {
width: 100%;
padding-bottom: 10px;
Expand Down Expand Up @@ -67,16 +65,25 @@
}

.cmvShareWidget .icon {
font-size: 24px;
font-size: 32px;
float: left;
cursor: pointer;
margin-right: 10px;
margin-right: 15px;
margin-bottom: 10px;
text-decoration: none;
display: block;
color: rgba(0, 0, 0, 0.5);
}

.cmvShareWidget .icon-gplus {
font-size: 25px;
margin-top: 2px;
}
.cmvShareWidget .icon-link {
font-size: 26px;
margin-top: 2px;
}

.cmvShareWidget .icon:hover {
color: rgba(0, 0, 0, 1);
}
Expand All @@ -90,49 +97,22 @@
margin: 0 0 0 10px;
}

/*Icon Fonts*/
@font-face {
font-family: 'tool-icons';
src: url('./fonts/tool-icons.eot');
src: url('./fonts/tool-icons.eot?#iefix') format('embedded-opentype'), url('./fonts/tool-icons.woff') format('woff'), url('../fonts/tool-icons.ttf') format('truetype'), url('./fonts/tool-icons.svg#tool-icons') format('svg');
font-weight: normal;
font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: "tool-icons";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: 0.2em;
text-align: center;
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: 0.2em;
}

.cmvShareWidget .icon-twitter:before {
content: '\e802';
content: '\f099';
}

.cmvShareWidget .icon-facebook:before {
content: '\e803';
content: '\f082';
}

.cmvShareWidget .icon-gplus:before {
content: '\e804';
content: '\f0d5';
}

.cmvShareWidget .icon-mail:before {
content: '\e805';
content: '\f0e0';
}

.cmvShareWidget .icon-link:before {
content: '\e806';
content: '\f0c1';
}
Binary file removed widgets/Share/css/fonts/tool-icons.eot
Binary file not shown.
24 changes: 0 additions & 24 deletions widgets/Share/css/fonts/tool-icons.svg

This file was deleted.

Binary file removed widgets/Share/css/fonts/tool-icons.ttf
Binary file not shown.
Binary file removed widgets/Share/css/fonts/tool-icons.woff
Binary file not shown.

0 comments on commit b47185b

Please sign in to comment.