web-apps/apps/documenteditor/main/resources/less/toolbar.less
2021-12-16 16:50:25 +03:00

205 lines
4.5 KiB
Plaintext

.toolbar {
&.masked {
button.disabled .icon:not(.no-mask) {
//background-position-x: 0px !important;
}
.group:not(.no-mask) {
opacity: 0.4;
}
}
.font-attr {
> .btn-slot:not(:last-child):not(.split) {
margin-right: 4px;
}
> .btn-slot:not(:last-child).split {
margin-right: 2px;
}
}
}
.toolbar-group-mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
background-color: @background-toolbar-ie;
background-color: @background-toolbar;
z-index: @zindex-tooltip + 1;
}
.item-markerlist {
width: 40px;
height: 40px;
}
.item-multilevellist {
width: 80px;
height: 80px;
}
.dropdown-menu.toc-menu {
@contents-menu-item-height: 72px;
--bckgHOffset: ~"0px";
> li > a.item-contents {
div {
background-color: #fff;
width: 248px;
.box-shadow(0 0 0 @scaled-one-px-value-ie @border-regular-control-ie);
.box-shadow(0 0 0 @scaled-one-px-value @border-regular-control);
&:hover,
&.selected {
.box-shadow(0 0 0 2px @border-control-focus-ie);
.box-shadow(0 0 0 @scaled-two-px-value @border-control-focus);
}
canvas {
vertical-align: middle;
}
}
&:hover, &:focus {
background-color: transparent;
div {
.box-shadow(0 0 0 2px @border-control-focus-ie);
.box-shadow(0 0 0 @scaled-two-px-value @border-control-focus);
}
}
}
}
// page number position
.menu-pageposition {
.dataview {
width: 144px;
height: 100px;
margin: 0 10px;
&.disabled {
> .item {
cursor: default;
opacity: @component-disabled-opacity;
&:hover {
.box-shadow(0 0 0 @scaled-one-px-value-ie @border-regular-control-ie);
.box-shadow(0 0 0 @scaled-one-px-value @border-regular-control);
}
}
}
}
.item-pagenumber {
.ie & {
.background-ximage('@{app-image-path}/iconshuge.png', '@{app-image-path}/iconshuge@2x.png', 40px);
}
width: 40px;
height: 40px;
}
}
// 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;
white-space: nowrap;
letter-spacing: 1px;
overflow: hidden;
text-overflow: ellipsis;
}
.save-style-container {
border-left: @scaled-one-px-value-ie solid @border-regular-control-ie;
border-left: @scaled-one-px-value solid @border-regular-control;
border-top: @scaled-one-px-value-ie solid @border-regular-control-ie;
border-top: @scaled-one-px-value solid @border-regular-control;
a {
padding: 14px 20px !important;
}
}
#slot-field-fontname {
float: left;
width: 84px;
}
#slot-field-fontsize {
float: left;
width: 45px;
margin-left: 2px;
}
#slot-btn-incfont, #slot-btn-decfont, #slot-btn-changecase {
margin-left: 2px;
}
section #slot-field-styles {
width: 100%;
min-width: 160px;
//padding-right: 12px;
}
#special-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;
}
.dropdown-menu.list-settings-level {
.menu-list-preview {
.box-shadow(0 0 0 @scaled-one-px-value-ie @border-regular-control-ie);
.box-shadow(0 0 0 @scaled-one-px-value @border-regular-control);
background-color: @canvas-content-background;
}
a:hover, a:focus, a.checked {
background-color: transparent;
.menu-list-preview {
.box-shadow(0 0 0 2px @border-control-focus-ie);
.box-shadow(0 0 0 @scaled-two-px-value @border-control-focus);
}
}
a.checked {
&:before {
display: none !important;
}
}
}