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

282 lines
10 KiB
Plaintext
Raw Normal View History

2018-02-27 13:17:15 +00:00
@tabs-bg-color: #40865c;
2017-06-02 14:26:43 +00:00
2016-03-11 00:48:53 +00:00
.toolbar {
&.masked {
2017-06-15 13:18:40 +00:00
button.disabled .icon:not(.no-mask) {
2016-03-11 00:48:53 +00:00
background-position-x: 0px !important;
}
2017-06-15 13:18:40 +00:00
.group:not(.no-mask) {
2016-03-11 00:48:53 +00:00
opacity: 0.4;
}
}
2017-04-27 15:40:27 +00:00
.simple-bar {
display: table;
width: 100%;
}
2017-04-28 16:42:01 +00:00
.font-attr {
> .btn-slot:not(:last-child):not(.split) {
margin-right: 6px;
2017-04-28 16:42:01 +00:00
}
> .btn-slot.split:not(:last-child) {
margin-right: 5px;
}
}
.font-attr-top {
2017-12-05 13:58:01 +00:00
width: 243px;
2017-04-28 16:42:01 +00:00
> .btn-slot {
float: left;
&:not(:first-child) {
margin-left: 2px;
}
}
}
2016-03-11 00:48:53 +00:00
}
.color-schemas-menu {
span {
&.colors {
display: inline-block;
margin-right: 15px;
}
&.color {
display: inline-block;
width: 12px;
height: 12px;
margin-right: 2px;
border: 1px solid rgba(0, 0, 0, 0.2);
vertical-align: middle;
}
&.text {
vertical-align: middle;
}
}
2019-08-20 12:56:29 +00:00
&.checked {
&:before {
display: none !important;
}
&, &:hover, &:focus {
background-color: @primary;
color: @dropdown-link-active-color;
span.color {
2019-08-21 10:04:49 +00:00
border-color: rgba(255,255,255,0.7);
2019-08-20 12:56:29 +00:00
}
}
}
2016-03-11 00:48:53 +00:00
}
// menu zoom
.menu-zoom {
line-height: @line-height-base;
2016-03-11 00:48:53 +00:00
.title {
2018-05-10 11:23:02 +00:00
padding: 5px 5px 5px 20px;
2016-03-11 00:48:53 +00:00
float: left;
max-width: 95px;
overflow: hidden;
text-overflow: ellipsis;
}
.zoom {
padding: 5px 3px;
float: right;
2017-08-08 11:29:43 +00:00
min-width: 40px;
text-align: center;
2016-03-11 00:48:53 +00:00
}
}
@toolbar-icon-size: 20px;
.toolbar-btn-icon(btn-fontcolor, 0, @toolbar-icon-size);
.toolbar-btn-icon(btn-valign-top, 1, @toolbar-icon-size);
//
2019-07-16 07:36:15 +00:00
.button-normal-icon(btn-bold, 3, @toolbar-icon-size);
.button-normal-icon(btn-border-all, 4, @toolbar-icon-size);
.button-normal-icon(btn-clearstyle, 5, @toolbar-icon-size);
.button-normal-icon(btn-incdecimal, 6, @toolbar-icon-size);
.button-normal-icon(btn-decdecimal, 7, @toolbar-icon-size);
.button-normal-icon(btn-italic, 8, @toolbar-icon-size);
.button-normal-icon(btn-fillparag, 9, @toolbar-icon-size);
.button-normal-icon(btn-merge, 10, @toolbar-icon-size);
.button-normal-icon(btn-print, 11, @toolbar-icon-size);
.button-normal-icon(btn-redo, 12, @toolbar-icon-size);
.button-normal-icon(btn-save, 13, @toolbar-icon-size);
.button-normal-icon(btn-sort-down, 14, @toolbar-icon-size);
.button-normal-icon(btn-formula, 15, @toolbar-icon-size);
.button-normal-icon(btn-undo, 16, @toolbar-icon-size);
.button-normal-icon(btn-wrap, 17, @toolbar-icon-size);
.button-normal-icon(btn-underline, 18, @toolbar-icon-size);
.button-normal-icon(btn-align-left, 21, @toolbar-icon-size);
.button-normal-icon(btn-align-center, 19, @toolbar-icon-size);
.button-normal-icon(btn-align-right, 22, @toolbar-icon-size);
.button-normal-icon(btn-align-just, 20, @toolbar-icon-size);
.button-normal-icon(btn-valign-middle, 23, @toolbar-icon-size);
.button-normal-icon(btn-valign-bottom, 24, @toolbar-icon-size);
.button-normal-icon(btn-border-out, 25, @toolbar-icon-size);
.button-normal-icon(btn-border-top, 26, @toolbar-icon-size);
.button-normal-icon(btn-border-bottom, 27, @toolbar-icon-size);
.button-normal-icon(btn-border-left, 28, @toolbar-icon-size);
.button-normal-icon(btn-border-right, 29, @toolbar-icon-size);
.button-normal-icon(btn-border-no, 30, @toolbar-icon-size);
.button-normal-icon(btn-border-center, 31, @toolbar-icon-size);
.button-normal-icon(btn-border-hmiddle, 32, @toolbar-icon-size);
.button-normal-icon(btn-border-vmiddle, 33, @toolbar-icon-size);
.button-normal-icon(btn-copy, 37, @toolbar-icon-size);
.button-normal-icon(btn-paste, 38, @toolbar-icon-size);
.button-normal-icon(btn-synch, 39, @toolbar-icon-size);
.button-normal-icon(btn-autofilter, 40, @toolbar-icon-size);
.button-normal-icon(btn-colorschemas, 41, @toolbar-icon-size);
.button-normal-icon(btn-newdocument, 42, @toolbar-icon-size);
.button-normal-icon(btn-opendocument, 43, @toolbar-icon-size);
.button-normal-icon(btn-incfont, 44, @toolbar-icon-size);
.button-normal-icon(btn-decfont, 45, @toolbar-icon-size);
.button-normal-icon(btn-text-orient, 46, @toolbar-icon-size);
.button-normal-icon(btn-sort-up, 49, @toolbar-icon-size);
.button-normal-icon(btn-clear-filter, 50, @toolbar-icon-size);
.button-normal-icon(btn-percent-style, 51, @toolbar-icon-size);
.button-normal-icon(btn-currency-style, 52, @toolbar-icon-size);
.button-normal-icon(btn-addcell, 53, @toolbar-icon-size);
.button-normal-icon(btn-delcell, 54, @toolbar-icon-size);
.button-normal-icon(btn-ttempl, 80, @toolbar-icon-size);
2016-03-11 00:48:53 +00:00
//
2019-07-16 07:36:15 +00:00
.button-normal-icon(btn-showmode, 56, @toolbar-icon-size);
.button-normal-icon(btn-settings, 57, @toolbar-icon-size);
2016-03-11 00:48:53 +00:00
//
2019-07-16 07:36:15 +00:00
.button-normal-icon(btn-search, 62, @toolbar-icon-size);
.button-normal-icon(btn-zoomin, 67, @toolbar-icon-size);
.button-normal-icon(btn-zoomout, 68, @toolbar-icon-size);
.button-normal-icon(btn-copystyle, 73, @toolbar-icon-size);
.button-normal-icon(btn-save-coauth, 76, @toolbar-icon-size);
.button-normal-icon(btn-border-diagup, 42, @toolbar-icon-size);
.button-normal-icon(btn-border-diagdown, 43, @toolbar-icon-size);
2019-08-02 10:56:21 +00:00
.button-normal-icon(btn-spellcheck-next, 70, @toolbar-icon-size);
.button-normal-icon(btn-spellcheck-preview, 72, @toolbar-icon-size);
2019-07-16 07:36:15 +00:00
.button-normal-icon(btn-named-range, 77, @toolbar-icon-size);
.button-normal-icon(btn-strikeout, 84, @toolbar-icon-size);
.button-normal-icon(btn-subscript, 85, @toolbar-icon-size);
.button-normal-icon(btn-superscript, 86, @toolbar-icon-size);
.button-normal-icon(rotate-90, 89, @toolbar-icon-size);
.button-normal-icon(rotate-270, 90, @toolbar-icon-size);
.button-normal-icon(flip-hor, 91, @toolbar-icon-size);
.button-normal-icon(flip-vert, 92, @toolbar-icon-size);
.button-normal-icon(btn-show-details, 73, @toolbar-icon-size);
.button-normal-icon(btn-hide-details, 73, @toolbar-icon-size);
2016-03-11 00:48:53 +00:00
@menu-icon-size: 22px;
.menu-btn-icon(mnu-align-center, 0, @menu-icon-size);
.menu-btn-icon(mnu-align-just, 1, @menu-icon-size);
.menu-btn-icon(mnu-align-left, 2, @menu-icon-size);
.menu-btn-icon(mnu-align-right, 3, @menu-icon-size);
.menu-btn-icon(mnu-valign-bottom, 4, @menu-icon-size);
.menu-btn-icon(mnu-valign-middle, 5, @menu-icon-size);
.menu-btn-icon(mnu-valign-top, 6, @menu-icon-size);
.menu-btn-icon(mnu-border-all, 7, @menu-icon-size);
.menu-btn-icon(mnu-border-center, 8, @menu-icon-size);
.menu-btn-icon(mnu-border-bottom, 9, @menu-icon-size);
.menu-btn-icon(mnu-border-hmiddle, 10, @menu-icon-size);
.menu-btn-icon(mnu-border-top, 11, @menu-icon-size);
.menu-btn-icon(mnu-border-no, 12, @menu-icon-size);
.menu-btn-icon(mnu-border-out, 13, @menu-icon-size);
.menu-btn-icon(mnu-border-left, 14, @menu-icon-size);
.menu-btn-icon(mnu-border-vmiddle, 15, @menu-icon-size);
.menu-btn-icon(mnu-border-right, 16, @menu-icon-size);
//
.menu-btn-icon(mnu-arrange-front, 19, @menu-icon-size);
.menu-btn-icon(mnu-arrange-back, 20, @menu-icon-size);
.menu-btn-icon(mnu-arrange-forward, 21, @menu-icon-size);
.menu-btn-icon(mnu-arrange-backward, 22, @menu-icon-size);
.menu-btn-icon(mnu-sort-asc, 23, @menu-icon-size);
.menu-btn-icon(mnu-sort-desc, 24, @menu-icon-size);
.menu-btn-icon(mnu-filter-add, 25, @menu-icon-size);
.menu-btn-icon(mnu-filter-clear, 26, @menu-icon-size);
.menu-btn-icon(mnu-direct-horiz, 27, @menu-icon-size);
.menu-btn-icon(mnu-direct-ccw, 28, @menu-icon-size);
.menu-btn-icon(mnu-direct-cw, 29, @menu-icon-size);
//
.menu-btn-icon(mnu-direct-rup, 31, @menu-icon-size);
.menu-btn-icon(mnu-direct-rdown, 32, @menu-icon-size);
.menu-btn-icon(mnu-group, 33, @menu-icon-size);
.menu-btn-icon(mnu-ungroup, 34, @menu-icon-size);
//
.menu-btn-icon(mnu-border-diagup, 36, @menu-icon-size);
.menu-btn-icon(mnu-border-diagdown, 37, @menu-icon-size);
2017-12-05 13:58:01 +00:00
//
.menu-btn-icon(mnu-text-subscript, 38, @menu-icon-size);
.menu-btn-icon(mnu-text-superscript, 39, @menu-icon-size);
2016-03-11 00:48:53 +00:00
2018-07-18 11:45:17 +00:00
.menu-btn-icon(mnu-orient-portrait, 48, @menu-icon-size);
.menu-btn-icon(mnu-orient-landscape, 49, @menu-icon-size);
.menu-btn-icon(mnu-img-align-center, 41, @menu-icon-size);
.menu-btn-icon(mnu-img-align-left, 40, @menu-icon-size);
.menu-btn-icon(mnu-img-align-right, 42, @menu-icon-size);
.menu-btn-icon(mnu-img-align-bottom, 45, @menu-icon-size);
.menu-btn-icon(mnu-img-align-middle, 44, @menu-icon-size);
.menu-btn-icon(mnu-img-align-top, 43, @menu-icon-size);
2019-02-14 14:50:36 +00:00
.menu-btn-icon(mnu-distrib-hor, 46, @menu-icon-size);
.menu-btn-icon(mnu-distrib-vert, 47, @menu-icon-size);
2018-06-28 12:42:01 +00:00
2016-03-11 00:48:53 +00:00
.username-tip {
background-color: #ee3525;
border: none;
border-radius: 0;
padding: 3px 10px;
color: #ffffff;
font: 11px arial;
pointer-events: none;
white-space: nowrap;
letter-spacing: 1px;
2016-03-11 00:48:53 +00:00
}
#id-toolbar-btn-num-format button .caption {
display: inline-block;
}
#id-toolbar-mnu-item-border-width {
.border-size-item {
background: ~"url(@{app-image-const-path}/toolbar/BorderSize.png) no-repeat scroll 0 0";
2016-03-11 00:48:53 +00:00
width: 80px;
height: 20px;
margin-top: -3px;
margin-bottom: -2px;
}
}
2016-10-24 13:40:06 +00:00
.item-equation {
border: 1px solid @gray;
2019-10-21 14:05:50 +00:00
.background-ximage-v2('toolbar/math.png', 1500px);
2016-10-24 13:40:06 +00:00
}
#special-paste-container,
#autocorrect-paste-container {
position: absolute;
z-index: @zindex-dropdown - 20;
background-color: @gray-light;
border: 1px solid @gray;
2017-04-27 15:40:27 +00:00
}
2017-04-28 16:42:01 +00:00
#slot-field-fontname {
2017-12-05 13:58:01 +00:00
width: 148px;
2017-04-28 16:42:01 +00:00
}
#slot-field-fontsize {
width: 45px;
}
.item-markerlist {
2019-10-21 14:05:50 +00:00
.background-ximage-v2('toolbar/bullets-and-numbering.png', 38px);
width: 38px;
height: 38px;
}