Skip to content

Instantly share code, notes, and snippets.

@randombrad
Created April 13, 2021 04:53
Show Gist options
  • Save randombrad/7022ca1ba3d15353e7df591d143cb37e to your computer and use it in GitHub Desktop.
Save randombrad/7022ca1ba3d15353e7df591d143cb37e to your computer and use it in GitHub Desktop.
*{
box-sizing: border-box;
}
body {
background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
.clock {
display: block;
text-align: center;
font-size: 2em;
padding: 10px;
width: 100%;
font-family: monospace;
}
button {
border: 4px solid #226fbe;
border-radius: 15px;
color: #fff;
background: #226fbe;
transition: none;
position: relative;
margin-left: 11px;
margin-bottom: 10px;
font-family: inherit;
font-size: inherit;
color: inherit;
cursor: pointer;
padding: 10px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
outline: none;
position: relative;
text-align: center;
}
.close::after {
display: inline-block;
content: "\00d7"; /* This will render the 'X' */
}
.close:hover {
opacity: 1;
}
.close:before, .close:after {
position: absolute;
right: 15px;
top: 2px;
content: ' ';
height: 20px;
width: 2px;
background-color: #333;
}
.close:before {
transform: rotate(45deg);
}
.close:after {
transform: rotate(-45deg);
}
.close:hover {
cursor: pointer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment