mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-28 01:39:29 +08:00
refactor: use a button element instead of a class
This commit is contained in:
parent
a4efbdd714
commit
abe8383591
2 changed files with 11 additions and 8 deletions
|
|
@ -108,13 +108,13 @@
|
|||
width: 2rem;
|
||||
display: grid;
|
||||
|
||||
.button:first-child {
|
||||
button:first-child {
|
||||
border-top-right-radius: var(--roundness);
|
||||
}
|
||||
.button:last-child {
|
||||
button:last-child {
|
||||
border-bottom-right-radius: var(--roundness);
|
||||
}
|
||||
.button {
|
||||
button {
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
display: grid;
|
||||
|
|
@ -479,6 +479,9 @@
|
|||
.socials {
|
||||
.value {
|
||||
margin-top: 0.05rem;
|
||||
.textButton {
|
||||
padding: 0.1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
.title {
|
||||
|
|
|
|||
|
|
@ -83,22 +83,22 @@
|
|||
<div class="value">-</div>
|
||||
</div>
|
||||
<div class="buttonGroup">
|
||||
<div
|
||||
class="editProfileButton button"
|
||||
<button
|
||||
class="editProfileButton"
|
||||
data-balloon-pos="left"
|
||||
aria-label="Edit profile"
|
||||
role="button"
|
||||
>
|
||||
<i class="fas fa-pen"></i>
|
||||
</div>
|
||||
<div
|
||||
</button>
|
||||
<button
|
||||
class="copyLink button"
|
||||
data-balloon-pos="left"
|
||||
aria-label="Copy public link"
|
||||
role="button"
|
||||
>
|
||||
<i class="fas fa-link"></i>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="leaderboardsPositions">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue