Template:定数表组排列/styles.css:修订间差异
(// Edit via Wikiplus) |
(// Edit via Wikiplus) |
||
第58行: | 第58行: | ||
.chart-constant-first { | .chart-constant-first { | ||
height: calc(100%/6 - 7px); | |||
width: | width: calc(100%/6 - 7px); | ||
padding: 3.5px; | padding: 3.5px; | ||
} | } | ||
第70行: | 第70行: | ||
.chart-constant-single { | .chart-constant-single { | ||
width: | height: calc(100%/6 - 3px); | ||
width: calc(100%/6 - 3px); | |||
margin: 1.5px; | margin: 1.5px; | ||
} | |||
.chart-constant-single-part-a img { | |||
max-width: 100%; | |||
max-height: 100%; | |||
width: auto; | |||
height: auto; | |||
object-fit: contain; | |||
} | } | ||
2024年11月24日 (日) 20:05的版本
.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;
color: #A598BB;
}
.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 {
width: 90px;
margin: 2.2px;
}
.chart-constant-single-part-a {
/* height: 100px;
width: 100px; */
width: 100%;
}
.chart-constant-single-part-b,
.chart-constant-single-part-c {
height: 16px;
/* width: 100px; */
width: 100%;
text-overflow: ellipsis;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: clip;
font-size: 12px;
display: none;
}
.chart-constant-mobile {
display: none;
}
@media all and (max-width: 950px) {
.chart-constant-mobile {
display: unset;
}
.chart-constant-desktop {
display: none;
}
.chart-constant-first {
height: calc(100%/6 - 7px);
width: calc(100%/6 - 7px);
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 {
height: calc(100%/6 - 3px);
width: calc(100%/6 - 3px);
margin: 1.5px;
}
.chart-constant-single-part-a img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
}
}
/* 角标 */
.chart-constant-single {
position: relative;
}
.chart-constant-single::before,
.chart-constant-single::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::before {
background-color: white;
z-index: 0;
}
.chart-constant-single::after {
width: 20%;
height: 20%;
z-index: 2;
}
.chart-constant-single-byd::after {
background-color: #FF7373;
}
.chart-constant-single-etr::after {
background-color: #A598BB;
}
.chart-constant-single-ftr::before,
.chart-constant-single-ftr::after {
display: none;
}
.chart-constant-single-prs::after {
background-color: #b3cc54;
}