Skip to content

Commit 815712e

Browse files
committed
style: add transition in outline
1 parent 648779d commit 815712e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Diff for: styles/index.styl

+10-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ html, body, .navbar, .sidebar, .links, .sidebar-link, .nav-link
6161
background-color: var(--bg)
6262
color: var(--color)
6363

64-
:focus
65-
outline: 2px solid var(--outline-color)
66-
outline-offset: 3px
67-
6864
a, .edit-link > a
6965
color: var(--text-color-link)
7066

@@ -83,3 +79,13 @@ h2
8379
.page code
8480
background-color: var(--bg-code)
8581
color: var(--text-color-code)
82+
83+
// outline
84+
[tabindex]:not([tabindex="-1"]), a, button, input, select, textarea
85+
outline: 2px solid transparent
86+
outline-offset: 6px
87+
transition: outline-offset .1s ease
88+
89+
:focus
90+
outline-color: var(--outline-color)
91+
outline-offset: 3px

0 commit comments

Comments
 (0)