fix(calendar): prevent text jumping on hover

This commit is contained in:
Sergey Andrievskiy 2019-06-20 13:20:08 +03:00
parent 9bb86a547b
commit f45cbeb1cf
2 changed files with 14 additions and 7 deletions

View file

@ -1,4 +1,2 @@
<div>
<div>{{ day }}</div>
<span>{{ (day + 100) * day }}$</span>
</div>
<span class="caption">{{ (day + 100) * day }}$</span>

View file

@ -2,9 +2,18 @@
@include nb-install-component() {
text-align: center;
flex-direction: column;
span {
font-size: 75%;
opacity: 0.75;
.caption {
display: block;
}
&.selected .caption,
&:hover .caption {
color: nb-theme(text-control-color);
}
&.bounding-month .caption {
color: inherit;
}
}