Шаблон:Infobox/styles.css: различия между версиями
Материал из Wormix Station
Дополнительные действия
Новая страница: «.infobox-table { z-index: 3; overflow: hidden; width: 400px; max-width: 100%; margin-bottom: 1rem; padding-bottom: 20px; background: #0a1014; border: 1px solid #27292d; border-radius: 8px; border-spacing: 0; 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...» |
Ylianko (обсуждение | вклад) Нет описания правки |
||
| (не показано 16 промежуточных версий 2 участников) | |||
| Строка 6: | Строка 6: | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
padding-bottom: 20px; | padding-bottom: 20px; | ||
border: 1px solid #27292d; | border: 1px solid #27292d; | ||
border-radius: 8px; | border-radius: 8px; | ||
| Строка 69: | Строка 68: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
background: | background: transparent; | ||
} | } | ||
| Строка 107: | Строка 106: | ||
margin-left: 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; | |||
} | |||
.card-container { | |||
display: flex; | |||
flex-direction: row; | |||
} | |||
.contraband-container { | |||
display: flex; | |||
flex-direction: row; | |||
} | |||
.container { | |||
display: flex; | |||
flex-direction: row; | |||
gap: 16px; | |||
flex-wrap: wrap; | |||
} | } | ||
Текущая версия от 17:13, 8 октября 2026
.infobox-table {
z-index: 3;
overflow: hidden;
width: 400px;
max-width: 100%;
margin-bottom: 1rem;
padding-bottom: 20px;
border: 1px solid #27292d;
border-radius: 8px;
border-spacing: 0;
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;
}
.card-container {
display: flex;
flex-direction: row;
}
.contraband-container {
display: flex;
flex-direction: row;
}
.container {
display: flex;
flex-direction: row;
gap: 16px;
flex-wrap: wrap;
}