|
|
|
|
|
by adamwathan
1656 days ago
|
|
It's fewer than half as many characters as writing the same thing in CSS: .btn {
display: inline-flex;
justify-content: center;
padding: 8px 16px;
border: 1px solid transparent;
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
font-size: 14px;
border-radius: 6px;
color: #fff;
background-color: rgb(79 70 229);
}
.btn:hover {
background-color: rgb(67 56 202);
outline: 2px dotted transparent;
outline-offset: 2px;
box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(99 102 241), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
|
|