Skip to content

Commit

Permalink
style: book
Browse files Browse the repository at this point in the history
  • Loading branch information
zixuan1986 committed Dec 19, 2023
1 parent 16a7293 commit 32366a4
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 487 deletions.
176 changes: 22 additions & 154 deletions src/assets/css/book/home.less
Original file line number Diff line number Diff line change
@@ -1,164 +1,32 @@
.book-home-wrapper {
position: relative;
.p-book {
.pt(40px);
.operate-wrap {
display: flex;
justify-content: flex-end;
align-items: center;
.list-type-wrapper {
display: flex;
justify-content: flex-end;
align-items: center;
border-radius: 30px;
padding: 3px;
background-color: #fff;
.list-type-item {
font-size: 13px;
background-color: #fff;
color: #bbb;
padding: 5px 15px;
text-align: center;
cursor: pointer;
&:hover {
font-weight: bold;
color: @active-color;
}
&:first-of-type {
border-top-left-radius: 30px;
border-bottom-left-radius: 30px;
}
&:last-of-type {
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
}
&.active {
font-weight: bold;
color: #fff;
border-radius: 30px;
background: @active-color;
}
}
}
}
.book-search {
.search-group {
gap: 20px;
}
.select-item {
width: 100px;
height: 40px;
line-height: 40px;
border-radius: 30px;
color: #949494;
background-color: #fff;
// font-weight: bold;
text-align: center;
flex: none;
cursor: pointer;
&:hover,
&.is-active {
.m-common-tabs {
.u-tab {
transition: 0.3s ease-out;
&.active,
&:hover {
background-color: #324148;
color: #fff;
&.select-item-8,
&.select-item-11 {
// 全部、杂集
background-color: #324148;
}
&.select-item-9 {
// 佛学
background-color: #947d2e;
}
&.select-item-10 {
// 道学
background-color: #194372;
}
}
}
}
.list-wrapper {
.pt(20px);
min-height: 300px;
.list-item-wrapper {
margin-bottom: 40px;
.title-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 20px;
.title {
font-weight: 700;
font-size: 28px;
height: 42px;
line-height: 42px;
color: #24292e;
}
a {
font-weight: 400;
font-size: 16px;
line-height: 21px;
color: #a5a5a5;
}
}
.no-cross-wrap {
.list {
display: flex;
gap: 20px;
}
}
}
.list-card-content {
position: relative;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
gap: 20px;
// margin-top: 48px;
.more-btn {
width: 100%;
}
}
.list-content {
gap: 20px;
// margin-top: 48px;
}
}
}
@media screen and (max-width: @ipad) {
.book-home-wrapper {
.list-wrapper {
.list-card-content {
justify-content: space-evenly;
.m-book-list {
.mt(40px);
.u-type {
.flex;
.mb(20px);
justify-content: space-between;
align-items: flex-end;
.u-all {
cursor: pointer;
color: #a5a5a5;
.fz(16px,21px);
}
}
}
}

@media screen and (max-width: @phone) {
.book-home-wrapper {
.m-book-card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.list-wrapper {
.pt(64px);
}
}
}

// 阴影hack
.book-home-wrapper {
// 生成阴影填充区
.m-book-card {
padding-top: 10px;
}

.cross-wrapper {
.cross {
top: 10px;
bottom: 0;
height: auto;
.u-title {
.fz(28px,42px);
.bold(700);
color: #24292e;
}
}
}
Binary file added src/assets/img/book/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/book/title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 32366a4

Please sign in to comment.