web-apps/apps/common/main/resources/less/header.less

549 lines
12 KiB
Plaintext
Raw Normal View History

2017-03-01 13:33:12 +00:00
//#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;
//}
2016-03-11 00:48:53 +00:00
2017-03-01 13:33:12 +00:00
//#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;
// }
// }
//}
2016-03-11 00:48:53 +00:00
2017-03-01 13:33:12 +00:00
.toolbar {
.extra {
2017-06-30 14:44:19 +00:00
svg.icon {
2021-02-16 07:21:22 +00:00
fill: @icon-toolbar-header-ie;
2020-12-19 19:43:19 +00:00
fill: @icon-toolbar-header;
2017-06-30 14:44:19 +00:00
}
.btn-slot {
width: auto;
}
2016-09-19 14:04:56 +00:00
}
}
2017-03-01 13:33:12 +00:00
.extra {
> section {
height: 100%;
display: flex;
2016-03-11 00:48:53 +00:00
}
2017-03-01 13:33:12 +00:00
&.left {
2017-04-25 16:52:51 +00:00
//min-width: 126px;
}
&.right {
flex-grow: 1;
flex-shrink: 0;
overflow: hidden;
2017-03-01 13:33:12 +00:00
}
2017-06-30 14:44:19 +00:00
.status-label {
padding: 0 10px;
}
label {
2021-02-16 07:21:22 +00:00
color: @text-toolbar-header-ie;
2020-12-19 19:43:19 +00:00
color: @text-toolbar-header;
2017-06-30 14:44:19 +00:00
}
2018-03-21 11:11:03 +00:00
.dropdown-menu {
label {
2021-02-16 07:21:22 +00:00
color: @text-normal-ie;
2020-12-19 19:43:19 +00:00
color: @text-normal;
2018-03-21 11:11:03 +00:00
}
}
.btn-users,
.btn-header {
&:hover {
2019-11-27 16:43:44 +00:00
&:not(.disabled):not(.icon) {
2021-02-16 07:21:22 +00:00
background-color: @highlight-header-button-hover-ie;
2020-12-26 14:44:36 +00:00
background-color: @highlight-header-button-hover;
}
}
2018-03-21 11:11:03 +00:00
&:active, &.active {
2019-11-27 16:43:44 +00:00
&:not(.disabled):not(.icon) {
2021-02-16 07:21:22 +00:00
background-color: @highlight-header-button-pressed-ie;
2021-02-02 11:59:45 +00:00
background-color: @highlight-header-button-pressed;
2017-06-30 14:44:19 +00:00
}
}
2019-11-27 16:43:44 +00:00
&.icon {
pointer-events:none;
}
2017-06-30 14:44:19 +00:00
}
2017-08-01 12:14:19 +00:00
#box-doc-name {
2017-03-01 13:33:12 +00:00
flex-grow: 1;
display: flex;
justify-content: center;
padding: 4px 2px;
overflow: hidden;
flex-shrink: 0;
2017-08-01 12:14:19 +00:00
}
#rib-doc-name {
2017-04-28 10:44:03 +00:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
min-width: 50px;
text-align: center;
2021-02-16 07:21:22 +00:00
color: @text-toolbar-header-ie;
2020-12-19 19:43:19 +00:00
color: @text-toolbar-header;
2017-08-01 12:14:19 +00:00
background-color: transparent;
border: 0 none;
2022-04-28 22:33:39 +00:00
padding: 1px 5px;
2017-08-01 12:14:19 +00:00
cursor: default;
2022-04-28 22:33:39 +00:00
line-height: 24px;
&:hover,&:focus {
box-shadow: 0 0 0 1px @highlight-header-button-hover-ie;
box-shadow: 0 0 0 1px @highlight-header-button-hover;
border-radius: 1px;
cursor: text;
}
}
2016-03-11 00:48:53 +00:00
#rib-save-status {
2017-04-28 10:44:03 +00:00
white-space: nowrap;
&.locked {
text-decoration: none;
2021-02-16 07:21:22 +00:00
color: @border-preview-select-ie;
2020-12-19 19:43:19 +00:00
color: @border-preview-select;
cursor: default;
}
&:after {
display: block;
content: attr(data-width);
height: 1px;
overflow: hidden;
visibility: hidden;
}
}
2017-03-01 13:33:12 +00:00
#header-logo {
2017-04-25 16:52:51 +00:00
max-width: 200px;
2017-03-01 13:33:12 +00:00
height: 100%;
2018-05-23 14:38:44 +00:00
padding: 6px 24px 6px 12px;
2016-03-11 00:48:53 +00:00
2017-04-25 16:52:51 +00:00
i {
cursor: pointer;
2017-06-08 15:14:36 +00:00
width: 86px;
2017-04-25 16:52:51 +00:00
height: 20px;
2018-05-23 14:38:44 +00:00
display: inline-block;
vertical-align: middle;
background-image: ~"url('@{common-image-const-path}/header/header-logo_s.svg')";
background-repeat: no-repeat;
2017-04-22 14:51:12 +00:00
}
2018-11-13 08:40:35 +00:00
&.link img {
cursor: pointer;
}
2019-01-15 11:56:49 +00:00
#box-document-title & {
padding: 4px 24px 4px 12px;
}
2016-03-11 00:48:53 +00:00
}
}
#tlb-box-users {
}
#tlb-change-rights {
margin-top: 15px;
}
2022-02-04 11:51:13 +00:00
.hedset {
font-size: 0;
display: flex;
.btn-group {
height: 100%;
}
}
.btn-header {
height: 100%;
background-color: transparent;
width: 40px;
.icon {
width: 20px;
height: 20px;
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;
opacity: @header-component-active-icon-opacity;
}
}
}
&:hover:not(:disabled) {
.icon {
opacity: @header-component-hover-icon-opacity;
}
}
}
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;
}
&:hover {
&:not(.disabled) {
background-color: @highlight-header-button-hover-ie;
background-color: @highlight-header-button-hover;
}
}
&:active {
&:not(.disabled) {
background-color: @highlight-header-button-pressed-ie;
background-color: @highlight-header-button-pressed;
}
}
&.no-caret {
.inner-box-caret {
display: none;
}
}
}
.btn-users {
display: flex;
align-items: center;
cursor: pointer;
2022-02-03 10:51:38 +00:00
padding: 0 8px 0 6px;
height: 100%;
.inner-box-icon {
width: 28px;
position: relative;
> svg {
position: absolute;
width: 28px;
height: 20px;
top: 50%;
margin-top: -10px;
fill: @icon-toolbar-header-ie;
fill: @icon-toolbar-header;
}
}
.caption {
cursor: pointer;
font-size: 9px;
margin-left: -18px;
width: 16px;
text-align: center;
overflow: hidden;
}
2022-02-03 20:14:59 +00:00
&:not(:disabled) {
.inner-box-icon, .caption {
opacity: @header-component-normal-icon-opacity;
}
}
&:hover:not(:disabled) {
2022-02-03 20:14:59 +00:00
.inner-box-icon, .caption {
opacity: @header-component-hover-icon-opacity;
2022-02-03 20:14:59 +00:00
}
}
&:active:not(:disabled), &.active:not(:disabled) {
2022-02-03 20:14:59 +00:00
.inner-box-icon, .caption {
opacity: @header-component-active-icon-opacity;
2022-02-03 20:14:59 +00:00
}
}
&.disabled {
opacity: @component-disabled-opacity;
pointer-events: none;
}
}
2022-02-04 11:51:13 +00:00
.btn-header-share {
display: flex;
align-items: center;
padding: 0 12px;
2022-02-04 11:51:13 +00:00
width: auto;
.caption {
margin: 2px 0 0 2px;
2022-02-04 11:51:13 +00:00
color: @text-toolbar-header-ie;
color: @text-toolbar-header;
}
2022-02-03 20:14:59 +00:00
&:not(:disabled) {
2022-02-04 11:51:13 +00:00
.caption {
2022-02-03 20:14:59 +00:00
opacity: @header-component-normal-icon-opacity;
}
}
&:hover:not(:disabled) {
2022-02-04 11:51:13 +00:00
.caption {
2022-02-03 20:14:59 +00:00
opacity: @header-component-hover-icon-opacity;
}
}
2022-02-04 11:51:13 +00:00
&: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;
2022-02-04 09:13:13 +00:00
padding: 1px 3px;
border: var(--scaled-one-pixel, 1px) solid transparent;
}
.btn-current-user, .btn-header {
2022-02-04 09:13:13 +00:00
&:not(:disabled) .color-user-name {
2022-02-03 20:14:59 +00:00
opacity: @header-component-normal-icon-opacity;
}
2022-02-04 09:13:13 +00:00
&:active, &.active .color-user-name {
2022-02-03 20:14:59 +00:00
opacity: @header-component-active-icon-opacity;
}
2022-02-04 09:13:13 +00:00
&:hover:not(:disabled) .color-user-name {
2022-02-03 20:14:59 +00:00
opacity: @header-component-hover-icon-opacity;
}
2022-02-04 09:13:13 +00:00
.color-user-name {
width: 20px;
height: 20px;
border-radius: 20px;
background-color: @icon-toolbar-header-ie;
background-color: @icon-toolbar-header;
2022-02-05 19:20:13 +00:00
color: @toolbar-header-text-on-background-ie;
color: @toolbar-header-text-on-background;
2022-02-04 09:13:13 +00:00
font-size: 10px;
line-height: 20px;
overflow: hidden;
margin: 0 6px;
text-align: center;
}
}
.cousers-menu {
position: fixed;
top: @height-tabs - 8px;
left: 100%;
margin-left: -285px;
padding: 14px;
width: 285px;
font-size: 12px;
z-index: 1042;
.top-title & {
top: @height-title + @height-tabs - 8px;
}
> label {
white-space: normal;
}
2017-06-30 14:44:19 +00:00
label {
2021-02-16 07:21:22 +00:00
color: @text-normal-ie;
2020-12-19 19:43:19 +00:00
color: @text-normal;
2017-06-30 14:44:19 +00:00
}
.cousers-list {
margin-top: 15px;
ul {
margin: 0;
padding: 0;
overflow: hidden;
2019-04-23 10:20:39 +00:00
max-height: 195px;
position: relative;
li {
list-style: none;
padding: 2px 0;
overflow: hidden;
&.offline, &.viewmode {
display: none;
}
}
}
.color {
width: 12px;
height: 12px;
display: inline-block;
vertical-align: middle;
Merge branch 'develop' into feature/multiZoom5.5 # Conflicts: # apps/common/main/resources/img/toolbar/1x/big/.css.handlebars # apps/common/main/resources/less/asc-mixins.less # apps/common/main/resources/less/buttons.less # apps/common/main/resources/less/checkbox.less # apps/common/main/resources/less/combo-dataview.less # apps/common/main/resources/less/comments.less # apps/common/main/resources/less/common.less # apps/common/main/resources/less/dataview.less # apps/common/main/resources/less/dropdown-menu.less # apps/common/main/resources/less/listview.less # apps/common/main/resources/less/multislider-gradient.less # apps/common/main/resources/less/radiobox.less # apps/common/main/resources/less/scroller.less # apps/common/main/resources/less/separator.less # apps/common/main/resources/less/theme-colorpalette.less # apps/common/main/resources/less/toolbar.less # apps/common/main/resources/less/window.less # apps/documenteditor/main/resources/less/advanced-settings.less # apps/documenteditor/main/resources/less/filemenu.less # apps/documenteditor/main/resources/less/leftmenu.less # apps/documenteditor/main/resources/less/rightmenu.less # apps/documenteditor/main/resources/less/statusbar.less # apps/documenteditor/main/resources/less/toolbar.less # apps/presentationeditor/main/resources/less/leftmenu.less # apps/presentationeditor/main/resources/less/rightmenu.less # apps/presentationeditor/main/resources/less/statusbar.less # apps/spreadsheeteditor/main/resources/less/celleditor.less # apps/spreadsheeteditor/main/resources/less/leftmenu.less # apps/spreadsheeteditor/main/resources/less/rightmenu.less # apps/spreadsheeteditor/main/resources/less/statusbar.less # apps/spreadsheeteditor/main/resources/less/toolbar.less
2021-02-10 12:40:30 +00:00
border: @scaled-one-px-value solid @border-toolbar;
margin: 0 5px 1px 0;
}
.user-name {
2021-02-16 07:21:22 +00:00
color: @text-normal-ie;
2020-12-19 19:43:19 +00:00
color: @text-normal;
font-size: 12px;
2022-01-26 15:00:09 +00:00
.font-weight-bold();
white-space: nowrap;
cursor: default;
label {
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
max-width: 200px;
2022-01-26 15:00:09 +00:00
.font-weight-bold();
}
}
}
}
#box-document-title {
2021-02-16 07:21:22 +00:00
background-color: @header-background-color-ie;
background-color: @header-background-color;
display: flex;
height: 100%;
2021-02-16 07:21:22 +00:00
color: @text-toolbar-header-ie;
2020-12-19 19:43:19 +00:00
color: @text-toolbar-header;
2018-02-28 13:31:59 +00:00
position: relative;
.btn-slot {
display: inline-block;
}
svg.icon {
2021-02-16 07:21:22 +00:00
fill: @icon-toolbar-header-ie;
2020-12-19 19:43:19 +00:00
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;
}
}
}
}
2018-01-23 17:35:16 +00:00
#id-box-doc-name {
display: flex;
justify-content: center;
overflow: hidden;
padding: 4px 2px;
}
2018-01-23 17:35:16 +00:00
#title-doc-name {
2020-07-29 15:28:15 +00:00
white-space: pre;
2018-01-23 17:35:16 +00:00
text-overflow: ellipsis;
overflow: hidden;
text-align: center;
font-size: 12px;
2022-04-27 11:05:22 +00:00
line-height: 24px;
2022-04-28 18:36:08 +00:00
padding: 1px 5px;
background-color: transparent;
border: 0 none;
cursor: default;
2022-04-27 08:16:33 +00:00
2022-05-09 19:21:21 +00:00
&:hover:not(:disabled),&:focus{
2022-04-27 10:44:44 +00:00
box-shadow: 0 0 0 1px @highlight-header-button-hover-ie;
box-shadow: 0 0 0 1px @highlight-header-button-hover;
/*border:@highlight-header-button-hover-ie solid 1px;
border:@highlight-header-button-hover solid 1px;*/
2022-04-28 03:46:03 +00:00
border-radius: 1px;
2022-04-27 08:16:33 +00:00
cursor: text;
}
}
2018-02-28 13:31:59 +00:00
.lr-separator {
flex-grow: 1;
}
2018-01-23 17:35:16 +00:00
}
#box-doc-name, #box-document-title {
.inner-box-icon.crypted {
width: 20px;
position: relative;
2022-04-27 08:16:33 +00:00
margin-right: 1px;
> svg {
position: absolute;
width: 20px;
height: 20px;
top: 50%;
margin-top: -10px;
}
}
}
2022-01-26 15:00:09 +00:00
2022-01-27 11:36:04 +00:00