feat: improve focus styles

This commit is contained in:
Baptiste Grob
2021-01-22 12:56:11 +01:00
parent 611ca2fd13
commit 5f02540668
4 changed files with 21 additions and 7 deletions

View File

@@ -64,6 +64,9 @@ $heading-height: 75px;
&:disabled { &:disabled {
color: var(--sn-stylekit-editor-foreground-color); color: var(--sn-stylekit-editor-foreground-color);
} }
&:focus {
box-shadow: none;
}
} }
} }
@@ -117,6 +120,7 @@ $heading-height: 75px;
&:focus { &:focus {
outline: 0; outline: 0;
box-shadow: none;
} }
} }
} }
@@ -182,3 +186,7 @@ $heading-height: 75px;
} }
} }
} }
#note-text-editor:focus {
box-shadow: none;
}

View File

@@ -67,12 +67,6 @@
border-color: transparent; border-color: transparent;
width: 100%; width: 100%;
position: relative; position: relative;
&:focus {
outline: 0;
border-color: var(--sn-stylekit-info-color);
border-width: 1px;
}
} }
#search-clear-button { #search-clear-button {

View File

@@ -49,6 +49,7 @@
.sk-panel { .sk-panel {
.sk-panel-header { .sk-panel-header {
.close-button { .close-button {
border-radius: var(--sn-stylekit-general-border-radius);
&:hover { &:hover {
text-decoration: none; text-decoration: none;
} }
@@ -88,5 +89,15 @@ button.sk-a {
} }
*:focus { *: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);
} }

View File

@@ -91,6 +91,7 @@
&:focus { &:focus {
outline: 0; outline: 0;
box-shadow: 0;
} }
pointer-events: none; pointer-events: none;