Using after: utility classes to expand <a> to fill entire card.
This was a suggestion adapted from Gemini.
This commit is contained in:
parent
7c4476306e
commit
28982b1f81
2 changed files with 9 additions and 7 deletions
|
|
@ -403,12 +403,14 @@ dialog.scripture {
|
|||
#notes-list > ul > li {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
@apply flex rounded-xl bg-transparent p-2 hover:bg-gray-100 border-gray-200;
|
||||
@apply flex flex-col relative;
|
||||
@apply rounded-xl bg-transparent p-2 hover:bg-gray-100 border-gray-200;
|
||||
@apply focus-within:outline-2 focus-within:outline-offset-8 focus-within:outline-blue-500 focus-within:rounded-2xl;
|
||||
@apply dark:bg-transparent dark:text-gray-300 dark:border-gray-800 dark:hover:bg-gray-800;
|
||||
}
|
||||
|
||||
#notes-list > ul > li > a {
|
||||
@apply flex w-full flex-col;
|
||||
#notes-list > ul > li > hgroup > h2 > a {
|
||||
@apply after:absolute after:inset-0 group-hover:underline focus:outline-none;
|
||||
@apply focus-visible:outline-4 focus-visible:outline-offset-8 focus-visible:rounded-2xl;
|
||||
@apply focus-visible:outline-blue-500;
|
||||
}
|
||||
|
|
@ -418,7 +420,7 @@ dialog.scripture {
|
|||
@apply dark:shadow-gray-900;
|
||||
}
|
||||
|
||||
#notes-list ul > li > a > hgroup {
|
||||
#notes-list ul > li > hgroup {
|
||||
@apply grow p-4 transition-colors duration-500;
|
||||
h2 {
|
||||
@apply font-bold text-2xl inline-block;
|
||||
|
|
|
|||
Loading…
Reference in a new issue