Template:Infobox person/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* =========================== | /* =================================================== | ||
WikiSaga Person Infobox | WikiSaga Premium Person Infobox | ||
=========================== */ | =================================================== */ | ||
.ws-person-box{ | .ws-person-box{ | ||
float:right; | float:right; | ||
clear:right; | clear:right; | ||
width: | width:340px; | ||
margin:0 0 | margin:0 0 28px 32px; | ||
border-collapse: | border-collapse:separate; | ||
border-spacing:0; | |||
background:#fff; | background:#fff; | ||
border:1px solid # | border:1px solid #dce5f2; | ||
border-radius: | border-radius:18px; | ||
overflow:hidden; | overflow:hidden; | ||
box-shadow:0 | box-shadow:0 12px 35px rgba(15,40,90,.12); | ||
font-size: | font-size:15px; | ||
} | } | ||
/* Header */ | |||
.ws-person-header{ | .ws-person-header{ | ||
background:linear-gradient(135deg,#163A8C,# | background:linear-gradient(135deg,#163A8C,#315fd3); | ||
color:#fff; | color:#fff !important; | ||
font-size:28px; | |||
font-weight:700; | |||
text-align:center; | text-align:center; | ||
padding:22px; | |||
} | } | ||
/* Image */ | |||
.ws-person-image{ | .ws-person-image{ | ||
padding: | background:#fff; | ||
padding:22px; | |||
text-align:center; | text-align:center; | ||
} | } | ||
.ws-person-image img{ | .ws-person-image img{ | ||
width: | width:220px; | ||
border-radius: | border-radius:14px; | ||
border:4px solid #eef3ff; | |||
box-shadow:0 8px 22px rgba(0,0,0,.12); | |||
} | } | ||
/* Labels */ | |||
.ws-person-box th{ | .ws-person-box th{ | ||
width: | width:36%; | ||
background:# | background:#f5f8fd; | ||
color:#163A8C; | color:#163A8C; | ||
padding: | font-weight:700; | ||
padding:14px; | |||
border-top:1px solid #e6edf8; | |||
text-align:left; | text-align:left; | ||
} | } | ||
/* Values */ | |||
.ws-person-box td{ | .ws-person-box td{ | ||
padding: | background:#fff; | ||
border-top:1px solid # | padding:14px; | ||
border-top:1px solid #e6edf8; | |||
color:#333; | |||
line-height:1.7; | |||
} | } | ||
/* Links */ | |||
.ws-person-box a{ | .ws-person-box a{ | ||
color:# | color:#1f5fd8; | ||
text-decoration:none; | text-decoration:none; | ||
font-weight:600; | |||
} | } | ||
| Line 62: | Line 78: | ||
} | } | ||
. | /* Remove ugly Citizen table borders */ | ||
.ws-person-box tr:first-child th{ | |||
border-top:none; | |||
} | } | ||
@media(max-width:900px){ | /* Mobile */ | ||
@media (max-width:900px){ | |||
.ws-person-box{ | .ws-person-box{ | ||
float:none; | float:none; | ||
width:100%; | width:100%; | ||
margin: | margin:25px 0; | ||
} | } | ||
} | |||
/* Clear float */ | |||
.mw-parser-output::after{ | |||
content:""; | |||
display:block; | |||
clear:both; | |||
} | } | ||
Revision as of 18:24, 23 July 2026
/* ===================================================
WikiSaga Premium Person Infobox
=================================================== */
.ws-person-box{
float:right;
clear:right;
width:340px;
margin:0 0 28px 32px;
border-collapse:separate;
border-spacing:0;
background:#fff;
border:1px solid #dce5f2;
border-radius:18px;
overflow:hidden;
box-shadow:0 12px 35px rgba(15,40,90,.12);
font-size:15px;
}
/* Header */
.ws-person-header{
background:linear-gradient(135deg,#163A8C,#315fd3);
color:#fff !important;
font-size:28px;
font-weight:700;
text-align:center;
padding:22px;
}
/* Image */
.ws-person-image{
background:#fff;
padding:22px;
text-align:center;
}
.ws-person-image img{
width:220px;
border-radius:14px;
border:4px solid #eef3ff;
box-shadow:0 8px 22px rgba(0,0,0,.12);
}
/* Labels */
.ws-person-box th{
width:36%;
background:#f5f8fd;
color:#163A8C;
font-weight:700;
padding:14px;
border-top:1px solid #e6edf8;
text-align:left;
}
/* Values */
.ws-person-box td{
background:#fff;
padding:14px;
border-top:1px solid #e6edf8;
color:#333;
line-height:1.7;
}
/* Links */
.ws-person-box a{
color:#1f5fd8;
text-decoration:none;
font-weight:600;
}
.ws-person-box a:hover{
text-decoration:underline;
}
/* Remove ugly Citizen table borders */
.ws-person-box tr:first-child th{
border-top:none;
}
/* Mobile */
@media (max-width:900px){
.ws-person-box{
float:none;
width:100%;
margin:25px 0;
}
}
/* Clear float */
.mw-parser-output::after{
content:"";
display:block;
clear:both;
}