"미디어위키:Common.css"의 두 판 사이의 차이
| 128번째 줄: | 128번째 줄: | ||
} | } | ||
.story-toc-tabs .story-panel li { | .story-toc-tabs .story-panel li { | ||
| + | margin: 0.15em 0; | ||
| + | } | ||
| + | |||
| + | /* ===== 10부 탭바 ===== */ | ||
| + | .story-tabs .story-tabs-bar { | ||
| + | display: flex; | ||
| + | flex-wrap: nowrap; /* 한 줄 고정 */ | ||
| + | gap: 6px; | ||
| + | overflow-x: auto; /* 화면 좁으면 가로 스크롤 */ | ||
| + | padding: 6px 2px 10px 2px; | ||
| + | -webkit-overflow-scrolling: touch; | ||
| + | } | ||
| + | |||
| + | .story-tabs .story-tab-btn { | ||
| + | flex: 0 0 auto; | ||
| + | border: 1px solid #d6d6d6; | ||
| + | background: #f6f7f8; | ||
| + | border-radius: 10px; | ||
| + | padding: 8px 10px; | ||
| + | cursor: pointer; | ||
| + | user-select: none; | ||
| + | min-width: 86px; /* 너무 작아지지 않게 */ | ||
| + | text-align: left; | ||
| + | box-sizing: border-box; | ||
| + | } | ||
| + | |||
| + | /* 탭 라벨(1부) + 서브타이틀(짧게) */ | ||
| + | .story-tabs .story-tab-btn .n { | ||
| + | display: block; | ||
| + | font-weight: 700; | ||
| + | line-height: 1.1; | ||
| + | } | ||
| + | |||
| + | .story-tabs .story-tab-btn .t { | ||
| + | display: block; | ||
| + | font-size: 12px; | ||
| + | line-height: 1.2; | ||
| + | margin-top: 2px; | ||
| + | white-space: nowrap; | ||
| + | overflow: hidden; | ||
| + | text-overflow: ellipsis; /* 긴 제목은 ... */ | ||
| + | max-width: 180px; | ||
| + | opacity: 0.85; | ||
| + | } | ||
| + | |||
| + | /* 선택된 탭(활성) */ | ||
| + | .story-tabs .story-tab-btn.is-active { | ||
| + | background: #ffffff; | ||
| + | border-color: #bdbdbd; | ||
| + | box-shadow: 0 1px 0 rgba(0,0,0,0.04); | ||
| + | } | ||
| + | |||
| + | /* 패널 영역 */ | ||
| + | .story-tabs .story-tabs-panels { | ||
| + | border: 1px solid #dcdcdc; | ||
| + | border-radius: 12px; | ||
| + | background: #ffffff; | ||
| + | padding: 10px 12px; | ||
| + | } | ||
| + | |||
| + | /* 패널 토글 UI(기본 토글 숨김) */ | ||
| + | .story-tabs .story-tab-panel .mw-collapsible-toggle, | ||
| + | .story-tabs .story-tab-panel .mw-collapsible-toggle-default { | ||
| + | display: none !important; | ||
| + | } | ||
| + | |||
| + | /* 패널 내부 여백 */ | ||
| + | .story-tabs .story-tabs-panels ul { | ||
| + | margin: 0.3em 0 0.3em 1.2em; | ||
| + | } | ||
| + | .story-tabs .story-tabs-panels li { | ||
margin: 0.15em 0; | margin: 0.15em 0; | ||
} | } | ||
2025년 12월 17일 (수) 18:16 판
/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
.episode-filter-input {
box-sizing: border-box;
width: 100%;
max-width: 100%;
border: 1px solid #ddd;
padding: 8px 10px;
min-height: 32px;
margin-bottom: 12px;
font-size: 14px;
border-radius: 4px;
outline: none;
}
/* placeholder 효과 */
.episode-filter-input:empty:before {
content: attr(data-placeholder);
color: #aaa;
}
.divTable {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.divTable .row {
display: flex;
border-bottom: 1px solid #eee;
}
.divTable .thead .row {
background-color: #f5f5f5;
font-weight: 600;
}
.divTable .header,
.divTable .cell {
padding: 8px 10px;
border-right: 1px solid #eee;
}
.divTable .header:last-child,
.divTable .cell:last-child {
border-right: none;
}
.divTable .header:nth-child(1),
.divTable .cell:nth-child(1) {
flex: 0 0 120px;
}
.divTable .header:nth-child(2),
.divTable .cell:nth-child(2) {
flex: 0 0 260px;
}
.divTable .header:nth-child(3),
.divTable .cell:nth-child(3) {
flex: 1 1 auto;
}
/* ===== 스토리 목차: 탭 스타일 ===== */
/* ===== 스토리 목차: 탭 UI ===== */
.story-toc-tabs {
border: none;
background: transparent;
}
.story-toc-tabs > tbody > tr > td,
.story-toc-tabs > tbody > tr > th {
border: none;
padding: 6px;
vertical-align: top;
}
/* 제목 */
.story-toc-title {
font-weight: 700;
font-size: 16px;
padding: 10px 6px;
text-align: left;
}
/* 탭(각 부) */
.story-toc-tabs .story-tab {
border: 1px solid #dcdcdc;
border-bottom: none;
background: #f6f7f8;
border-radius: 10px 10px 0 0;
padding: 0;
text-align: center;
box-sizing: border-box;
}
/* 탭 라벨을 버튼처럼 */
.story-toc-tabs .story-tab-label {
display: block;
padding: 10px 10px;
font-weight: 700;
cursor: pointer;
user-select: none;
}
/* 기본 collapsible 토글(스킨/버전에 따라 다르게 표시됨) 숨김 */
.story-toc-tabs .story-tab .mw-collapsible-toggle,
.story-toc-tabs .story-tab .mw-collapsible-toggle-default {
display: none !important;
}
/* 패널 */
.story-toc-tabs .story-panel {
border-top: 1px solid #dcdcdc;
background: #ffffff;
padding: 10px 12px;
border-radius: 0 0 10px 10px;
text-align: left;
}
/* 열린 탭(선택 상태) */
.story-toc-tabs .story-tab:not(.mw-collapsed) {
background: #ffffff;
border-color: #cfcfcf;
}
/* 리스트 여백 */
.story-toc-tabs .story-panel ul {
margin: 0.2em 0 0.2em 1.2em;
}
.story-toc-tabs .story-panel li {
margin: 0.15em 0;
}
/* ===== 10부 탭바 ===== */
.story-tabs .story-tabs-bar {
display: flex;
flex-wrap: nowrap; /* 한 줄 고정 */
gap: 6px;
overflow-x: auto; /* 화면 좁으면 가로 스크롤 */
padding: 6px 2px 10px 2px;
-webkit-overflow-scrolling: touch;
}
.story-tabs .story-tab-btn {
flex: 0 0 auto;
border: 1px solid #d6d6d6;
background: #f6f7f8;
border-radius: 10px;
padding: 8px 10px;
cursor: pointer;
user-select: none;
min-width: 86px; /* 너무 작아지지 않게 */
text-align: left;
box-sizing: border-box;
}
/* 탭 라벨(1부) + 서브타이틀(짧게) */
.story-tabs .story-tab-btn .n {
display: block;
font-weight: 700;
line-height: 1.1;
}
.story-tabs .story-tab-btn .t {
display: block;
font-size: 12px;
line-height: 1.2;
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* 긴 제목은 ... */
max-width: 180px;
opacity: 0.85;
}
/* 선택된 탭(활성) */
.story-tabs .story-tab-btn.is-active {
background: #ffffff;
border-color: #bdbdbd;
box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
/* 패널 영역 */
.story-tabs .story-tabs-panels {
border: 1px solid #dcdcdc;
border-radius: 12px;
background: #ffffff;
padding: 10px 12px;
}
/* 패널 토글 UI(기본 토글 숨김) */
.story-tabs .story-tab-panel .mw-collapsible-toggle,
.story-tabs .story-tab-panel .mw-collapsible-toggle-default {
display: none !important;
}
/* 패널 내부 여백 */
.story-tabs .story-tabs-panels ul {
margin: 0.3em 0 0.3em 1.2em;
}
.story-tabs .story-tabs-panels li {
margin: 0.15em 0;
}