Files
DocumentServer-v-9.2.0/web-apps/apps/common/main/resources/less/buttons.less
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

1657 lines
43 KiB
Plaintext

@x-tiny-btn-size: 20px;
@x-tiny-btn-icon-size: 20px;
.btn {
border-radius: @border-radius-button-base-ie;
border-radius: @border-radius-button-base;
color: @text-normal-ie;
color: @text-normal;
border-width: @scaled-one-px-value-ie;
border-width: @scaled-one-px-value;
.btnsize(@value) {
min-width: @value;
height: @value;
line-height: @value - 2px;
}
&.tiny {
.btnsize(@x-tiny-btn-size);
}
&.small {
min-width: @x-small-btn-size-ie;
min-width: @x-small-btn-size;
height: @x-small-btn-size-ie;
height: @x-small-btn-size;
line-height: calc(@x-small-btn-size-ie - 2px);
line-height: calc(@x-small-btn-size - 2px);
}
&.normal {
height: @form-control-size-ie;
height: @form-control-size;
}
&.large {
.btnsize(30px);
}
&.huge {
.btnsize(37px);
}
&.huge-1 {
.btnsize(40px);
}
&.x-huge {
min-width: @x-huge-btn-height-ie;
min-width: @x-huge-btn-height;
height: @x-huge-btn-height-ie;
height: @x-huge-btn-height;
line-height: calc(@x-huge-btn-height-ie - 2px);
line-height: calc(@x-huge-btn-height - 2px);
}
&[disabled], &.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
&:focus {
outline: 0;
outline-offset: 0;
color: @text-normal-ie;
color: @text-normal;
}
&:hover {
color: @text-normal-ie;
color: @text-normal;
}
&:active, &.active {
-webkit-box-shadow: none;
box-shadow: none;
}
.caret {
width: 4px;
height: 4px;
border: solid 1px @icon-normal-ie;
border: solid 1px @icon-normal;
border-bottom: none;
border-right: none;
background-image: none;
transition: transform 0.2s ease;
transform: rotate(-135deg) translate(1px,1px);
&.compact-caret {
display: none;
}
}
//&:active,
&:active:not(.disabled),
&.active:not(.disabled){
.caret {
transform: rotate(45deg);
border-color: @icon-normal-pressed-ie;
border-color: @icon-normal-pressed;
}
}
&:active,
&.active {
&:focus,
&.focus {
outline: none;
}
}
.caption {
.font-size-normal();
}
&.icon-top {
display: inline-flex;
flex-direction: column;
align-items: center;
.icon {
//flex-grow: 1;
}
.caption {
line-height: 18px;
padding: 0 4px;
}
}
&.notify {
.icon {
&::before {
content: ' ';
position: absolute;
width: 7px;
height: 7px;
bottom: 1px;
right: 1px;
background-color: @background-notification-badge-ie;
background-color: @background-notification-badge;
border-radius: 4px;
border: solid 1px rgba(122, 99, 0, 0.5)
}
}
}
.icon {
&.caret-up, &.caret-down {
&::after {
content: '';
position: absolute;
left: 6px;
width: 8px;
height: 8px;
background-color: transparent;
border: solid 1px @text-normal-ie;
border: solid 1px @text-normal;
border-bottom: none;
border-right: none;
}
}
&.caret-up {
&::after {
top: 8px;
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
}
&.caret-down {
&::after {
top: 4px;
-moz-transform: rotate(225deg);
-ms-transform: rotate(225deg);
-webkit-transform: rotate(225deg);
-o-transform: rotate(225deg);
transform: rotate(225deg);
}
}
&.caret-double-right, &.caret-double-left {
&::before, &::after {
content: '';
position: absolute;
top: 7px;
width: 6px;
height: 6px;
background-color: transparent;
border: solid 1px @text-normal-ie;
border: solid 1px @text-normal;
border-bottom: none;
border-right: none;
}
}
&.caret-double-right {
&::before {
left: 3px;
}
&::after {
left: 9px;
}
&::before, &::after {
-moz-transform: rotate(135deg);
-ms-transform: rotate(135deg);
-webkit-transform: rotate(135deg);
-o-transform: rotate(135deg);
transform: rotate(135deg);
}
}
&.caret-double-left {
&::before {
left: 5px;
}
&::after {
left: 11px;
}
&::before, &::after {
-moz-transform: rotate(315deg);
-ms-transform: rotate(315deg);
-webkit-transform: rotate(315deg);
-o-transform: rotate(315deg);
transform: rotate(315deg);
}
}
}
&:not(:disabled) {
.icon {
opacity: @component-normal-icon-opacity;
}
}
&:hover:not(.disabled) {
.icon {
opacity: @component-hover-icon-opacity;
}
}
&:active:not(.disabled),
&.active:not(.disabled) {
.caret-up, .caret-down {
&::after {
border-color: @text-normal-pressed-ie;
border-color: @text-normal-pressed;
}
}
.caret-double-left, .caret-double-right {
&::before, &::after {
border-color: @text-normal-pressed-ie;
border-color: @text-normal-pressed;
}
}
.icon {
opacity: @component-active-icon-opacity;
}
&:hover .icon {
opacity: @component-active-hover-icon-opacity;
}
}
&.icon-mirrored {
.icon {
transform: scale(-1,1);
}
}
}
.btn.icon-top, .btn-group.icon-top {
display: inline-flex;
flex-direction: column;
&.open,
&.over {
&.split {
> .inner-box-icon {
.box-shadow(none);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
> .inner-box-caption {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
}
&.x-huge {
@icon-size: 28px;
min-width: 35px;
height: @x-huge-btn-height-ie;
height: @x-huge-btn-height;
img:not(.menu-item-icon) {
width: @x-huge-btn-icon-size-ie;
width: @x-huge-btn-icon-size;
height: @x-huge-btn-icon-size-ie;
height: @x-huge-btn-icon-size;
}
.inner-box-caption {
line-height: 18px;
padding: 1px 3px;
display: flex;
align-items: start;
height: 24px;
height: calc((@font-size-base-app + 2px) * 2);
.caption {
max-width: 160px;//85px;
max-height: 24px;
text-overflow: ellipsis;
white-space: pre;
line-height: 1;
padding: 0 2px;
.caret {
margin: 0 4px;
}
.emptycaption & { // used for buttons without caption, but with color div
width: 37px;
.caret {
margin: 0 1px 0 2px;
.rtl & {
margin: 0 2px 0 1px;
}
}
}
}
.pixel-ratio__2_5 & {
width: 100%;
justify-content: center;
}
}
.icon:not(svg) {
width: @x-huge-btn-icon-size-ie;
width: @x-huge-btn-icon-size;
height: @x-huge-btn-icon-size-ie;
height: @x-huge-btn-icon-size;
min-width: 0;
}
svg.icon {
width: 28px;
height: 28px;
@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(~"40px/1.5");
//height:calc(~"40px/1.5");
}
}
button.small .icon {
width: @x-small-btn-icon-size-ie;
width: @x-small-btn-icon-size;
height: @x-small-btn-icon-size-ie;
height: @x-small-btn-icon-size;
min-width: 0;
}
&.dropdown-toggle {
.caption {
//max-width: 100px;
}
}
}
.inner-box-icon {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
line-height: 20px;
.pixel-ratio__2_5 & {
width: 100%;
}
}
.btn-fixflex-hcenter {
flex-grow: 1;
.pixel-ratio__2_5 & {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
}
.btn-fixflex-vcenter {
display: flex;
align-items: center;
.caret {
vertical-align: inherit;
}
}
.inner-box-caption {
margin: 0;
height: 20px;
}
div.inner-box-icon {
height: 28px; // TODO: clear. Firefox bug 984869. fixed. isn't released.
}
}
.icon-top {
&.x-huge {
.btn&, .btn-group& .btn-toolbar {
.mx-button-otherstates-icon2(@button-xhuge-active-icon-offset-x-ie);
.mx-button-otherstates-icon2(@button-xhuge-active-icon-offset-x);
}
}
}
.icon-custom {
background-position: 0 0 !important;
background-size: cover;
}
.btn-toolbar {
display: inline-block;
position: relative;
margin: 0;
padding: 0;
border: 0;
.border-radius(@border-radius-button-toolbar-ie);
.border-radius(@border-radius-button-toolbar);
background-color: transparent;
.masked:not(.statusbar) & {
&:disabled {
opacity: 1;
}
}
.btn.small;
&.bg-white {
width: @form-control-size-ie;
width: @form-control-size;
height: @form-control-size-ie;
height: @form-control-size;
background-color: @background-normal-ie;
background-color: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
&:focus:not(.disabled) {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
}
}
&:before,
&:after {
content: "";
display: none;
}
&:hover:not(.disabled),
.over:not(.disabled),
.highlight-tip & {
background-color: @highlight-button-hover-ie;
background-color: @highlight-button-hover;
}
&:active:not(.disabled),
&.active:not(.disabled) {
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
background-color: @highlight-button-pressed-ie;
background-color: @highlight-button-pressed;
}
&:not(.icon-top)
.caption:not(:empty) {
padding: 0 4px;
}
.icon {
padding: 0;
margin: 0;
display: inline-block;
background-repeat: no-repeat;
}
&:not(.x-huge) {
.icon {
width: @x-small-btn-icon-size-ie;
width: @x-small-btn-icon-size;
height: @x-small-btn-icon-size-ie;
height: @x-small-btn-icon-size;
line-height: @x-small-btn-icon-size-ie;
line-height: @x-small-btn-icon-size;
}
svg.icon {
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9),
only screen and (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx),
only screen and (min-resolution: 144dpi) and (max-resolution: 143dpi) {
//width:calc(~"28px/1.5");
//height:calc(~"28px/1.5");
}
}
}
&.dropdown-toggle {
min-width: 7px;
}
// Large size
// ------------------------
&.large {
.icon {
width: 30px !important;
height: 30px;
line-height: 20px;
}
}
// Button has color line
// ------------------------
.btn-color-value-line {
pointer-events: none;
position: absolute;
left: 3px;
bottom: 1px;
width: calc(@x-small-btn-size-ie - 2*3px);
width: calc(@x-small-btn-size - 2*3px);
height: 3px;
background-color: red;
.rtl & {
left: auto;
right: 3px;
}
&.bordered {
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
}
.x-huge & {
left: 8px;
width: 28px;
height: 6px;
.rtl & {
left: auto;
right: 8px;
}
}
.x-huge.split & {
bottom: auto;
top: 4px;
}
}
.btn-color-value-box {
pointer-events: none;
position: absolute;
left: 3px;
bottom: 3px;
width: calc(@x-small-btn-size-ie - 2*3px);
width: calc(@x-small-btn-size - 2*3px);
height: calc(@x-small-btn-size-ie - 2*3px);
height: calc(@x-small-btn-size - 2*3px);
background-color: red;
.rtl & {
left: auto;
right: 3px;
}
&.bordered {
border: @scaled-one-px-value-ie solid @border-color-shading-ie;
border: @scaled-one-px-value solid @border-color-shading;
}
}
&.no-icon {
.icon {
visibility: hidden;
}
}
&.no-caret {
.inner-box-caret {
display: none;
}
}
&.align-left {
.text-align-left();
}
}
.btn-category {
min-width: @x-category-btn-size-ie;
min-width: @x-category-btn-size;
height: @x-category-btn-size-ie;
height: @x-category-btn-size;
line-height: calc(@x-category-btn-size-ie - 2px);
line-height: calc(@x-category-btn-size - 2px);
width: 100%;
padding: 0;
display: block;
position: relative;
.border-radius(@border-radius-button-category-ie);
.border-radius(@border-radius-button-category);
.font-size-normal();
.font-weight-bold();
background-color: transparent;
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-button-hover-ie;
background-color: @highlight-button-hover;
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-button-pressed-ie;
background-color: @highlight-button-pressed;
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
}
.icon {
display: inline-block;
position: relative;
width: @x-small-btn-icon-size-ie;
width: @x-small-btn-icon-size;
height: @x-small-btn-icon-size-ie;
height: @x-small-btn-icon-size;
line-height: @x-small-btn-icon-size-ie;
line-height: @x-small-btn-icon-size;
}
&[disabled],
&.disabled {
//color: #000; btn-category has no text
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
.pixel-ratio__2_5 & {
display: flex;
align-items: center;
justify-content: center;
i.icon:not(.icon-custom) {
display: none;
}
}
&:not(.disabled):not(.btn-side-more) {
&:focus {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
&.active,
&:active {
border-color: @border-button-pressed-focus-ie;
border-color: @border-button-pressed-focus;
.box-shadow(@shadow-control-primary-pressed-focus-ie);
.box-shadow(@shadow-control-primary-pressed-focus);
}
}
}
}
// The clickable button for toggling the menu
// Remove the gradient and set the same inset shadow as the :active state
.btn-group {
> .btn {
+ .dropdown-toggle {
padding: 0 @dd-button-x-padding-ie;
padding: 0 @dd-button-x-padding;
.rtl & {
padding: 0 @dd-button-x-padding-ie;
padding: 0 @dd-button-x-padding;
}
}
.rtl & {
float: right;
}
&.btn-toolbar {
float: none;
}
}
> .dropdown-toggle:first-child {
.inner-box-caret {
padding: 0 @dd-button-x-padding-ie;
padding: 0 @dd-button-x-padding;
.rtl & {
padding: 0 @dd-button-x-padding-ie;
padding: 0 @dd-button-x-padding;
}
}
}
&:not(.x-huge) {
> .btn:first-child:not(:last-child):not(.dropdown-toggle) {
.rtl & {
&.btn-toolbar {
.border-radius(@border-radius-button-toolbar-ie);
.border-radius(@border-radius-button-toolbar);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
&:not(.btn-toolbar) {
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}
> .dropdown-toggle:not(:first-child) {
.rtl & {
&.btn-toolbar {
.border-radius(@border-radius-button-toolbar-ie);
.border-radius(@border-radius-button-toolbar);
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
&:not(.btn-toolbar) {
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
}
}
.caption {
&:empty {
display: none;
+ .caret {
margin-left: 2px;
}
}
}
&.open {
> .btn-toolbar {
//color: @text-normal;
// Show no shadow for `.btn-link` since it has no other button styles.
&.btn-link {
.box-shadow(none);
}
}
.dropdown-toggle {
.box-shadow(none);
}
}
&.over {
> button {
//background-color: @highlight-button-hover;
}
}
&:not(.split) {
> .btn-toolbar {
&.dropdown-toggle:not(.x-huge):not(.no-caret) {
width: 100%;
min-width: 28px;
}
&.btn-text-value {
.caret {
margin: 6px 3px 6px 0;
}
.caption {
vertical-align: middle;
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
}
&.large {
&.dropdown-toggle {
min-width: 40px;
.caret {
float: right;
}
}
}
}
.dropdown-menu {
&.scale-menu {
li.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
}
}
}
&.split {
border-radius: @border-radius-button-toolbar-ie;
border-radius: @border-radius-button-toolbar;
&.over:not(.disabled),
&.open {
box-shadow: inset 0 0 0 @scaled-one-px-value-ie @highlight-button-hover-ie;
box-shadow: inset 0 0 0 @scaled-one-px-value @highlight-button-hover;
> button:not(.active):not(.btn-text-split-default) {
background-color: transparent;
}
}
&.over:not(.disabled) {
> button {
&:not(.active) {
&:hover {
background-color: @highlight-button-hover-ie;
background-color: @highlight-button-hover;
}
}
&:active,
&:active:hover {
background-color: @highlight-button-pressed-ie;
background-color: @highlight-button-pressed;
}
}
}
&.open {
> button:not(.active) {
&:last-of-type {
background-color: @highlight-button-pressed-ie;
background-color: @highlight-button-pressed;
}
}
}
> button.active:not(.disabled) {
background-color: @highlight-button-pressed-ie;
background-color: @highlight-button-pressed;
}
.btn + .btn {
margin: 0;
}
}
.dropdown-menu {
.btn.small {
.mx-button-otherstates-icon2(@button-small-active-icon-offset-x-ie);
.mx-button-otherstates-icon2(@button-small-active-icon-offset-x);
}
}
}
.btn-color {
width: 45px;
width: calc(31px + 3*@scaled-one-px-value-ie + @dd-button-size-ie);
width: calc(31px + 3*@scaled-one-px-value + @dd-button-size);
height: @form-control-size-ie;
height: @form-control-size;
padding: @scaled-one-px-value-ie @dd-button-size-ie @scaled-one-px-value-ie @scaled-one-px-value-ie;
padding: @scaled-one-px-value @dd-button-size @scaled-one-px-value @scaled-one-px-value;
border:@scaled-one-px-value-ie solid @border-regular-control-ie;
border:@scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
.rtl & {
padding: @scaled-one-px-value-ie @scaled-one-px-value-ie @scaled-one-px-value-ie @dd-button-size-ie;
padding: @scaled-one-px-value @scaled-one-px-value @scaled-one-px-value @dd-button-size;
}
span:nth-child(1) {
float: left;
width: 100%;
height: 100%;
border: @scaled-one-px-value-ie solid @border-color-shading-ie;
border: @scaled-one-px-value solid @border-color-shading;
border-radius: @border-radius-form-control-ie;
border-radius: @border-radius-form-control;
background-color: transparent;
}
.inner-box-caret {
position: absolute;
right: 0;
top: 2px;
.rtl & {
right: auto;
left: 0;
}
}
&,
&:hover,
.over,
&:active,
&.active {
background: @background-normal-ie !important;
background: @background-normal !important;
.box-shadow(none);
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
.color-transparent {
&:before {
border-right: @scaled-one-px-value-ie solid red;
border-right: @scaled-one-px-value solid red;
height: 34px;
transform: translate(16px, -9px) rotate(62deg);
left: 0;
.rtl & {
left: auto;
right: 0;
transform: translate(-16px, -9px) rotate(62deg);
}
}
}
&:active:not(.disabled),
&.active:not(.disabled) {
.box-shadow(@shadow-fill-input-ie) !important;
.box-shadow(@shadow-fill-input) !important;
.caret {
border-color: @icon-normal-ie;
border-color: @icon-normal;
}
}
&:not(.disabled) {
&:focus, .btn-group.open &, .btn-group:active & {
border-color: @border-fill-input-focused-ie;
border-color: @border-fill-input-focused;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
}
}
}
// for color button auto color
.dropdown-menu {
li > a {
span.color-auto {
background-image: none;
width: 12px;
height: 12px;
margin: 1px 7px 0 1px;
.rtl & {
margin: 1px 1px 0 7px;
}
}
&.selected,
&:hover {
span.color-auto {
outline: @scaled-one-px-value-ie solid @icon-normal-ie;
outline: @scaled-one-px-value solid @icon-normal;
border: @scaled-one-px-value-ie solid @background-normal-ie;
border: @scaled-one-px-value solid @background-normal;
}
}
}
}
.color-menu.dropdown-menu.shifted-right {
li > a {
.padding-x(32px, 20px);
span.color-auto {
.margin-left(-18px);
margin-top: 1px;
}
}
}
.btn-options {
padding: 0;
margin:0;
border: 0 none;
//.box-shadow(none);
background-color: transparent;
&.bg-white {
background-color: @background-normal-ie;
background-color: @background-normal;
}
.icon {
position: relative;
min-width: inherit;
height: inherit;
line-height: inherit;
padding: 0;
margin: 0;
display: inline-block;
background-repeat: no-repeat;
}
.pixel-ratio__2_5 & {
svg.icon {
width: 100%;
}
}
&.huge-1 {
.pixel-ratio__2_5 & {
width: 40px;
}
}
&.svg-chartlist {
width: 40px;
height: 40px;
.icon {
width: 40px;
height: 40px;
}
&:hover:not(.disabled) {
svg.icon {
opacity: 1;
}
}
&:active,
&.active {
&:not(.disabled) {
svg.icon {
fill: @icon-normal-pressed-ie;
fill: @icon-normal-pressed;
opacity: 1;
}
}
}
svg.icon {
fill: @icon-normal-ie;
fill: @icon-normal;
opacity: 1;
}
}
box-shadow: inset 0 0 0 @scaled-one-px-value-ie @border-regular-control-ie;
box-shadow: inset 0 0 0 @scaled-one-px-value @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
&:hover,
&.over {
background-color: @highlight-button-hover-ie;
background-color: @highlight-button-hover;
}
&:active,
&.active {
background-color: @highlight-button-pressed-ie;
background-color: @highlight-button-pressed;
}
&.large {
min-width: 28px;
width: 28px;
height: 28px;
}
&:focus:not(.disabled) {
.box-shadow(@shadow-control-focus-ie);
.box-shadow(@shadow-control-focus);
&.active,
&:active {
.box-shadow(@shadow-control-pressed-focus-ie);
.box-shadow(@shadow-control-pressed-focus);
}
}
&.border-off {
box-shadow: none;
}
}
.btn-text-default {
width: 75px;
height: @form-control-size-ie;
height: @form-control-size;
background: @background-normal-ie;
background: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
.font-size-normal();
&.auto {
width: auto;
padding-left: 10px;
padding-right: 10px;
}
&:not(.auto) {
overflow: hidden;
text-overflow: ellipsis;
}
&:focus:not(.disabled) {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
&.active {
border-color: @border-button-pressed-focus-ie;
border-color: @border-button-pressed-focus;
}
}
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-button-hover-ie !important;
background-color: @highlight-button-hover !important;
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-button-pressed-ie !important;
background-color: @highlight-button-pressed !important;
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
&:not(:focus) {
border-color: @highlight-button-pressed-ie;
border-color: @highlight-button-pressed;
}
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
&.yellow {
.font-weight-bold();
border: 1px solid transparent;
color: @text-alt-key-hint-ie;
color: @text-alt-key-hint;
background-color: @background-fill-button-ie;
background-color: @background-fill-button;
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-fill-button-hover-ie !important;
background-color: @highlight-fill-button-hover !important;
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-fill-button-pressed-ie !important;
background-color: @highlight-fill-button-pressed !important;
}
}
&.back-color {
.font-weight-bold();
border: 1px solid @text-toolbar-header-ie;
border: 1px solid @text-toolbar-header;
color: @text-toolbar-header-ie;
color: @text-toolbar-header;
background-color: transparent;
.style-off-tabs & {
border: 1px solid @text-normal-ie;
border: 1px solid @text-normal;
color: @text-normal-ie;
color: @text-normal;
}
&:not(:disabled) {
opacity: @header-component-normal-icon-opacity;
}
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-header-button-hover-ie !important;
background-color: @highlight-header-button-hover !important;
.style-off-tabs & {
background-color: @highlight-button-hover-ie !important;
background-color: @highlight-button-hover !important;
}
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-header-button-pressed-ie !important;
background-color: @highlight-header-button-pressed !important;
.style-off-tabs & {
background-color: @highlight-button-pressed-ie !important;
background-color: @highlight-button-pressed !important;
}
}
}
}
.btn-text-menu-default {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: @form-control-size-ie;
height: @form-control-size;
background: @background-normal-ie;
background: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
button {
width: 100%;
}
.inner-box-caret {
position: absolute;
right: 1px;
.rtl & {
right: auto;
left: 1px;
}
.ie & {
top: 2px;
}
}
&:not(.disabled) {
&:focus, .btn-group.open & {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
}
}
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-button-hover-ie !important;
background-color: @highlight-button-hover !important;
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-button-pressed-ie !important;
background-color: @highlight-button-pressed !important;
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
}
.btn-text-split-default {
width: 75px;
height: @form-control-size-ie;
height: @form-control-size;
background: @background-normal-ie;
background: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
&.auto {
width: auto;
}
&.dropdown-toggle {
width: 14px;
width: calc(2*@scaled-one-px-value-ie + @dd-button-size-ie);
width: calc(2*@scaled-one-px-value + @dd-button-size);
}
&:not(.dropdown-toggle) {
border-right: none;
.rtl & {
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
border-left: none;
}
}
&:not(.disabled) {
.btn-group.open &,
.btn-group.active &,
.btn-group:active &,
.btn-group:focus & {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
}
}
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-button-hover-ie !important;
background-color: @highlight-button-hover !important;
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-button-pressed-ie !important;
background-color: @highlight-button-pressed !important;
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
//&:not(:focus) {
// border-color: @highlight-button-pressed-ie;
// border-color: @highlight-button-pressed;
//}
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
}
.btn-icon-default {
width: 45px;
height: @form-control-size-ie;
height: @form-control-size;
background: @background-normal-ie;
background: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
.icon {
width: 28px;
padding: 0;
margin: 0;
position: relative;
display: inline-block;
background-repeat: no-repeat;
}
&:not(.btn-toolbar).dropdown-toggle:first-child .inner-box-caret {
padding: 0 1px 0 2px;
.rtl & {
padding: 0 2px 0 1px;
}
}
&:hover:not(.disabled),
.over:not(.disabled) {
background-color: @highlight-button-hover-ie !important;
background-color: @highlight-button-hover !important;
}
&:active:not(.disabled),
&.active:not(.disabled) {
background-color: @highlight-button-pressed-ie !important;
background-color: @highlight-button-pressed !important;
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
}
.asc-window.modal {
.btn-toolbar:not(.bg-white):not(.disabled) {
&:focus {
.box-shadow(@shadow-control-focus-ie);
.box-shadow(@shadow-control-focus);
&.active,
&:active {
.box-shadow(@shadow-control-pressed-focus-ie);
.box-shadow(@shadow-control-pressed-focus);
}
}
}
.btn-group:not(.split) {
&.open,
&.active,
&:active {
.btn-toolbar:not(.bg-white):not(.disabled) {
.box-shadow(@shadow-control-pressed-focus-ie);
.box-shadow(@shadow-control-pressed-focus);
}
}
}
.btn-group.split,
.input-field-btn,
.input-field-btn .btn-group {
.btn-toolbar:not(.bg-white):not(.disabled):focus {
.box-shadow(none);
}
}
.input-field-btn .btn-group.open {
.btn-toolbar:not(.bg-white):not(.disabled) {
.box-shadow(none);
}
}
.btn-group.split.no-borders:not(.disabled) {
&:focus,
&.open,
&.active,
&:active {
.btn-toolbar:not(.bg-white):not(.disabled) {
.box-shadow(@shadow-control-pressed-focus-ie);
.box-shadow(@shadow-control-pressed-focus);
}
}
}
}
.btn-large-dataview {
display: inline-block;
width: 72px;
height: 58px;
padding: 2px;
margin:0;
box-shadow: none;
background-color: @background-normal-ie;
background-color: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
.border-radius(@border-radius-button-normal-ie);
.border-radius(@border-radius-button-normal);
&.template-table {
width: 92px;
}
.icon-template-slicer.icon {
min-width: 36px;
height: 55px;
line-height: 53px;
border: none;
}
.icon {
display: inline-block;
.btn.btnsize(52px);
padding: 0;
.margin-right(@large-btn-dataview-y-margin-ie);
.margin-right(@large-btn-dataview-y-margin);
background-color: transparent;
background-repeat: no-repeat;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
position: relative;
}
&.sheet-template-table {
width: 83px;
height: 54px;
.icon {
border: none;
.box-shadow(0 0 0 @scaled-one-px-value-ie @border-regular-control-ie);
.box-shadow(0 0 0 @scaled-one-px-value @border-regular-control);
}
}
svg.icon {
vertical-align: middle;
width: 52px;
padding: 5px;
fill: @icon-normal-ie;
fill: @icon-normal;
.btn& {
opacity: 1;
}
}
&:hover,
.over,
&:active,
&.active {
background-color: @background-normal-ie !important;
background-color: @background-normal !important;
&:not(:disabled) {
svg.icon {
opacity: inherit;
}
}
}
&:active:not(.disabled),
&.active:not(.disabled) {
.caret {
border-color: @icon-normal-ie;
border-color: @icon-normal;
}
}
&[disabled],
&.disabled {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
&:not(:disabled) {
.icon {
opacity: 1;
}
&:hover {
.icon {
.icon();
}
}
}
&:not(.disabled) {
&:focus, .btn-group.open & {
border-color: @border-fill-input-focused-ie;
border-color: @border-fill-input-focused;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
}
}
}
// Dialog buttons
// ------------------------
.dlg-btn {
.font-size-normal();
.font-weight-bold();
width: 86px;
color: @text-normal-ie;
color: @text-normal;
background-color: @background-normal-ie;
background-color: @background-normal;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
&:hover:not(.disabled),
&.hover:not(.disabled) {
background-color: @highlight-button-hover-ie;
background-color: @highlight-button-hover;
}
&:not(.disabled) {
&:focus {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
.box-shadow(@shadow-fill-input-ie);
.box-shadow(@shadow-fill-input);
}
}
&.primary {
color: @text-inverse-ie;
color: @text-inverse;
background-color: @background-primary-dialog-button-ie;
background-color: @background-primary-dialog-button;
border-color: @background-primary-dialog-button-ie;
border-color: @background-primary-dialog-button;
&:not(.disabled) {
&:hover,
&.hover {
background-color: @highlight-primary-dialog-button-hover-ie;
background-color: @highlight-primary-dialog-button-hover;
border-color: @highlight-primary-dialog-button-hover-ie;
border-color: @highlight-primary-dialog-button-hover;
}
&:active,
&.active {
background-color: @highlight-primary-dialog-button-pressed-ie;
background-color: @highlight-primary-dialog-button-pressed;
border-color: @highlight-primary-dialog-button-pressed-ie;
border-color: @highlight-primary-dialog-button-pressed;
}
&:focus {
border-color: @border-button-pressed-focus-ie;
border-color: @border-button-pressed-focus;
.box-shadow(@shadow-control-primary-pressed-focus-ie);
.box-shadow(@shadow-control-primary-pressed-focus);
}
}
}
&[disabled] {
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
}
&.auto {
width: auto;
min-width: 86px;
}
}