[rtl] Make dropdown menu
This commit is contained in:
parent
9ecd26958a
commit
1fc88fb6c3
|
@ -325,4 +325,22 @@ body {
|
||||||
.ps-scrollbar-y {
|
.ps-scrollbar-y {
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-margins {
|
||||||
|
.margin-vertical {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 20px;
|
||||||
|
min-width: 80px;
|
||||||
|
.rtl & {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.margin-horizontal {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -80,6 +80,12 @@
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: -18px;
|
margin-left: -18px;
|
||||||
background-position: @menu-check-offset-x @menu-check-offset-y;
|
background-position: @menu-check-offset-x @menu-check-offset-y;
|
||||||
|
|
||||||
|
.rtl & {
|
||||||
|
float: right;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: -18px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.custom-scale:before {
|
&.custom-scale:before {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
|
@ -99,6 +105,11 @@
|
||||||
margin: -2px 5px 0 -15px;
|
margin: -2px 5px 0 -15px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
opacity: @component-normal-icon-opacity;
|
opacity: @component-normal-icon-opacity;
|
||||||
|
|
||||||
|
.rtl & {
|
||||||
|
float: right;
|
||||||
|
margin: -2px -15px 0 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-checkmark.checked {
|
.no-checkmark.checked {
|
||||||
|
@ -140,9 +151,16 @@
|
||||||
li {
|
li {
|
||||||
& > a {
|
& > a {
|
||||||
padding-left: 28px;
|
padding-left: 28px;
|
||||||
|
.rtl & {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 28px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.menu-item-icon {
|
.menu-item-icon {
|
||||||
margin: -2px 0 0 -24px;
|
margin: -2px 0 0 -24px;
|
||||||
|
.rtl & {
|
||||||
|
margin: -2px -24px 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.checked:not(.no-checkmark):before {
|
.checked:not(.no-checkmark):before {
|
||||||
margin-left: -22px;
|
margin-left: -22px;
|
||||||
|
|
|
@ -27,6 +27,16 @@
|
||||||
border-left-color: @icon-normal;
|
border-left-color: @icon-normal;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-right: -7px;
|
margin-right: -7px;
|
||||||
|
|
||||||
|
.rtl & {
|
||||||
|
float: left;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: -7px;
|
||||||
|
border-color: transparent;
|
||||||
|
border-width: 3px 3px 3px 0;
|
||||||
|
border-right-color: @icon-normal-ie;
|
||||||
|
border-right-color: @icon-normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.over:not(.disabled) > .dropdown-menu {
|
&.over:not(.disabled) > .dropdown-menu {
|
||||||
|
|
|
@ -1033,11 +1033,12 @@ define([
|
||||||
|
|
||||||
|
|
||||||
var pageMarginsTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><b><%= caption %></b></div>' +
|
var pageMarginsTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><b><%= caption %></b></div>' +
|
||||||
'<% if (options.value !== null) { %><div style="display: inline-block;margin-right: 20px;min-width: 80px;">' +
|
'<% if (options.value !== null) { %><div class="margin-vertical">' +
|
||||||
'<label style="display: block;">' + this.textTop + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[0]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label>' +
|
'<label>' + this.textTop + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[0]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label>' +
|
||||||
'<label style="display: block;">' + this.textLeft + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[1]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label></div><div style="display: inline-block;">' +
|
'<label>' + this.textLeft + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[1]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label></div>' +
|
||||||
'<label style="display: block;">' + this.textBottom + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[2]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label>' +
|
'<div class="margin-horizontal">' +
|
||||||
'<label style="display: block;">' + this.textRight + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[3]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label></div>' +
|
'<label>' + this.textBottom + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[2]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label>' +
|
||||||
|
'<label>' + this.textRight + '<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[3]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></label></div>' +
|
||||||
'<% } %></a>');
|
'<% } %></a>');
|
||||||
|
|
||||||
this.btnPageMargins = new Common.UI.Button({
|
this.btnPageMargins = new Common.UI.Button({
|
||||||
|
@ -1047,6 +1048,7 @@ define([
|
||||||
lock: [_set.docPropsLock, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart],
|
lock: [_set.docPropsLock, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart],
|
||||||
caption: me.capBtnMargins,
|
caption: me.capBtnMargins,
|
||||||
menu: new Common.UI.Menu({
|
menu: new Common.UI.Menu({
|
||||||
|
cls: 'menu-margins',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
caption: this.textMarginsLast,
|
caption: this.textMarginsLast,
|
||||||
|
|
Loading…
Reference in a new issue