feat: set -webkit-tap-highlight-color to transparent

This commit is contained in:
07akioni 2021-08-07 14:32:46 +08:00
parent 489a5b664e
commit 56edac00be
2 changed files with 5 additions and 1 deletions

View File

@ -7,12 +7,17 @@ import commonVariables from '../common/_common'
// //
// Technically we can remove font-size & font-family & line-height to make // Technically we can remove font-size & font-family & line-height to make
// it pure. However the coding cost doesn't worth it. // it pure. However the coding cost doesn't worth it.
//
// -webkit-tap-hilight-color:
// https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
// In some android devices, there will be the style.
export default c('body', ` export default c('body', `
margin: 0; margin: 0;
font-size: ${commonVariables.fontSize}; font-size: ${commonVariables.fontSize};
font-family: ${commonVariables.fontFamily}; font-family: ${commonVariables.fontFamily};
line-height: ${commonVariables.lineHeight}; line-height: ${commonVariables.lineHeight};
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
`, [ `, [
c('input', ` c('input', `
font-family: inherit; font-family: inherit;

View File

@ -33,7 +33,6 @@ export default c([
box-sizing: border-box; box-sizing: border-box;
font-size: var(--font-size); font-size: var(--font-size);
padding-bottom: 6px; padding-bottom: 6px;
-webkit-tap-highlight-color: transparent;
`, [ `, [
cM('horizontal', { cM('horizontal', {
display: 'inline-flex', display: 'inline-flex',