mirror of
https://github.com/zadam/trilium.git
synced 2025-12-20 22:34:23 +01:00
style/inline title: improve the note icon focus indicator
This commit is contained in:
parent
07dcdf3078
commit
5446d8a932
@ -7,6 +7,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.inline-title {
|
.inline-title {
|
||||||
|
margin-top: 2px; /* Allow space for the focus outline */
|
||||||
max-width: var(--max-content-width);
|
max-width: var(--max-content-width);
|
||||||
container-type: inline-size;
|
container-type: inline-size;
|
||||||
padding-inline-start: 24px;
|
padding-inline-start: 24px;
|
||||||
|
|||||||
@ -81,11 +81,15 @@ body.experimental-feature-new-layout {
|
|||||||
--note-icon-button-color: white;
|
--note-icon-button-color: white;
|
||||||
|
|
||||||
.note-icon-widget button.note-icon {
|
.note-icon-widget button.note-icon {
|
||||||
|
--input-focus-outline-color: var(--note-icon-button-hover-background-color);
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
outline-offset: 4px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
|
|
||||||
|
&, &:hover {
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
/* The icon */
|
/* The icon */
|
||||||
&::before {
|
&::before {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -102,9 +106,8 @@ body.experimental-feature-new-layout {
|
|||||||
background: var(--note-icon-button-background-color);
|
background: var(--note-icon-button-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover::after {
|
&:focus-visible {
|
||||||
background: var(--note-icon-button-hover-background-color);
|
outline: 2px solid var(--note-icon-button-color);
|
||||||
transition: background 200ms ease-out;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,7 +35,6 @@ body.mobile .note-title-widget input.note-title {
|
|||||||
|
|
||||||
body.experimental-feature-new-layout {
|
body.experimental-feature-new-layout {
|
||||||
.title-row {
|
.title-row {
|
||||||
|
|
||||||
container-type: size;
|
container-type: size;
|
||||||
border-bottom: 1px solid var(--main-border-color);
|
border-bottom: 1px solid var(--main-border-color);
|
||||||
transition: border 400ms ease-out;
|
transition: border 400ms ease-out;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user