mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 19:06:36 +08:00
fix(Picker): ensure title align in center (#11489)
This commit is contained in:
parent
a33610011a
commit
b1b67015c3
@ -37,6 +37,7 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
&__toolbar {
|
&__toolbar {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -61,12 +62,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
color: var(--van-text-color);
|
color: var(--van-text-color);
|
||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
font-weight: var(--van-font-bold);
|
font-weight: var(--van-font-bold);
|
||||||
font-size: var(--van-picker-title-font-size);
|
font-size: var(--van-picker-title-font-size);
|
||||||
line-height: var(--van-picker-title-line-height);
|
line-height: var(--van-picker-title-line-height);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__columns {
|
&__columns {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user