set -webkit-touch-callout (#9447)

This commit is contained in:
tamaina 2023-01-16 03:38:16 +09:00 committed by GitHub
parent 9f0dfb5517
commit 7e5f3dbf11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -14,7 +14,7 @@
<span v-if="pathname != ''" :class="$style.pathname">{{ self ? pathname.substring(1) : pathname }}</span> <span v-if="pathname != ''" :class="$style.pathname">{{ self ? pathname.substring(1) : pathname }}</span>
<span :class="$style.query">{{ query }}</span> <span :class="$style.query">{{ query }}</span>
<span :class="$style.hash">{{ hash }}</span> <span :class="$style.hash">{{ hash }}</span>
<i v-if="target === '_blank'" class="ti ti-external-link icon"></i> <i v-if="target === '_blank'" :class="$style.icon" class="ti ti-external-link"></i>
</component> </component>
</template> </template>

View file

@ -98,10 +98,15 @@ a {
color: inherit; color: inherit;
tap-highlight-color: transparent; tap-highlight-color: transparent;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
&[target="_blank"] {
-webkit-touch-callout: default;
}
} }
textarea, input { textarea, input {