Skip to content

Commit 6cd3788

Browse files
feat: Hover state for social links
1 parent c9da6b2 commit 6cd3788

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

assets/sass/imports/_vars.sass

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
@media (min-width: 1800px)
2121
@content
2222

23-
@mixin system-dark-mode
23+
@mixin dark-mode-only
2424
@media (prefers-color-scheme: dark)
2525
@content
26+
@at-root #{selector-nest(':root.dark-mode', &)}
27+
@content
2628

2729
//== Border radius
2830
$border-radius: 6px !default

pages/s/_id.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,19 +400,30 @@ export default class ScholarProfile extends Vue {
400400
margin-top: 20px
401401
402402
.social-icon
403-
margin-right: 12px
403+
margin-right: 4px
404+
width: 36px
405+
height: 36px
406+
padding: 4px
407+
border-radius: $border-radius
404408
color: $sch-purple
405-
width: 28px
406-
height: 28px
409+
background-color: $background-grouped-secondary-elevated
410+
transition: background-color 100ms linear, box-shadow 100ms linear
411+
412+
&:hover
413+
background-color: $background-grouped-tertiary-elevated
407414
408415
.social-discord
409416
padding-left: 12px
417+
margin-left: 8px
410418
color: $label-secondary
411419
border-left: 1px solid $separator-transparent
412420
413421
.social-icon
414422
margin-right: 5px
415423
424+
&:hover
425+
background-color: $background-grouped-secondary-elevated
426+
416427
&:first-of-type
417428
border-left: 0
418429

0 commit comments

Comments
 (0)