Created
March 24, 2011 22:28
-
-
Save tal/886032 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
| <a href="#" class="button h64" id="buy_package_1234"> | |
| <div class="left bg"></div> | |
| <div class="right bg"></div> | |
| <span class="text">Buy</span> | |
| </a> |
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
| .button { | |
| display: block; | |
| position: relative; | |
| text-decoration: none !important; | |
| } | |
| .button .bg { | |
| top: 0; | |
| position: absolute; | |
| width: 50%; | |
| height: 100%; | |
| background-repeat: no-repeat; | |
| background-color: transparent; | |
| margin: 0 !important; | |
| padding: 0 !important; | |
| display: block !important; | |
| } | |
| .button .left { | |
| left: 0; | |
| } | |
| .button .right { | |
| left: 50%; | |
| } | |
| .button .text { | |
| display: block; | |
| width: 100%; | |
| text-align: center; | |
| color: #e5e5e5; | |
| position: relative; | |
| font-weight: bold; | |
| } | |
| .button.disabled .text { | |
| color: #dfdfdf; | |
| } | |
| .button.h64 { | |
| height: 64px; | |
| } | |
| .button.h64 .text { | |
| top: 12px; | |
| font-size: 30px; | |
| } | |
| .button.h64 .bg { | |
| background-image: url(buttons-64.png); | |
| } | |
| .button.h64 .left { | |
| background-position: 0 0; | |
| } | |
| .button.h64 .right { | |
| background-position: right top; | |
| } | |
| .button.h64:hover .left { | |
| background-position: 0 -64px; | |
| } | |
| .button.h64:hover .right { | |
| background-position: right -64px; | |
| } | |
| .button.h64:active .left { | |
| background-position: 0 -128px; | |
| } | |
| .button.h64:active .right { | |
| background-position: right -128px; | |
| } | |
| .button.h64.disabled .left { | |
| background-position: 0 -192px !important; | |
| } | |
| .button.h64.disabled .right { | |
| background-position: right -192px !important; | |
| } | |
| .button.h56 { | |
| height: 56px; | |
| } | |
| .button.h56 .text { | |
| top: 12px; | |
| font-size: 26px; | |
| } | |
| .button.h56 .bg { | |
| background-image: url(buttons-56.png); | |
| } | |
| .button.h56 .left { | |
| background-position: 0 0; | |
| } | |
| .button.h56 .right { | |
| background-position: right top; | |
| } | |
| .button.h56:hover .left { | |
| background-position: 0 -56px; | |
| } | |
| .button.h56:hover .right { | |
| background-position: right -56px; | |
| } | |
| .button.h56:active .left { | |
| background-position: 0 -112px; | |
| } | |
| .button.h56:active .right { | |
| background-position: right -112px; | |
| } | |
| .button.h56.disabled .left { | |
| background-position: 0 -168px !important; | |
| } | |
| .button.h56.disabled .right { | |
| background-position: right -168px !important; | |
| } | |
| .button.h23 { | |
| height: 23px; | |
| } | |
| .button.h23 .text { | |
| top: 3px; | |
| font-size: 12px; | |
| } | |
| .button.h23 .bg { | |
| background-image: url(buttons-23.png); | |
| } | |
| .button.h23 .left { | |
| background-position: 0 0; | |
| } | |
| .button.h23 .right { | |
| background-position: right top; | |
| } | |
| .button.h23:hover .left { | |
| background-position: 0 -23px; | |
| } | |
| .button.h23:hover .right { | |
| background-position: right -23px; | |
| } | |
| .button.h23:active .left { | |
| background-position: 0 -46px; | |
| } | |
| .button.h23:active .right { | |
| background-position: right -46px; | |
| } | |
| .button.h23.disabled .left { | |
| background-position: 0 -69px !important; | |
| } | |
| .button.h23.disabled .right { | |
| background-position: right -69px !important; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment