置顶公告:【置顶】关于临时开启评论区所有功能的公告(2022.10.22) | 【置顶】关于本站Widget恢复使用的公告
  • 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
  • 本镜像站和其他萌娘百科的镜像站无关,请注意分别。

Template:Clade/style.css

贴贴♀百科,万娘皆可贴的百科全书!转载请标注来源页面的网页链接,并声明引自贴贴百科。内容不可商用。
跳到导航 跳到搜索
/**
 * Used for [[Template:Clade]]
 * [[Category:在模板名字空间下的CSS页面]]
 */

.clade-branch {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: start;
}

.clade-branch > :nth-child(3n + 2) {
	grid-row-start: span 2;
}

.clade-branch .clade-label, .clade-branch .clade-space {
	border-style: solid;
	border-width: 0 0 0 1px;
	min-height: 1em;
}

.clade-branch .clade-label {
	padding: 0 .2em;
	box-sizing: content-box;
	min-width: .2em;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.clade-branch .clade-space {
	border-top-width: 1px;
}

.clade-branch > :first-child, .clade-branch > :last-child {
	border-left-width: 0;
}

.clade-branch .clade-leaf {
	align-self: center;
	padding: 0 .2em;
}


/* legacy */

.clade-wrapper {
    display: flex;
    align-items: stretch;
}

.clade-wrapper .clade-root {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clade-wrapper .clade-root-1 {
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #000;
}

.clade-wrapper .clade-root-1,
.clade-wrapper .clade-root-2 {
    flex: 1 0;
}

.clade-wrapper .clade-table {
    margin: 0;
    border-collapse: collapse;
}

.clade-wrapper .clade-table > tbody > tr > td {
    padding: 0;
}

.clade-wrapper .clade-root-1,
.clade-wrapper .clade-table > tbody > tr > td:not([rowspan="2"]) {
    padding: 0 3px;
}

.clade-wrapper .clade-label {
    border-bottom: 1px solid #000;
    vertical-align: bottom !important;
}

.clade-wrapper .clade-space {
    color: transparent;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.clade-wrapper .clade-table > tbody > tr:not(:first-child) > .clade-label,
.clade-wrapper .clade-table > tbody > tr:not(:last-child) > .clade-space {
    border-left: 1px solid #000;
}