본문으로 이동

미디어위키:Common.css: 두 판 사이의 차이

Langrisser Wiki
스킬 호버 툴팁 카드 CSS 추가(레퍼런스 사이트 스타일)
장비 등급별(SSR/SR/R/N) 원형 테두리 프레임으로 교체(data-rarity 어트리뷰트 셀렉터)
243번째 줄: 243번째 줄:


.mainsection-slot-item {
.mainsection-slot-item {
background: url("https://dwiki.doil.me/langrisser/images/e/ef/Skillbox-border.png") no-repeat center / 100% 100%;
position: relative;
padding: 8px;
}
}


.mainsection-slot-item .mainsection-slot-inner img {
.mainsection-slot-item .mainsection-slot-inner {
object-fit: contain;
border-radius: 50%;
overflow: hidden;
}
 
.mainsection-slot-item::after {
content: "";
position: absolute;
inset: 0;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
pointer-events: none;
}
 
.mainsection-slot-item[data-rarity="SSR"]::after {
background-image: url("https://dwiki.doil.me/langrisser/images/5/51/Equipment-frame-SSR.png");
}
 
.mainsection-slot-item[data-rarity="SR"]::after {
background-image: url("https://dwiki.doil.me/langrisser/images/7/72/Equipment-frame-SR.png");
}
 
.mainsection-slot-item[data-rarity="R"]::after {
background-image: url("https://dwiki.doil.me/langrisser/images/0/0c/Equipment-frame-R.png");
}
 
.mainsection-slot-item[data-rarity="N"]::after {
background-image: url("https://dwiki.doil.me/langrisser/images/7/75/Equipment-frame-N.png");
}
}



2026년 7월 14일 (화) 11:27 판

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 {
	border-radius: 50%;
	overflow: hidden;
}

.mainsection-slot-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	pointer-events: none;
}

.mainsection-slot-item[data-rarity="SSR"]::after {
	background-image: url("https://dwiki.doil.me/langrisser/images/5/51/Equipment-frame-SSR.png");
}

.mainsection-slot-item[data-rarity="SR"]::after {
	background-image: url("https://dwiki.doil.me/langrisser/images/7/72/Equipment-frame-SR.png");
}

.mainsection-slot-item[data-rarity="R"]::after {
	background-image: url("https://dwiki.doil.me/langrisser/images/0/0c/Equipment-frame-R.png");
}

.mainsection-slot-item[data-rarity="N"]::after {
	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;
}