评论区调整为单行布局,内容对齐减少干扰
v2ex 评论区单行布局 by fallenmax
Details
Authorfallenmax
LicenseNo License
Categoryv2ex.com
Created
Updated
Size1.7 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name v2ex.com - 2023/10/3 13:33:22
@namespace github.com/openstyles/stylus
@version 1.0.0
@description 评论区改为单行布局
@author FallenaMax
==/UserStyle== */
@-moz-document domain("v2ex.com") {
/** Avatar */
.cell[id^=r_] td:nth-child(1) {
display: none;
}
/** Gap after avatar */
.cell[id^=r_] td:nth-child(2) {
display: none;
}
/** Response item */
.cell[id^=r_] td {
display: flex;
flex-direction: row;
justify-content: start;
align-items: start;
position: relative;
min-height: 30px;
font-size: 0;
}
/** remove space taken by nbsp */
.cell[id^=r_] td {
font-size: 0;
}
.cell[id^=r_] td * {
font-size: 12px;
/** reset font size */
}
/** Reply/thank */
.cell[id^=r_] td .fr {
float: none;
order: 10;
text-align: right;
position: absolute;
top: 0;
right: -14px;
transform: translateX(100%);
display: none;
}
.cell[id^=r_] td .fr * {
visibility: visible;
}
.cell[id^=r_]:hover .fr {
display: block;
}
/** Author */
.cell[id^=r_] td strong {
width: 100px;
flex-shrink: 0;
flex-grow: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/** Content */
.cell[id^=r_] td .reply_content {
flex-grow: 1;
font-size: 14px;
}
/** XXX days ago */
.cell[id^=r_] td .ago {
position: absolute;
left: 0;
top: 16px;
font-size: 10px;
max-width: 60px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/** Like */
.cell[id^=r_] td .small {
order: 10;
white-space: nowrap;
}
.cell[id^=r_] td .sep3,
.cell[id^=r_] td .sep5,
.cell[id^=r_] td .badges {
display: none;
}
}