MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.item-layout {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 2em;
}
.item-main {
flex: 1;
min-width: 0;
}
.item-infobox {
flex: 0 0 300px;
max-width: 300px;
padding: 1em;
}
/* Recipe Container - Compatible con Citizen Theme */
.recipe-container {
background: var(--color-surface-1);
border: 1px solid var(--border-color-base);
border-radius: 8px;
padding: 1.5em;
margin: 1.5em 0;
box-shadow: var(--box-shadow-dialog);
}
.recipe-container .recipe-header {
color: var(--color-progressive);
font-size: 1.3em;
padding-bottom: 0.75em;
border-bottom: 2px solid var(--border-color-base);
margin: 0 0 1.5em 0;
}
.recipe-container .recipe-section-title {
color: var(--color-progressive);
margin-top: 0;
margin-bottom: 1em;
font-size: 1.1em;
}
.recipe-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2em;
}
@media (max-width: 768px) {
.recipe-grid {
grid-template-columns: 1fr;
}
}
/* Table Styles */
.recipe-container .recipe-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
border-radius: 6px;
overflow: hidden;
}
.recipe-container .recipe-table-header {
background: var(--color-surface-2);
border-bottom: 2px solid var(--border-color-base);
}
.recipe-container .recipe-table th {
padding: 10px 8px;
text-align: left;
color: var(--color-progressive);
font-weight: 600;
}
.recipe-container .recipe-table th:last-child {
text-align: center;
width: 70px;
}
.recipe-container .recipe-table th:first-child {
width: 50px;
}
.recipe-container .recipe-table tr:not(.recipe-table-header) {
background: var(--color-surface-0);
transition: background 0.2s ease;
}
.recipe-container .recipe-table tr:not(.recipe-table-header):hover {
background: var(--color-surface-2);
}
.recipe-container .recipe-table td {
padding: 10px 8px;
border-bottom: 1px solid var(--border-color-subtle);
color: var(--color-base);
}
.recipe-container .recipe-table tr:last-child td {
border-bottom: none;
}
.recipe-container .recipe-table td:last-child {
text-align: center;
font-weight: 600;
color: var(--color-emphasized);
}
/* Crafting Details */
.crafting-details {
background: var(--color-surface-2);
border-radius: 8px;
padding: 1em;
}
.detail-item {
display: grid;
grid-template-columns: 40px 1fr;
gap: 0.75em;
align-items: center;
margin-bottom: 0.75em;
padding: 0.75em;
background: var(--color-surface-1);
border: 1px solid var(--border-color-subtle);
border-radius: 6px;
transition: border-color 0.2s ease;
}
.detail-item:hover {
border-color: var(--border-color-base);
}
.detail-item:last-child {
margin-bottom: 0;
}
.detail-icon {
width: 40px;
height: 40px;
background: var(--color-surface-0);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2em;
}
.detail-label {
font-size: 0.85em;
color: var(--color-base--subtle);
margin-bottom: 0.25em;
}
.detail-value {
font-weight: bold;
color: var(--color-emphasized);
}
/* Responsive */
@media (max-width: 768px) {
.recipe-container > div > div:first-child {
grid-template-columns: 1fr !important;
}
}