585 lines
16 KiB
Plaintext
585 lines
16 KiB
Plaintext
@height-title: 28px;
|
|
@height-tabs: 32px;
|
|
@height-controls: 67px;
|
|
|
|
//@tabs-bg-color: #fff;
|
|
|
|
.toolbar {
|
|
position: relative;
|
|
|
|
&:not(.folded) {
|
|
height: @height-tabs + @height-controls;
|
|
}
|
|
|
|
&.folded {
|
|
height: @height-tabs;
|
|
transition: height .2s;
|
|
overflow: hidden;
|
|
|
|
&.expanded {
|
|
height: @height-tabs + @height-controls;
|
|
overflow: visible;
|
|
}
|
|
|
|
&:not(.expanded):not(.cover){
|
|
.ribtab.active {
|
|
> a {
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.box-tabs {
|
|
height: @height-tabs;
|
|
font-size: 12px;
|
|
|
|
display: flex;
|
|
align-items: stretch;
|
|
|
|
.extra {
|
|
background-color: @tabs-bg-color;
|
|
}
|
|
|
|
//&::after {
|
|
// content: '';
|
|
// position: absolute;
|
|
// width: 100%;
|
|
// border-top: 1px solid @gray-dark;
|
|
// top: @height-tabs - 1;
|
|
// left: 0;
|
|
// z-index: 1;
|
|
//}
|
|
}
|
|
|
|
.tabs {
|
|
//flex-grow: 1;
|
|
background-color: @tabs-bg-color;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
|
|
> ul {
|
|
padding: 4px 0 0;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
list-style: none;
|
|
font-size: 0;
|
|
}
|
|
|
|
li {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
|
|
&:hover {
|
|
background-color: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
&.active {
|
|
background-color: @gray-light;
|
|
}
|
|
|
|
|
|
> a {
|
|
display: inline-block;
|
|
padding: 0 12px;
|
|
text-decoration: none;
|
|
cursor: default;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
color: #fff;
|
|
}
|
|
|
|
&.active {
|
|
> a {
|
|
color: #444;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:not(.short) {
|
|
.scroll {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.scroll {
|
|
line-height: @height-tabs;
|
|
min-width: 20px;
|
|
z-index: 1;
|
|
cursor: pointer;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:not(:hover) {
|
|
&:after {
|
|
opacity: .8;
|
|
}
|
|
}
|
|
|
|
&.left{
|
|
box-shadow: 5px 0 20px 5px @tabs-bg-color;
|
|
|
|
&:after {
|
|
transform: rotate(135deg);
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
&.right{
|
|
box-shadow: -5px 0 20px 5px @tabs-bg-color;
|
|
|
|
&:after {
|
|
transform: rotate(-45deg);
|
|
margin-left: 4px;
|
|
}
|
|
}
|
|
|
|
@arrow-length: 8px;
|
|
&:after {
|
|
content: ' ';
|
|
width: @arrow-length;
|
|
height: @arrow-length;
|
|
border: solid white;
|
|
border-width: 0 2px 2px 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.box-controls {
|
|
//height: @height-controls; // button has strange offset in IE when odd height
|
|
padding: 10px 0;
|
|
display: flex;
|
|
|
|
//background-color: #F2CBBF;
|
|
|
|
.panel {
|
|
display: table;
|
|
height: 100%;
|
|
}
|
|
//width: 100%;
|
|
}
|
|
|
|
.box-panels {
|
|
flex-grow: 1;
|
|
-ms-flex: 1;
|
|
|
|
.panel:not(.active) {
|
|
display: none;
|
|
}
|
|
|
|
/* ##adopt-panel-width */
|
|
.panel.compactwidth:not(#plugns-panel) {
|
|
.btn-group, .btn-toolbar {
|
|
&.x-huge {
|
|
.caption {
|
|
display: none;
|
|
}
|
|
|
|
.inner-box-caption {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/**/
|
|
}
|
|
|
|
background-color: @gray-light;
|
|
.box-inner-shadow(0 -1px 0 @gray-dark);
|
|
|
|
.group {
|
|
position: relative;
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
white-space: nowrap;
|
|
padding-left: 12px;
|
|
font-size: 0;
|
|
|
|
&:last-child {
|
|
padding-right: 12px;
|
|
}
|
|
}
|
|
|
|
.elset {
|
|
height: 20px;
|
|
font-size: 0;
|
|
|
|
&:not(:first-child) {
|
|
margin-top: 6px;
|
|
}
|
|
}
|
|
|
|
.separator {
|
|
margin-left: 12px;
|
|
|
|
&.close {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
&.long {
|
|
height: 46px;
|
|
}
|
|
|
|
&.short {
|
|
height: 20px;
|
|
}
|
|
}
|
|
|
|
.btn-slot {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: auto;
|
|
|
|
&.split {
|
|
width: 31px;
|
|
}
|
|
|
|
&.text {
|
|
width: auto;
|
|
}
|
|
|
|
&.border {
|
|
border: 1px solid @gray;
|
|
.border-radius(1px);
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.checkbox-indeterminate {
|
|
margin-top: 3px;
|
|
}
|
|
}
|
|
|
|
.toolbar-mask {
|
|
position: absolute;
|
|
top: 32px;
|
|
left: 48px;
|
|
right: 0;
|
|
bottom: 0;
|
|
opacity: 0;
|
|
background-color: @gray-light;
|
|
/* z-index: @zindex-tooltip + 1; */
|
|
}
|
|
|
|
&.toolbar-view .toolbar-mask{
|
|
left: 0;
|
|
}
|
|
|
|
.top-title > & {
|
|
&:not(.folded) {
|
|
height: 28 + @height-controls;
|
|
}
|
|
|
|
&.folded {
|
|
height: 28px;
|
|
|
|
&.expanded {
|
|
height: 28 + @height-controls;
|
|
}
|
|
}
|
|
|
|
.tabs > ul {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.box-tabs {
|
|
height: 28px;
|
|
}
|
|
|
|
.toolbar-mask {
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.style-off-tabs {
|
|
.toolbar {
|
|
@underscore_height: 3px;
|
|
|
|
.tabs, .extra {
|
|
background-color: transparent;
|
|
box-shadow: inset 0 -1px 0 0 @gray;
|
|
}
|
|
|
|
.tabs {
|
|
ul {
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
position: relative;
|
|
|
|
&:after {
|
|
//transition: opacity .1s;
|
|
//transition: bottom .1s;
|
|
border-top: @underscore_height solid @gray-deep;
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
bottom: -@underscore_height;
|
|
opacity: 0;
|
|
}
|
|
|
|
&.active {
|
|
background-color: transparent;
|
|
font-weight: bold;
|
|
|
|
&:after {
|
|
opacity: 1;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
&:hover:not(.active) {
|
|
background-color: rgba(0, 0, 0, .05);
|
|
//background-color: @secondary;
|
|
}
|
|
|
|
> a {
|
|
color: @gray-deep;
|
|
|
|
&::after {
|
|
display:block;
|
|
content:attr(data-title);
|
|
font-weight:bold;
|
|
height:1px;
|
|
color:transparent;
|
|
overflow:hidden;
|
|
visibility:hidden;
|
|
margin-bottom:-1px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.extra {
|
|
#header-logo {
|
|
i {
|
|
.background-ximage-v2('header/dark-logo.png', 86px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.tabs .scroll {
|
|
&.left {
|
|
box-shadow: 5px 0 20px 5px @gray-light;
|
|
}
|
|
|
|
&.right {
|
|
box-shadow: -5px 0 20px 5px @gray-light;
|
|
}
|
|
|
|
&:after {
|
|
border-color: @gray-deep;
|
|
}
|
|
}
|
|
|
|
// TODO: move to appropriate module
|
|
.btn-header, .btn-users {
|
|
svg.icon {
|
|
fill: @gray-deep;
|
|
}
|
|
|
|
.caption {
|
|
color: @gray-deep;
|
|
}
|
|
|
|
&:hover:not(.disabled) {
|
|
background-color: @secondary;
|
|
}
|
|
|
|
&:active, &.active {
|
|
&:not(.disabled) {
|
|
background-color: @primary;
|
|
|
|
svg.icon {
|
|
fill: #fff;
|
|
}
|
|
|
|
.caption {
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#rib-doc-name {
|
|
color: @gray-deep;
|
|
}
|
|
|
|
&.editor-native-color {
|
|
.tabs li:after {
|
|
border-color: @tabs-bg-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.style-skip-docname .toolbar {
|
|
#box-doc-name > input {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.toolbar-fullview-panel {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
z-index: @zindex-navbar + 3;
|
|
}
|
|
|
|
.toolbar {
|
|
&.cover {
|
|
ul {
|
|
z-index: @zindex-navbar + 4;
|
|
}
|
|
}
|
|
|
|
&:not(.cover):not(.z-clear) {
|
|
z-index: @zindex-navbar + 1;
|
|
}
|
|
}
|
|
|
|
.btn-toolbar {
|
|
&:active {
|
|
svg.icon {
|
|
fill: #fff;
|
|
}
|
|
}
|
|
|
|
svg.icon {
|
|
background-image: none;
|
|
|
|
fill: @gray-deep;
|
|
}
|
|
}
|
|
|
|
.button-otherstates-icon2(btn-toolbar, @toolbar-icon-size);
|
|
|
|
.button-normal-icon(btn-inserttable, 0, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-insertimage, 1, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-insertchart, 2, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-text, 3, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-insertshape, 4, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-ic-doclang, 5, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-textart, 6, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-insertequation, 7, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-notes, 8, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-inserthyperlink, 9, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-menu-comments', 10, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-addslide, 11, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-docspell', 12, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-review', 13, @x-huge-btn-icon-size);
|
|
.button-normal-icon(review-save, 14, @x-huge-btn-icon-size);
|
|
.button-normal-icon(review-deny, 15, @x-huge-btn-icon-size);
|
|
.button-normal-icon(review-next, 16, @x-huge-btn-icon-size);
|
|
.button-normal-icon(review-prev, 17, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-dropcap, 18, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-pagebreak', 19, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-editheader, 20, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-pageorient, 21, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-pagemargins, 22, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-pagesize, 23, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-columns, 24, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-img-align, 25, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-img-group, 26, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-img-bkwd, 27, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-img-frwd, 28, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-img-wrap, 29, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-reviewview', 30, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-sharing', 31, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-coedit', 32, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-chat', 33, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-history', 34, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-protect', 35, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-ic-signature', 36, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-add-pivot', 37, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-update-pivot', 38, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-contents-update, 38, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-pivot-layout', 39, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-blank-rows', 43, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-subtotals', 46, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-grand-totals', 52, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-contents', 53, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-controls, 54, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-select-pivot', 55, @x-huge-btn-icon-size);
|
|
.button-normal-icon(~'x-huge .btn-bookmarks', 56, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-blankpage, 57, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-print-area, 58, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-cell-group, 59, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-cell-ungroup, 60, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-to-columns, 61, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-watermark, 63, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-color-schema, 64, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-ins-formula, 65, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-autosum, 66, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-recent, 67, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-finance, 68, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-logic, 69, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-func-text, 70, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-datetime, 71, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-lookup, 72, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-func-math, 73, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-more, 74, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-pagenum, 75, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-caption, 76, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-calculation, 80, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-scale, 81, @x-huge-btn-icon-size);
|
|
|
|
[applang=ru] {
|
|
.btn-toolbar {
|
|
&:not(.x-huge) {
|
|
.icon:not(svg) {
|
|
&.btn-bold, &.btn-italic, &.btn-strikeout, &.btn-underline, &.btn-ic-docspell, &.btn-sort-down, &.btn-sort-up, &.btn-currency-style
|
|
{
|
|
.background-ximage-v2('controls/toolbar-menu-ru.png', @toolbarmenu-sprite-width);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.img-toolbarmenu.btn-ic-docspell {
|
|
.background-ximage-v2('controls/toolbar-menu-ru.png', @toolbarmenu-sprite-width);
|
|
}
|
|
|
|
.button-normal-icon(btn-notes, 77, @x-huge-btn-icon-size);
|
|
.button-normal-icon(btn-controls, 78, @x-huge-btn-icon-size);
|
|
|
|
.button-normal-icon(btn-bold, 0, @toolbar-icon-size);
|
|
.button-normal-icon(btn-italic, 1, @toolbar-icon-size);
|
|
.button-normal-icon(btn-strikeout, 2, @toolbar-icon-size);
|
|
.button-normal-icon(btn-underline, 3, @toolbar-icon-size);
|
|
.button-normal-icon(btn-ic-docspell, 4, @toolbar-icon-size);
|
|
.button-normal-icon(btn-sort-down, 5, @toolbar-icon-size);
|
|
.button-normal-icon(btn-sort-up, 6, @toolbar-icon-size);
|
|
.button-normal-icon(btn-currency-style, 7, @toolbar-icon-size);
|
|
|
|
.dropdown-menu.toc-menu {
|
|
--bckgHOffset: -144px;
|
|
}
|
|
}
|
|
|
|
|
|
.item-shape {
|
|
.icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
svg.icon {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
fill: #444444;
|
|
}
|
|
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|