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

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

模板页面
删除的内容 添加的内容
Amero留言 | 贡献
无编辑摘要
Amero留言 | 贡献
无编辑摘要
 
第49行: 第49行:
padding: 0 12px;
padding: 0 12px;
font-size: 12px;
font-size: 12px;
line-height: 20px;
line-height: 1;
border: 2px solid;
border: 2px solid;
border-radius: 10px;
border-radius: 10px;

2025年10月23日 (四) 20:50的最新版本

.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: 24px; /* 防止空白标题 */
}

.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 {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 450px;
	/* 固定高度,防止因Chrome令边框对齐设备像素而导致的
	   动画过程中与动画结束后`.songbox_th`的高度不一致而导致的背景突变问题。
	   样例见[[Special:重定向/revision/328429]] */
	height: 24px;
    padding: 0 12px;
	font-size: 12px;
	line-height: 1;
	border: 2px solid;
	border-radius: 10px;
	font-weight: 700;
}

.songbox_td {
	width: 100%;
	max-width: 450px;
	font-size: 13px;
	line-height: 17px;
	min-height: 17px;
	margin: 4px 0;
}

/* 下面是动画 */
.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页面]] */