미디어위키:Common.css
참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.
- 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
- 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
- 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
/* ===============================
문서 제목 자동 번호 매기기
(Vector 2022)
=============================== */
/* 카운터 초기화 */
.mw-parser-output {
counter-reset: h2;
}
/* == Heading == */
.mw-parser-output h2 {
counter-reset: h3;
}
.mw-parser-output h2::before {
counter-increment: h2;
content: counter(h2) ". ";
margin-right: 4px;
color: #000;
font-weight: 600;
}
/* === Heading === */
.mw-parser-output h3::before {
counter-increment: h3;
content: counter(h2) "." counter(h3) " ";
margin-right: 4px;
color: #000;
font-weight: 500;
}
/* === Heading (h3) 하단 구분선 추가 === */
.mw-parser-output h3 {
border-bottom: 1px solid #e1e8ed;
padding-bottom: 6px;
margin-bottom: 16px;
}
/* ==== Heading ==== (선택) */
.mw-parser-output h4::before {
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4) " ";
margin-right: 4px;
color: #555;
}
/* 대체안: mw-editsection이 숨겨진 경우에도 붙게 */
.mw-parser-output h2,
.mw-parser-output h3 {
justify-content: flex-start;
}
/* 편집 링크가 있을 때만 오른쪽 정렬 */
.mw-parser-output h2 .mw-editsection,
.mw-parser-output h3 .mw-editsection {
margin-left: auto;
}
/* ===============================
Heading 제목 ↔ 편집 링크 양끝 정렬
(h2, h3 공통)
=============================== */
.mw-parser-output h2,
.mw-parser-output h3 {
display: flex;
align-items: center;
justify-content: space-between;
}
/* 제목 텍스트는 왼쪽 고정 */
.mw-parser-output .mw-headline {
flex: 1 1 auto;
}
/* [편집 | 원본 편집]은 오른쪽 */
.mw-parser-output .mw-editsection {
flex: 0 0 auto;
font-size: 12px;
white-space: nowrap;
}