.word-picker-content { padding: 28rpx; background-color: #ffffff; overflow: hidden; } .word-picker-title { font-size: 32rpx; color: #141414; font-weight: bold; text-align: center; margin-bottom: 28rpx; } .nav-class { // background-color: red; // width: 890rpx; } .tab-class { // width: 220rpx; // flex-basis: auto !important; // display: inline-block; } .tab-active-class { color: #93d333; } .wrap-class { margin-bottom: 28rpx; // background-color: blue; } .word-list-wrapper { padding: 20rpx 0; overflow-y: auto; height: 500rpx; // 一二年级等有上下册分区的 tab .word-section { margin-bottom: 12rpx; padding-top: 12rpx; &:first-child { padding-top: 4rpx; } &:last-child { margin-bottom: 6rpx; } .word-section-title { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 34rpx; font-weight: bold; color: #453900; letter-spacing: 4rpx; margin: 26rpx 0 24rpx; // padding: 0 28rpx; &::before, &::after { content: ""; flex: 1; max-width: 80rpx; height: 2rpx; background: linear-gradient(90deg, transparent, rgba(147, 211, 51, 0.65)); border-radius: 2rpx; } &::before { margin-right: 20rpx; } &::after { margin-left: 20rpx; background: linear-gradient(90deg, rgba(147, 211, 51, 0.65), transparent); } } } .word-list { display: grid; grid-template-columns: repeat(6, 72rpx); grid-template-rows: repeat(1, 72rpx); gap: 40rpx; justify-content: center; // box-shadow: 0 0 -10rpx rgba(0, 0, 0, 0.2); // align-items: flex-start; .word-item { width: 72rpx; height: 72rpx; border-radius: 16rpx; background: rgba(240, 240, 240, 1); box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; font-size: 28rpx; color: #141414; &.selected { background: rgb(147, 211, 51); color: #ffffff; box-shadow: 0px 2px 4px rgba(147, 211, 51, 0.15); } } } .word-item-empty { height: 28rpx; width: 100%; } } .selected-words { height: 66rpx; padding: 28rpx; font-size: 28rpx; color: #141414; .selected-words-text { font-weight: bold; color: #93d333; } } .btn-area { display: flex; justify-content: space-between; // margin-bottom: 96rpx; padding: 0 28rpx; }