MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Drygok (обсуждение | вклад) Нет описания правки |
Drygok (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
.mainpage-security-row { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); | |||
gap: 16px; | |||
justify-content: center; | |||
margin: 0 0 36px 0; | |||
padding: 0; | |||
box-sizing: border-box; | |||
} | |||
.mainpage-security-block { | .mainpage-security-block { | ||
background: #f6f9f6; | background: #f6f9f6; | ||
| Строка 7: | Строка 17: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
padding: 10px 16px; | padding: 10px 16px; | ||
display: flex; | display: flex; | ||
| Строка 47: | Строка 53: | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
Версия от 12:35, 26 октября 2025
.mainpage-security-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
gap: 16px;
justify-content: center;
margin: 0 0 36px 0;
padding: 0;
box-sizing: border-box;
}
.mainpage-security-block {
background: #f6f9f6;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
box-sizing: border-box;
padding: 10px 16px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 14px;
line-height: 1.5;
font-weight: 500;
white-space: nowrap;
}
.mainpage-security-block p {
margin: 0;
padding: 0;
display: contents;
}
.mainpage-security-block .icon {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 1;
flex-shrink: 0;
}
.mainpage-security-block a {
color: #003366;
font-weight: 500;
text-decoration: none;
}
.mainpage-security-block a:hover {
text-decoration: underline;
}
.mainpage-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
gap: 16px;
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 14px;
line-height: 1.45;
justify-content: center;
}
.mainpage-card {
background-color: #ffffff;
border-radius: 10px;
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
padding: 12px 16px 14px;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.card-security { background-color: #eef8ef; }
.card-servers { background-color: #fff8ef; }
.card-events { background-color: #f8f5ff; }
.card-character { background-color: #f9f4ff; }
.card-economy { background-color: #fffde8; }
.card-transport { background-color: #f4f9ff; }
.card-interface { background-color: #f4fbfa; }
.card-property { background-color: #f5f9ff; }
.card-jobs { background-color: #f9fcff; }
.card-locations { background-color: #faf9ff; }
.card-gov { background-color: #f7f8fa; }
.card-illegal { background-color: #fff7f7; }
.card-crime { background-color: #fffdf4; }
.card-systems { background-color: #f4fff6; }
.card-docs { background-color: #f7faff; }
.card-fun { background-color: #fffaf5; }
.card-infra { background-color: #f8fbf4; }
.mainpage-card-head {
display: flex;
align-items: center;
justify-content: flex-start;
width: 100%;
border-radius: 6px;
padding: 6px 8px;
margin-bottom: 10px;
gap: 8px;
font-weight: 600;
font-size: 14px;
color: #1a1a1a;
line-height: 1.4;
box-sizing: border-box;
}
.mainpage-card-head p {
margin: 0;
padding: 0;
display: contents;
}
.mainpage-card-head .icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 1;
min-width: 16px;
}
.mainpage-card-list {
margin: 0;
padding-left: 18px;
}
.mainpage-card-list li {
margin: 2px 0;
}
.mainpage-columns-2 {
column-count: 2;
column-gap: 24px;
}
@media (max-width: 500px) {
.mainpage-columns-2 {
column-count: 1;
}
}