Skip to content

Commit

Permalink
Create btn.css
Browse files Browse the repository at this point in the history
  • Loading branch information
rickcomics authored Oct 26, 2024
1 parent 95197b8 commit c0caff9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions btn.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.styled {
border: 0;
line-height: 2.5;
padding: 0 20px;
font-size: 1rem;
text-align: center;
color: #fff;
text-shadow: 1px 1px 1px #000;
border-radius: 10px;
background-color: rgba(220, 0, 0, 1);
background-image: linear-gradient(
to top left,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0.2) 30%,
rgba(0, 0, 0, 0)
);
box-shadow:
inset 2px 2px 3px rgba(255, 255, 255, 0.6),
inset -2px -2px 3px rgba(0, 0, 0, 0.6);
}

.styled:hover {
background-color: rgba(255, 0, 0, 1);
}

.styled:active {
box-shadow:
inset -2px -2px 3px rgba(255, 255, 255, 0.6),
inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}

0 comments on commit c0caff9

Please sign in to comment.