@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
80 lines (68 loc) • 1.46 kB
CSS
.mt-tooltip {
position: absolute;
z-index: 1100;
}
.mt-tooltip--dark {
background-color: var(--color-elevation-floating-default);
border-radius: var(--border-radius-xs);
color: var(--color-text-primary-inverse);
padding: 12px 16px;
font-size: var(--font-size-xs);
line-height: var(--font-line-height-xs);
font-family: var(--font-family-body);
word-wrap: break-word;
&::before {
content: "";
position: absolute;
height: 8px;
width: 8px;
transform: rotate(45deg);
background: var(--color-elevation-floating-default);
}
&.mt-tooltip--top::before {
bottom: -4px;
margin-left: -4px;
left: 50%;
}
&.mt-tooltip--bottom::before {
top: -4px;
margin-left: -4px;
left: 50%;
}
&.mt-tooltip--left::before {
top: 50%;
margin-top: -4px;
right: -4px;
}
&.mt-tooltip--right::before {
top: 50%;
margin-top: -4px;
left: -4px;
}
}
.mt-tooltip--light {
color: #52667a;
font-size: 12px;
font-weight: lighter;
letter-spacing: 0;
line-height: 19px;
width: auto ;
height: auto ;
padding: 5px 10px;
background: #fff;
border: 1px solid #d1d9e0;
box-shadow: 0 3px 6px 0 rgba(120, 138, 155, 0.5);
border-radius: 4px;
&.mt-tooltip--top {
margin-top: 6px;
}
&.mt-tooltip--bottom {
margin-top: -4px;
}
&.mt-tooltip--left {
margin-left: 5px;
}
&.mt-tooltip--right {
margin-right: -5px;
}
}