미디어위키:Common.css: 두 판 사이의 차이
외관
대문 MainSection 템플릿용 CSS 추가 (append) |
상단 네비게이션 바 스타일 추가 (기존 스타일 보존) |
||
| (같은 사용자의 중간 판 9개는 보이지 않습니다) | |||
| 1번째 줄: | 1번째 줄: | ||
body { | body { | ||
background-image: url("https://dwiki.doil.me/langrisser/images/c/cf/Lang-bg.jpg"); | background-image: url("https://dwiki.doil.me/langrisser/images/c/cf/Lang-bg.jpg"); | ||
| 126번째 줄: | 125번째 줄: | ||
.mainsection-header { | .mainsection-header { | ||
box-sizing: border-box; | |||
border-style: solid; | |||
border-color: transparent; | |||
border-width: 7px 39px 8px 44px; | |||
border-image: url("https://dwiki.doil.me/langrisser/images/6/69/Skillbox-header.png") 7 39 8 44 fill; | |||
color: #ffd76a; | color: #ffd76a; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 16px; | font-size: 16px; | ||
text-align: | line-height: 30px; | ||
padding: 10px | text-align: left; | ||
padding: 0 10px; | |||
text-shadow: 1px 1px 2px #000; | text-shadow: 1px 1px 2px #000; | ||
margin- | margin: 0 60% -4px -1px; | ||
position: relative; | |||
z-index: 1; | |||
white-space: nowrap; | |||
} | } | ||
| 178번째 줄: | 185번째 줄: | ||
.mainsection-btn:hover { | .mainsection-btn:hover { | ||
color: #fff; | color: #fff; | ||
text-decoration: none; | |||
} | |||
/* === MainSectionGrid — Template:MainSectionGrid 전용 (대문 그리드형 섹션: 영웅/장비/기술) === */ | |||
.mainsection-tabs ul { | |||
list-style: none; | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 14px; | |||
margin: 0 0 10px; | |||
padding: 0 4px 8px; | |||
border-bottom: 1px solid #c9a95c; | |||
} | |||
.mainsection-tabs li { | |||
font-size: 13px; | |||
font-weight: bold; | |||
color: #7c4a2d; | |||
} | |||
.mainsection-tabs li.active { | |||
color: #d33333; | |||
} | |||
.mainsection-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); | |||
gap: 8px; | |||
background: #fdfdfb; | |||
box-sizing: border-box; | |||
border-style: solid; | |||
border-color: transparent; | |||
border-width: 18px 20px 18px 20px; | |||
border-image: url("https://dwiki.doil.me/langrisser/images/e/ef/Skillbox-border.png") 18 20 18 20; | |||
padding: 12px; | |||
} | |||
.mainsection-slot { | |||
width: 68px; | |||
height: 68px; | |||
margin: 0 auto; | |||
box-sizing: border-box; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
.mainsection-slot-inner { | |||
width: 100%; | |||
height: 100%; | |||
} | |||
.mainsection-slot-inner img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
} | |||
.mainsection-slot-item { | |||
position: relative; | |||
} | |||
.mainsection-slot-item .mainsection-slot-inner { | |||
position: relative; | |||
z-index: 1; | |||
border-radius: 50%; | |||
overflow: hidden; | |||
} | |||
.mainsection-slot-item::before { | |||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
z-index: 0; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: 100% 100%; | |||
pointer-events: none; | |||
} | |||
.mainsection-slot-item[data-rarity="SSR"]::before { | |||
background-image: url("https://dwiki.doil.me/langrisser/images/5/51/Equipment-frame-SSR.png"); | |||
} | |||
.mainsection-slot-item[data-rarity="SR"]::before { | |||
background-image: url("https://dwiki.doil.me/langrisser/images/7/72/Equipment-frame-SR.png"); | |||
} | |||
.mainsection-slot-item[data-rarity="R"]::before { | |||
background-image: url("https://dwiki.doil.me/langrisser/images/0/0c/Equipment-frame-R.png"); | |||
} | |||
.mainsection-slot-item[data-rarity="N"]::before { | |||
background-image: url("https://dwiki.doil.me/langrisser/images/7/75/Equipment-frame-N.png"); | |||
} | |||
.mainsection-slot-skill { | |||
position: relative; | |||
} | |||
.mainsection-slot-skill .mainsection-slot-inner { | |||
border-radius: 50%; | |||
overflow: hidden; | |||
} | |||
.mainsection-slot-skill::after { | |||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
background: url("https://dwiki.doil.me/langrisser/images/c/cf/Skill-border.png") no-repeat center / 100% 100%; | |||
pointer-events: none; | |||
} | |||
.skill-cost-dots { | |||
position: absolute; | |||
left: 50%; | |||
bottom: -4px; | |||
transform: translateX(-50%); | |||
display: flex; | |||
gap: 1px; | |||
z-index: 2; | |||
} | |||
.skill-cost-dots img { | |||
width: 10px; | |||
height: 11px; | |||
} | |||
/* === 스킬 호버 툴팁(레퍼런스 사이트 스타일 상세 정보 카드) === */ | |||
.skill-tooltip { | |||
display: none; | |||
position: fixed; | |||
width: 340px; | |||
box-sizing: border-box; | |||
background: #fdfdfb; | |||
border-style: solid; | |||
border-color: transparent; | |||
border-width: 18px 20px 18px 20px; | |||
border-image: url("https://dwiki.doil.me/langrisser/images/e/ef/Skillbox-border.png") 18 20 18 20 fill; | |||
padding: 10px 14px; | |||
z-index: 1000; | |||
text-align: left; | |||
font-size: 12px; | |||
color: #333; | |||
pointer-events: none; | |||
} | |||
.skill-tooltip-header { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
flex-wrap: wrap; | |||
gap: 4px; | |||
font-weight: bold; | |||
font-size: 15px; | |||
color: #4a3b22; | |||
} | |||
.skill-tooltip-cost { | |||
display: flex; | |||
align-items: center; | |||
gap: 4px; | |||
} | |||
.skill-tooltip-cost img { | |||
vertical-align: middle; | |||
} | |||
.skill-tooltip-divider img { | |||
width: 100%; | |||
display: block; | |||
margin: 4px 0 6px; | |||
} | |||
.skill-tooltip-stats { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 4px 10px; | |||
margin-bottom: 6px; | |||
} | |||
.skill-tooltip-stats span { | |||
background: url("https://dwiki.doil.me/langrisser/images/f/f9/Skill-tooltip-border.png") no-repeat center / 100% 100%; | |||
padding: 3px 8px; | |||
text-align: center; | |||
font-size: 11px; | |||
color: #4a3b22; | |||
} | |||
.skill-tooltip-desc { | |||
background: rgba(0, 0, 0, 0.05); | |||
border-radius: 4px; | |||
padding: 6px 8px; | |||
line-height: 1.5; | |||
color: #333; | |||
white-space: normal; | |||
} | |||
/* === 상단 네비게이션 바 (Common.js가 사이트 전역에 주입) === */ | |||
.lang-topnav { | |||
display: flex; | |||
align-items: center; | |||
flex-wrap: wrap; | |||
gap: 10px 28px; | |||
background: linear-gradient(#3a2c18, #241a0e); | |||
border-bottom: 3px solid #c9a95c; | |||
padding: 10px 24px; | |||
} | |||
.lang-topnav-logo { | |||
display: flex; | |||
flex-direction: column; | |||
line-height: 1.2; | |||
text-decoration: none; | |||
} | |||
.lang-topnav-logo:hover { | |||
text-decoration: none; | |||
} | |||
.lang-topnav-title { | |||
color: #ffd76a; | |||
font-size: 22px; | |||
font-weight: bold; | |||
letter-spacing: 2px; | |||
text-shadow: 1px 1px 2px #000; | |||
} | |||
.lang-topnav-sub { | |||
color: #c9a95c; | |||
font-size: 10px; | |||
letter-spacing: 5px; | |||
text-transform: uppercase; | |||
} | |||
.lang-topnav-menu { | |||
list-style: none; | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 4px; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.lang-topnav-menu li { | |||
margin: 0; | |||
} | |||
.lang-topnav-menu a { | |||
display: block; | |||
color: #f6e7c6; | |||
font-size: 14px; | |||
font-weight: bold; | |||
padding: 8px 16px; | |||
border-radius: 4px; | |||
text-decoration: none; | |||
} | |||
.lang-topnav-menu a:hover { | |||
background: rgba(201, 169, 92, 0.25); | |||
color: #ffd76a; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
2026년 7월 14일 (화) 20:43 기준 최신판
body {
background-image: url("https://dwiki.doil.me/langrisser/images/c/cf/Lang-bg.jpg");
background-size: cover;
background-attachment: fixed;
background-repeat: no-repeat;
}
#content {
background-color: rgba(255, 255, 255, 0.92);
}
/* === SkillBox — Template:SkillBox 전용 (스킬 툴팁 박스) === */
.skillbox {
box-sizing: border-box;
width: 338px;
max-width: 100%;
background: #fdf6e3;
border: 3px solid #c9a95c;
border-radius: 10px;
padding: 10px 12px 12px;
font-size: 13px;
line-height: 1.55;
color: #4a3b22;
}
.skillbox .skillbox-top {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
}
.skillbox .skillbox-iconframe {
flex: 0 0 auto;
width: 54px;
height: 46px;
background: url("https://dwiki.doil.me/langrisser/images/e/ef/Skillbox-border.png") no-repeat center / 100% 100%;
display: flex;
align-items: center;
justify-content: center;
}
.skillbox .skillbox-name {
flex: 1 1 auto;
background: url("https://dwiki.doil.me/langrisser/images/6/69/Skillbox-header.png") no-repeat center / 100% 100%;
color: #ffd76a;
font-weight: bold;
font-size: 16px;
text-align: center;
padding: 8px 4px;
text-shadow: 1px 1px 2px #000;
white-space: nowrap;
overflow: hidden;
}
.skillbox .skillbox-cost {
flex: 0 0 auto;
text-align: center;
}
.skillbox .skillbox-cost-label img,
.skillbox .skillbox-cost-dots img {
vertical-align: middle;
}
.skillbox .skillbox-cost-dots img {
margin: 0 1px;
}
.skillbox .skillbox-badges {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px 10px;
margin: 6px 0;
}
.skillbox .skillbox-badge {
display: flex;
align-items: center;
gap: 4px;
}
.skillbox .skillbox-badge-label {
flex: 0 0 auto;
font-weight: bold;
color: #5a4a28;
}
.skillbox .skillbox-badge-value {
flex: 1 1 auto;
background: url("https://dwiki.doil.me/langrisser/images/7/75/Skillbox-btn.png") no-repeat center / 100% 100%;
color: #fff;
font-weight: bold;
text-align: center;
padding: 3px 8px;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
white-space: nowrap;
}
.skillbox .skillbox-divider {
text-align: center;
margin: 4px 0;
}
.skillbox .skillbox-divider img {
max-width: 100%;
}
.skillbox .skillbox-desc {
background: #f6e7c6;
border-radius: 8px;
padding: 10px 12px;
color: #7c4a2d;
}
/* === MainSection — Template:MainSection 전용 (대문 섹션 박스) === */
.mainsection-box {
box-sizing: border-box;
background: rgba(255, 255, 255, 0.92);
border: 1px solid #c9a95c;
border-radius: 8px;
padding: 0 0 12px;
margin-bottom: 16px;
overflow: hidden;
}
.mainsection-header {
box-sizing: border-box;
border-style: solid;
border-color: transparent;
border-width: 7px 39px 8px 44px;
border-image: url("https://dwiki.doil.me/langrisser/images/6/69/Skillbox-header.png") 7 39 8 44 fill;
color: #ffd76a;
font-weight: bold;
font-size: 16px;
line-height: 30px;
text-align: left;
padding: 0 10px;
text-shadow: 1px 1px 2px #000;
margin: 0 60% -4px -1px;
position: relative;
z-index: 1;
white-space: nowrap;
}
.mainsection-body {
padding: 0 14px;
color: #4a3b22;
font-size: 13px;
line-height: 1.6;
}
.mainsection-columns {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.mainsection-col {
flex: 1 1 360px;
min-width: 300px;
}
.mainsection-placeholder {
background: #f6e7c6;
border: 1px dashed #c9a95c;
border-radius: 6px;
padding: 20px 10px;
text-align: center;
color: #7c4a2d;
font-size: 13px;
}
.mainsection-btn {
display: inline-block;
background: url("https://dwiki.doil.me/langrisser/images/7/75/Skillbox-btn.png") no-repeat center / 100% 100%;
color: #fff;
font-weight: bold;
text-align: center;
text-decoration: none;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
padding: 10px 20px;
margin: 4px 8px 4px 0;
}
.mainsection-btn:hover {
color: #fff;
text-decoration: none;
}
/* === MainSectionGrid — Template:MainSectionGrid 전용 (대문 그리드형 섹션: 영웅/장비/기술) === */
.mainsection-tabs ul {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 14px;
margin: 0 0 10px;
padding: 0 4px 8px;
border-bottom: 1px solid #c9a95c;
}
.mainsection-tabs li {
font-size: 13px;
font-weight: bold;
color: #7c4a2d;
}
.mainsection-tabs li.active {
color: #d33333;
}
.mainsection-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
gap: 8px;
background: #fdfdfb;
box-sizing: border-box;
border-style: solid;
border-color: transparent;
border-width: 18px 20px 18px 20px;
border-image: url("https://dwiki.doil.me/langrisser/images/e/ef/Skillbox-border.png") 18 20 18 20;
padding: 12px;
}
.mainsection-slot {
width: 68px;
height: 68px;
margin: 0 auto;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.mainsection-slot-inner {
width: 100%;
height: 100%;
}
.mainsection-slot-inner img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mainsection-slot-item {
position: relative;
}
.mainsection-slot-item .mainsection-slot-inner {
position: relative;
z-index: 1;
border-radius: 50%;
overflow: hidden;
}
.mainsection-slot-item::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
pointer-events: none;
}
.mainsection-slot-item[data-rarity="SSR"]::before {
background-image: url("https://dwiki.doil.me/langrisser/images/5/51/Equipment-frame-SSR.png");
}
.mainsection-slot-item[data-rarity="SR"]::before {
background-image: url("https://dwiki.doil.me/langrisser/images/7/72/Equipment-frame-SR.png");
}
.mainsection-slot-item[data-rarity="R"]::before {
background-image: url("https://dwiki.doil.me/langrisser/images/0/0c/Equipment-frame-R.png");
}
.mainsection-slot-item[data-rarity="N"]::before {
background-image: url("https://dwiki.doil.me/langrisser/images/7/75/Equipment-frame-N.png");
}
.mainsection-slot-skill {
position: relative;
}
.mainsection-slot-skill .mainsection-slot-inner {
border-radius: 50%;
overflow: hidden;
}
.mainsection-slot-skill::after {
content: "";
position: absolute;
inset: 0;
background: url("https://dwiki.doil.me/langrisser/images/c/cf/Skill-border.png") no-repeat center / 100% 100%;
pointer-events: none;
}
.skill-cost-dots {
position: absolute;
left: 50%;
bottom: -4px;
transform: translateX(-50%);
display: flex;
gap: 1px;
z-index: 2;
}
.skill-cost-dots img {
width: 10px;
height: 11px;
}
/* === 스킬 호버 툴팁(레퍼런스 사이트 스타일 상세 정보 카드) === */
.skill-tooltip {
display: none;
position: fixed;
width: 340px;
box-sizing: border-box;
background: #fdfdfb;
border-style: solid;
border-color: transparent;
border-width: 18px 20px 18px 20px;
border-image: url("https://dwiki.doil.me/langrisser/images/e/ef/Skillbox-border.png") 18 20 18 20 fill;
padding: 10px 14px;
z-index: 1000;
text-align: left;
font-size: 12px;
color: #333;
pointer-events: none;
}
.skill-tooltip-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 4px;
font-weight: bold;
font-size: 15px;
color: #4a3b22;
}
.skill-tooltip-cost {
display: flex;
align-items: center;
gap: 4px;
}
.skill-tooltip-cost img {
vertical-align: middle;
}
.skill-tooltip-divider img {
width: 100%;
display: block;
margin: 4px 0 6px;
}
.skill-tooltip-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px 10px;
margin-bottom: 6px;
}
.skill-tooltip-stats span {
background: url("https://dwiki.doil.me/langrisser/images/f/f9/Skill-tooltip-border.png") no-repeat center / 100% 100%;
padding: 3px 8px;
text-align: center;
font-size: 11px;
color: #4a3b22;
}
.skill-tooltip-desc {
background: rgba(0, 0, 0, 0.05);
border-radius: 4px;
padding: 6px 8px;
line-height: 1.5;
color: #333;
white-space: normal;
}
/* === 상단 네비게이션 바 (Common.js가 사이트 전역에 주입) === */
.lang-topnav {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px 28px;
background: linear-gradient(#3a2c18, #241a0e);
border-bottom: 3px solid #c9a95c;
padding: 10px 24px;
}
.lang-topnav-logo {
display: flex;
flex-direction: column;
line-height: 1.2;
text-decoration: none;
}
.lang-topnav-logo:hover {
text-decoration: none;
}
.lang-topnav-title {
color: #ffd76a;
font-size: 22px;
font-weight: bold;
letter-spacing: 2px;
text-shadow: 1px 1px 2px #000;
}
.lang-topnav-sub {
color: #c9a95c;
font-size: 10px;
letter-spacing: 5px;
text-transform: uppercase;
}
.lang-topnav-menu {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 4px;
margin: 0;
padding: 0;
}
.lang-topnav-menu li {
margin: 0;
}
.lang-topnav-menu a {
display: block;
color: #f6e7c6;
font-size: 14px;
font-weight: bold;
padding: 8px 16px;
border-radius: 4px;
text-decoration: none;
}
.lang-topnav-menu a:hover {
background: rgba(201, 169, 92, 0.25);
color: #ffd76a;
text-decoration: none;
}