[SSE] Fix up/down buttons in sort dialog
This commit is contained in:
parent
01da19cf26
commit
bb36f6055f
|
@ -111,6 +111,52 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
&.caret-up, &.caret-down {
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 6px;
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
background-color: transparent;
|
||||||
|
border: solid 1px @gray-deep;
|
||||||
|
border-bottom: none;
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.caret-up {
|
||||||
|
&::after {
|
||||||
|
top: 8px;
|
||||||
|
-moz-transform: rotate(45deg);
|
||||||
|
-ms-transform: rotate(45deg);
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
-o-transform: rotate(45deg);
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.caret-down {
|
||||||
|
&::after {
|
||||||
|
top: 4px;
|
||||||
|
-moz-transform: rotate(225deg);
|
||||||
|
-ms-transform: rotate(225deg);
|
||||||
|
-webkit-transform: rotate(225deg);
|
||||||
|
-o-transform: rotate(225deg);
|
||||||
|
transform: rotate(225deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active:not(.disabled),
|
||||||
|
&.active:not(.disabled) {
|
||||||
|
.caret-up, .caret-down {
|
||||||
|
&::after {
|
||||||
|
border-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.icon-top, .btn-group.icon-top {
|
.btn.icon-top, .btn-group.icon-top {
|
||||||
|
|
|
@ -162,7 +162,7 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
|
||||||
|
|
||||||
this.btnUp = new Common.UI.Button({
|
this.btnUp = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'btn-incfont',
|
iconCls: 'caret-up',
|
||||||
hint: this.textUp
|
hint: this.textUp
|
||||||
});
|
});
|
||||||
this.btnUp.render($('#sort-dialog-btn-up')) ;
|
this.btnUp.render($('#sort-dialog-btn-up')) ;
|
||||||
|
@ -170,7 +170,7 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
|
||||||
|
|
||||||
this.btnDown = new Common.UI.Button({
|
this.btnDown = new Common.UI.Button({
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'btn-decfont',
|
iconCls: 'caret-down',
|
||||||
hint: this.textDown
|
hint: this.textDown
|
||||||
});
|
});
|
||||||
this.btnDown.render($('#sort-dialog-btn-down')) ;
|
this.btnDown.render($('#sort-dialog-btn-down')) ;
|
||||||
|
|
Loading…
Reference in a new issue