Skip to content

Commit a316829

Browse files
committed
Update style of navbar logo
1 parent 37b1403 commit a316829

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/assets/mixins.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
text-shadow: 0 0 $size black, 0 0 $size black, 0 0 $size black, 0 0 $size black;
99
}
1010

11-
@mixin focus-visible {
11+
@mixin focus-visible($additionalShadow: null) {
12+
outline: none;
1213
&:not([disabled])[data-focus-visible-added] {
1314
box-shadow: 0px 0px 0px 1px var(--white-faded);
1415
}

src/components/AppSidebar.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ const store = useStore()
1212
<nav class="nav">
1313
<div class="upper">
1414
<img
15+
class="nav-logo"
1516
role="button"
17+
tabindex="0"
1618
width="30"
1719
height="30"
1820
title="Go to Gitification repository"
@@ -79,4 +81,16 @@ const store = useStore()
7981
margin-top: auto;
8082
}
8183
}
84+
85+
.nav-logo {
86+
opacity: .8;
87+
@include focus-visible;
88+
border:1px solid black;
89+
border-radius: 50%;
90+
91+
&:hover,
92+
&:active {
93+
opacity: 1;
94+
}
95+
}
8296
</style>

0 commit comments

Comments
 (0)