Template:定数表组排列/styles.css

.chart-constant-table {
    display: flex;
    flex-wrap: wrap;
}

.chart-constant-first {
    /* height: 80px; */
    width: 80px;
    padding: 7.2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Bebas Neue', cursive;
    font-weight: bold;
}

.chart-constant-first-12 {color: #FF9500; }
.chart-constant-first-11 {color: #FF9500; }
.chart-constant-first-10 {color: #c31c40; }
.chart-constant-first-9 {color: #65226f; }
.chart-constant-first-8 {color: #2bb36b; }
.chart-constant-first-def {color: #2bb36b; }

.chart-constant-first span:first-of-type {
    font-size: 1rem;
}
.chart-constant-first span:nth-of-type(2) {
    font-size: 1.5rem;
}

.chart-constant-single {
    /* height: 90px; */
    width: 90px;
    margin: 2.2px;
}
.chart-constant-single-part-a {
    height: 90px;
    width: 100%;
}
.chart-constant-single-part-b,
.chart-constant-single-part-c {
    height: 16px;
    width: 100%;
    text-overflow: ellipsis;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    font-size: 12px;
}

.chart-constant-single-part-b,
.chart-constant-single-part-c {
    display: none;
}


@media all and (max-width: 950px) {
	#chart-constant-js-cut-in-2-box {
		display: none !important;
	}
	
    .chart-constant-first {
        width: calc(100vw/6 - 32px/6 - 7px);
        height: calc(100vw/6 - 32px/6 - 7px);
        max-width: 90px;
        max-height: 90px;
        padding: 3.5px;
    }
    .chart-constant-first span:first-of-type {
        font-size: 0.75rem;
    }
    .chart-constant-first span:nth-of-type(2) {
        font-size: 1rem;
    }

    .chart-constant-single {
        width: calc(100vw/6 - 32px/6 - 3px);
        height: calc(100vw/6 - 32px/6 - 3px);
        max-width: 90px;
        max-height: 90px;
        margin: 1.5px;
    }
    .chart-constant-single-part-a {
        width: calc(100vw/6 - 32px/6 - 3px);
        height: calc(100vw/6 - 32px/6 - 3px);
        max-width: 90px;
        max-height: 90px;
    }
    
}

.chart-constant-single-part-a img {
    max-width: 100%; 
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 角标 */

.chart-constant-single-part-a {
    position: relative;
}

.chart-constant-single-part-a::before,
.chart-constant-single-part-a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28%;
    height: 28%;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.chart-constant-single-part-a::before {
    background-color: white;
    z-index: 0;
}

.chart-constant-single-part-a::after {
    width: 20%;
    height: 20%;
    z-index: 2;
}

.chart-constant-single-byd .chart-constant-single-part-a::after {
    background-color: #FF7373;
}

.chart-constant-single-etr .chart-constant-single-part-a::after {
    background-color: #A598BB;
}

.chart-constant-single-ftr .chart-constant-single-part-a::before,
.chart-constant-single-ftr .chart-constant-single-part-a::after {
    display: none;
}

.chart-constant-single-prs .chart-constant-single-part-a::after {
    background-color: #b3cc54;
}