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

537 lines
14 KiB
Plaintext
Raw Normal View History

@height-title: 28px;
2017-06-08 15:14:36 +00:00
@height-tabs: 32px;
@height-controls: 67px;
2017-06-02 14:26:43 +00:00
//@tabs-bg-color: #fff;
.toolbar {
position: relative;
&:not(.folded) {
height: @height-tabs + @height-controls;
}
&.folded {
2017-06-16 09:19:44 +00:00
height: @height-tabs;
transition: height .2s;
overflow: hidden;
2017-06-16 09:19:44 +00:00
&.expanded {
height: @height-tabs + @height-controls;
overflow: visible;
}
2017-06-16 09:19:44 +00:00
&:not(.expanded):not(.cover){
2018-02-06 21:55:24 +00:00
.ribtab.active {
> a {
font-weight: normal;
}
2017-06-16 09:19:44 +00:00
}
}
}
.box-tabs {
2017-06-16 09:19:44 +00:00
height: @height-tabs;
2017-06-26 12:50:30 +00:00
font-size: 12px;
2017-06-16 09:19:44 +00:00
display: flex;
align-items: stretch;
2017-06-16 09:19:44 +00:00
.extra {
background-color: @tabs-bg-color;
}
2017-06-08 15:14:36 +00:00
//&::after {
// content: '';
// position: absolute;
// width: 100%;
// border-top: 1px solid @gray-dark;
// top: @height-tabs - 1;
// left: 0;
// z-index: 1;
//}
2017-06-16 09:19:44 +00:00
}
.tabs {
//flex-grow: 1;
2017-06-08 15:14:36 +00:00
background-color: @tabs-bg-color;
position: relative;
overflow: hidden;
display: flex;
2018-02-06 21:55:24 +00:00
> ul {
padding: 4px 0 0;
margin: 0;
white-space: nowrap;
overflow: hidden;
list-style: none;
font-size: 0;
2017-06-08 15:14:36 +00:00
}
2018-02-06 21:55:24 +00:00
li {
display: inline-flex;
align-items: center;
height: 100%;
&:hover {
2017-06-14 09:58:04 +00:00
background-color: rgba(255,255,255,0.2);
}
2018-02-06 21:55:24 +00:00
&.active {
2017-06-14 09:58:04 +00:00
background-color: @gray-light;
2017-06-08 15:14:36 +00:00
}
2018-02-06 21:55:24 +00:00
> a {
display: inline-block;
padding: 0 12px;
text-decoration: none;
cursor: default;
font-size: 12px;
text-align: center;
color: #fff;
}
2017-06-08 15:14:36 +00:00
2018-02-06 21:55:24 +00:00
&.active {
> a {
color: #444;
}
}
}
2018-02-06 21:55:24 +00:00
&:not(.short) {
.scroll {
display: none;
}
}
2018-02-06 21:55:24 +00:00
.scroll {
line-height: @height-tabs;
min-width: 20px;
z-index: 1;
cursor: pointer;
position: relative;
display: flex;
align-items: center;
2018-02-06 21:55:24 +00:00
&:hover {
text-decoration: none;
}
&:not(:hover) {
&:after {
opacity: .8;
}
}
2018-02-06 21:55:24 +00:00
&.left{
box-shadow: 5px 0 20px 5px @tabs-bg-color;
&:after {
transform: rotate(135deg);
margin-left: 8px;
}
2018-02-06 21:55:24 +00:00
}
&.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;
2018-02-06 21:55:24 +00:00
}
}
}
.box-controls {
//height: @height-controls; // button has strange offset in IE when odd height
2017-06-16 09:19:44 +00:00
padding: 10px 0;
display: flex;
2017-06-16 09:19:44 +00:00
//background-color: #F2CBBF;
2017-06-16 09:19:44 +00:00
.panel {
display: table;
height: 100%;
}
//width: 100%;
}
.box-panels {
2017-06-30 14:47:07 +00:00
flex-grow: 1;
-ms-flex: 1;
2017-06-30 14:47:07 +00:00
.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 {
2017-08-31 08:15:03 +00:00
position: relative;
display: table-cell;
2017-06-15 13:18:40 +00:00
vertical-align: middle;
white-space: nowrap;
padding-left: 12px;
2017-07-11 08:26:42 +00:00
font-size: 0;
&:last-child {
padding-right: 12px;
}
}
.elset {
2017-06-16 09:19:44 +00:00
height: 20px;
font-size: 0;
2017-06-16 09:19:44 +00:00
&:not(:first-child) {
margin-top: 6px;
}
}
.separator {
margin-left: 12px;
2017-04-21 13:36:06 +00:00
&.close {
margin-left: 5px;
}
&.long {
height: 46px;
}
&.short {
height: 20px;
}
}
.btn-slot {
display: inline-block;
width: 20px;
2017-06-30 14:53:29 +00:00
height: auto;
&.split {
2017-07-03 15:27:50 +00:00
width: 31px;
}
&.text {
width: auto;
}
&.border {
border: 1px solid @gray;
.border-radius(1px);
width: 22px;
height: 22px;
}
2017-06-30 14:49:58 +00:00
.checkbox-indeterminate {
margin-top: 3px;
}
}
2018-02-06 21:55:24 +00:00
.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;
}
2018-02-06 21:55:24 +00:00
.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;
}
2018-02-06 21:55:24 +00:00
}
}
2019-02-06 13:44:36 +00:00
.style-off-tabs {
.toolbar {
@underscore_height: 3px;
2019-02-06 13:44:36 +00:00
.tabs, .extra {
background-color: transparent;
box-shadow: inset 0 -1px 0 0 @gray;
}
2019-02-06 13:44:36 +00:00
.tabs {
ul {
padding: 0;
}
2019-02-06 13:44:36 +00:00
li {
position: relative;
&:after {
2019-02-06 13:44:36 +00:00
//transition: opacity .1s;
//transition: bottom .1s;
border-top: @underscore_height solid @gray-deep;
content: '';
position: absolute;
width: 100%;
bottom: -@underscore_height;
opacity: 0;
}
2019-02-06 13:44:36 +00:00
&.active {
background-color: transparent;
2019-06-05 10:47:23 +00:00
font-weight: bold;
2019-02-06 13:44:36 +00:00
&:after {
opacity: 1;
bottom: 0;
}
}
2018-02-06 21:55:24 +00:00
2019-02-06 13:44:36 +00:00
&:hover:not(.active) {
background-color: rgba(0, 0, 0, .05);
//background-color: @secondary;
}
> a {
color: @gray-deep;
2019-06-05 10:47:23 +00:00
&::after {
display:block;
content:attr(data-title);
font-weight:bold;
height:1px;
color:transparent;
overflow:hidden;
visibility:hidden;
margin-bottom:-1px;
}
2019-02-06 13:44:36 +00:00
}
}
}
2019-02-06 13:44:36 +00:00
.extra {
#header-logo {
i {
.background-ximage('@{common-image-path}/header/dark-logo.png', '@{common-image-path}/header/dark-logo@2x.png', 86px);
}
}
}
2019-02-07 11:57:59 +00:00
.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;
}
}
2019-02-06 13:44:36 +00:00
// TODO: move to appropriate module
.btn-header, .btn-users {
2019-02-06 13:44:36 +00:00
svg.icon {
fill: @gray-deep;
}
.caption {
color: @gray-deep;
2019-02-06 13:44:36 +00:00
}
2019-02-06 13:44:36 +00:00
&:hover:not(.disabled) {
background-color: @secondary;
}
2019-02-06 13:44:36 +00:00
&:active, &.active {
&:not(.disabled) {
background-color: @primary;
2019-02-06 13:44:36 +00:00
svg.icon {
fill: #fff;
}
.caption {
color: #fff;
}
}
}
}
2019-02-06 13:44:36 +00:00
#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%;
2018-04-24 13:15:26 +00:00
z-index: @zindex-navbar + 3;
2017-05-01 11:30:44 +00:00
}
.toolbar {
&.cover {
ul {
2018-04-24 13:15:26 +00:00
z-index: @zindex-navbar + 4;
2017-05-01 11:30:44 +00:00
}
}
2018-05-03 16:02:09 +00:00
&:not(.cover):not(.z-clear) {
z-index: @zindex-navbar + 1;
}
}
2017-04-20 13:36:15 +00:00
.btn-toolbar {
&:active {
svg.icon {
fill: #fff;
}
}
svg.icon {
background-image: none;
fill: @gray-deep;
}
}
2017-04-25 16:55:19 +00:00
.button-otherstates-icon2(btn-toolbar, @toolbar-icon-size);
2017-06-28 11:16:09 +00:00
@toolbar-big-icon-size: 26px;
.button-normal-icon(btn-inserttable, 0, @toolbar-big-icon-size);
.button-normal-icon(btn-insertimage, 1, @toolbar-big-icon-size);
.button-normal-icon(btn-insertchart, 2, @toolbar-big-icon-size);
.button-normal-icon(btn-text, 3, @toolbar-big-icon-size);
.button-normal-icon(btn-insertshape, 4, @toolbar-big-icon-size);
.button-normal-icon(btn-ic-doclang, 5, @toolbar-big-icon-size);
.button-normal-icon(btn-textart, 6, @toolbar-big-icon-size);
.button-normal-icon(btn-insertequation, 7, @toolbar-big-icon-size);
.button-normal-icon(btn-notes, 8, @toolbar-big-icon-size);
.button-normal-icon(btn-inserthyperlink, 9, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-menu-comments', 10, @toolbar-big-icon-size);
.button-normal-icon(btn-addslide, 11, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-docspell', 12, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-review', 13, @toolbar-big-icon-size);
.button-normal-icon(review-save, 14, @toolbar-big-icon-size);
.button-normal-icon(review-deny, 15, @toolbar-big-icon-size);
.button-normal-icon(review-next, 16, @toolbar-big-icon-size);
.button-normal-icon(review-prev, 17, @toolbar-big-icon-size);
2017-06-30 14:35:48 +00:00
.button-normal-icon(btn-dropcap, 18, @toolbar-big-icon-size);
2017-07-11 08:27:56 +00:00
.button-normal-icon(~'x-huge .btn-pagebreak', 19, @toolbar-big-icon-size);
.button-normal-icon(btn-editheader, 20, @toolbar-big-icon-size);
2017-07-11 08:27:56 +00:00
.button-normal-icon(btn-pageorient, 21, @toolbar-big-icon-size);
.button-normal-icon(btn-pagemargins, 22, @toolbar-big-icon-size);
.button-normal-icon(btn-pagesize, 23, @toolbar-big-icon-size);
.button-normal-icon(btn-columns, 24, @toolbar-big-icon-size);
.button-normal-icon(btn-img-align, 25, @toolbar-big-icon-size);
.button-normal-icon(btn-img-group, 26, @toolbar-big-icon-size);
.button-normal-icon(btn-img-bkwd, 27, @toolbar-big-icon-size);
.button-normal-icon(btn-img-frwd, 28, @toolbar-big-icon-size);
.button-normal-icon(btn-img-wrap, 29, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-reviewview', 30, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-sharing', 31, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-coedit', 32, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-chat', 33, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-history', 34, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-protect', 35, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-ic-signature', 36, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-add-pivot', 37, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-update-pivot', 38, @toolbar-big-icon-size);
.button-normal-icon(btn-contents-update, 38, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-pivot-layout', 39, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-blank-rows', 43, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-subtotals', 46, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-grand-totals', 52, @toolbar-big-icon-size);
.button-normal-icon(~'x-huge .btn-contents', 53, @toolbar-big-icon-size);
.button-normal-icon(btn-controls, 54, @toolbar-big-icon-size);
2018-02-06 13:29:11 +00:00
.button-normal-icon(~'x-huge .btn-select-pivot', 55, @toolbar-big-icon-size);
2018-02-19 11:56:44 +00:00
.button-normal-icon(~'x-huge .btn-bookmarks', 56, @toolbar-big-icon-size);
2018-11-21 09:07:02 +00:00
.button-normal-icon(btn-blankpage, 57, @toolbar-big-icon-size);
2019-04-01 13:10:35 +00:00
.button-normal-icon(btn-print-area, 58, @toolbar-big-icon-size);
2019-06-06 10:11:51 +00:00
.button-normal-icon(btn-cell-group, 59, @toolbar-big-icon-size);
.button-normal-icon(btn-cell-ungroup, 60, @toolbar-big-icon-size);
.button-normal-icon(btn-to-columns, 61, @toolbar-big-icon-size);
.button-normal-icon(btn-color-schema, 64, @toolbar-big-icon-size);
2019-04-01 13:10:35 +00:00
.item-shape {
.icon {
width: 20px;
height: 20px;
}
svg.icon {
display: inline-block;
vertical-align: middle;
fill: #444444;
}
width: 20px;
height: 20px;
}