mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 10:26:13 -04:00
Enabled multiline tooltips, and disabled dotted lines for tooltips when child elements contain links of form elements.
This commit is contained in:
parent
68a9fb92ee
commit
fdf5c83210
241 changed files with 514 additions and 480 deletions
|
@ -3346,13 +3346,13 @@ body:has(dialog[open]) {
|
|||
.pico [data-tooltip] {
|
||||
position: relative;
|
||||
}
|
||||
.pico [data-tooltip]:not(a, button, input, [role=button]) {
|
||||
.pico [data-tooltip]:not(:has(a, button, input, [role=button])):not(a, button, input, [role=button]) {
|
||||
border-bottom: 1px dotted;
|
||||
text-decoration: none;
|
||||
cursor: help;
|
||||
}
|
||||
.pico [data-tooltip][data-placement=top]::before, .pico [data-tooltip][data-placement=top]::after, .pico [data-tooltip]::before, .pico [data-tooltip]::after {
|
||||
display: block;
|
||||
display: inline-block;
|
||||
z-index: 99;
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
|
@ -3369,7 +3369,7 @@ body:has(dialog[open]) {
|
|||
font-size: 0.875rem;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
white-space: pre;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue