Template:Infobox person/styles.css: Difference between revisions
Template page
More actions
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 | margin:0 0 24px 24px; | ||
border-collapse:collapse; | border-collapse:collapse; | ||
background:# | background:#ffffff; | ||
border:1px solid # | border:1px solid #dbe3ee; | ||
border-radius: | border-radius:14px; | ||
overflow:hidden; | overflow:hidden; | ||
box-shadow:0 | 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,# | background:linear-gradient(135deg,#163A8C,#2956d7); | ||
text-align:center; | |||
padding:18px; | padding:18px; | ||
color:#ffffff; | |||
} | } | ||
.ws-title img{ | .ws-title img{ | ||
display:block; | display:block; | ||
margin:0 auto | margin:0 auto 12px; | ||
border-radius: | border-radius:10px; | ||
max-width:100%; | |||
height:auto; | |||
max-width:100%; | background:#ffffff; | ||
height:auto; | padding:4px; | ||
} | } | ||
.ws-name{ | .ws-name{ | ||
font-size: | font-size:24px; | ||
font-weight:700; | font-weight:700; | ||
line-height:1. | color:#ffffff; | ||
margin-top: | line-height:1.3; | ||
margin-top:8px; | |||
} | } | ||
.ws-subtitle{ | .ws-subtitle{ | ||
margin-top:6px; | 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{ | .ws-infobox th{ | ||
width:38%; | width:38%; | ||
background:#f8fafc; | |||
color:#163A8C; | |||
background:#f8fafc; | font-weight:600; | ||
color:#163A8C; | text-align:left; | ||
font-weight: | vertical-align:top; | ||
padding:12px 14px; | |||
vertical-align:top; | |||
} | } | ||
.ws-infobox td{ | .ws-infobox td{ | ||
padding:12px 14px; | padding:12px 14px; | ||
color:#333333; | |||
color:# | line-height:1.6; | ||
vertical-align:top; | |||
} | |||
/* Links */ | |||
.ws-infobox a{ | |||
color:#2956d7; | |||
text-decoration:none; | |||
} | } | ||
.ws-infobox | .ws-infobox a:hover{ | ||
text-decoration:underline; | |||
} | } | ||
@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;
}
}