重构课外书;更新侧边栏;修复模态框、分享海报异常
This commit is contained in:
@@ -405,7 +405,7 @@
|
||||
|
||||
.moments-title-text {
|
||||
color: #111827;
|
||||
font-size: 1.125rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.5rem;
|
||||
display: block;
|
||||
@@ -415,7 +415,7 @@
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0;
|
||||
color: #6b7280;
|
||||
font-size: 0.875rem;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
flex-direction: row-reverse;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.moments-btn-confirm {
|
||||
@@ -432,8 +432,8 @@
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: #dc2626;
|
||||
color: #ffffff;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5rem;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.3rem;
|
||||
font-weight: 500;
|
||||
justify-content: center;
|
||||
border-radius: 0.375rem;
|
||||
@@ -455,8 +455,8 @@
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: #ffffff;
|
||||
color: #374151;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5rem;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.3rem;
|
||||
font-weight: 500;
|
||||
justify-content: center;
|
||||
border-radius: 0.375rem;
|
||||
@@ -582,4 +582,249 @@
|
||||
transform: translateY(-120px) rotate(-8deg) scale(0.6);
|
||||
filter: blur(3px);
|
||||
}
|
||||
}
|
||||
|
||||
/* 豆瓣页:默认不显示翻页按钮,避免初始化前出现蓝色链接文本 */
|
||||
#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 {
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
column-gap: 0;
|
||||
row-gap: 0;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .loading_box {
|
||||
text-align: center;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_item {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0 40px;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_item:nth-child(2n) {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_card_inner {
|
||||
display: grid !important;
|
||||
grid-template-columns: 100px 1fr;
|
||||
grid-template-rows: auto auto 1fr;
|
||||
column-gap: 16px;
|
||||
row-gap: 3px;
|
||||
padding: 20px 0;
|
||||
background: transparent;
|
||||
width: 100%;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_media_col {
|
||||
width: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
grid-column: 1;
|
||||
grid-row: 2 / 4;
|
||||
}
|
||||
|
||||
|
||||
/* 强制网格单元同高并让卡片内部撑满单元,确保水平分割线对齐 */
|
||||
.douban_page #douban_item {
|
||||
align-items: stretch !important;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_poster_link,
|
||||
.douban_page #douban_item .douban_poster_img {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_poster_img {
|
||||
display: block;
|
||||
height: 140px;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_rating_wrap {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_text_col {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_title_row {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1;
|
||||
margin-bottom: 6px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_title_text {
|
||||
color: #111827;
|
||||
font-size: 16px;
|
||||
line-height: 1.35;
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_title_text:hover {
|
||||
color: var(--pix-theme);
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_sub_meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0px;
|
||||
margin-bottom: 6px;
|
||||
flex-wrap: wrap;
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_time_text {
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(168, 85, 247, 0.12);
|
||||
color: #a855f7;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
font-weight: 500;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_type_badge {
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(56, 189, 248, 0.14);
|
||||
color: #0369a1;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
vertical-align: middle;
|
||||
font-weight: 500;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_score_badge {
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(249, 115, 22, 0.14);
|
||||
color: #ea580c;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
vertical-align: middle;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_box {
|
||||
color: #374151;
|
||||
grid-column: 2;
|
||||
grid-row: 3;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_main {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
color: #1f2937;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
max-height: 89.6px;
|
||||
transition: max-height 0.35s ease;
|
||||
will-change: max-height;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_main.is-expanded {
|
||||
max-height: 10000px;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_expand_btn {
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
color: var(--pix-theme);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.douban_page #douban_item .douban_content_meta {
|
||||
margin: 8px 0 0;
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@media only screen and (max-width:1359px) {
|
||||
.douban_page #douban_item {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.douban_page #douban_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 #douban_item .douban_card_inner {
|
||||
column-gap: 11px;
|
||||
row-gap: 0px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user