Skip to content

Commit

Permalink
feat: improve focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Jan 22, 2021
1 parent 611ca2f commit 5f02540
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ $heading-height: 75px;
&:disabled {
color: var(--sn-stylekit-editor-foreground-color);
}
&:focus {
box-shadow: none;
}
}
}

Expand Down Expand Up @@ -117,6 +120,7 @@ $heading-height: 75px;

&:focus {
outline: 0;
box-shadow: none;
}
}
}
Expand Down Expand Up @@ -182,3 +186,7 @@ $heading-height: 75px;
}
}
}

#note-text-editor:focus {
box-shadow: none;
}
6 changes: 0 additions & 6 deletions app/assets/stylesheets/_notes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@
border-color: transparent;
width: 100%;
position: relative;

&:focus {
outline: 0;
border-color: var(--sn-stylekit-info-color);
border-width: 1px;
}
}

#search-clear-button {
Expand Down
13 changes: 12 additions & 1 deletion app/assets/stylesheets/_stylekit-sub.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
.sk-panel {
.sk-panel-header {
.close-button {
border-radius: var(--sn-stylekit-general-border-radius);
&:hover {
text-decoration: none;
}
Expand Down Expand Up @@ -88,5 +89,15 @@ button.sk-a {
}

*:focus {
outline: solid var(--sn-stylekit-info-color) 2px;
outline: none;
box-shadow: 0 0 0 2px var(--sn-stylekit-info-color);
}

input:focus {
box-shadow: 0 0 0 1px var(--sn-stylekit-info-color);
}

.sk-button:focus, button:focus {
box-shadow: 0 0 0 2px var(--sn-stylekit-background-color),
0 0 0 4px var(--sn-stylekit-info-color);
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@

&:focus {
outline: 0;
box-shadow: 0;
}

pointer-events: none;
Expand Down

0 comments on commit 5f02540

Please sign in to comment.