打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:VOCALOID Songbox/styles.css:修订间差异

模板页面
删除的内容 添加的内容
AdorN留言 | 贡献
那我缺的:is这块
AdorN留言 | 贡献
// Edit via Wikiplus
第121行: 第121行:
}
}
/* 投稿平台少于3时拉长 */
/* 投稿平台少于3时拉长 */
/* .songbox_submission:is(:first-child:nth-last-child(2), :last-child:nth-child(2)) */
/* .songbox_submission:is(:first-child:nth-last-child(2), :last-child:nth-child(2)) */
.songbox_submission:first-child:nth-last-child(2), .songbox_submission:last-child:nth-child(2) {
.songbox_submission:first-child:nth-last-child(2), .songbox_submission:last-child:nth-child(2) {
width: 215px;
width: 215px;
第136行: 第136行:
}
}


.songbox_submission:first-child:last-child :not(.submission_link) {
.songbox_submission:first-child:last-child > :not(.submission_link) {
display: inline;
display: inline;
margin-right: 20px;
margin-right: 20px;

2025年10月10日 (五) 19:37的版本

.songbox {
	display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 12px auto;
}

.songbox, .songbox [class*="songbox_"] {
	box-sizing: border-box;
}

.songbox_titles {
	margin: 18px 0 12px;
	font-size: 13px;
	line-height: 19px;
	max-width: 900px;
	min-height: 28px; /* 防止空白标题 */
}

.songbox_main-title,
.songbox_titles.unknown::first-line {
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
}

.songbox_note {
	color: #667;
	background: #f5f5f7;
	border-radius: 6px;
	padding: 4px 12px;
	font-size: 12px;
	margin-bottom: 16px;
	line-height: 18px;
	min-width: 340px;
	max-width: 450px;
}

.songbox_th {
	width: 100%;
	max-width: 450px;
    padding: 0 12px;
	font-size: 12px;
	line-height: 20px;
	border: 2px solid;
	border-radius: 10px;
	font-weight: 700;
}

.songbox_td {
	font-size: 13px;
	line-height: 17px;
	min-height: 17px;
	margin: 4px 0;
}

/* 投稿卡片 */
.songbox_submission {
    display: inline-block;
    position: relative;
    color: #444;
    background: white;
    border: 1px solid #BBB;
    border-radius: 12px;
    overflow: hidden;
    width: 140px;
    padding: 5px 12px;
    margin: 12px 5px 0;
    text-align: left;
    line-height: 1.5em;
}

.songbox_submission::after {
    content: '';
    opacity: .2;
    display: block;
    position: absolute;
    width: 60px;
    height: 60px;
    right: 5px;
    bottom: -20px;
    background-size: 100% 100%;
}

.songbox_submission.nico::after {
    background-image: url(https://voca.wiki/images/e/e0/Niconico_Logo_%282020%29.svg);
}

.songbox_submission.ytb::after {
    background-image: url(https://voca.wiki/images/6/60/YouTube_Icon_Red.svg);
}

.songbox_submission.bili::after {
    background-image: url(https://voca.wiki/images/f/f5/Bilibili_Icon.svg);
}

.songbox_submission .submission_platform {
    font-weight: bold;
    margin-bottom: 3px;
}

.songbox_submission .submission_link {
    position: absolute;
    top: 6px;
    right: 12px;
}

.songbox_submission .submission_date::before {
    content: url(https://voca.wiki/images/6/65/Calendar.svg);
    display: inline-block;
    transform: translateY(2px) scale(.9);
    margin-right: 4px;
}

.songbox_submission .submission_playcount::before {
    content: url(https://voca.wiki/images/4/41/Play.svg);
    display: inline-block;
    transform: translateY(2.5px);
    margin-right: 4px;
}
/* 投稿平台少于3时拉长 */
/* .songbox_submission:is(:first-child:nth-last-child(2), :last-child:nth-child(2)) */
.songbox_submission:first-child:nth-last-child(2), .songbox_submission:last-child:nth-child(2) {
    width: 215px;
}

/* .songbox_submission:is(:first-child:nth-last-child(2), :last-child:nth-child(2)) :is(.submission_date, .submission_playcount) */
.songbox_submission:first-child:nth-last-child(2) :nth-child(n+3), .songbox_submission:last-child:nth-child(2) :nth-child(n+3) {
    display: inline-block;
    margin-right: 10px;
}

.songbox_submission:first-child:last-child {
    width: 450px;
}

.songbox_submission:first-child:last-child > :not(.submission_link) {
    display: inline;
    margin-right: 20px;
}

.songbox_submission:first-child:last-child::after {
    bottom: -35px;
    right: 30px;
}


/* 下面是动画 */
.songbox .ambient-image, .songbox_titles, .songbox_note, .songbox_th, .songbox_td {
    animation: songbox-appear-transform backwards .9s, songbox-appear-opacity backwards .8s;
}
.songbox .ambient-image_shadow {
    animation: songbox-appear-opacity backwards 1.5s .1s;
}
.songbox_titles {
    animation-delay: .08s;
}
.songbox_note {
    animation-delay: .18s;
}
.songbox > :nth-last-child(6) {
    animation-delay: .27s;
}
.songbox > :nth-last-child(5) {
    animation-delay: .33s;
}
.songbox > :nth-last-child(4) {
    animation-delay: .39s;
}
.songbox > :nth-last-child(3) {
    animation-delay: .45s;
}
.songbox > :nth-last-child(2) {
    animation-delay: .51s;
}
.songbox > :last-child {
    animation-delay: .57s;
}
@keyframes songbox-appear-transform {
    from {
        transform: scaleX(1.1) translateY(8px);
    }
}
@keyframes songbox-appear-opacity {
	from {
	    opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.songbox > *, .songbox .ambient-image_shadow {
		animation: none;
	}
}

/* [[Category:在模板命名空间下的CSS页面]] */