@@ -2017,12 +2017,7 @@ img#wpstats {
20172017 width : auto;
20182018 }
20192019
2020- .commentlist .avatar {
2021- height : 39px ;
2022- left : 2.2em ;
2023- top : 2.2em ;
2024- width : 39px ;
2025- }
2020+
20262021
20272022 .comments-area article header cite ,
20282023 .comments-area article header time {
@@ -2150,17 +2145,70 @@ div {
21502145 word-break : break-all;
21512146}
21522147
2153- .commentlist .comment-author ,
2154- .commentlist .comment-meta ,
2148+ /* 评论整体布局 - 使用相对定位实现头像左侧布局 */
2149+ .commentlist .comment-body {
2150+ position : relative;
2151+ padding-left : 60px ; /* 为48px头像 + 12px间距留出空间 */
2152+ min-height : 48px ; /* 确保有足够高度容纳头像 */
2153+ }
2154+
2155+ /* 评论作者信息 - 用户名和时间在同一行 */
2156+ .commentlist .comment-author {
2157+ display : inline-block;
2158+ margin : 0 10px 5px 0 ;
2159+ font-size : 13px ;
2160+ position : relative;
2161+ }
2162+
2163+ .commentlist .comment-meta {
2164+ display : inline-block;
2165+ margin : 0 0 8px 0 ;
2166+ font-size : 12px ;
2167+ color : # 666 ;
2168+ }
2169+
21552170.commentlist .comment-awaiting-moderation {
2156- float : left;
21572171 display : block;
21582172 font-size : 13px ;
21592173 line-height : 22px ;
21602174}
21612175
2162- .commentlist .comment-author {
2163- margin-right : 6px ;
2176+ /* 头像样式 - 绝对定位到左侧 */
2177+ .commentlist .comment-author .avatar {
2178+ position : absolute !important ;
2179+ left : -60px ; /* 定位到容器左侧 */
2180+ top : 0 ;
2181+ width : 48px !important ;
2182+ height : 48px !important ;
2183+ border-radius : 50% ;
2184+ display : block;
2185+ object-fit : cover;
2186+ background-color : # f5f5f5 ;
2187+ border : 1px solid # ddd ;
2188+ }
2189+
2190+ /* 评论作者名称样式 */
2191+ .commentlist .comment-author .fn {
2192+ display : inline;
2193+ margin : 0 ;
2194+ font-weight : 600 ;
2195+ color : # 2e7bb8 ;
2196+ font-size : 13px ;
2197+ }
2198+
2199+ .commentlist .comment-author .fn a {
2200+ color : # 2e7bb8 ;
2201+ text-decoration : none;
2202+ }
2203+
2204+ .commentlist .comment-author .fn a : hover {
2205+ text-decoration : underline;
2206+ }
2207+
2208+ /* 评论内容样式 */
2209+ .commentlist .comment-body p {
2210+ margin : 5px 0 10px 0 ;
2211+ line-height : 1.5 ;
21642212}
21652213
21662214.commentlist .fn , .pinglist .ping-link {
@@ -2174,13 +2222,15 @@ div {
21742222 display : none;
21752223}
21762224
2225+ /* 通用头像样式 */
21772226.commentlist .avatar {
2178- position : absolute;
2179- left : -60px ;
2180- top : 0 ;
2181- width : 48px ;
2182- height : 48px ;
2183- border-radius : 100% ;
2227+ width : 48px !important ;
2228+ height : 48px !important ;
2229+ border-radius : 50% ;
2230+ display : block;
2231+ object-fit : cover;
2232+ background-color : # f5f5f5 ;
2233+ border : 1px solid # ddd ;
21842234}
21852235
21862236.commentlist .comment-meta : before , .pinglist .ping-meta : before {
@@ -2290,15 +2340,87 @@ div {
22902340 padding-left : 48px ;
22912341}
22922342
2293- .commentlist li li .avatar {
2294- top : 0 ;
2295- left : -48px ;
2296- width : 36px ;
2297- height : 36px ;
2343+ /* 嵌套评论整体布局 */
2344+ .commentlist li li .comment-body {
2345+ padding-left : 60px ; /* 为48px头像 + 12px间距留出空间 */
2346+ min-height : 48px ; /* 确保有足够高度容纳头像 */
2347+ }
2348+
2349+ /* 嵌套评论作者信息 */
2350+ .commentlist li li .comment-author {
2351+ display : inline-block;
2352+ margin : 0 8px 5px 0 ;
2353+ font-size : 12px ; /* 稍小一点 */
22982354}
22992355
23002356.commentlist li li .comment-meta {
2301- left : 70px ;
2357+ display : inline-block;
2358+ margin : 0 0 8px 0 ;
2359+ font-size : 11px ; /* 稍小一点 */
2360+ color : # 666 ;
2361+ }
2362+
2363+ /* 评论容器整体左移 - 使用更高优先级 */
2364+ # comments # commentlist-container .comment-tab {
2365+ margin-left : -15px !important ; /* 在小屏幕上向左移动15px */
2366+ padding-left : 0 !important ; /* 移除左内边距 */
2367+ position : relative !important ; /* 确保定位正确 */
2368+ }
2369+
2370+ /* 在较大屏幕上进一步左移 */
2371+ @media screen and (min-width : 600px ) {
2372+ # comments # commentlist-container .comment-tab {
2373+ margin-left : -30px !important ; /* 在大屏幕上向左移动30px */
2374+ }
2375+
2376+ /* 响应式设计下的评论布局 - 保持48px头像 */
2377+ .commentlist .comment-body {
2378+ padding-left : 60px !important ; /* 为48px头像 + 12px间距留出空间 */
2379+ min-height : 48px !important ;
2380+ }
2381+
2382+ .commentlist .comment-author {
2383+ display : inline-block !important ;
2384+ margin : 0 8px 5px 0 !important ;
2385+ }
2386+
2387+ .commentlist .comment-meta {
2388+ display : inline-block !important ;
2389+ margin : 0 0 8px 0 !important ;
2390+ }
2391+
2392+ /* 响应式设计下头像保持48px */
2393+ .commentlist .comment-author .avatar {
2394+ left : -60px !important ;
2395+ width : 48px !important ;
2396+ height : 48px !important ;
2397+ }
2398+
2399+ /* 嵌套评论在响应式设计下也保持48px头像 */
2400+ .commentlist li li .comment-body {
2401+ padding-left : 60px !important ;
2402+ min-height : 48px !important ;
2403+ }
2404+
2405+ .commentlist li li .comment-author .avatar {
2406+ left : -60px !important ;
2407+ width : 48px !important ;
2408+ height : 48px !important ;
2409+ }
2410+ }
2411+
2412+ /* 嵌套评论头像 */
2413+ .commentlist li li .comment-author .avatar {
2414+ position : absolute !important ;
2415+ left : -60px ; /* 定位到容器左侧 */
2416+ top : 0 ;
2417+ width : 48px !important ;
2418+ height : 48px !important ;
2419+ border-radius : 50% ;
2420+ display : block;
2421+ object-fit : cover;
2422+ background-color : # f5f5f5 ;
2423+ border : 1px solid # ddd ;
23022424}
23032425
23042426/* comments : nav
0 commit comments