Skip to content

Commit 9987ab7

Browse files
committed
chore: Update style
1 parent 30a6611 commit 9987ab7

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/VueSkipTo.vue

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,23 @@ export default {
5252

5353
<style>
5454
.vue-skip-to {
55-
position: absolute;
56-
left: -10000px;
57-
top: 0;
58-
z-index: 1000;
59-
min-width: 1px;
60-
min-height: 1px;
55+
position: fixed;
56+
width: 1px;
57+
height: 1px;
58+
padding: 0;
59+
margin: -1px;
6160
overflow: hidden;
62-
padding: 8px 10px;
63-
color: #fff
61+
clip: rect(0, 0, 0, 0);
62+
white-space: nowrap;
63+
border-width: 0;
6464
}
6565
6666
.vue-skip-to:focus {
67-
background-color: #800000;
6867
left: 0;
68+
top: 0;
69+
clip: auto;
70+
height: auto;
71+
width: auto;
72+
padding: 8px 10px;
6973
}
7074
</style>

0 commit comments

Comments
 (0)