mirror of
https://github.com/penpot/penpot.git
synced 2026-05-28 03:13:40 +00:00
Merge pull request #8312 from penpot/elenatorro-13256-sync-text-selection
🔧 Hide text color from selected text
This commit is contained in:
commit
a2f7ae549e
@ -29,6 +29,23 @@
|
|||||||
|
|
||||||
color: transparent;
|
color: transparent;
|
||||||
|
|
||||||
|
// Match Skia's text layout precision: prevent browser text-size
|
||||||
|
// adjustments and ensure consistent kerning across browsers.
|
||||||
|
text-size-adjust: none;
|
||||||
|
-webkit-text-size-adjust: none;
|
||||||
|
font-kerning: normal;
|
||||||
|
|
||||||
|
&::selection,
|
||||||
|
*::selection {
|
||||||
|
color: transparent;
|
||||||
|
-webkit-text-fill-color: transparent; // WebKit/Safari
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-selection,
|
||||||
|
*::-moz-selection {
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
[data-itype="paragraph"] {
|
[data-itype="paragraph"] {
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user