Skip to content

Commit a6b8bf5

Browse files
authored
fix: polish blog share button styles
1 parent 8d26765 commit a6b8bf5

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

src/components/SocialShare/SocialShare.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.blog-post-share-section {
2+
--share-btn-shadow: rgba(15, 23, 42, 0.06);
3+
--share-btn-shadow-hover: rgba(15, 23, 42, 0.1);
24
margin-top: 2rem;
35
padding-top: 1.5rem;
46
border-top: 1px solid var(--ifm-color-emphasis-300);
@@ -26,7 +28,6 @@
2628
height: 3.25rem;
2729
border-radius: 999px;
2830
border: 1px solid var(--ifm-color-emphasis-300);
29-
border: 1px solid color-mix(in srgb, var(--ifm-color-primary) 18%, var(--ifm-color-emphasis-300));
3031
background: var(--ifm-background-surface-color);
3132
color: var(--ifm-font-color-base) !important;
3233
text-decoration: none !important;
@@ -35,7 +36,7 @@
3536
box-shadow 0.2s ease,
3637
border-color 0.2s ease,
3738
color 0.2s ease;
38-
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
39+
box-shadow: 0 12px 30px var(--share-btn-shadow);
3940
cursor: pointer;
4041
}
4142

@@ -46,7 +47,7 @@
4647

4748
.share-btn-circle:hover {
4849
transform: translateY(-2px);
49-
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
50+
box-shadow: 0 18px 36px var(--share-btn-shadow-hover);
5051
text-decoration: none;
5152
}
5253

@@ -81,6 +82,16 @@
8182
color: var(--ifm-color-danger) !important;
8283
}
8384

85+
@supports (color: color-mix(in srgb, white 50%, black)) {
86+
.share-btn-circle {
87+
border-color: color-mix(
88+
in srgb,
89+
var(--ifm-color-primary) 18%,
90+
var(--ifm-color-emphasis-300)
91+
);
92+
}
93+
}
94+
8495
@media (max-width: 576px) {
8596
.share-buttons-row {
8697
gap: 0.75rem;

0 commit comments

Comments
 (0)