yesno-dialog
Version:
Javascript yes no dialog
45 lines • 801 B
CSS
html, body {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
color: #424242;
}
.example {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #eceff1;
font-size: 30px;
}
.example img {
display: none;
width: 20rem;
height: 20rem;
border-radius: 100%;
overflow: hidden;
}
.example--showCat img {
display: block;
}
.example--showCat .example__button {
display: none;
}
.example__button {
cursor: pointer;
padding: .55em .8em;
border-radius: .3em;
margin-left: .4em;
outline: none;
font-size: .8em;
background-color: #fff;
color: #1976d2;
border: 1px solid #ccc;
}
.example__button:hover {
background-color: #fafafa;
}
.example__button:active {
background-color: #f5f5f5;
}