mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
53 lines (52 loc) • 1.11 kB
CSS
.momo-head {
--title-font-size: var(--momo-head-title-font-size, 15px);
--side-font-size: var(--momo-head-side-font-size, 15px);
--close-icon-color: var(--momo-head-icon-color, var(--adm-color-weak));
display: flex;
align-items: center;
height: 44px;
border-bottom: 1px solid var(--adm-border-color);
}
.momo-head-left,
.momo-head-right {
display: flex;
flex: 1;
height: 100%;
font-size: var(--side-font-size);
}
.momo-head-right {
justify-content: flex-end;
}
.momo-head-center {
flex: 1 1 auto;
padding: 0 12px;
overflow: hidden;
font-weight: 500;
font-size: var(--title-font-size);
white-space: nowrap;
text-align: center;
text-overflow: ellipsis;
}
.momo-head-button {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 0 4px;
white-space: nowrap;
user-select: none;
}
.momo-head-button > * {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.momo-head-close-icon {
padding: 0 8px;
color: var(--close-icon-color);
cursor: pointer;
}
.momo-head-confirm-action {
padding: 0 8px;
}