Шаблон:Infobox/styles.css: различия между версиями
Материал из Wormix Station
Дополнительные действия
Ylianko (обсуждение | вклад) Нет описания правки |
Ylianko (обсуждение | вклад) Нет описания правки |
||
| Строка 112: | Строка 112: | ||
min-width: 110px; | min-width: 110px; | ||
text-align: center; | text-align: center; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); | box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); | ||
Версия от 23:08, 7 октября 2026
.infobox-table {
z-index: 3;
overflow: hidden;
width: 400px;
max-width: 100%;
margin-bottom: 1rem;
padding-bottom: 20px;
font-size: 0.875rem;
text-align: left;
display: block;
}
.infobox-table tr:not( #infobox-table-img-bg ) {
display: flex;
margin-top: 10px;
}
.infobox-table th,
.infobox-table td {
padding: 0 15px;
}
.infobox-table th,
.infobox-table tr > td:first-child {
font-weight: 600;
}
.infobox-table tr > td:first-child {
color: #92acba;
font-size: 0.8125rem;
font-weight: normal;
letter-spacing: 0.75px;
}
.infobox-table th,
th.infobox-table-name {
color: #f5f9fb;
}
.infobox-table th {
padding-top: 15px;
border-top: 1px solid;
border-color: #27292d;
font-size: 1rem;
text-align: left;
}
th.infobox-table-name {
padding-top: 0;
border: 0;
margin-top: 10px;
margin-bottom: 5px;
font-size: 1.4rem;
line-height: 1.4;
}
.infobox-table-img {
background: var( --background-color-button-quiet--hover );
}
.infobox-table .infobox-table-img {
padding: 0;
}
.infobox-table-img img {
max-width: 100%;
height: auto;
background: transparent;
}
/* Neutral background for all transprent SVG
.infobox-table-img img[ src$='.svg' ] {
background: #eaecf0;
}
*/
.infobox-table-img a.image {
background: 0;
}
.infobox-table .image:hover img {
transform: scale( 1.1 );
}
.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;
}
@media only screen and ( max-width: 720px ) {
.infobox-table {
margin-right: auto;
margin-left: auto;
}
}
.link-card {
display: inline-flex;
flex-direction: column;
position: relative;
min-width: 110px;
text-align: center;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
/* Вместо color-mix используем rgba для светло‑серого фона с прозрачностью */
background-color: rgba(224, 224, 224, 0.9);
transition: all 0.1s ease;
min-height: calc(32px + 4px);
}
.link-card__image {
flex: 0 0 auto;
position: relative;
text-align: center;
align-content: center;
padding: 6px;
min-width: 32px;
}
.link-card__name {
position: relative;
width: 100%;
padding: 2px 4px;
font-size: 12px;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.2);
font-weight: bold;
flex-grow: 2;
}
.link-card.brightness-overlay::before {
border-radius: 8px;
}
.link-card__pin {
top: 0;
right: 4px;
}
@media (min-width: 800px) {
.link-card-hover:not(.link-card__side):hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
transform: translateY(-4px);
}
}
@media (max-width: 800px) {
.link-card {
flex-direction: row;
width: 100%;
text-align: left;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
min-width: 0;
}
.link-card__name {
background: rgba(0, 0, 0, 0.13);
padding: 4px 8px;
font-size: 11px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}
.link-card__image {
padding: 4px;
}
}
.link-card__side {
flex-direction: row;
width: 100%;
text-align: left;
justify-content: center;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.link-card__side .link-card__name {
background: rgba(0, 0, 0, 0.13);
padding: 4px 8px;
font-size: 11px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}
.link-card__side .link-card__image {
padding: 4px;
}