Skip to content

Instantly share code, notes, and snippets.

@texxs
Last active July 5, 2019 02:33
Show Gist options
  • Save texxs/dd65fbba2bf11d8a6a9abe6102824f0c to your computer and use it in GitHub Desktop.
Save texxs/dd65fbba2bf11d8a6a9abe6102824f0c to your computer and use it in GitHub Desktop.
CSS Ghost Button by Texx
.ghost-button {
display: inline-block;
width: 200px; /* replace with left and right padding for bigger buttons */
padding: 8px;
color: #fff;
border: 2px solid #fff;
text-align: center;
outline: none;
text-decoration: none;
font-weight:bold;
}
.dark-ghost-button {
display: inline-block;
width: 200px; /* replace with left and right padding for bigger buttons */
padding: 8px;
color: #111 !important;
border: 2px solid #111;
text-align: center;
outline: none;
text-decoration: none;
font-weight:bold;
}
.ghost-button:hover,
.ghost-button:active {
background-color: #fff;
color: #111;
}
.dark-ghost-button a:link {
color:#111 !important;
}
.dark-ghost-button:hover,
.dark-ghost-button:active {
background-color: #111;
color: #fff !important;
}
@texxs
Copy link
Author

texxs commented Jul 2, 2019

Both the light and the dark version are included here.

@texxs
Copy link
Author

texxs commented Jul 3, 2019

Revised by changing the color of the border and text on ghost-button. It looked good for its original purpose, elsewhere the text was hard to read.

@texxs
Copy link
Author

texxs commented Jul 5, 2019

hmmm, why can't I edit this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment