Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox person/styles.css: Difference between revisions

Template page
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
/* ==========================================
  WikiSaga Infobox Person
  Version 1.0
========================================== */
.ws-infobox{
.ws-infobox{
float:right;
    float:right;
width:340px;
    width:340px;
margin:0 0 20px 25px;
    margin:0 0 24px 24px;
border-collapse:collapse;
    border-collapse:collapse;
background:#fff;
    background:#ffffff;
border:1px solid #e5e7eb;
    border:1px solid #dbe3ee;
border-radius:16px;
    border-radius:14px;
overflow:hidden;
    overflow:hidden;
box-shadow:0 8px 20px rgba(0,0,0,.08);
    box-shadow:0 6px 18px rgba(0,0,0,.08);
font-size:14px;
    font-size:14px;
}
}
/* Header */


.ws-title{
.ws-title{
background:linear-gradient(135deg,#163A8C,#2d5bdb);
    background:linear-gradient(135deg,#163A8C,#2956d7);
color:#fff;
    text-align:center;
padding:18px;
    padding:18px;
text-align:center;
    color:#ffffff;
}
}


.ws-title img{
.ws-title img{
display:block;
    display:block;
margin:0 auto 15px;
    margin:0 auto 12px;
border-radius:12px;
    border-radius:10px;
background:#fff;
    max-width:100%;
padding:6px;
    height:auto;
max-width:100%;
    background:#ffffff;
height:auto;
    padding:4px;
}
}


.ws-name{
.ws-name{
font-size:26px;
    font-size:24px;
font-weight:700;
    font-weight:700;
line-height:1.2;
    color:#ffffff;
margin-top:10px;
    line-height:1.3;
    margin-top:8px;
}
}


.ws-subtitle{
.ws-subtitle{
margin-top:6px;
    font-size:15px;
font-size:15px;
    color:#dce7ff;
opacity:.95;
    margin-top:6px;
}
 
/* Table */
 
.ws-infobox tr{
    border-bottom:1px solid #edf2f7;
}
 
.ws-infobox tr:last-child{
    border-bottom:none;
}
}


.ws-infobox th{
.ws-infobox th{
width:38%;
    width:38%;
padding:12px 14px;
    background:#f8fafc;
text-align:left;
    color:#163A8C;
background:#f8fafc;
    font-weight:600;
color:#163A8C;
    text-align:left;
font-weight:700;
    vertical-align:top;
border-top:1px solid #edf2f7;
    padding:12px 14px;
vertical-align:top;
}
}


.ws-infobox td{
.ws-infobox td{
padding:12px 14px;
    padding:12px 14px;
border-top:1px solid #edf2f7;
    color:#333333;
color:#444;
    line-height:1.6;
line-height:1.5;
    vertical-align:top;
}
 
/* Links */
 
.ws-infobox a{
    color:#2956d7;
    text-decoration:none;
}
}


.ws-infobox tr:first-child th,
.ws-infobox a:hover{
.ws-infobox tr:first-child td{
    text-decoration:underline;
border-top:none;
}
}


@media (max-width:768px){
/* Zebra rows */
 
.ws-infobox tr:nth-child(even){
    background:#fcfdff;
}
 
/* Mobile */
 
@media only screen and (max-width:768px){


.ws-infobox{
.ws-infobox{
float:none;
    float:none;
width:100%;
    width:100%;
margin:20px 0;
    margin:20px 0;
}
 
.ws-infobox th,
.ws-infobox td{
    display:block;
    width:100%;
}
 
.ws-infobox th{
    padding-bottom:4px;
    background:#f4f7fb;
}
 
.ws-infobox td{
    padding-top:0;
}
}


}
}

Revision as of 18:10, 23 July 2026

/* ==========================================
   WikiSaga Infobox Person
   Version 1.0
========================================== */

.ws-infobox{
    float:right;
    width:340px;
    margin:0 0 24px 24px;
    border-collapse:collapse;
    background:#ffffff;
    border:1px solid #dbe3ee;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    font-size:14px;
}

/* Header */

.ws-title{
    background:linear-gradient(135deg,#163A8C,#2956d7);
    text-align:center;
    padding:18px;
    color:#ffffff;
}

.ws-title img{
    display:block;
    margin:0 auto 12px;
    border-radius:10px;
    max-width:100%;
    height:auto;
    background:#ffffff;
    padding:4px;
}

.ws-name{
    font-size:24px;
    font-weight:700;
    color:#ffffff;
    line-height:1.3;
    margin-top:8px;
}

.ws-subtitle{
    font-size:15px;
    color:#dce7ff;
    margin-top:6px;
}

/* Table */

.ws-infobox tr{
    border-bottom:1px solid #edf2f7;
}

.ws-infobox tr:last-child{
    border-bottom:none;
}

.ws-infobox th{
    width:38%;
    background:#f8fafc;
    color:#163A8C;
    font-weight:600;
    text-align:left;
    vertical-align:top;
    padding:12px 14px;
}

.ws-infobox td{
    padding:12px 14px;
    color:#333333;
    line-height:1.6;
    vertical-align:top;
}

/* Links */

.ws-infobox a{
    color:#2956d7;
    text-decoration:none;
}

.ws-infobox a:hover{
    text-decoration:underline;
}

/* Zebra rows */

.ws-infobox tr:nth-child(even){
    background:#fcfdff;
}

/* Mobile */

@media only screen and (max-width:768px){

.ws-infobox{
    float:none;
    width:100%;
    margin:20px 0;
}

.ws-infobox th,
.ws-infobox td{
    display:block;
    width:100%;
}

.ws-infobox th{
    padding-bottom:4px;
    background:#f4f7fb;
}

.ws-infobox td{
    padding-top:0;
}

}