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

Template:Sandbox/一位史蒂夫/3/bac.css

猛汉♂百科,万男皆可猛的百科全书!转载请标注来源页面的网页链接,并声明引自猛汉百科。内容不可商用。
跳到导航 跳到搜索
.ba-charinfo {
    box-sizing: border-box;
    width: 100%;
    max-width: 1025px;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.ba-charbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px 50px rgba(255, 255, 255, .25);
    filter: blur(5px);
}

.ba-charmain {
    box-sizing: border-box;
    display: grid;
    grid-gap: 10px;
    grid-template:
        "ba-illust ba-name" 150px
        "ba-illust ba-data"
        "ba-illust ba-misc" / auto 400px;
    font-family: "Hiragino Sans GB", "Source Han Sans CN", "思源黑体", "Noto Sans CJK", "Source Sans Pro", "Noto Sans SC", "Noto Sans", "Microsoft Yahei UI", sans-serif;
    text-align: center;
    padding-right: 15px;
    line-height: 1.2;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 1;
}

/* functional stuff */
.ba-label {
    color: #172d4a;
    text-shadow: 1px 1px rgba(255, 255, 255, .5);
}

.ba-noselect {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.ba-charmain div {
    box-sizing: border-box;
    padding: 5px;
    border-radius: 5px;
    justify-content: center;
    transition: all .25s ease-in-out;
}

.ba-charmain>div,
.ba-charmain .ba-school {
    padding: 0;
}

.ba-charmain .ba-name-container {
    color: #fff;
    background: linear-gradient(to right, #193a67, #0f2233 90%);
}

.ba-skew {
    transform: skewX(-10deg);
}

.ba-skew>div {
    transform: skewX(10deg);
    display: flex;
    flex-direction: column;
    height: inherit;
}

.ba-charmain .ba-name-container {
    grid-area: ba-name;
    position: relative;
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 15px;
}

.ba-charmain .ba-school {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 200px;
    height: 60px;
    background: linear-gradient(to right, #def 30%, #fff 100%);
    font-size: .9em;
}

.ba-club {
    font-weight: normal;
}

.ba-charmain .ba-name-ja {
    color: #3df;
    height: 50px;
    margin-left: 190px;
    display: flex;
    font-family: "Hiragino Sans", "Source Han Sans JP", "源ノ角ゴシック", "Noto Sans CJK", "Noto Sans JP", "Meiryo UI", "Yu Gothic", sans-serif;
    align-items: baseline;
    font-size: 1.1em;
}

.ba-charmain .ba-name {
    font-size: 2.5em;
    text-shadow: 2px 2px rgba(0, 0, 0, .4);
    padding-bottom: 15px;
}

.ba-charmain .ba-illust-container {
    grid-area: ba-illust;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1.5em;
    border-radius: 0;
}

.ba-charmain .ba-illust-cv {
    position: absolute;
    top: 0;
    left: 15px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0, 0, 0, .4);
    text-align: left;
    background: rgba(255, 255, 255, .5);
    margin-top: 15px;
    padding: 10px;
}

.ba-charmain .ba-illust-cv>.ba-label {
    font-weight: normal;
    letter-spacing: .4em;
}

.ba-sabun-label {
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 1.5em;
    margin-bottom: 15px;
}

.ba-charmain .ba-data-container {
    grid-area: ba-data;
    display: grid;
    grid-template: auto auto / repeat(2, 1fr);
    font-size: 1.2em;
    padding: 10px;
    background: rgba(221, 238, 255, .75);
}

.ba-charmain .ba-data-container>div,
.ba-charmain .ba-data-container>div>div {
    border-radius: 0;
    padding: 0;
}

.ba-charmain .ba-data-left,
.ba-charmain .ba-data-right {
    display: grid;
    grid-template: repeat(7, 1fr) / 6em 4em;
    grid-gap: 5px;
    column-gap: 15px;
}

.ba-charmain .ba-data-left {
    border-right: solid 2px #3df;
}

.ba-charmain .ba-data-right {
    border-left: solid 2px #3df;
}

.ba-data-left div,
.ba-data-right div {
    text-align: left;
}

.ba-data-left .ba-label,
.ba-data-right .ba-label {
    text-align: right;
}

.ba-attribution {
    color: #757575;
    font-size: .5em;
    text-align: right;
    margin-top: 1em;
    grid-area: auto / 1 / auto / 3;
}

.ba-charmain .ba-misc-container {
    grid-area: ba-misc;
    display: grid;
    grid-template:
        "ba-atk-info ba-terrain"
        "ba-outfit ba-outfit" / 1fr auto;
    grid-gap: 10px;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.ba-charmain .ba-attack-info,
.ba-charmain .ba-terrain-ratings {
    background: rgba(255, 255, 255, .5);
}

.ba-charmain .ba-attack-info {
    grid-area: ba-atk-info;
    display: grid;
    grid-template: repeat(6, 1fr) / auto auto;
    grid-gap: 2px;
    justify-content: space-around;
    align-items: center;
    font-size: .85em;
}

.ba-profession-type,
.ba-charmain .ba-block-label,
.ba-pos-weapon {
    color: #fff;
    font-weight: bold;
}

.ba-charmain .ba-block-label {
    padding: 4px 8px;
}

.ba-charmain .ba-profession-label {
    display: inline-flex;
    justify-content: space-around;
    align-items: center;
    background: #375375;
}

.ba-charmain .ba-profession-icon {
    padding: 0;
}

.ba-charmain .ba-pos-weapon {
    display: flex;
    align-items: center;
    text-shadow: -1.4px 0 #336, -1px -1px #336, 0 -1.4px #336, -1px 1px #336, 1.4px 0 #336, 1px 1px #336, 0 1.4px #336, 1px -1px #336, 3px 3px 3px #779;
    color: #eee;
}

.ba-charmain .ba-terrain-ratings {
    grid-area: ba-terrain;
    display: grid;
    /* grid-template:
        "ba-outdoor ba-outdoor-rank-text ba-outdoor-rank-icon"
        "ba-desert ba-desert-rank-text ba-desert-rank-icon"
        "ba-indoor ba-indoor-rank-text ba-indoor-rank-icon" / repeat(3, 2em); */
    grid-template-areas:
        "ba-outdoor ba-outdoor-rank-text ba-outdoor-rank-icon"
        "ba-desert ba-desert-rank-text ba-desert-rank-icon"
        "ba-indoor ba-indoor-rank-text ba-indoor-rank-icon";
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(3, 2em);
    grid-gap: 5px;
    align-items: center;
}

.ba-terrain-icon,
.ba-terrain-rating-icon {
    font-size: 70%;
}

.ba-charmain .ba-outfit {
    grid-area: ba-outfit;
    display: grid;
    grid-template: auto / repeat(3, 1fr);
    background-color: rgba(255, 255, 255, .5);
}

@media (max-width: 755px) {
    .ba-charmain {
        grid-template:
            "ba-illust" 600px
            "ba-name"
            "ba-data"
            "ba-misc" /100%;
        height: auto;
        padding-right: 0;
        overflow-x: hidden;
    }

    .ba-charmain .ba-school {
        font-size: 70%;
        width: 160px;
    }

    .ba-charmain .ba-name-ja {
        font-size: .9em;
        margin-left: 38vw;
    }

    .ba-charmain .ba-name {
        font-size: 1.75em;
    }

    .ba-charmain .ba-data-container {
        font-size: 95%;
    }

    .ba-charmain .ba-misc-container {
        grid-template: "ba-atk-info""ba-terrain""ba-outfit" / 100%;
    }

    .ba-charmain .ba-terrain-ratings {
        /* grid-template: "ba-outdoor ba-desert ba-indoor" 40px "ba-outdoor-rank-icon ba-desert-rank-icon ba-indoor-rank-icon" 40px "ba-outdoor-rank-text ba-desert-rank-text ba-indoor-rank-text" 40px / repeat(3, 30%); */
        grid-template-areas:
            "ba-outdoor ba-desert ba-indoor"
            "ba-outdoor-rank-icon ba-desert-rank-icon ba-indoor-rank-icon"
            "ba-outdoor-rank-text ba-desert-rank-text ba-indoor-rank-text";
        grid-template-rows: repeat(3, 40px);
        grid-template-columns: repeat(3, 30%);
        grid-gap: 0;
        align-items: baseline;
        font-size: 85%;
    }
}

/* [[Category:在模板名字空间下的CSS页面]][[Category:蔚蓝档案CSS页面]] */