Instantly share code, notes, and snippets.
Created
July 26, 2012 10:31
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save flexbox/3181401 to your computer and use it in GitHub Desktop.
CSS3 : Boutons avec des icones sans images
This file contains 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
.buttons | |
{ | |
display: inline-block; | |
background: #eeeeee; /* Old browsers */ | |
background: -moz-linear-gradient(top, #eeeeee 0%, #eeeeee 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* Opera11.10+ */ | |
background: -ms-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* IE10+ */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */ | |
background: linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* W3C */ | |
border: 1px solid #a1a1a1; | |
padding: 0 2em; | |
margin: 0.5em; | |
font: bold 1em/2em Arial, Helvetica; | |
text-decoration: none; | |
color: #333; | |
-moz-border-radius: .2em; | |
-webkit-border-radius: .2em; | |
border-radius: .2em; | |
} | |
.buttons:hover | |
{ | |
background: #eeeeee; /* Old browsers */ | |
background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera11.10+ */ | |
background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */ | |
background: linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* W3C */ | |
text-decoration: none; | |
} | |
.buttons:before | |
{ | |
float: left; | |
width: 1em; | |
text-align: center; | |
font-size: 1.7em; | |
margin: 0 0.5em 0 -1em; | |
padding: 0 .2em; | |
pointer-events: none; | |
} | |
/*Formulaires*/ | |
.add:before { content: "\271A"; } | |
.edit:before { content: "\270E"; } | |
.delete:before { content: "\2718";} | |
.save:before { content: "\2714";} | |
.email:before { content: "\2709";} | |
.cross:before { content: "\2716"; } | |
/*Monnaie*/ | |
.dollar:before { content:"\0024"; } | |
.euro:before { content:"\20AC"; } | |
.pound:before { content: "\00A3"; } | |
.cent:before { content: "\20B5"; } | |
/*Temperature*/ | |
.celsius:before { content: "\2103"; } | |
.fahrenheit:before { content: "\2109"; } | |
/*Math*/ | |
.pi:before { content: "\213C"; } | |
.one_thrid:before { content: "\2153"; } | |
.two_thrid:before { content: "\2154"; } | |
.one_fifth:before { content: "\2155"; } | |
.two_fifth:before { content: "\2156"; } | |
.three_fifth:before { content: "\2157"; } | |
.four_fifth:before { content: "\2158"; } | |
.one_sixth:before { content: "\2159"; } | |
.five_sixth:before { content: "\215A"; } | |
.one_eighth:before { content: "\215B"; } | |
.three_eighth:before { content: "\215C"; } | |
.five_eighth:before { content: "\215D"; } | |
.seven_eighth:before { content: "\215E"; } | |
.quarter:before { content: "\00BC"; } | |
.half:before { content: "\00BD"; } | |
.three_quarter:before { content: "\00BE"; } | |
/*Fleches*/ | |
.next:before { content: "\279C"; } | |
.left_arrow:before { content: "\2190"; } | |
.up_arrow:before { content: "\2191"; } | |
.right_arrow:before { content: "\2192"; } | |
.down_arrow:before { content: "\2193"; } | |
.up_left_arrow:before { content: "\2196"; } | |
.up_right_arrow:before { content: "\2197"; } | |
.down_left_arrow:before { content: "\2199"; } | |
.down_right_arrow:before { content: "\2198"; } | |
/*Symboles*/ | |
.like:before { content: "\2764"; } | |
.star:before { content: "\2605"; } | |
.spark:before { content: "\2737"; } | |
.play:before { content: "\25B6"; } | |
.watch:before { content: "\231A"; } | |
.blacksun:before { content: "\2600"; } | |
.cloud:before { content: "\2601"; } | |
.umbrella:before { content: "\2602"; } | |
.snowman:before { content: "\2603"; } | |
.blackstar:before { content: "\2605"; } | |
.whitestar:before { content: "\2606"; } | |
.blackphone:before { content: "\260E"; } | |
.whitephone:before { content: "\260F"; } | |
.saltire:before { content: "\2613"; } | |
.hot_drink:before { content: "\2615"; } | |
.skull:before { content: "\2620"; } | |
.radioactive:before { content: "\2622"; } | |
.biohazard:before { content: "\2623"; } | |
.peace:before { content: "\262E"; } | |
.yingyang:before { content: "\262F"; } | |
.frowning_face:before { content: "\2639"; } | |
.smiling_face:before { content: "\263A"; } | |
.first_quarter_moon:before { content: "\263D"; } | |
.last_quarter_moon:before { content: "\263E"; } | |
.wheelchair:before { content: "\267F"; } | |
.recycle:before { content: "\267D"; } | |
.recycle2:before { content: "\267C"; } | |
.music_note:before { content: "\266C"; } | |
.warning:before { content: "\26A0"; } | |
.male_and_female:before { content: "\26A4"; } | |
.scissors:before { content: "\2701"; } | |
.airplane:before { content: "\2708"; } | |
.snow:before { content: "\2042"; } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment