Extract tooltip styling to a shared class
We want to use the same styling with edited tooltip as well, so this extracts the shared bits.
This commit is contained in:
parent
3da1f73ea4
commit
059988ff5c
6 changed files with 20 additions and 16 deletions
|
@ -557,4 +557,3 @@ textarea {
|
||||||
.mx_Username_color8 {
|
.mx_Username_color8 {
|
||||||
color: $username-variant8-color;
|
color: $username-variant8-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,3 +74,16 @@ limitations under the License.
|
||||||
animation: mx_fadeout 0.1s forwards;
|
animation: mx_fadeout 0.1s forwards;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_Tooltip_timeline {
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: $tooltip-timeline-bg-color;
|
||||||
|
color: $tooltip-timeline-fg-color;
|
||||||
|
text-align: center;
|
||||||
|
border: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
|
||||||
|
.mx_Tooltip_chevron::after {
|
||||||
|
border-right-color: $tooltip-timeline-bg-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -15,18 +15,8 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_ReactionsRowButtonTooltip {
|
.mx_ReactionsRowButtonTooltip {
|
||||||
box-shadow: none;
|
|
||||||
background-color: $reaction-row-button-tooltip-bg-color;
|
|
||||||
color: $reaction-row-button-tooltip-fg-color;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 8px;
|
font-size: 8px;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border: none;
|
|
||||||
border-radius: 3px;
|
|
||||||
|
|
||||||
.mx_Tooltip_chevron::after {
|
|
||||||
border-right-color: $reaction-row-button-tooltip-bg-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_ReactionsRowButtonTooltip_reactedWith {
|
.mx_ReactionsRowButtonTooltip_reactedWith {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
|
|
|
@ -156,8 +156,9 @@ $reaction-row-button-border-color: #616b7f;
|
||||||
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
||||||
$reaction-row-button-selected-bg-color: #1f6954;
|
$reaction-row-button-selected-bg-color: #1f6954;
|
||||||
$reaction-row-button-selected-border-color: $accent-color;
|
$reaction-row-button-selected-border-color: $accent-color;
|
||||||
$reaction-row-button-tooltip-bg-color: $tagpanel-bg-color;
|
|
||||||
$reaction-row-button-tooltip-fg-color: #ffffff;
|
$tooltip-timeline-bg-color: $tagpanel-bg-color;
|
||||||
|
$tooltip-timeline-fg-color: #ffffff;
|
||||||
|
|
||||||
// ***** Mixins! *****
|
// ***** Mixins! *****
|
||||||
|
|
||||||
|
|
|
@ -264,8 +264,9 @@ $reaction-row-button-border-color: #e9edf1;
|
||||||
$reaction-row-button-hover-border-color: $focus-bg-color;
|
$reaction-row-button-hover-border-color: $focus-bg-color;
|
||||||
$reaction-row-button-selected-bg-color: #e9fff9;
|
$reaction-row-button-selected-bg-color: #e9fff9;
|
||||||
$reaction-row-button-selected-border-color: $accent-color;
|
$reaction-row-button-selected-border-color: $accent-color;
|
||||||
$reaction-row-button-tooltip-bg-color: $tagpanel-bg-color;
|
|
||||||
$reaction-row-button-tooltip-fg-color: #ffffff;
|
$tooltip-timeline-bg-color: $tagpanel-bg-color;
|
||||||
|
$tooltip-timeline-fg-color: #ffffff;
|
||||||
|
|
||||||
// ***** Mixins! *****
|
// ***** Mixins! *****
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent {
|
||||||
let tooltip;
|
let tooltip;
|
||||||
if (tooltipLabel) {
|
if (tooltipLabel) {
|
||||||
tooltip = <Tooltip
|
tooltip = <Tooltip
|
||||||
tooltipClassName="mx_ReactionsRowButtonTooltip"
|
tooltipClassName="mx_ReactionsRowButtonTooltip mx_Tooltip_timeline"
|
||||||
visible={visible}
|
visible={visible}
|
||||||
label={tooltipLabel}
|
label={tooltipLabel}
|
||||||
/>;
|
/>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue