1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-04-04 04:51:37 +02:00

Disable text selection on some elements

This commit is contained in:
Lim Chee Aun 2023-01-03 15:51:16 +08:00
parent 910120ecd7
commit a41655698f
2 changed files with 4 additions and 0 deletions

View file

@ -91,6 +91,7 @@ a.mention span {
align-items: center; align-items: center;
user-select: none; user-select: none;
transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out;
user-select: none;
} }
.deck header[hidden] { .deck header[hidden] {
transform: translateY(-100%); transform: translateY(-100%);
@ -354,6 +355,7 @@ a.mention span {
display: block; display: block;
text-decoration-line: none; text-decoration-line: none;
color: inherit; color: inherit;
user-select: none;
transition: background-color 0.2s ease-out; transition: background-color 0.2s ease-out;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
animation: appear 0.2s ease-out; animation: appear 0.2s ease-out;
@ -651,6 +653,7 @@ button.carousel-dot[disabled].active {
padding: 16px 16px 8px; padding: 16px 16px 8px;
padding-left: max(16px, env(safe-area-inset-left)); padding-left: max(16px, env(safe-area-inset-left));
padding-right: max(16px, env(safe-area-inset-right)); padding-right: max(16px, env(safe-area-inset-right));
user-select: none;
} }
.sheet main { .sheet main {
overflow: auto; overflow: auto;

View file

@ -123,6 +123,7 @@ button,
line-height: 1; line-height: 1;
vertical-align: middle; vertical-align: middle;
text-decoration: none; text-decoration: none;
user-select: none;
} }
:is(button, .button) > * { :is(button, .button) > * {
vertical-align: middle; vertical-align: middle;