web-apps/apps/spreadsheeteditor/main/resources/less/toolbar.less
2021-02-16 11:37:33 +03:00

149 lines
3.5 KiB
Plaintext

@tabs-bg-color: #40865c;
.toolbar {
&.masked {
button.disabled .icon:not(.no-mask) {
background-position-x: 0px !important;
}
.group:not(.no-mask) {
opacity: 0.4;
}
}
.simple-bar {
display: table;
width: 100%;
}
.font-attr {
> .btn-slot:not(:last-child):not(.split) {
margin-right: 2px;
}
> .btn-slot.split:not(:last-child) {
margin-right: 2px;
}
}
.font-attr-top {
width: 218px;
> .btn-slot {
float: left;
&:not(:first-child) {
margin-left: 2px;
}
}
}
}
// menu zoom
.menu-zoom {
line-height: @line-height-base;
.title {
padding: 5px 5px 5px 20px;
float: left;
max-width: 95px;
overflow: hidden;
text-overflow: ellipsis;
}
.zoom {
padding: 5px 3px;
float: right;
min-width: 40px;
text-align: center;
}
}
.username-tip {
background-color: #ee3525;
border: none;
border-radius: 0;
padding: 3px 10px;
color: #ffffff;
font: 11px arial;
pointer-events: none;
white-space: nowrap;
letter-spacing: 1px;
}
#id-toolbar-btn-num-format button .caption {
display: inline-block;
}
#id-toolbar-mnu-item-border-width {
.border-size-item {
background: ~"url(@{app-image-const-path}/toolbar/BorderSize.png) no-repeat scroll 0 0";
width: 60px;
height: 20px;
margin: -3px 10px -2px;
@media only screen {
//@media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9),
// (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx),
// (min-resolution: 144dpi) and (max-resolution: 191dpi)
//{
// background-image: ~"url(@{app-image-const-path}/toolbar/BorderSize@1.5x.png)";
// background-size: 60px auto;
//}
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 2dppx),
(min-resolution: 192dpi)
{
background-image: ~"url(@{app-image-const-path}/toolbar/BorderSize@2x.png)";
background-size: 60px auto;
}
}
}
}
#id-toolbar-menu-auto-bordercolor > a.selected,
#id-toolbar-menu-auto-bordercolor > a:hover,
#id-toolbar-menu-auto-fontcolor > a.selected,
#id-toolbar-menu-auto-fontcolor > a:hover {
span {
outline: @scaled-one-px-value-ie solid @border-regular-control-ie;
outline: @scaled-one-px-value solid @border-regular-control;
border: @scaled-one-px-value-ie solid @background-normal-ie;
border: @scaled-one-px-value solid @background-normal;
}
}
#special-paste-container,
#autocorrect-paste-container {
position: absolute;
z-index: @zindex-dropdown - 20;
background-color: @background-toolbar-ie;
background-color: @background-toolbar;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
}
#slot-field-fontname {
width: 127px;
}
#slot-field-fontsize {
width: 45px;
}
.item-markerlist {
.background-ximage-v2('toolbar/bullets-and-numbering.png', 38px);
width: 38px;
height: 38px;
}
#slot-field-zoom {
float: left;
min-width: 46px;
}
.combo-styles {
.view, .dropdown-menu {
background-color: @canvas-content-background;
}
}