Skip to content

Commit e0e26a1

Browse files
committed
style: refine social share button hover states
1 parent 0d05251 commit e0e26a1

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

src/presentation/components/page-header/SocialMedia.vue

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export default {
8686
8787
.inner {
8888
position: absolute;
89-
top: 7px;
90-
left: 14px;
89+
top: 8px;
90+
left: 16px;
9191
}
9292
}
9393
@@ -97,7 +97,7 @@ export default {
9797
justify-content: center;
9898
width: 44px;
9999
height: 18px;
100-
border: 1px solid #999;
100+
border: 0;
101101
border-radius: 999px;
102102
color: #fff;
103103
font-family: Arial, Verdana, sans-serif;
@@ -107,17 +107,35 @@ export default {
107107
line-height: 1;
108108
text-decoration: none;
109109
text-transform: none;
110+
transition: background-color 120ms ease;
111+
}
112+
113+
.share-button:focus-visible {
114+
outline: 1px dotted #111;
115+
outline-offset: 2px;
110116
}
111117
112118
.share-button--x {
113119
background: #111;
114120
}
115121
122+
.share-button--x:hover {
123+
background: #2b2b2b;
124+
}
125+
116126
.share-button--linkedin {
117127
background: #0a66c2;
118128
}
119129
130+
.share-button--linkedin:hover {
131+
background: #0d76de;
132+
}
133+
120134
.share-button--facebook {
121135
background: #1877f2;
122136
}
137+
138+
.share-button--facebook:hover {
139+
background: #2d86f3;
140+
}
123141
</style>

0 commit comments

Comments
 (0)