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

기술노트
편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
/* ========== 기본 폰트 (OS별 fallback + 이모지) ========== */
html, body, #content, #mw-content-text, .mw-body {
  font-family:
    "Noto Sans KR",          /* Linux/Chrome */
    "Apple SD Gothic Neo",    /* macOS */
    "Malgun Gothic","맑은 고딕", /* Windows */
    Helvetica, Arial,
    "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",
    sans-serif !important;
  font-size: 16px;            /* 위키백과 기본 16px */
  line-height: 1.65;          /* 읽기 좋은 줄간격 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
/* ========== 페이지 제목(문서 최상단 H1) ========== */
#firstHeading, .mw-body h1.firstHeading {
  font-size: 1.875rem;        /* ≈ 30px */
  font-weight: 700;
  color: #202122;            /* 위키 텍스트 색 */
  margin-bottom: .6rem;
}
 
/* ========== 섹션 제목(H2/H3) 스타일 ========== */
.mw-body h2 {
  font-size: 1.5rem;          /* ≈ 24px */
  font-weight: 700;
  color: #202122;
  border-bottom: 1px solid #a2a9b1;  /* 위키와 유사한 밑줄 */
  padding-bottom: .25rem;
  margin-top: 1.6rem;
}
.mw-body h2 .mw-headline { font-weight: 700; }


/* 사이트 전체 폰트를 위키백과 한국어판과 비슷하게 설정 */
.mw-body h3 {
body, #content, #mw-content-text, .mw-body {
  font-size: 1.25rem;         /* ≈ 20px */
    font-family:  
  font-weight: 700;
         "Noto Sans KR",      /* 리눅스/구글 크롬 환경 */
  color: #202122;
        "Apple SD Gothic Neo", /* macOS */
  margin-top: 1.2rem;
        "Malgun Gothic", "맑은 고딕", /* Windows */
        "Helvetica Neue", Helvetica, Arial, /* 기타 산세리프 */
        sans-serif !important;
}
}
/* ========== 본문 가독성 보정 ========== */
.mw-body-content p { margin: .6rem 0; letter-spacing: -.2px; }
b, strong { font-weight: 700; }
i, em { font-style: italic; }
/* ========== 링크 색상(위키 블루 느낌) ========== */
.mw-body a { color: #36c; text-decoration: none; }
.mw-body a:hover { text-decoration: underline; }
/* ========== 리스트/테이블 약간의 간격 보정 ========== */
.mw-body ul, .mw-body ol { margin: .4rem 0 .6rem 1.4rem; }
.mw-body .wikitable { font-size: 0.9375rem; } /* 표는 살짝 작게 */

2025년 9월 6일 (토) 02:18 판

/* ========== 기본 폰트 (OS별 fallback + 이모지) ========== */
html, body, #content, #mw-content-text, .mw-body {
  font-family:
    "Noto Sans KR",           /* Linux/Chrome */
    "Apple SD Gothic Neo",    /* macOS */
    "Malgun Gothic","맑은 고딕", /* Windows */
    Helvetica, Arial,
    "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",
    sans-serif !important;
  font-size: 16px;            /* 위키백과 기본 16px */
  line-height: 1.65;          /* 읽기 좋은 줄간격 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== 페이지 제목(문서 최상단 H1) ========== */
#firstHeading, .mw-body h1.firstHeading {
  font-size: 1.875rem;        /* ≈ 30px */
  font-weight: 700;
  color: #202122;             /* 위키 텍스트 색 */
  margin-bottom: .6rem;
}

/* ========== 섹션 제목(H2/H3) 스타일 ========== */
.mw-body h2 {
  font-size: 1.5rem;          /* ≈ 24px */
  font-weight: 700;
  color: #202122;
  border-bottom: 1px solid #a2a9b1;  /* 위키와 유사한 밑줄 */
  padding-bottom: .25rem;
  margin-top: 1.6rem;
}
.mw-body h2 .mw-headline { font-weight: 700; }

.mw-body h3 {
  font-size: 1.25rem;         /* ≈ 20px */
  font-weight: 700;
  color: #202122;
  margin-top: 1.2rem;
}

/* ========== 본문 가독성 보정 ========== */
.mw-body-content p { margin: .6rem 0; letter-spacing: -.2px; }
b, strong { font-weight: 700; }
i, em { font-style: italic; }

/* ========== 링크 색상(위키 블루 느낌) ========== */
.mw-body a { color: #36c; text-decoration: none; }
.mw-body a:hover { text-decoration: underline; }

/* ========== 리스트/테이블 약간의 간격 보정 ========== */
.mw-body ul, .mw-body ol { margin: .4rem 0 .6rem 1.4rem; }
.mw-body .wikitable { font-size: 0.9375rem; } /* 표는 살짝 작게 */