feat(Calendar): add Header component

This commit is contained in:
陈嘉涵
2019-12-26 19:59:08 +08:00
committed by neverland
parent f4f8952553
commit 04c412c99b
4 changed files with 94 additions and 61 deletions
+24 -19
View File
@@ -5,12 +5,8 @@
flex-direction: column;
height: 80vh;
&__header {
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(125, 126, 128, .16);
}
&__title,
&-header__title,
&-header__month,
&__month-title {
height: 44px;
font-weight: @font-weight-bold;
@@ -18,25 +14,34 @@
text-align: center;
}
&__title {
font-size: @font-size-lg;
&-header {
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
&__title {
font-size: @font-size-lg;
}
&__month {
font-size: @font-size-md;
}
&__weekdays {
display: flex;
}
&__weekday {
flex: 1;
font-size: @font-size-sm;
line-height: 30px;
text-align: center;
}
}
&__month-title {
font-size: @font-size-md;
}
&__weekdays {
display: flex;
}
&__weekday {
flex: 1;
font-size: @font-size-sm;
line-height: 30px;
text-align: center;
}
&__body {
flex: 1;
overflow: auto;