MediaWiki:Common.css: Difference between revisions
From KSI Wiki
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
/* ===== Existing badge backgrounds ===== */ | /* ===== Existing badge backgrounds ===== */ | ||
.HOF-Background { | .HOF-Background{ | ||
background-image: url("http://wiki.ksiglobal.com/images/7/70/Hall_of_fame_bg.png"); | background-image: url("http://wiki.ksiglobal.com/images/7/70/Hall_of_fame_bg.png"); | ||
width: 250px; | width: 250px; | ||
| Line 8: | Line 8: | ||
} | } | ||
.Red-Background { | .Red-Background{ | ||
background-image: url("https://wiki.ksiglobal.com/images/a/a1/Red-Background.png"); | background-image: url("https://wiki.ksiglobal.com/images/a/a1/Red-Background.png"); | ||
width: 250px; | width: 250px; | ||
| Line 14: | Line 14: | ||
} | } | ||
.Blue-Background { | .Blue-Background{ | ||
background-image: url("https://wiki.ksiglobal.com/images/5/53/Blue_bg.png"); | background-image: url("https://wiki.ksiglobal.com/images/5/53/Blue_bg.png"); | ||
width: 250px; | width: 250px; | ||
| Line 20: | Line 20: | ||
} | } | ||
.Green-Background { | .Green-Background{ | ||
background-image: url("https://wiki.ksiglobal.com/images/b/b2/United_bg.png"); | background-image: url("https://wiki.ksiglobal.com/images/b/b2/United_bg.png"); | ||
width: 250px; | width: 250px; | ||
| Line 26: | Line 26: | ||
} | } | ||
.AlignTop { | .AlignTop{ | ||
display: inline-block; | display: inline-block; | ||
vertical-align: top; | vertical-align: top; | ||
| Line 38: | Line 38: | ||
gap: 18px; | gap: 18px; | ||
align-items: start; | align-items: start; | ||
margin-top: 0 !important; | |||
} | } | ||
| Line 44: | Line 45: | ||
} | } | ||
/* | /* Card style */ | ||
.ksicard{ | .ksicard{ | ||
background: rgba(255,255,255,0.03); | background: rgba(255,255,255,0.03); | ||
| Line 54: | Line 55: | ||
} | } | ||
/* | /* Align first cards (prevents “right is higher” issues) */ | ||
.ksimain > .ksicard:first-child{ margin-top: 0 !important; } | |||
.ksiside > .ksicard:first-child{ margin-top: 0 !important; } | |||
} | |||
/* Clean section headings inside cards */ | /* Clean section headings inside cards */ | ||
| Line 66: | Line 66: | ||
} | } | ||
/* Subtle hover polish | /* Subtle hover polish */ | ||
.ksicard img{ | .ksicard img{ | ||
border-radius: 10px; | border-radius: 10px; | ||
| Line 76: | Line 76: | ||
} | } | ||
/* ===== Sidebar | /* ===== Sidebar layout ===== */ | ||
.ksiside{ | .ksiside{ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 12px !important; /* “green gap” knob */ | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
/* | .ksiside .ksicard{ | ||
margin: 0 !important; /* spacing handled by gap */ | |||
padding: 10px 12px !important; | |||
} | |||
/* Kill random floats/positioning inside sidebar */ | |||
.ksiside > *{ | .ksiside > *{ | ||
display: block !important; | display: block !important; | ||
| Line 95: | Line 98: | ||
position: relative !important; | position: relative !important; | ||
z-index: 1 !important; | z-index: 1 !important; | ||
} | } | ||
.ksiside .floatright, | .ksiside .floatright, | ||
.ksiside .tright, | .ksiside .tright, | ||
| Line 110: | Line 110: | ||
} | } | ||
/* ===== Badge card ===== */ | |||
/* ===== | |||
.ksibadges{ | .ksibadges{ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 10px; | gap: 10px; | ||
align-items: center; /* | align-items: center; | ||
padding-bottom: 12px !important; /* <-- yellow area spacing */ | |||
} | |||
/* Each badge template is wrapped in .ksibadge in your page source */ | |||
.ksibadges .ksibadge{ | |||
width: 100% !important; | |||
text-align: center !important; | |||
margin: 0 !important; | |||
} | |||
/* Prevent template wrappers from pushing things around */ | |||
.ksibadges .ksibadge table, | |||
.ksibadges .ksibadge div{ | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
float: none !important; | |||
} | } | ||
/* | /* Force badge backgrounds to be identical and “card-like” */ | ||
.ksibadges .HOF-Background, | .ksibadges .HOF-Background, | ||
.ksibadges .Red-Background, | .ksibadges .Red-Background, | ||
| Line 135: | Line 142: | ||
width: 250px !important; | width: 250px !important; | ||
height: 75px !important; | height: 75px !important; | ||
margin: 0 !important; | margin: 0 auto !important; | ||
position: static !important; | position: static !important; | ||
float: none !important; | float: none !important; | ||
| Line 145: | Line 152: | ||
} | } | ||
/* | /* Stop stray spacing inside badge card */ | ||
.ksibadges p{ | .ksibadges p{ margin: 0 !important; padding: 0 !important; } | ||
.ksibadges br{ display: none !important; } | |||
} | .ksibadges table{ | ||
.ksibadges br{ | width: auto !important; | ||
height: auto !important; | |||
} | border-spacing: 0 !important; | ||
padding: 0 !important; | |||
} | } | ||
/* ===== Infobox containment ===== */ | /* ===== Infobox containment ===== */ | ||
.ksiside .infobox, | .ksiside .infobox, | ||
.ksiside .portable-infobox, | .ksiside .portable-infobox, | ||
| Line 172: | Line 171: | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
.ksiside table td, | .ksiside table td, | ||
.ksiside table th{ | .ksiside table th{ | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
/* ===== Sticky behavior (fixed: no dead runway) ===== */ | |||
@media (min-width: 901px){ | |||
.ksiside{ align-self: start; } | |||
/* ===== | |||
.ksiside | |||
} | |||
/* | /* Only the profile card should stick */ | ||
.ksiside .ksiprofilecard.ksisticky{ | |||
position: sticky !important; | |||
top: 12px !important; | |||
} | |||
.ksiside .ksiprofilecard | |||
} | |||
} | } | ||
Latest revision as of 13:23, 2 January 2026
/* CSS placed here will be applied to all skins */
/* ===== Existing badge backgrounds ===== */
.HOF-Background{
background-image: url("http://wiki.ksiglobal.com/images/7/70/Hall_of_fame_bg.png");
width: 250px;
height: 75px;
}
.Red-Background{
background-image: url("https://wiki.ksiglobal.com/images/a/a1/Red-Background.png");
width: 250px;
height: 75px;
}
.Blue-Background{
background-image: url("https://wiki.ksiglobal.com/images/5/53/Blue_bg.png");
width: 250px;
height: 75px;
}
.Green-Background{
background-image: url("https://wiki.ksiglobal.com/images/b/b2/United_bg.png");
width: 250px;
height: 75px;
}
.AlignTop{
display: inline-block;
vertical-align: top;
}
/* ===== KSI Modern Profile Layout (DarkVector-safe) ===== */
.ksiprofile{
display: grid;
grid-template-columns: 1fr 340px;
gap: 18px;
align-items: start;
margin-top: 0 !important;
}
@media (max-width: 900px){
.ksiprofile{ grid-template-columns: 1fr; }
}
/* Card style */
.ksicard{
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.10);
border-radius: 14px;
padding: 14px 16px;
box-shadow: 0 10px 24px rgba(0,0,0,0.22);
margin: 12px 0;
}
/* Align first cards (prevents “right is higher” issues) */
.ksimain > .ksicard:first-child{ margin-top: 0 !important; }
.ksiside > .ksicard:first-child{ margin-top: 0 !important; }
/* Clean section headings inside cards */
.ksicard h2{
border-bottom: 0 !important;
margin-top: 0.2em;
padding-bottom: 6px;
}
/* Subtle hover polish */
.ksicard img{
border-radius: 10px;
transition: transform 120ms ease, box-shadow 120ms ease;
}
.ksicard img:hover{
transform: scale(1.04);
box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
/* ===== Sidebar layout ===== */
.ksiside{
display: flex;
flex-direction: column;
gap: 12px !important; /* “green gap” knob */
margin: 0 !important;
padding: 0 !important;
}
.ksiside .ksicard{
margin: 0 !important; /* spacing handled by gap */
padding: 10px 12px !important;
}
/* Kill random floats/positioning inside sidebar */
.ksiside > *{
display: block !important;
width: 100% !important;
clear: both !important;
float: none !important;
position: relative !important;
z-index: 1 !important;
}
.ksiside .floatright,
.ksiside .tright,
.ksiside .thumb,
.ksiside .thumbinner,
.ksiside .mw-halign-right{
float: none !important;
clear: both !important;
margin: 0 !important;
}
/* ===== Badge card ===== */
.ksibadges{
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
padding-bottom: 12px !important; /* <-- yellow area spacing */
}
/* Each badge template is wrapped in .ksibadge in your page source */
.ksibadges .ksibadge{
width: 100% !important;
text-align: center !important;
margin: 0 !important;
}
/* Prevent template wrappers from pushing things around */
.ksibadges .ksibadge table,
.ksibadges .ksibadge div{
margin-left: auto !important;
margin-right: auto !important;
float: none !important;
}
/* Force badge backgrounds to be identical and “card-like” */
.ksibadges .HOF-Background,
.ksibadges .Red-Background,
.ksibadges .Blue-Background,
.ksibadges .Green-Background{
display: block !important;
width: 250px !important;
height: 75px !important;
margin: 0 auto !important;
position: static !important;
float: none !important;
border-radius: 14px;
border: 1px solid rgba(255,255,255,0.10);
box-shadow: 0 10px 24px rgba(0,0,0,0.22);
overflow: hidden;
}
/* Stop stray spacing inside badge card */
.ksibadges p{ margin: 0 !important; padding: 0 !important; }
.ksibadges br{ display: none !important; }
.ksibadges table{
width: auto !important;
height: auto !important;
border-spacing: 0 !important;
padding: 0 !important;
}
/* ===== Infobox containment ===== */
.ksiside .infobox,
.ksiside .portable-infobox,
.ksiside table{
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
margin: 0 !important;
}
.ksiside table td,
.ksiside table th{
vertical-align: top;
}
/* ===== Sticky behavior (fixed: no dead runway) ===== */
@media (min-width: 901px){
.ksiside{ align-self: start; }
/* Only the profile card should stick */
.ksiside .ksiprofilecard.ksisticky{
position: sticky !important;
top: 12px !important;
}
}