Skip to content

Instantly share code, notes, and snippets.

@susantokun
Created April 30, 2020 20:59
Show Gist options
  • Save susantokun/6e12ad77ff244f2ef9a4dc5dab4b68a4 to your computer and use it in GitHub Desktop.
Save susantokun/6e12ad77ff244f2ef9a4dc5dab4b68a4 to your computer and use it in GitHub Desktop.
Tombol Download dan Demo Keren
<!-- before </head> -->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" />
<style type="text/css">
.buttondownload {
float: left;
list-style: none;
text-align: center;
width: 95%;
margin: 10px;
padding: 2px;
font-size: 16px;
clear: both
}
.buttondownload a {
position: relative;
padding: 9px 48px 9px 16px;
background: #3498db;
color: #fff !important;
font-weight: 700;
font-size: 14px;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.5px;
border-radius: 0px;
box-shadow: 0 1px rgba(0, 0, 0, 0.1);
line-height: normal;
transition: all .3s
}
.buttondownload a:before {
content: "\f019";
background: rgba(0, 0, 0, 0.1);
position: absolute;
right: 0;
top: 0;
font-weight: normal;
display: inline-block;
margin: 0 0 0 10px;
color: #fff;
padding: 11px;
font-family: "fontawesome";
}
.buttondownload a:hover {
background: #5C5C5C
}
.buttondownload:active {
cursor: pointer
}
.buttondemo {
float: left;
list-style: none;
text-align: center;
width: 95%;
margin: 10px;
padding: 2px;
font-size: 16px;
clear: both
}
.buttondemo a {
position: relative;
padding: 9px 48px 9px 16px;
background: #E55E48;
color: #fff !important;
font-weight: 700;
font-size: 14px;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.5px;
border-radius: 0px;
box-shadow: 0 1px rgba(0, 0, 0, 0.1);
line-height: normal;
transition: all .3s
}
.buttondemo a:before {
content: "\f135";
background: rgba(0, 0, 0, 0.1);
position: absolute;
right: 0;
top: 0;
font-weight: normal;
display: inline-block;
margin: 0 0 0 10px;
color: #ffffff;
padding: 11px;
font-family: "fontawesome";
}
.buttondemo a:hover {
background: #666
}
.buttondemo:active {
cursor: pointer
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment