This commit is contained in:
neko
2022-06-07 20:27:43 +03:00
parent 0e359b05e7
commit d7e7ef9471
17 changed files with 447 additions and 29 deletions

View File

@@ -0,0 +1,88 @@
@keyframes blink {
0% {
left: -130%;
}
100% {
left: 130%;
}
}
.default {
background: #003300;
color: #99ff99;
outline: none;
}
.red {
background: #dd3355;
}
.disabled {
color: #005500;
}
.button {
position: relative;
margin: 10px;
overflow: hidden;
cursor: pointer;
}
.button::after {
display: block;
content: '';
position: absolute;
left: -130%;
top: 0;
height: 100%;
width: 20%;
transform: skew(45deg);
background-color: #ffffff;
opacity: 0.7;
z-index: 14;
}
.button:hover::after {
animation: blink 0.35s ease; /*https://html5book.ru/css3-animation/*/
}
.button:hover::before {
display: block;
content: '';
position: absolute;
left: -100vw;
top: 0;
height: 100vh;
width: 300vw;
background-color: #ffffff;
opacity: 0.2;
z-index: 7;
}
.button:focus {
outline: #99ff99 solid 1px;
}
.button:active {
background: #99ff99;
color: #003300;
}
.button:disabled {
cursor: no-drop;
}
.button:disabled::after {
z-index: -1;
}
.button:disabled::before {
z-index: -1;
}