重构课外书;修复异常;优化体验
This commit is contained in:
+118
-80
@@ -584,42 +584,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
#douban_pagination {
|
||||
display: none;
|
||||
padding: 30px;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-top: 1px solid var(--pix-background);
|
||||
}
|
||||
|
||||
#douban_pagination .post-paging {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 38px;
|
||||
}
|
||||
|
||||
#douban_pagination a {
|
||||
padding: 10px 15px;
|
||||
background: var(--pix-theme);
|
||||
color: #fff;
|
||||
border-radius: 8px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: none;
|
||||
width: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#douban_pagination .douban-more-loading {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.douban_page #douban_item {
|
||||
.douban_page #post_item {
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@@ -628,25 +593,34 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .loading_box {
|
||||
.douban_page #post_item .loading_box {
|
||||
text-align: center;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_item {
|
||||
.douban_page #post_item > .no-results {
|
||||
grid-column: 1 / -1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.douban_page #post_item > #prev_pagination {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.douban_page #post_item .douban_card_item {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0 40px;
|
||||
padding: 0 20px;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_item:nth-child(2n) {
|
||||
.douban_page #post_item .douban_card_item:nth-child(2n) {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_inner {
|
||||
.douban_page #post_item .douban_card_inner {
|
||||
display: grid !important;
|
||||
grid-template-columns: 100px 1fr;
|
||||
grid-template-rows: auto auto 1fr;
|
||||
@@ -658,7 +632,7 @@
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_media_col {
|
||||
.douban_page #post_item .douban_media_col {
|
||||
width: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -669,16 +643,16 @@
|
||||
}
|
||||
|
||||
|
||||
.douban_page #douban_item {
|
||||
.douban_page #post_item {
|
||||
align-items: stretch !important;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_poster_link,
|
||||
.douban_page #douban_item .douban_poster_img {
|
||||
.douban_page #post_item .douban_poster_link,
|
||||
.douban_page #post_item .douban_poster_img {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_poster_img {
|
||||
.douban_page #post_item .douban_poster_img {
|
||||
display: block;
|
||||
height: 140px;
|
||||
object-fit: cover;
|
||||
@@ -687,34 +661,75 @@
|
||||
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_rating_wrap {
|
||||
.douban_page #post_item .douban_rating_wrap {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_text_col {
|
||||
.douban_page #post_item .douban_text_col {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_title_row {
|
||||
.douban_page #post_item .douban_title_row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1;
|
||||
margin-bottom: 6px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_title_text {
|
||||
.douban_page #post_item .douban_title_text {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--pix-theme);
|
||||
font-size: 16px;
|
||||
line-height: 1.35;
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_title_text:hover {
|
||||
color: rgb(28, 156, 90);
|
||||
.douban_page #post_item .douban_title_text:hover {
|
||||
color: var(--hilight-color);
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_sub_meta {
|
||||
.douban_page #post_item .douban_title_text_plain,
|
||||
.douban_page #post_item .douban_title_text_plain:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.douban_page #post_item .douban_detail_link {
|
||||
flex: 0 0 auto;
|
||||
width: auto;
|
||||
height: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3px 5px;
|
||||
border-radius: 4px;
|
||||
color: var(--pix-theme);
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
text-decoration: none;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transition: color 0.2s ease, background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.douban_page #post_item .douban_detail_link.is-visible {
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.douban_page #post_item .douban_detail_link:hover {
|
||||
background: var(--pix-background);
|
||||
color: var(--hilight-color);
|
||||
}
|
||||
|
||||
.douban_page #post_item .douban_sub_meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0px;
|
||||
@@ -725,24 +740,24 @@
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_time_text {
|
||||
.douban_page #post_item .douban_time_text {
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(168, 85, 247, 0.12);
|
||||
color: #a855f7;
|
||||
color: #8b5cf6;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
font-weight: 500;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_type_badge {
|
||||
.douban_page #post_item .douban_type_badge {
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(56, 189, 248, 0.14);
|
||||
color: #0369a1;
|
||||
background: rgba(14, 165, 233, 0.13);
|
||||
color: #0284c7;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
vertical-align: middle;
|
||||
@@ -750,7 +765,7 @@
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_score_badge {
|
||||
.douban_page #post_item .douban_score_badge {
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
@@ -762,30 +777,25 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_box {
|
||||
color: #374151;
|
||||
.douban_page #post_item .douban_content_box {
|
||||
color: #55716a;
|
||||
grid-column: 2;
|
||||
grid-row: 3;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_main {
|
||||
.douban_page #post_item .douban_content_main {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
color: #1f2937;
|
||||
display: block;
|
||||
color: #43584d;
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
max-height: 89.6px;
|
||||
transition: max-height 0.35s ease;
|
||||
will-change: max-height;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 5;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_main.is-expanded {
|
||||
max-height: 10000px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_expand_btn {
|
||||
.douban_page #post_item .douban_expand_btn {
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
color: var(--pix-theme);
|
||||
@@ -798,30 +808,58 @@
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_meta {
|
||||
.douban_page #post_item .douban_content_meta {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
color: #76937f;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@media only screen and (max-width:1359px) {
|
||||
.douban_page #douban_item {
|
||||
.douban_page #post_item {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_item {
|
||||
.douban_page #post_item .douban_card_item {
|
||||
border-right: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width:540px) {
|
||||
.douban_page #douban_item .douban_card_item {
|
||||
padding: 0 15px;
|
||||
.douban_page #post_item .douban_card_item {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_inner {
|
||||
.douban_page #post_item .douban_card_inner {
|
||||
column-gap: 11px;
|
||||
row-gap: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.douban_detail_page #post_item {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.douban_detail_page #post_item .douban_card_item {
|
||||
grid-column: 1 / -1;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.douban_detail_page #post_item .douban_detail_link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.douban_detail_page #post_item .douban_title_text {
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.douban_detail_page #post_item .douban_content_main {
|
||||
display: block;
|
||||
overflow: visible;
|
||||
overflow-wrap: anywhere;
|
||||
-webkit-line-clamp: unset;
|
||||
-webkit-box-orient: initial;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user