43 lines
775 B
CSS
43 lines
775 B
CSS
html body {
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#btn-1, #btn-2 {
|
|
margin: 10vh;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#btn-1 {
|
|
background-color: palegoldenrod;
|
|
box-shadow: 2px 2px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#btn-1:hover {
|
|
translate: -2px -2px;
|
|
box-shadow: 4px 4px;
|
|
}
|
|
|
|
#btn-2 {
|
|
background-color: purple;
|
|
color: white;
|
|
-webkit-box-shadow: 0 0 10px #111;
|
|
box-shadow: 0 0 10px #111;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#btn-2:hover {
|
|
-webkit-box-shadow: 0 0 0px #111;
|
|
box-shadow: 0 0 0px #111;
|
|
margin: calc(10vh + 4px) calc(10vh + 4px);
|
|
padding: calc(20px - 4px) calc(20px - 4px);
|
|
} |