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

372 lines
6.9 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 {
fill: #fff;
}
.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;
2017-05-04 12:36:42 +00:00
min-width: 100px;
2017-03-01 13:33:12 +00:00
}
2017-06-30 14:44:19 +00:00
.status-label {
padding: 0 10px;
}
label {
color: #fff;
}
2018-03-21 11:11:03 +00:00
.dropdown-menu {
label {
color: @gray-deep;
}
}
.btn-users,
.btn-header {
&:hover {
2017-06-30 14:44:19 +00:00
&:not(.disabled) {
background-color: rgba(255,255,255,0.2);
}
}
2018-03-21 11:11:03 +00:00
&:active, &.active {
&:not(.disabled) {
background-color: rgba(0,0,0,0.2);
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;
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;
2017-08-01 12:14:19 +00:00
color: #fff;
background-color: transparent;
border: 0 none;
cursor: default;
2017-08-15 11:44:59 +00:00
&:hover:not(:disabled) {
border: 1px solid @gray-dark;
background-color: rgba(255,255,255,0.2);
}
&:focus:not(:active) {
border: 1px solid @gray-dark;
2017-08-01 12:14:19 +00:00
cursor: text;
2017-08-15 11:44:59 +00:00
background-color: white;
color: @gray-deep;
2017-08-01 12:14:19 +00:00
}
2017-08-22 08:40:23 +00:00
width: 100%;
}
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;
2017-04-06 09:42:10 +00:00
color: @gray-darker;
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-ximage('@{common-image-path}/header/header-logo.png', '@{common-image-path}/header/header-logo@2x.png', 86px);
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;
}
.btn-users {
display: flex;
align-items: center;
cursor: pointer;
padding: 0 12px;
height: 100%;
.icon {
display: inline-block;
width: 20px;
height: 20px;
}
.caption {
cursor: pointer;
font-size: 14px;
}
&.disabled {
opacity: 0.65;
pointer-events: none;
}
}
.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 {
color: @gray-deep;
}
.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;
border: 1px solid @gray-dark;
margin: 0 5px 1px 0;
}
.user-name {
color: @gray-deep;
font-size: 12px;
font-weight: bold;
white-space: nowrap;
cursor: default;
label {
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
max-width: 200px;
2018-06-05 09:53:02 +00:00
font-weight: bold;
}
}
}
}
.hedset {
font-size: 0;
display: flex;
2018-03-21 11:11:03 +00:00
.btn-group {
height: 100%;
}
}
.btn-header {
height: 100%;
background-color: transparent;
width: 40px;
.icon {
width: 20px;
height: 20px;
}
2018-01-23 17:35:16 +00:00
svg.icon {
display: inline-block;
vertical-align: middle;
}
.btn&[disabled],
&.disabled {
opacity: 0.65;
}
&:hover {
&:not(.disabled) {
background-color: rgba(255,255,255,0.2);
}
}
&:active {
&:not(.disabled) {
background-color: rgba(0,0,0,0.2);
}
}
2018-03-21 11:11:03 +00:00
&.no-caret {
.inner-box-caret {
display: none;
}
}
}
#box-document-title {
background-color: @tabs-bg-color;
display: flex;
height: 100%;
color:#fff;
2018-02-28 13:31:59 +00:00
position: relative;
.btn-slot {
display: inline-block;
}
svg.icon {
fill: #fff;
&.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
#title-doc-name {
2018-02-28 13:31:59 +00:00
position: absolute;
2018-01-23 17:35:16 +00:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: center;
font-size: 12px;
height: 100%;
2018-02-28 13:31:59 +00:00
width: 100%;
background-color: transparent;
border: 0 none;
cursor: default;
}
#title-user-name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: right;
font-size: 11px;
max-width: 50%;
height: 100%;
padding: 0 12px;
line-height: @height-title;
2018-01-23 17:35:16 +00:00
}
2018-02-28 13:31:59 +00:00
.lr-separator {
flex-grow: 1;
}
2018-01-23 17:35:16 +00:00
}