334 lines
8.0 KiB
CSS
334 lines
8.0 KiB
CSS
/**
|
|
* Homepage Fixed Layout — legacy Visual Parity
|
|
*
|
|
* Implements legacy's homepage visual language:
|
|
* - System font stack with Chinese fallbacks
|
|
* - 1200px container, 311px sidebar
|
|
* - Post cards: list mode (190px thumb) + card mode (3-col grid)
|
|
* - legacy shadow/radius/spacing values
|
|
* - scale(1.02) thumbnail hover
|
|
* - Lazy-load animations (blur/fade/scale)
|
|
* - Full responsive: 1200/991/767/640px breakpoints
|
|
*
|
|
* Tab nav / tab panes / sort menu use the legacy class contract
|
|
* (.index-tab, .ajax-option, .ajaxpager) styled by assets/css/main.css.
|
|
*/
|
|
|
|
/* ================================================================
|
|
1. HOMEPAGE CONTAINER & TYPOGRAPHY
|
|
================================================================ */
|
|
|
|
.aksrt-homepage {
|
|
font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.42857143;
|
|
color: var(--main-color, #4e5358);
|
|
background: transparent;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
/* Slightly looser than stock legacy short pages: air between stream and footer */
|
|
padding-bottom: 28px;
|
|
}
|
|
|
|
.aksrt-homepage a[href] {
|
|
transition: color 0.2s, background 0.3s, opacity 0.3s, box-shadow 0.3s, transform 0.3s;
|
|
}
|
|
|
|
/* ================================================================
|
|
2. LAYOUT SHELL
|
|
================================================================ */
|
|
|
|
.aksrt-homepage__fluid-zone.content-shell,
|
|
.aksrt-homepage__shell.content-shell {
|
|
max-width: min(100%, var(--container, 1200px));
|
|
}
|
|
|
|
.aksrt-homepage__fluid-zone.content-shell {
|
|
padding-top: 18px;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.aksrt-homepage__shell.content-shell {
|
|
padding-top: 0;
|
|
/* 36px + a bit more breathing room before footer */
|
|
padding-bottom: 56px;
|
|
}
|
|
|
|
/* Bottom fluid zone (if any) keeps a little gap above footer */
|
|
.aksrt-homepage__fluid-zone--bottom {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.aksrt-homepage {
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.aksrt-homepage__shell.content-shell {
|
|
padding-bottom: 40px;
|
|
}
|
|
}
|
|
|
|
/* Dual-column geometry is owned by body.site-layout-* float rules in layout.css. */
|
|
.aksrt-homepage__content-layout {
|
|
display: block;
|
|
gap: 0;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.aksrt-homepage__fluid-zone.content-shell,
|
|
.aksrt-homepage__shell.content-shell {
|
|
max-width: 95%;
|
|
}
|
|
}
|
|
|
|
.aksrt-homepage__content-zone,
|
|
.aksrt-homepage__fluid-zone,
|
|
.aksrt-homepage__aside {
|
|
display: block;
|
|
}
|
|
|
|
.aksrt-homepage__content-zone .widget-card:last-child,
|
|
.aksrt-homepage__aside .widget:last-child,
|
|
.aksrt-homepage__fluid-zone .widget-fluid:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* ================================================================
|
|
3. FLUID WIDGETS
|
|
================================================================ */
|
|
|
|
.aksrt-homepage__fluid-zone .widget-fluid {
|
|
margin-bottom: 20px;
|
|
background: transparent;
|
|
padding: 0;
|
|
border: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.aksrt-homepage .widget-fluid.widget_aksrt_tab_posts,
|
|
.aksrt-homepage .widget-fluid.widget_aksrt_category_block,
|
|
.aksrt-homepage .widget-fluid.widget_aksrt_category_tabs,
|
|
.aksrt-homepage .widget-fluid.widget_aksrt_category_recommend {
|
|
padding: 15px;
|
|
background: var(--surface-1, #fff);
|
|
border: none;
|
|
border-radius: var(--main-radius, var(--radius, 8px));
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.aksrt-homepage__content-zone .widget-card,
|
|
.aksrt-homepage__aside .widget {
|
|
background: var(--surface-1, #fff);
|
|
padding: 15px;
|
|
border: none;
|
|
border-radius: var(--main-radius, var(--radius, 8px));
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* ================================================================
|
|
4. STREAM TITLE BOX (legacy title-theme / 第N页)
|
|
================================================================ */
|
|
|
|
.title-theme {
|
|
position: relative;
|
|
padding-left: 1.2em;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.title-theme::before {
|
|
position: absolute;
|
|
top: 10%;
|
|
bottom: 10%;
|
|
left: 2px;
|
|
width: 4px;
|
|
content: "";
|
|
background: var(--color-primary);
|
|
border-radius: 5px;
|
|
box-shadow: 1px 1px 3px -1px var(--color-primary);
|
|
}
|
|
|
|
.flex {
|
|
/* No !important: the site-layout-1 / fluid-widget-wrap wide-mode rule
|
|
(.posts-item:not(.card) { display: inline-flex }) must out-rank this
|
|
utility or the no-sidebar two-column pairing collapses back to
|
|
half-width stacked rows. */
|
|
display: flex;
|
|
}
|
|
|
|
.flex.xx,
|
|
.xx {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.flex1,
|
|
.flex-1 {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.jsb,
|
|
.jb {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.ac {
|
|
align-items: center;
|
|
}
|
|
|
|
/* ================================================================
|
|
5. PAGINATION
|
|
================================================================ */
|
|
|
|
.aksrt-homepage .navigation.pagination .nav-links,
|
|
.aksrt-homepage .pagination {
|
|
gap: 0;
|
|
margin: 20px 0 10px;
|
|
}
|
|
|
|
.aksrt-homepage .navigation.pagination .page-numbers,
|
|
.aksrt-homepage .pagination .page-numbers {
|
|
min-width: 34px;
|
|
height: 34px;
|
|
padding: 0 10px;
|
|
margin: 3px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-xs, 3px);
|
|
background: var(--surface-4, #eee);
|
|
color: var(--color-ink-3, #777);
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.aksrt-homepage .navigation.pagination .page-numbers:hover,
|
|
.aksrt-homepage .pagination .page-numbers:hover {
|
|
opacity: 1;
|
|
background: var(--color-primary-soft);
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.aksrt-homepage .navigation.pagination .current,
|
|
.aksrt-homepage .pagination .current {
|
|
background: var(--color-primary, var(--color-primary)) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
/* ================================================================
|
|
6. SIDEBAR
|
|
================================================================ */
|
|
|
|
.aksrt-homepage__aside > .aksrt-panel,
|
|
.aksrt-homepage__aside > .widget {
|
|
margin-bottom: 15px;
|
|
padding: 15px;
|
|
background: var(--surface-1, #fff);
|
|
border: 0;
|
|
border-radius: var(--main-radius, var(--radius, 8px));
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.aksrt-homepage__aside > .aksrt-panel:last-child,
|
|
.aksrt-homepage__aside > .widget:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget-list li,
|
|
.aksrt-homepage__aside .widget_recent_entries li,
|
|
.aksrt-homepage__aside .recent-posts-row {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget-title,
|
|
.aksrt-homepage__content-zone .widget-title {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget-title {
|
|
position: relative;
|
|
margin: 0 0 10px;
|
|
padding-left: 1.2em;
|
|
padding-bottom: 8px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget-title::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 10%;
|
|
bottom: 10%;
|
|
left: 2px;
|
|
width: 4px;
|
|
height: auto;
|
|
background: var(--color-primary, var(--color-primary));
|
|
border-radius: 5px;
|
|
box-shadow: 1px 1px 3px -1px var(--color-primary, var(--color-primary));
|
|
transition: transform 0.4s ease;
|
|
transform-origin: left;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget_recent_entries li a,
|
|
.aksrt-homepage__aside .widget-list li a {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget_recent_entries li {
|
|
display: block;
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget_search .search-field {
|
|
height: 40px;
|
|
border-radius: 30px;
|
|
background: var(--surface-2, #eee);
|
|
}
|
|
|
|
.aksrt-homepage__aside .widget_search .search-submit {
|
|
top: 4px;
|
|
right: 4px;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border-radius: 30px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.aksrt-homepage__aside .tag-cloud {
|
|
gap: 6px;
|
|
}
|
|
|
|
.aksrt-homepage__aside .tag-cloud a {
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
border: 0;
|
|
background: var(--surface-2, #eee);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.aksrt-homepage__aside .tag-cloud a:hover {
|
|
background: var(--color-primary, var(--color-primary));
|
|
color: #fff;
|
|
}
|
|
|
|
.aksrt-homepage .widget.notop,
|
|
.aksrt-homepage .box-body.notop {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.aksrt-homepage .widget.nobottom,
|
|
.aksrt-homepage .box-body.nobottom {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.aksrt-homepage .widget.widget_custom_html {
|
|
padding: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
}
|