[Header] Refactoring style for share button
This commit is contained in:
parent
34e0c295e1
commit
86a6b68d61
|
@ -285,18 +285,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active, &.active {
|
|
||||||
.inner-box-icon, .caption {
|
|
||||||
opacity: @header-component-active-icon-opacity;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:not(:disabled) {
|
&:hover:not(:disabled) {
|
||||||
.inner-box-icon, .caption {
|
.inner-box-icon, .caption {
|
||||||
opacity: @header-component-hover-icon-opacity;
|
opacity: @header-component-hover-icon-opacity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:active:not(:disabled), &.active:not(:disabled) {
|
||||||
|
.inner-box-icon, .caption {
|
||||||
|
opacity: @header-component-active-icon-opacity;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
opacity: @component-disabled-opacity;
|
opacity: @component-disabled-opacity;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
|
@ -462,9 +462,19 @@
|
||||||
|
|
||||||
// TODO: move to appropriate module
|
// TODO: move to appropriate module
|
||||||
.btn-header, .btn-users, .btn-header-share {
|
.btn-header, .btn-users, .btn-header-share {
|
||||||
&:not(:active) .icon--inverse {
|
.icon {
|
||||||
background-position-x: 0;
|
&.icon--inverse {
|
||||||
background-position-x: @button-small-normal-icon-offset-x;
|
background-position-x: 0 !important;
|
||||||
|
background-position-x: @button-small-normal-icon-offset-x !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active, &.active {
|
||||||
|
&:not(.disabled) .icon.toolbar__icon {
|
||||||
|
&.icon--inverse {
|
||||||
|
background-position-x: @button-small-active-icon-offset-x !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
svg.icon {
|
svg.icon {
|
||||||
|
@ -494,10 +504,6 @@
|
||||||
background-color: @highlight-button-pressed-ie;
|
background-color: @highlight-button-pressed-ie;
|
||||||
background-color: @highlight-button-pressed;
|
background-color: @highlight-button-pressed;
|
||||||
|
|
||||||
.icon--inverse {
|
|
||||||
background-position-x: @button-small-active-icon-offset-x;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg.icon {
|
svg.icon {
|
||||||
fill: @icon-toolbar-header-ie;
|
fill: @icon-toolbar-header-ie;
|
||||||
fill: @icon-toolbar-header;
|
fill: @icon-toolbar-header;
|
||||||
|
|
Loading…
Reference in a new issue