MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* === Infobox === */ | /* === Infobox === */ | ||
/* === Основной контейнер инфобокса === */ | |||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
Line 5: | Line 6: | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
width: 300px; | width: 300px; | ||
background-color: # | background-color: #2b2b2b; | ||
border: 1px solid # | border: 1px solid #3f3f3f; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
font-size: 90%; | font-size: 90%; | ||
box-shadow: 1px 1px | box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); | ||
border-radius: 6px; | border-radius: 6px; | ||
overflow: hidden; | overflow: hidden; | ||
color: #cbcbcb; | |||
font-family: Arial, Helvetica, sans-serif; | |||
} | } | ||
/* Заголовок */ | |||
.infobox caption { | |||
background: linear-gradient(to bottom, #3a3a3a, #2e2e2e); | |||
font-weight: bold; | |||
font-size: 100%; | |||
padding: 8px; | |||
text-align: center; | |||
border-bottom: 1px solid #444; | |||
color: #e0e0e0; | |||
} | |||
/* Заголовки столбцов */ | |||
.infobox th { | .infobox th { | ||
background: # | background: #363636 !important; | ||
text-align: left; | text-align: left; | ||
font-weight: bold; | font-weight: bold; | ||
padding: 6px; | padding: 6px; | ||
border: none; | border: none; | ||
color: # | color: #d0d0d0; | ||
width: 40%; | width: 40%; | ||
} | } | ||
/* Ячейки */ | |||
.infobox td { | .infobox td { | ||
border: none; | border: none; | ||
padding: 6px; | padding: 6px; | ||
vertical-align: middle; | vertical-align: middle; | ||
background-color: # | background-color: #2b2b2b; | ||
} | |||
/* Разделитель между строками */ | |||
.infobox tr { | |||
border-bottom: 1px solid #444; | |||
} | |||
.infobox tr:last-child { | |||
border-bottom: none; | |||
} | } | ||
.infobox | /* === Строка с иконкой и названием === */ | ||
background: | .infobox .title-cell { | ||
display: flex; | |||
align-items: center; | |||
justify-content: flex-start; | |||
gap: 6px; | |||
padding: 6px; | |||
background-color: #2b2b2b; | |||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.infobox img { | /* Иконка */ | ||
max-width: | .infobox .title-cell img { | ||
max-height: | max-width: 24px; | ||
display: block; | max-height: 24px; | ||
margin | display: inline-block; | ||
margin: 0; | |||
} | } | ||
.infobox | /* Ссылка-название */ | ||
.infobox .title-cell a { | |||
color: #69e9ff; | |||
text-decoration: none; | |||
font-weight: bold; | |||
font-size: 95%; | |||
} | } | ||
.infobox | .infobox .title-cell a:hover { | ||
text-decoration: underline; | |||
} | } | ||
Revision as of 14:52, 1 August 2025
/* === Infobox === */
/* === Основной контейнер инфобокса === */
.infobox {
float: right;
clear: right;
margin: 0 0 1em 1em;
width: 300px;
background-color: #2b2b2b;
border: 1px solid #3f3f3f;
border-collapse: collapse;
font-size: 90%;
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
border-radius: 6px;
overflow: hidden;
color: #cbcbcb;
font-family: Arial, Helvetica, sans-serif;
}
/* Заголовок */
.infobox caption {
background: linear-gradient(to bottom, #3a3a3a, #2e2e2e);
font-weight: bold;
font-size: 100%;
padding: 8px;
text-align: center;
border-bottom: 1px solid #444;
color: #e0e0e0;
}
/* Заголовки столбцов */
.infobox th {
background: #363636 !important;
text-align: left;
font-weight: bold;
padding: 6px;
border: none;
color: #d0d0d0;
width: 40%;
}
/* Ячейки */
.infobox td {
border: none;
padding: 6px;
vertical-align: middle;
background-color: #2b2b2b;
}
/* Разделитель между строками */
.infobox tr {
border-bottom: 1px solid #444;
}
.infobox tr:last-child {
border-bottom: none;
}
/* === Строка с иконкой и названием === */
.infobox .title-cell {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
padding: 6px;
background-color: #2b2b2b;
font-weight: bold;
}
/* Иконка */
.infobox .title-cell img {
max-width: 24px;
max-height: 24px;
display: inline-block;
margin: 0;
}
/* Ссылка-название */
.infobox .title-cell a {
color: #69e9ff;
text-decoration: none;
font-weight: bold;
font-size: 95%;
}
.infobox .title-cell a:hover {
text-decoration: underline;
}
/* === Recipes grid container === */
.recipe-grid {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 10px;
align-items: flex-start;
}
/* === Recipe table card === */
table.recipe-table {
width: 220px !important;
min-width: 220px;
max-width: 220px;
display: inline-block !important;
vertical-align: top;
margin: 0;
border-collapse: collapse !important;
border: 1px solid #bbb !important;
background: #fcfcfc !important;
font-size: 85% !important;
box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
border-radius: 6px;
overflow: hidden;
}
/* Заголовок карточки */
table.recipe-table caption {
background: linear-gradient(to bottom, #e6e6e6, #d9d9d9);
font-weight: bold;
font-size: 95%;
padding: 5px;
text-align: center;
border-bottom: 1px solid #bbb;
}
/* Заголовки секций */
table.recipe-table th {
background: #f5f5f5 !important;
text-align: center !important;
font-weight: bold !important;
padding: 3px 4px !important;
border: none !important;
color: #555;
font-size: 80%;
text-transform: uppercase;
}
/* Ячейки */
table.recipe-table td {
padding: 3px 6px !important;
border: none !important;
vertical-align: middle !important;
height: auto !important;
line-height: normal !important;
width: auto;
}
/* Иконка */
table.recipe-table td:first-child {
width: 28px !important;
text-align: center !important;
white-space: nowrap;
}
/* Название предмета + количество */
table.recipe-table td:nth-child(2) {
width: 100% !important;
text-align: left !important;
white-space: nowrap;
}
/* Иконки */
table.recipe-table img {
width: 32px !important;
height: 32px !important;
margin: 0 !important;
padding: 0 !important;
display: inline-block;
vertical-align: middle;
}
/* Подсветка */
table.recipe-table tr.input-row td {
background: #f9fcff;
}
table.recipe-table tr.output-row td {
background: #f9fff9;
}