Tim1mike (обсуждение | вклад) мНет описания правки |
Tim1mike (обсуждение | вклад) мНет описания правки |
||
| Строка 28: | Строка 28: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.infobox th, | |||
.infobox td { | |||
padding: 0 10px; | |||
} | |||
/* Infobox column */ | |||
.infobox .infobox-nocol { | |||
width: 100%; | |||
flex-direction: row; | |||
} | |||
.infobox .infobox-nocol th { | |||
width: 30%; | |||
} | |||
.infobox .infobox-nocol td { | |||
width: 70%; | |||
} | |||
.infobox .infobox-col1 { | |||
width: 100%; | |||
} | |||
/* Old infobox */ | |||
.infobox-table { | .infobox-table { | ||
| Строка 73: | Строка 98: | ||
color: white; | color: white; | ||
display: block; | display: block; | ||
} | } | ||
| Строка 96: | Строка 104: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
| Строка 145: | Строка 148: | ||
.infobox-image td { | .infobox-image td { | ||
padding: 0; | padding: 0; | ||
} | } | ||
| Строка 157: | Строка 156: | ||
.infobox-data th { | .infobox-data th { | ||
font-weight: normal; | font-weight: normal; | ||
font-size: 0.8125rem; | font-size: 0.8125rem; | ||
| Строка 189: | Строка 186: | ||
font-weight: normal; | font-weight: normal; | ||
font-size: 0.8125rem; | font-size: 0.8125rem; | ||
} | } | ||
| Строка 233: | Строка 225: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: space-between; | justify-content: space-between; | ||
} | } | ||
Версия от 16:44, 15 июля 2021
.infobox {
width: 100%;
max-width: 400px;
margin-top: 0;
border-spacing: 0;
border-radius: 12px;
background: var(--background-color-framed);
font-size: 0.875rem;
text-align: left;
/* boxshadow-2 */
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
/* In case if tooltips go out of boundary */
overflow: visible;
}
/* Table elements */
.infobox tbody {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.infobox tr {
margin-top: 10px;
padding: 0 10px;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.infobox th,
.infobox td {
padding: 0 10px;
}
/* Infobox column */
.infobox .infobox-nocol {
width: 100%;
flex-direction: row;
}
.infobox .infobox-nocol th {
width: 30%;
}
.infobox .infobox-nocol td {
width: 70%;
}
.infobox .infobox-col1 {
width: 100%;
}
/* Old infobox */
.infobox-table {
z-index: 3;
width: 360px;
border-radius: 10px;
border-spacing: 0;
padding-bottom: 40px;
font-size: 13px;
text-align: left;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
overflow: hidden;
}
.infobox-col1 th {
width: 30%;
}
.infobox-col1 td {
width: 70%;
}
.infobox-col2 {
width: 50%;
}
.infobox-col3 {
width: calc(100% / 3);
}
.infobox-col4 {
width: 25%;
}
.infobox-data {
min-width: 25%;
}
.infobox tr:first-of-type .mw-collapsible-toggle a.mw-collapsible-text {
position: absolute;
right: 0;
border-radius: 0 12px;
padding: 5px 15px;
background: #d33;
color: white;
display: block;
}
.infobox tr:not(.infobox-image) {
margin-top: 10px;
display: flex;
flex-direction: column;
}
.infobox-title,
.infobox-header,
.infobox-button-bar {
width: 100%;
}
.infobox-title th,
.infobox-header th {
text-align: left;
}
tr.infobox-title {
margin-top: 20px;
margin-bottom: 5px;
}
.infobox-title th {
font-size: 1.4rem;
line-height: 1.4;
}
tr.infobox-header {
padding-top: 15px;
/* base-80 */
border-top: 1px solid #eaecf0;
}
tr.infobox-header {
margin-top: 15px !important;
}
tr.infobox-button-bar {
margin-top: 25px !important;
}
.infobox-header th {
font-size: 1rem;
}
.infobox-button-bar th,
.infobox-image td {
padding: 0;
}
.infobox-image {
border-radius: 12px 12px 0 0;
overflow: hidden;
}
.infobox-data th {
font-weight: normal;
font-size: 0.8125rem;
letter-spacing: .75px;
}
.infobox-data td {
text-align: left!important;
font-weight: bold;
}
.infobox-data ul,
.infobox-data ol {
margin-top: 0;
}
.infobox-table tr:not(#infobox-table-img-bg) {
margin-top: 10px;
display: flex;
}
.infobox-table th,
.infobox-table tr>td:first-child {
font-weight: 700;
}
.infobox-table tr>td:first-child {
margin: 0 20px;
color: #72777d;
font-weight: normal;
font-size: 0.8125rem;
}
.infobox-table th {
font-size: 1rem;
text-align: left !important;
padding-top: 15px !important;
border-top: 1px solid #eaecf0;
}
th.infobox-table-name {
border: 0 !important;
font-size: 1.4rem !important;
line-height: 1.4;
margin: 10px 20px 5px;
padding-top: 0 !important;
}
.infobox-table .infobox-table-img {
padding: 0;
}
.infobox-table-img img {
height: auto;
}
.infobox-table ul,
.infobox-table ol {
margin-top: 0;
}
.infobox-button {
display: block;
width: 100%;
}
.infobox-button>div {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}