[Common] Disabled style for listview.
This commit is contained in:
parent
2cacfb9dca
commit
b74afc68e5
|
@ -473,6 +473,9 @@ define([
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.disabled)
|
||||||
|
this.setDisabled(this.disabled);
|
||||||
|
|
||||||
this.attachKeyEvents();
|
this.attachKeyEvents();
|
||||||
this.lastSelectedRec = null;
|
this.lastSelectedRec = null;
|
||||||
this._layoutParams = undefined;
|
this._layoutParams = undefined;
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px 0;
|
border-width: 1px 0;
|
||||||
border-top-color: #fafafa;
|
border-top-color: #fafafa;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(.disabled) > .item {
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: @secondary;
|
background-color: @secondary;
|
||||||
border-color: @secondary;
|
border-color: @secondary;
|
||||||
|
@ -48,4 +50,11 @@
|
||||||
&.ps-container {
|
&.ps-container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
> .item {
|
||||||
|
cursor: default;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue