Style the selected state

This commit is contained in:
Andy Smith
2025-06-19 14:22:37 -05:00
parent 123b7de089
commit c9db74bb6f
2 changed files with 34 additions and 24 deletions
@@ -183,8 +183,4 @@
margin: 0;
}
}
.attachment--custom.node--selected {
box-shadow: 0 0 0 var(--hover-size) var(--hover-color);
}
}
+34 -20
View File
@@ -329,30 +329,44 @@
}
}
}
}
/* Debug styles by Jorge */
/* Custom attachments such as mentions, etc. */
.attachment--custom {
display: inline;
padding: 0;
margin: 0;
white-space: normal;
}
/* Custom attachments such as mentions, etc. */
.attachment--custom {
display: inline;
padding: 0;
margin: 0;
white-space: normal;
}
.attachment--custom,
action-text-attachment {
--attachment-image-size: 1em;
.attachment--custom,
action-text-attachment {
--attachment-image-size: 1em;
--attachment-selected-color: oklch(var(--lch-blue-dark));
align-items: center;
display: inline-flex;
gap: 0.25ch;
vertical-align: bottom;
align-items: center;
display: inline-flex;
gap: 0.25ch;
position: relative;
vertical-align: bottom;
img {
block-size: var(--attachment-image-size);
border-radius: 50%;
inline-size: var(--attachment-image-size);
lexical-editor & {
cursor: pointer;
}
img {
block-size: var(--attachment-image-size);
border-radius: 50%;
inline-size: var(--attachment-image-size);
}
&.node--selected {
background: var(--attachment-selected-color);
box-shadow:
-0.25ch 0 0 var(--attachment-selected-color),
0.5ch 0 0 var(--attachment-selected-color);
border-radius: 99rem;
color: var(--color-ink-inverted);
}
}
}
}