2016-03-11 00:48:53 +00:00
|
|
|
*, *:before, *:after {
|
|
|
|
-moz-user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
|
|
|
|
background: @color;
|
|
|
|
background: -webkit-gradient(linear, left bottom,left top, color-stop(0, @start), color-stop(1, @stop));
|
|
|
|
background: -moz-linear-gradient(center bottom, @start 0%, @stop 100%);
|
|
|
|
background: -o-linear-gradient(@stop, @start);
|
|
|
|
background: linear-gradient(bottom, @start, @stop);
|
|
|
|
// filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop, @start));
|
|
|
|
}
|
|
|
|
|
|
|
|
.box-shadow(@arguments) {
|
|
|
|
-webkit-box-shadow: @arguments;
|
|
|
|
//-moz-box-shadow: @arguments;
|
|
|
|
box-shadow: @arguments;
|
|
|
|
}
|
|
|
|
|
|
|
|
.box-inner-shadow(@arguments) {
|
|
|
|
-webkit-box-shadow: inset @arguments;
|
|
|
|
//-moz-box-shadow: inset @arguments;
|
|
|
|
box-shadow: inset @arguments;
|
|
|
|
}
|
|
|
|
|
|
|
|
.border-radius(@radius: 2px) {
|
|
|
|
border-radius: @radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
.position(@type: absolute, @left: 0, @top: 0, @right: 0, @bottom: 0) {
|
|
|
|
position: @type;
|
|
|
|
left: @left;
|
|
|
|
top: @top;
|
|
|
|
right: @right;
|
|
|
|
bottom: @bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fontsize(@value) {
|
|
|
|
font-size: @value;
|
|
|
|
}
|
|
|
|
|
|
|
|
// User select
|
|
|
|
.user-select(@select: none) {
|
|
|
|
-webkit-user-select: @select;
|
|
|
|
-moz-user-select: @select;
|
|
|
|
-ms-user-select: @select;
|
|
|
|
// -o-user-select: @select;
|
|
|
|
user-select: @select;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-btn-icon(@icon-class, @index, @icon-size, @offset-x: 0, @offset-y: 0) {
|
|
|
|
.@{icon-class} {background-position: 0 -(@index * @icon-size - @offset-y);}
|
|
|
|
.btn.active > .@{icon-class},
|
|
|
|
.btn:active > .@{icon-class} {background-position: (-1 * @icon-size - @offset-x) -(@index * @icon-size - @offset-y);}
|
|
|
|
.btn.disabled > .@{icon-class} {background-position: (-2 * @icon-size - @offset-x) -(@index * @icon-size - @offset-y);}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-group-btn-icon(@icon-class, @index, @icon-size, @offset-x: 0, @offset-y: 0) {
|
|
|
|
.@{icon-class} {background-position: 0 -(@index * @icon-size - @offset-y);}
|
|
|
|
.btn-group.open > .@{icon-class},
|
|
|
|
.btn.active > .@{icon-class},
|
|
|
|
.btn:active > .@{icon-class} {background-position: (-1 * @icon-size - @offset-x) -(@index * @icon-size - @offset-y);}
|
|
|
|
.btn.disabled > .@{icon-class} {background-position: (-2 * @icon-size - @offset-x) -(@index * @icon-size - @offset-y);}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-btn-icon(@icon-class, @index, @icon-size) {
|
|
|
|
.menu-item-icon.@{icon-class} {background-position: 0 -@index*@icon-size;}
|
|
|
|
li > a.checked > .menu-item-icon.@{icon-class} {background-position: -1*@icon-size -@index*@icon-size;}
|
|
|
|
li.disabled .menu-item-icon.@{icon-class} {background-position: -2*@icon-size -@index*@icon-size;}
|
|
|
|
}
|
|
|
|
|
|
|
|
.options-btn-icon(@icon-class, @index, @icon-size) {
|
2016-08-18 07:58:30 +00:00
|
|
|
.@{icon-class} {background-position: 0 -@index*@icon-size;}
|
2016-03-11 00:48:53 +00:00
|
|
|
button.over > .@{icon-class} {background-position: -1*@icon-size -@index*@icon-size;}
|
|
|
|
// .btn-group.open > .@{icon-class},
|
|
|
|
button.active > .@{icon-class},
|
|
|
|
button:active > .@{icon-class} {background-position: -2*@icon-size -@index*@icon-size;}
|
|
|
|
button.disabled > .@{icon-class} {background-position: -3*@icon-size -@index*@icon-size;}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
:root {
|
|
|
|
--bgX: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-normal-icon(@icon-class, @index, @icon-size) {
|
|
|
|
.@{icon-class} {
|
|
|
|
background-position: -0*@icon-size -@index*@icon-size;
|
|
|
|
background-position: var(--bgX) -@index*@icon-size;
|
|
|
|
}
|
|
|
|
// .@{icon-class} {background-position-y: -@index*@icon-size;}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-otherstates-icon(@icon-class, @icon-size) {
|
|
|
|
button.over > .@{icon-class} {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);}
|
|
|
|
button.active > .@{icon-class},
|
2016-11-03 10:41:44 +00:00
|
|
|
button:active > .@{icon-class} {background-position-x: -2*@icon-size !important; --bgX: -(2*@icon-size);}
|
|
|
|
button.disabled > .@{icon-class} {background-position-x: -3*@icon-size !important; --bgX: -(3*@icon-size);}
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|
|
|
|
|
2017-06-26 09:19:08 +00:00
|
|
|
.mx-button-otherstates-icon2(@icon-size) {
|
2019-10-10 13:02:17 +00:00
|
|
|
&.active, &:active{
|
|
|
|
&:not(:disabled):not(.disabled) {
|
|
|
|
.icon {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.disabled {.icon {opacity: .4;}}
|
2017-06-26 09:19:08 +00:00
|
|
|
}
|
|
|
|
|
2016-03-11 00:48:53 +00:00
|
|
|
.button-otherstates-icon2(@icon-class, @icon-size) {
|
2017-06-26 09:19:08 +00:00
|
|
|
button.@{icon-class} {
|
|
|
|
.mx-button-otherstates-icon2(@icon-size);
|
|
|
|
}
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-icon-normal(@icon-class, @index, @icon-size) {
|
|
|
|
.menu-item-icon.@{icon-class} {
|
|
|
|
background-position: 0 -@index*@icon-size;
|
|
|
|
background-position: var(--bgX) -@index*@icon-size;
|
|
|
|
}
|
|
|
|
// .menu-item-icon.@{icon-class} {background-position-y: -@index*@icon-size;}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-otherstates-icon(@menu-class, @icon-size) {
|
|
|
|
.@{menu-class} li > a.checked > .menu-item-icon {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);}
|
|
|
|
.@{menu-class} li.disabled .menu-item-icon {background-position-x: -2*@icon-size; --bgX: -(2*@icon-size);}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**/
|
|
|
|
|
2017-08-01 12:17:01 +00:00
|
|
|
.background-ximage(@image, @image2x, @w: auto, @h: auto, @repeat: no-repeat) {
|
2016-11-10 11:57:07 +00:00
|
|
|
background-image: data-uri(%("%s",@image));
|
2017-08-01 12:17:01 +00:00
|
|
|
background-repeat: @repeat;
|
2016-03-11 00:48:53 +00:00
|
|
|
|
|
|
|
@media
|
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
|
|
only screen and (min-resolution: 2dppx),
|
|
|
|
only screen and (min-resolution: 192dpi) {
|
2016-11-10 11:57:07 +00:00
|
|
|
background-image: data-uri(%("%s",@image2x));
|
2016-03-11 00:48:53 +00:00
|
|
|
background-size: @w @h;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@common-controls-width: 100px;
|
2016-11-09 11:36:29 +00:00
|
|
|
.img-commonctrl,
|
|
|
|
.theme-colorpalette .color-transparent, .palette-color-ext .color-transparent, .dropdown-menu li .checked:before, .input-error:before,
|
2018-01-11 15:02:27 +00:00
|
|
|
.btn-toolbar .icon.img-commonctrl, .list-item div.checked:before {
|
2016-11-11 13:59:11 +00:00
|
|
|
background-image: data-uri(%("%s",'@{common-image-path}/@{common-controls}'));
|
2016-11-09 11:36:29 +00:00
|
|
|
background-repeat: no-repeat;
|
2016-03-11 00:48:53 +00:00
|
|
|
|
|
|
|
@media
|
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
|
|
only screen and (min-resolution: 2dppx),
|
|
|
|
only screen and (min-resolution: 192dpi) {
|
2016-11-10 11:57:07 +00:00
|
|
|
background-image: data-uri(%("%s",'@{common-image-path}/@{common-controls2x}'));
|
2016-03-11 00:48:53 +00:00
|
|
|
background-size: @common-controls-width auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@img-toolbarmenu-width: 60px;
|
|
|
|
.img-toolbarmenu
|
|
|
|
{
|
2016-11-10 11:57:07 +00:00
|
|
|
background: data-uri(%("%s",'@{app-image-path}/toolbar-menu.png')) no-repeat;
|
2016-03-11 00:48:53 +00:00
|
|
|
|
|
|
|
@media
|
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
|
|
only screen and (min-resolution: 2dppx),
|
|
|
|
only screen and (min-resolution: 192dpi) {
|
2016-11-10 11:57:07 +00:00
|
|
|
background-image: data-uri(%("%s",'@{app-image-path}/toolbar-menu@2x.png'));
|
2016-03-11 00:48:53 +00:00
|
|
|
background-size: @img-toolbarmenu-width auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@img-colorpicker-width: 205px;
|
|
|
|
.img-colorpicker,
|
|
|
|
.color-transparent, .hsb-colorpicker .empty-color:before {
|
2016-11-10 11:57:07 +00:00
|
|
|
background: data-uri(%("%s",'@{common-image-path}/hsbcolorpicker/hsb-colorpicker.png')) no-repeat;
|
2016-03-11 00:48:53 +00:00
|
|
|
|
|
|
|
@media
|
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
|
|
only screen and (min-resolution: 2dppx),
|
|
|
|
only screen and (min-resolution: 192dpi) {
|
2016-11-10 11:57:07 +00:00
|
|
|
background-image: data-uri(%("%s",'@{common-image-path}/hsbcolorpicker/hsb-colorpicker@2x.png'));
|
2016-03-11 00:48:53 +00:00
|
|
|
background-size: @img-colorpicker-width auto;
|
|
|
|
}
|
2017-04-04 14:47:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@img-flags-width: 48px;
|
|
|
|
.icon.lang-flag {
|
|
|
|
width: 16px;
|
|
|
|
height: 12px;
|
2017-04-26 08:34:55 +00:00
|
|
|
background-image: data-uri(%("%s",'@{common-image-path}/controls/flags.png'));
|
|
|
|
background-repeat: no-repeat;
|
2017-04-04 14:47:21 +00:00
|
|
|
|
|
|
|
@media
|
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
|
|
only screen and (min-resolution: 2dppx),
|
|
|
|
only screen and (min-resolution: 192dpi) {
|
|
|
|
background-image: data-uri(%("%s",'@{common-image-path}/controls/flags@2x.png'));
|
|
|
|
background-size: @img-flags-width auto;
|
|
|
|
}
|
2016-03-11 00:48:53 +00:00
|
|
|
}
|