-
-
Save eelyafi/3007240 to your computer and use it in GitHub Desktop.
Кнопка с иконкой шрифтом
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*для чего столько подключений ?*/ | |
@font-face | |
{ | |
font-family: 'customFont'; src: url('http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.eot'); | |
src: url('http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.eot?#iefix') format('embedded-opentype'), | |
url('http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.woff.woff') format('woff'), | |
url('http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.ttf') format('truetype'), | |
url('http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.svg#FoundationIconsGeneral') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
.glyph | |
{ | |
font: 16px/1 "customFont", Arial, sans-serif; | |
} | |
.ico | |
{ | |
color: red; | |
margin-right: 0.45em; | |
} | |
.like | |
{ | |
background-image: linear-gradient(bottom, #e1e1e1 0%, #fff 100%); box-shadow: 0 1px 2px rgba(0,0,0,0.3); | |
border-radius: 12px; | |
box-shadow: 0 1px 2px rgba(0,0,0,0.3); | |
text-shadow: 0 1px 0 #fff; | |
padding: 0.6em 1em; | |
margin: 1em; | |
display: inline-block; | |
background-color: #ccc; | |
color: #444; | |
cursor: pointer; | |
} | |
/* | |
Кнопка с иконкой шрифтом | |
http://clck.ru/d/v2borCbi14BD5 | |
http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.eot | |
http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.woff | |
http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.ttf | |
http://dl.dropbox.com/u/1744447/fonts/foundation-icons-general.svg | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="like"><b class="ico glyph">b</b>Like</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment