Using materialize css framework's button style
Created
May 6, 2020 10:47
-
-
Save tony-tripulca/38a0021d631bc185ee40200ec3ac6829 to your computer and use it in GitHub Desktop.
Materialize Button
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<title>Materialize Shadow</title> | |
</head> | |
<body> | |
<h1>Materialize Button Style</h1> | |
<p>Using materialize css framework's button style</p> | |
<button class="btn btn-material btn-blue">Button 1</button> | |
<button class="btn btn-material btn-red">Button 2</button> | |
<button class="btn btn-material btn-green">Button 3</button> | |
</body> | |
</html> |
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 { | |
margin-left: 20px; | |
} | |
.btn { | |
border: none; | |
} | |
.btn-material { | |
padding: 10px 20px; | |
border-radius: 0.15rem; | |
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), | |
0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); | |
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), | |
0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); | |
} | |
.btn-red { | |
background-color: red; | |
} | |
.btn-red:hover { | |
background-color: lightcoral; | |
} | |
.btn-red:focus { | |
outline: 0; | |
background-color: lightcoral; | |
} | |
.btn-blue { | |
background-color: blue; | |
} | |
.btn-blue:hover { | |
background-color: lightskyblue; | |
} | |
.btn-blue:focus { | |
outline: 0; | |
background-color: lightskyblue; | |
} | |
.btn-green { | |
background-color: green; | |
} | |
.btn-green:hover { | |
background-color: lightgreen; | |
} | |
.btn-green:focus { | |
outline: 0; | |
background-color: lightgreen; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment