fix(app): user-select on desktop

This commit is contained in:
Manu Mtz.-Almeida
2018-07-29 14:48:05 +02:00
parent 1d001a3f29
commit 8a1ad1da2c
10 changed files with 15 additions and 4 deletions

View File

@ -35,6 +35,10 @@ ion-app,
display: none !important;
}
ion-app.is-device {
user-select: none;
}
// Misc
// --------------------------------------------------

View File

@ -20,11 +20,14 @@ export class App {
}
hostData() {
const device = this.config.getBoolean('isDevice', isDevice(this.win));
const hybrid = isHybrid(this.win);
const statusBar = this.config.getBoolean('statusbarPadding', hybrid);
return {
class: {
'is-device': device,
'is-hydrid': hybrid,
'statusbar-padding': statusBar
}
};

View File

@ -135,7 +135,6 @@
cursor: pointer;
opacity: var(--opacity);
overflow: var(--overflow);
user-select: none;
vertical-align: top; // the better option for most scenarios
vertical-align: -webkit-baseline-middle; // the best for those that support it
z-index: 0;

View File

@ -14,6 +14,8 @@
display: inline-block;
position: relative;
user-select: none;
}
:host(.checkbox-checked) .checkbox-icon {

View File

@ -62,7 +62,6 @@
contain: strict;
cursor: pointer;
overflow: hidden;
user-select: none;
z-index: 0;
font-kerning: none;
appearance: none;

View File

@ -12,6 +12,8 @@ ion-infinite-scroll-content {
min-height: $infinite-scroll-content-min-height;
text-align: center;
user-select: none;
}
.infinite-loading {

View File

@ -9,6 +9,8 @@
display: inline-block;
position: relative;
box-sizing: border-box;
user-select: none;
}
.radio-icon {

View File

@ -61,7 +61,6 @@
contain: content;
cursor: pointer;
overflow: hidden;
user-select: none;
font-kerning: none;
&:active,

View File

@ -9,6 +9,8 @@
width: 28px;
height: 28px;
user-select: none;
}
:host(.ion-color) {

View File

@ -38,7 +38,6 @@ body {
overflow: hidden;
touch-action: manipulation;
user-select: none;
-webkit-user-drag: none;