MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 11: | Line 11: | ||
clear: right; | clear: right; | ||
margin-left: 1.5em; | margin-left: 1.5em; | ||
} | |||
.weapon-stats-box p, | |||
.weapon-stats-box br { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
line-height: 0 !important; | |||
} | |||
.weapon-stats-box p.item-type { | |||
display: block !important; | |||
height: auto !important; | |||
line-height: 1.4 !important; | |||
font-size: 0.9em; | |||
color: #aaa; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
| Line 26: | Line 43: | ||
align-items: center; | align-items: center; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | |||
.weapon-icon-area figure, | |||
.weapon-icon-area .thumb, | |||
.weapon-icon-area .thumbinner, | |||
.weapon-icon-area .thumbcaption { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
border: none !important; | |||
background: none !important; | |||
display: block !important; | |||
width: auto !important; | |||
} | |||
.weapon-icon-area a { | |||
display: block !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
line-height: 0 !important; | |||
border: none !important; | |||
} | |||
.weapon-icon-area img { | |||
display: block !important; | |||
max-width: 80px !important; | |||
max-height: 80px !important; | |||
width: auto !important; | |||
height: auto !important; | |||
} | } | ||
| Line 39: | Line 84: | ||
.item-name { | .item-name { | ||
font-size: 1.15em; | font-size: 1.15em !important; | ||
font-weight: bold; | font-weight: bold !important; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
line-height: 1.2; | line-height: 1.2 !important; | ||
white-space: nowrap !important; | white-space: nowrap !important; | ||
border: none !important; | border: none !important; | ||
border-bottom: none !important; | |||
} | } | ||
| Line 67: | Line 113: | ||
font-weight: bold; | font-weight: bold; | ||
color: #f0f0f0; | color: #f0f0f0; | ||
} | } | ||
.weapon-separator { | .weapon-separator { | ||
height: 1px; | display: block !important; | ||
background-color: #444; | height: 1px !important; | ||
border: none; | background-color: #444 !important; | ||
margin: 12px 0; | border: none !important; | ||
margin: 12px 0 !important; | |||
padding: 0 !important; | |||
font-size: 0 !important; | |||
line-height: 0 !important; | |||
} | } | ||
.weapon-separator-double { | .weapon-separator-double { | ||
height: | display: block !important; | ||
border: none; | height: 4px !important; | ||
background: linear-gradient( | |||
to bottom, | |||
#555 0px, #555 1px, | |||
transparent 1px, transparent 2px, | |||
#555 2px, #555 3px | |||
) !important; | |||
border: none !important; | |||
margin: 12px 0 !important; | |||
padding: 0 !important; | |||
font-size: 0 !important; | |||
line-height: 0 !important; | |||
} | } | ||
| Line 92: | Line 145: | ||
font-size: 0.95em; | font-size: 0.95em; | ||
line-height: 1.4; | line-height: 1.4; | ||
margin | margin: 0 0 10px 0 !important; | ||
white-space: normal; | white-space: normal; | ||
} | } | ||
| Line 100: | Line 153: | ||
font-weight: bold; | font-weight: bold; | ||
color: #ccc; | color: #ccc; | ||
margin | margin: 5px 0 10px 0 !important; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 115: | Line 167: | ||
.stats-section { | .stats-section { | ||
display: block; | |||
width: 100%; | width: 100%; | ||
margin | margin: 0 !important; | ||
padding: 0 !important; | |||
} | } | ||
| Line 126: | Line 179: | ||
font-size: 0.95em; | font-size: 0.95em; | ||
border-bottom: 1px solid #333; | border-bottom: 1px solid #333; | ||
margin: 0 !important; | |||
} | } | ||
| Line 138: | Line 192: | ||
font-size: 0.9em; | font-size: 0.9em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
margin | margin: 0 !important; | ||
padding: 0 !important; | |||
} | } | ||
| Line 151: | Line 206: | ||
gap: 15px; | gap: 15px; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
margin | margin: 10px 0 0 0 !important; | ||
padding: 0 !important; | |||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
| Line 175: | Line 231: | ||
border-radius: 50%; | border-radius: 50%; | ||
border: 1px solid #707070; | border: 1px solid #707070; | ||
} | |||
.weapon-icon-area p { | |||
display: block !important; | |||
height: auto !important; | |||
line-height: 0 !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
.special-stats-section { | |||
margin-top: 15px; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 12px; | |||
} | |||
.special-stat-group { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 5px; | |||
} | |||
.special-stat-title { | |||
color: #d9853b; | |||
font-weight: bold; | |||
font-size: 1.05em; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.6); | |||
} | |||
.special-stat-item { | |||
display: flex; | |||
align-items: flex-start; | |||
gap: 8px; | |||
font-size: 0.95em; | |||
color: #e0e0e0; | |||
padding-left: 5px; | |||
} | |||
.special-stat-bullet { | |||
color: #d9853b; | |||
font-size: 0.9em; | |||
line-height: 1.4; | |||
} | |||
:root { | |||
--tlo-bg: #121212; | |||
--tlo-card-bg: #1a1a18; | |||
--tlo-border: #3a3831; | |||
--tlo-text: #d4d4d0; | |||
--tlo-accent-rust: #c46210; | |||
--tlo-font: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |||
} | |||
.fullwidth-banner, | |||
.fullwidth-banner img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
} | |||
.main-row { | |||
display: grid; | |||
grid-template-columns: 1fr; | |||
gap: 15px; | |||
margin-bottom: 15px; | |||
font-family: var(--tlo-font); | |||
} | |||
@media (min-width: 900px) { | |||
.main-row--75-25 { grid-template-columns: 3fr 1fr; } | |||
.main-row--50-50 { grid-template-columns: 1fr 1fr; } | |||
} | |||
.main-card { | |||
background-color: var(--tlo-card-bg); | |||
border: 1px solid var(--tlo-border); | |||
border-radius: 2px; | |||
padding: 20px; | |||
color: var(--tlo-text); | |||
box-shadow: 0 4px 6px rgba(0,0,0,0.5); | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
.main-card__title { | |||
font-size: 1.2em; | |||
font-weight: bold; | |||
color: var(--tlo-accent-rust); | |||
margin-bottom: 15px; | |||
text-transform: uppercase; | |||
border-bottom: 1px solid var(--tlo-border); | |||
padding-bottom: 5px; | |||
} | |||
.news-title { | |||
display: flex; | |||
justify-content: space-between; | |||
border-bottom: 1px solid var(--tlo-border); | |||
padding-bottom: 10px; | |||
margin-bottom: 15px; | |||
font-weight: bold; | |||
} | |||
.news-title-update { | |||
color: var(--tlo-accent-rust); | |||
} | |||
.timeline { | |||
border-left: 2px solid var(--tlo-accent-rust); | |||
padding-left: 15px; | |||
} | |||
.timeline__item { | |||
margin-bottom: 15px; | |||
position: relative; | |||
} | |||
.timeline__item::before { | |||
content: ''; | |||
position: absolute; | |||
left: -21px; | |||
top: 5px; | |||
width: 10px; | |||
height: 10px; | |||
background-color: var(--tlo-accent-rust); | |||
border-radius: 50%; | |||
} | |||
.timeline__date { | |||
color: #888; | |||
font-size: 0.85em; | |||
margin-bottom: 4px; | |||
} | |||
.card-button-grid { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 10px; | |||
} | |||
.card-button a { | |||
display: block; | |||
background-color: var(--tlo-bg); | |||
border: 1px solid var(--tlo-border); | |||
color: var(--tlo-text); | |||
text-align: center; | |||
padding: 10px; | |||
text-decoration: none; | |||
text-transform: uppercase; | |||
font-weight: bold; | |||
transition: background-color 0.2s; | |||
} | |||
.card-button a:hover { | |||
background-color: var(--tlo-accent-rust); | |||
color: #fff; | |||
} | |||
.crafting-wrapper { | |||
display: inline-flex; | |||
align-items: center; | |||
background-color: #1a1a1a; | |||
border: 1px solid #333; | |||
padding: 8px 12px; | |||
border-radius: 4px; | |||
gap: 20px; | |||
font-family: sans-serif; | |||
color: #e0e0e0; | |||
} | |||
.crafting-reagents { | |||
display: flex; | |||
gap: 8px; | |||
} | |||
.crafting-item { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
width: 50px; | |||
} | |||
.crafting-icon { | |||
width: 48px; | |||
height: 48px; | |||
background-color: #2a2a2a; | |||
border: 1px solid #555; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
.crafting-icon img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
.crafting-qty { | |||
margin-top: 5px; | |||
font-size: 13px; | |||
text-align: center; | |||
} | |||
.crafting-divider { | |||
width: 1px; | |||
height: 60px; | |||
background-color: #444; | |||
} | |||
.crafting-output { | |||
position: relative; | |||
display: flex; | |||
} | |||
.crafting-output-icon { | |||
width: 90px; | |||
height: 90px; | |||
background-color: #2a2a2a; | |||
border: 1px solid #555; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
.crafting-output-qty { | |||
position: absolute; | |||
bottom: 4px; | |||
right: 6px; | |||
font-size: 14px; | |||
font-weight: bold; | |||
color: white; | |||
text-shadow: 1px 1px 2px black; | |||
} | |||
@media screen and (max-width: 900px) { | |||
.weapon-stats-box { | |||
float: none !important; | |||
clear: both !important; | |||
display: block !important; | |||
width: 100% !important; | |||
max-width: 380px !important; | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
margin-top: 15px !important; | |||
margin-bottom: 30px !important; | |||
box-sizing: border-box !important; | |||
} | |||
} | } | ||
Latest revision as of 13:04, 25 March 2026
.weapon-stats-box {
background-color: #1a1a1a;
color: #f0f0f0;
border-radius: 8px;
padding: 20px;
width: 380px;
font-family: Arial, sans-serif;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
margin: 1em 0;
float: right;
clear: right;
margin-left: 1.5em;
}
.weapon-stats-box p,
.weapon-stats-box br {
margin: 0 !important;
padding: 0 !important;
line-height: 0 !important;
}
.weapon-stats-box p.item-type {
display: block !important;
height: auto !important;
line-height: 1.4 !important;
font-size: 0.9em;
color: #aaa;
margin: 0 !important;
padding: 0 !important;
}
.weapon-stats-header {
display: flex;
gap: 15px;
align-items: flex-start;
}
.weapon-icon-area {
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.weapon-icon-area figure,
.weapon-icon-area .thumb,
.weapon-icon-area .thumbinner,
.weapon-icon-area .thumbcaption {
margin: 0 !important;
padding: 0 !important;
border: none !important;
background: none !important;
display: block !important;
width: auto !important;
}
.weapon-icon-area a {
display: block !important;
margin: 0 !important;
padding: 0 !important;
line-height: 0 !important;
border: none !important;
}
.weapon-icon-area img {
display: block !important;
max-width: 80px !important;
max-height: 80px !important;
width: auto !important;
height: auto !important;
}
.header-text-container {
flex-grow: 1;
}
.header-title-tier-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.item-name {
font-size: 1.15em !important;
font-weight: bold !important;
text-transform: uppercase;
margin: 0 !important;
padding: 0 !important;
line-height: 1.2 !important;
white-space: nowrap !important;
border: none !important;
border-bottom: none !important;
}
.item-tier-container {
display: flex;
align-items: baseline;
gap: 5px;
margin-top: -3px;
}
.tier-label {
font-size: 0.8em;
font-weight: bold;
text-transform: uppercase;
color: #f0f0f0;
}
.tier-value {
font-size: 1.1em;
font-weight: bold;
color: #f0f0f0;
}
.weapon-separator {
display: block !important;
height: 1px !important;
background-color: #444 !important;
border: none !important;
margin: 12px 0 !important;
padding: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
}
.weapon-separator-double {
display: block !important;
height: 4px !important;
background: linear-gradient(
to bottom,
#555 0px, #555 1px,
transparent 1px, transparent 2px,
#555 2px, #555 3px
) !important;
border: none !important;
margin: 12px 0 !important;
padding: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
}
.description-section {
font-size: 0.95em;
line-height: 1.4;
margin: 0 0 10px 0 !important;
white-space: normal;
}
.loaded-ammo {
font-size: 0.95em;
font-weight: bold;
color: #ccc;
margin: 5px 0 10px 0 !important;
display: flex;
align-items: center;
gap: 8px;
border-left: 2px solid #d35400;
padding-left: 8px;
}
.ammo-icon {
color: #d35400;
font-size: 1.2em;
}
.stats-section {
display: block;
width: 100%;
margin: 0 !important;
padding: 0 !important;
}
.stat-row {
display: flex;
justify-content: space-between;
padding: 6px 0;
font-size: 0.95em;
border-bottom: 1px solid #333;
margin: 0 !important;
}
.stat-row:last-child {
border-bottom: none;
}
.durability-inventory-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.9em;
text-transform: uppercase;
margin: 0 !important;
padding: 0 !important;
}
.repair-status {
color: #e74c3c;
font-weight: bold;
}
.currency-section {
display: flex;
justify-content: flex-end;
gap: 15px;
font-size: 0.95em;
margin: 10px 0 0 0 !important;
padding: 0 !important;
font-weight: bold;
}
.currency-item {
display: flex;
align-items: center;
gap: 5px;
}
.icon-gold-placeholder {
width: 16px;
height: 16px;
background: radial-gradient(circle at 35% 35%, #f5d060, #b8860b);
border-radius: 50%;
border: 1px solid #a07000;
}
.icon-silver-placeholder {
width: 16px;
height: 16px;
background: radial-gradient(circle at 35% 35%, #e0e0e0, #8a8a8a);
border-radius: 50%;
border: 1px solid #707070;
}
.weapon-icon-area p {
display: block !important;
height: auto !important;
line-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
.special-stats-section {
margin-top: 15px;
display: flex;
flex-direction: column;
gap: 12px;
}
.special-stat-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.special-stat-title {
color: #d9853b;
font-weight: bold;
font-size: 1.05em;
text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.special-stat-item {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 0.95em;
color: #e0e0e0;
padding-left: 5px;
}
.special-stat-bullet {
color: #d9853b;
font-size: 0.9em;
line-height: 1.4;
}
:root {
--tlo-bg: #121212;
--tlo-card-bg: #1a1a18;
--tlo-border: #3a3831;
--tlo-text: #d4d4d0;
--tlo-accent-rust: #c46210;
--tlo-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.fullwidth-banner,
.fullwidth-banner img {
max-width: 100% !important;
height: auto !important;
}
.main-row {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-bottom: 15px;
font-family: var(--tlo-font);
}
@media (min-width: 900px) {
.main-row--75-25 { grid-template-columns: 3fr 1fr; }
.main-row--50-50 { grid-template-columns: 1fr 1fr; }
}
.main-card {
background-color: var(--tlo-card-bg);
border: 1px solid var(--tlo-border);
border-radius: 2px;
padding: 20px;
color: var(--tlo-text);
box-shadow: 0 4px 6px rgba(0,0,0,0.5);
position: relative;
overflow: hidden;
}
.main-card__title {
font-size: 1.2em;
font-weight: bold;
color: var(--tlo-accent-rust);
margin-bottom: 15px;
text-transform: uppercase;
border-bottom: 1px solid var(--tlo-border);
padding-bottom: 5px;
}
.news-title {
display: flex;
justify-content: space-between;
border-bottom: 1px solid var(--tlo-border);
padding-bottom: 10px;
margin-bottom: 15px;
font-weight: bold;
}
.news-title-update {
color: var(--tlo-accent-rust);
}
.timeline {
border-left: 2px solid var(--tlo-accent-rust);
padding-left: 15px;
}
.timeline__item {
margin-bottom: 15px;
position: relative;
}
.timeline__item::before {
content: '';
position: absolute;
left: -21px;
top: 5px;
width: 10px;
height: 10px;
background-color: var(--tlo-accent-rust);
border-radius: 50%;
}
.timeline__date {
color: #888;
font-size: 0.85em;
margin-bottom: 4px;
}
.card-button-grid {
display: flex;
flex-direction: column;
gap: 10px;
}
.card-button a {
display: block;
background-color: var(--tlo-bg);
border: 1px solid var(--tlo-border);
color: var(--tlo-text);
text-align: center;
padding: 10px;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
transition: background-color 0.2s;
}
.card-button a:hover {
background-color: var(--tlo-accent-rust);
color: #fff;
}
.crafting-wrapper {
display: inline-flex;
align-items: center;
background-color: #1a1a1a;
border: 1px solid #333;
padding: 8px 12px;
border-radius: 4px;
gap: 20px;
font-family: sans-serif;
color: #e0e0e0;
}
.crafting-reagents {
display: flex;
gap: 8px;
}
.crafting-item {
display: flex;
flex-direction: column;
align-items: center;
width: 50px;
}
.crafting-icon {
width: 48px;
height: 48px;
background-color: #2a2a2a;
border: 1px solid #555;
display: flex;
justify-content: center;
align-items: center;
}
.crafting-icon img {
max-width: 100%;
height: auto;
}
.crafting-qty {
margin-top: 5px;
font-size: 13px;
text-align: center;
}
.crafting-divider {
width: 1px;
height: 60px;
background-color: #444;
}
.crafting-output {
position: relative;
display: flex;
}
.crafting-output-icon {
width: 90px;
height: 90px;
background-color: #2a2a2a;
border: 1px solid #555;
display: flex;
justify-content: center;
align-items: center;
}
.crafting-output-qty {
position: absolute;
bottom: 4px;
right: 6px;
font-size: 14px;
font-weight: bold;
color: white;
text-shadow: 1px 1px 2px black;
}
@media screen and (max-width: 900px) {
.weapon-stats-box {
float: none !important;
clear: both !important;
display: block !important;
width: 100% !important;
max-width: 380px !important;
margin-left: auto !important;
margin-right: auto !important;
margin-top: 15px !important;
margin-bottom: 30px !important;
box-sizing: border-box !important;
}
}