I really liked the buttons on this behance post, so I wanted to try and make some for my site. They are wicked cool.
Created
August 23, 2021 04:30
-
-
Save vineeth-pappu/ab12fa35bc860bd45c453e01c028cb10 to your computer and use it in GitHub Desktop.
Half Fuller Buttons
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
| .flex-grid-center | |
| .pure-button.fuller-button.blue ACCEPT | |
| .pure-button.fuller-button.red REFUSE | |
| .pure-button.fuller-button.white MORE INFO | |
| //form.pure-form | |
| .pure-control-group.pure-u-1 | |
| label(for="name") NAME | |
| input.form-control#form-name(name="name" type="text") |
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
| @import url(https://fonts.googleapis.com/css?family=Roboto); | |
| // Not using brand font, Roboto is close enough to simulate. | |
| body { | |
| background-color: #333; | |
| color: #fff; | |
| font-family: 'Roboto', Arial; | |
| padding: 10em; | |
| } | |
| .flex-grid-center { | |
| display: flex; | |
| justify-content: center; | |
| margin: 5em 0; | |
| } | |
| .fuller-button { | |
| color: rgba(255,255,255,1); | |
| background: none; | |
| border-radius: 0; | |
| padding: 1.2em 5em; | |
| letter-spacing: 0.35em; | |
| font-size: 0.7em; | |
| transition: background-color 0.3s, box-shadow 0.3s, color 0.3s; | |
| margin: 1em; | |
| &.blue { | |
| box-shadow: inset 0 0 1em rgba(0,170,170,0.5), 0 0 1em rgba(0,170,170,0.5); | |
| border: #0dd solid 2px; | |
| } | |
| &.blue:hover { | |
| background-color: #0dd; | |
| box-shadow: inset 0 0 0 rgba(0,170,170,0.5), 0 0 1.5em rgba(0,170,170,0.7); | |
| } | |
| &.red { | |
| box-shadow: inset 0 0 1em rgba(251,81,81,0.4), 0 0 1em rgba(251,81,81,0.4); | |
| border: #fb5454 solid 2px; | |
| } | |
| &.red:hover { | |
| background-color: #fb5454; | |
| box-shadow: inset 0 0 0 rgba(251,81,81,0.4), 0 0 1.5em rgba(251,81,81,0.6); | |
| } | |
| &.white { | |
| box-shadow: inset 0 0 0.8em rgba(255,255,255,0.3), 0 0 0.8em rgba(255,255,255,0.3); | |
| border: #fff solid 2px; | |
| } | |
| &.white:hover { | |
| color: rgba(0,0,0,0.8); | |
| background-color: #fff; | |
| box-shadow: inset 0 0 0 rgba(255,255,255,0.3), 0 0 1.2em rgba(255,255,255,0.5); | |
| } | |
| } | |
| /////// Below is not in scss yet. Yet. - work in progress | |
| .pure-control-group { | |
| display: -webkit-box; | |
| display: -webkit-flex; | |
| display: -ms-flexbox; | |
| display: flex; | |
| -webkit-box-orient: vertical; | |
| -webkit-box-direction: normal; | |
| -webkit-flex-direction: column; | |
| -ms-flex-direction: column; | |
| flex-direction: column; | |
| position: relative; | |
| padding: 0 1em 2.6em 1em; } | |
| .pure-form .pure-control-group label { | |
| text-align: left; | |
| position: absolute; | |
| left: 0; | |
| top: 15%; | |
| z-index: 0; | |
| letter-spacing: 0; | |
| margin: 0 1em; } | |
| .pure-form .pure-control-group input { | |
| background: none; | |
| box-shadow: none; | |
| padding-left: 0; | |
| border-radius: 0; | |
| border: none; | |
| border-bottom: 2px solid rgba(255, 255, 255, 0.4); | |
| position: relative; | |
| z-index: 1; | |
| color: #fff; } | |
| .pure-form .pure-control-group input:focus { | |
| border-bottom: 2px solid white; } | |
| .pure-form .pure-control-group textarea { | |
| background: none; | |
| box-shadow: none; | |
| border-radius: 0; | |
| border: none; | |
| border-left: 2px solid rgba(255, 255, 255, 0.4); | |
| resize: none; | |
| height: 8em; | |
| color: #fff; } | |
| .pure-form .pure-control-group textarea:focus { | |
| border-left: 2px solid white; } | |
| .pure-form .pure-control-group input[type=email]:focus:invalid { | |
| color: #fff; } | |
| .pure-form .pure-control-group input[type=email]:invalid { | |
| color: #fb5454; } | |
| .pure-form button { | |
| margin: 0.5em 1em; } |
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
| <link href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment