//#header-logo { // background-color: @app-header-bg-color-dark; // min-width: 15px + 90px + 5px; // .background-ximage('@{common-image-path}/header/header-logo.png', '@{common-image-path}/header/header-logo@2x.png', 86px); // background-repeat: no-repeat; // background-position: 15px center; // cursor: pointer; //} //#header-documentcaption { // width: 100%; // max-width: 100px; // overflow: hidden; // text-overflow: ellipsis; // background-color: @app-header-bg-color; // padding: 0 7px + @app-header-height / 3; // cursor: default; // // div { // display: inline-block; // padding: 2px 8px; // // &.renamed:hover { // background-color: @app-header-bg-color-dark; // } // } //} .toolbar { .extra { svg.icon { fill: @icon-toolbar-header-ie; fill: @icon-toolbar-header; } .btn-slot { width: auto; } } } .extra { > section { height: 100%; display: flex; } &.left { //min-width: 126px; } &.right { flex-grow: 1; flex-shrink: 0; overflow: hidden; } .status-label { padding: 0 10px; } label { color: @text-toolbar-header-ie; color: @text-toolbar-header; } .dropdown-menu { label { color: @text-normal-ie; color: @text-normal; } } .btn-users, .btn-header { &:hover { &:not(.disabled):not(.icon) { background-color: @highlight-header-button-hover-ie; background-color: @highlight-header-button-hover; } } &:active, &.active { &:not(.disabled):not(.icon) { background-color: @highlight-header-button-pressed-ie; background-color: @highlight-header-button-pressed; } } &.icon { pointer-events:none; } } #box-doc-name { flex-grow: 1; display: flex; justify-content: center; align-items: center; padding: 0px 2px; overflow: hidden; flex-shrink: 0; } #rib-doc-name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; min-width: 50px; text-align: center; color: @text-toolbar-header-ie; color: @text-toolbar-header; background-color: transparent; border: 0 none; border-radius: @border-radius-button-base-ie; border-radius: @border-radius-button-base; height: @header-input-height-ie; height: @header-input-height; line-height: @header-input-line-height-ie; line-height: @header-input-line-height; align-items: center; padding: 1px 8px; cursor: default; &:hover:not(:disabled):not(:focus){ background-color: @highlight-header-input-hover-ie; background-color: @highlight-header-input-hover; cursor: text; } &:focus{ background-color: @highlight-header-input-pressed-ie; background-color: @highlight-header-input-pressed; border: @scaled-one-px-value-ie solid @border-header-input-focused-ie; border: @scaled-one-px-value solid @border-header-input-focused; .box-shadow(@shadow-fill-input-ie); .box-shadow(@shadow-fill-input); cursor: text; } .rtl & { direction: rtl; } } #box-doc-name, #box-right-btn-group { padding-bottom: @scaled-one-px-value-ie; padding-bottom: @scaled-one-px-value; } #rib-save-status { white-space: nowrap; &.locked { text-decoration: none; color: @text-secondary-ie; color: @text-secondary; cursor: default; } &:after { display: block; content: attr(data-width); height: 1px; overflow: hidden; visibility: hidden; } } #header-logo { //max-width: 200px; height: 100%; padding: 6px 24px 6px 12px; .rtl & { padding: 6px 12px 6px 24px; } i { cursor: pointer; width: 86px; height: 20px; display: inline-block; vertical-align: middle; background-image: ~"url('@{common-image-const-path}/header/header-logo_s.svg')"; background-repeat: no-repeat; } &.logo-light i { // logo from light theme background-image: ~"url('@{common-image-const-path}/header/dark-logo_s.svg')"; } &.link img { cursor: pointer; } #box-document-title & { padding: 4px 24px 4px 12px; .rtl & { padding: 4px 12px 4px 24px; } } } } #tlb-box-users { } #tlb-change-rights { margin-top: 15px; } .hedset { font-size: 0; display: flex; align-items: @header-component-align-ie; align-items: @header-component-align; .btn-group { height: @header-component-height-ie; height: @header-component-height; } .btn-slot { & > .btn-group, & > .btn-header { margin: @header-component-margin-ie; margin: @header-component-margin; } } } .btn-header { height: @header-component-height-ie; height: @header-component-height; background-color: transparent; width: @header-component-width-ie; width: @header-component-width; border: 0; padding: @header-component-padding-y-ie @header-component-padding-x-ie; padding: @header-component-padding-y @header-component-padding-x; .icon { width: @x-small-btn-icon-size-ie; width: @x-small-btn-icon-size; height: @x-small-btn-icon-size-ie; height: @x-small-btn-icon-size; line-height: @header-component-line-height-ie; line-height: @header-component-line-height; display: inline-block; position: relative; &.icon--inverse { background-position-x: @button-header-normal-icon-offset-x-ie; background-position-x: @button-header-normal-icon-offset-x; } } .btn& { &:not(:disabled) .icon { opacity: @header-component-normal-icon-opacity; } &:active, &.active { .icon.toolbar__icon { &.icon--inverse { background-position-x: @button-header-active-icon-offset-x-ie; background-position-x: @button-header-active-icon-offset-x; opacity: @header-component-active-icon-opacity; } } } &:hover:not(:disabled) { .icon { opacity: @header-component-hover-icon-opacity; } } .caret { border-color: @icon-toolbar-header-ie; border-color: @icon-toolbar-header; } &:active:not(.disabled), &.active:not(.disabled){ .caret { border-color: @icon-toolbar-header-ie; border-color: @icon-toolbar-header; } } } svg.icon { vertical-align: middle; @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx), only screen and (min-resolution: 144dpi) { /* width:calc(~"28px/1.5"); */ /* height:calc(~"28px/1.5"); */ } } .btn&[disabled], &.disabled { opacity: @component-disabled-opacity-ie; opacity: @component-disabled-opacity; } &:hover, .highlight-tip & { &:not(.disabled) { background-color: @highlight-header-button-hover-ie; background-color: @highlight-header-button-hover; } } &:active, &.active { &:not(.disabled) { background-color: @highlight-header-button-pressed-ie; background-color: @highlight-header-button-pressed; } } &.no-caret { .inner-box-caret { display: none; } } .pixel-ratio__2_5 & { i.icon { display: none; } } } .btn-users { display: flex; align-items: center; cursor: pointer; padding: 0 8px 0 6px; height: @header-component-height-ie; height: @header-component-height; border-radius: @border-radius-button-base-ie; border-radius: @border-radius-button-base; .inner-box-icon { width: 28px; position: relative; > svg { position: absolute; width: 28px; height: @x-small-btn-icon-size-ie; height: @x-small-btn-icon-size; top: 50%; margin-top: -10px; margin-top: calc(-1 * @font-size-base-app + 1px); fill: @icon-toolbar-header-ie; fill: @icon-toolbar-header; } } .caption { cursor: pointer; .font-size-tiny(); margin-left: -18px; margin-top: @scaled-one-px-value-ie; margin-top: @scaled-one-px-value; width: 16px; text-align: center; overflow: hidden; pointer-events: none; } &:not(:disabled) { .inner-box-icon, .caption { opacity: @header-component-normal-icon-opacity; } } &:hover:not(:disabled) { .inner-box-icon, .caption { opacity: @header-component-hover-icon-opacity; } } &:active:not(:disabled), &.active:not(:disabled) { .inner-box-icon, .caption { opacity: @header-component-active-icon-opacity; } } &.disabled { opacity: @component-disabled-opacity-ie; opacity: @component-disabled-opacity; pointer-events: none; } .rtl & { padding: 0 6px 0 8px; .caption { margin-left: 8px; margin-right: -26px; } } } .btn-header-share, .btn-header-pdf-mode { display: flex; align-items: center; padding: 0 6px; width: auto; .caption { margin: 2px 4px 0 2px; color: @text-toolbar-header-ie; color: @text-toolbar-header; } &:not(:disabled) { .caption { opacity: @header-component-normal-icon-opacity; } } &:hover:not(:disabled) { .caption { opacity: @header-component-hover-icon-opacity; } } &:active:not(:disabled), &.active:not(:disabled) { .caption { opacity: @header-component-active-icon-opacity; } } } .btn-current-user { display: flex; align-items: center; height: 100%; width: 40px; padding: 1px 3px; border: @scaled-one-px-value-ie solid transparent; border: @scaled-one-px-value solid transparent; } .btn-current-user, .btn-header { &:not(:disabled) .color-user-name { opacity: @header-component-normal-icon-opacity; } &:active, &.active .color-user-name { opacity: @header-component-active-icon-opacity; } &:hover:not(:disabled) .color-user-name { opacity: @header-component-hover-icon-opacity; } .color-user-name { width: 20px; height: 20px; border-radius: 20px; background-color: @icon-toolbar-header-ie; background-color: @icon-toolbar-header; color: @toolbar-header-text-on-background-ie; color: @toolbar-header-text-on-background; .pdf-form & { color: @toolbar-header-text-on-background-pdf-ie; color: @toolbar-header-text-on-background-pdf; } vertical-align: middle; background-size: cover; background-position: center; font-size: 10px; line-height: 20px; overflow: hidden; margin: 0 6px; margin: 0 calc((@header-component-width - @header-component-padding-x*2 - 20px)/2); text-align: center; } } .cousers-menu { position: fixed; top: calc(@toolbar-height-tabs - 8px); left: 100%; margin-left: -285px; padding: 14px; width: 285px; .font-size-medium(); z-index: 1042; .top-title & { top: calc(@toolbar-height-tabs-top-title + @document-title-height - 8px); } > label { white-space: normal; } label { color: @text-normal-ie; color: @text-normal; } .cousers-list { margin-top: 15px; ul { margin: 0; padding: 0; overflow: hidden; max-height: 195px; position: relative; li { list-style: none; margin-top: 12px; overflow: hidden; &.offline, &.viewmode { display: none; } } li:first-child { margin-top: 0px; } } .color { width: 26px; height: 26px; border-radius: 20px; border-width: @scaled-two-px-value; display: inline-block; vertical-align: middle; background-color: #ffffff; background-size: cover; background-position: center; .margin-right-8(); line-height: 26px; color: #ffffff; text-align: center; } .user-name { color: @text-normal-ie; color: @text-normal; .font-size-medium(); .font-weight-bold(); .text-align-left(); white-space: nowrap; cursor: default; label { overflow: hidden; text-overflow: ellipsis; vertical-align: middle; max-width: 200px; .font-weight-bold(); } } } #tlb-users-menu-descr { width: 100%; .text-align-left(); } .rtl & { &.dropdown-menu { left: unset; right: 100%; margin-left: 0; margin-right: -285px; } } } #box-document-title { .header-background-color(); display: flex; height: 100%; color: @text-toolbar-header-ie; color: @text-toolbar-header; position: relative; z-index: @zindex-navbar + 3; .btn-slot { display: inline-block; } svg.icon { fill: @icon-toolbar-header-ie; fill: @icon-toolbar-header; &.icon-save { &.btn-save-coauth, &.btn-synch { use:first-child { display: none; } } &:not(.btn-save-coauth) { use#coauth { display: none; } } &:not(.btn-synch) { use#sync { display: none; } } } } #id-box-doc-name { display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 0px 2px; } #title-doc-name { white-space: pre; text-overflow: ellipsis; overflow: hidden; text-align: center; .font-size-medium(); height: @header-input-height-ie; height: @header-input-height; line-height: @header-input-line-height-ie; line-height: @header-input-line-height; padding: 1px 8px; align-items: center; background-color: transparent; border: 0 none; cursor: default; .user-select(text); &:hover:not(:disabled):not(:focus){ background-color: @highlight-header-input-hover-ie; background-color: @highlight-header-input-hover; border-radius: @border-radius-button-base-ie; border-radius: @border-radius-button-base; cursor: text; } &:focus{ background-color: @highlight-header-input-pressed-ie; background-color: @highlight-header-input-pressed; border: @scaled-one-px-value-ie solid @border-header-input-focused-ie; border: @scaled-one-px-value solid @border-header-input-focused; border-radius: @border-radius-button-base-ie; border-radius: @border-radius-button-base; .box-shadow(@shadow-fill-input-ie); .box-shadow(@shadow-fill-input); cursor: text; } .rtl & { direction: rtl; } } .lr-separator { flex-grow: 1; } } #box-doc-name, #box-document-title { .inner-box-icon.crypted { width: 20px; position: relative; margin-right: 1px; flex-shrink: 0; flex-grow: 0; > svg { position: absolute; width: 20px; height: 20px; top: 50%; margin-top: -10px; fill: @icon-toolbar-header; } } }