미디어위키:Common.css

인테리어 위키
Abland (토론 | 기여)님의 2026년 1월 13일 (화) 08:51 판 (새 문서: 이 CSS 설정은 모든 스킨에 적용됩니다: 1) TOC를 왼쪽 사이드처럼 보이게: body.skin-vector-2022 #toc, body.skin-vector-2022 .toc { float: left; width: 220px; margin: 0 16px 16px 0; padding: 10px; border: 0; background: transparent; font-size: inherit; } TOC 제목(목차) 스타일 최소화: body.skin-vector-2022 #toc .toctitle, body.skin-vector-2022 .toc .toctitle { text-align: left; margin: 0 0 6px 0; } /* 2) 인포박...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
둘러보기로 이동 검색으로 이동

참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.

  • 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
  • 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
  • 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
/* 이 CSS 설정은 모든 스킨에 적용됩니다 */

/* 1) TOC를 왼쪽 사이드처럼 보이게 */
body.skin-vector-2022 #toc,
body.skin-vector-2022 .toc {
  float: left;
  width: 220px;
  margin: 0 16px 16px 0;
  padding: 10px;
  border: 0;
  background: transparent;
  font-size: inherit;
}

/* TOC 제목(목차) 스타일 최소화 */
body.skin-vector-2022 #toc .toctitle,
body.skin-vector-2022 .toc .toctitle {
  text-align: left;
  margin: 0 0 6px 0;
}

/* 2) 인포박스 클래스: 오른쪽 고정 + 무장식 */
body.skin-vector-2022 table.infobox-namu {
  float: right;
  width: 320px;
  margin: 0 0 16px 16px;
  border: 0;
  background: transparent;
  font-size: inherit;
  line-height: 1.6;
}

body.skin-vector-2022 table.infobox-namu th,
body.skin-vector-2022 table.infobox-namu td {
  border: 0;
  background: transparent;
  padding: 2px 0;
  vertical-align: top;
}

body.skin-vector-2022 table.infobox-namu th {
  font-weight: 700;
  text-align: left;
  padding-right: 10px;
  white-space: nowrap;
}

/* 인포박스 제목 줄 */
body.skin-vector-2022 table.infobox-namu .infobox-title {
  text-align: center;
  font-weight: 800;
  padding: 4px 0 10px 0;
}

/* 3) mw-collapsible(접기) 스타일: 테두리/배경 제거 */
body.skin-vector-2022 table.mw-collapsible,
body.skin-vector-2022 table.mw-collapsible th,
body.skin-vector-2022 table.mw-collapsible td {
  border: 0 !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 4) 접기 토글을 제목 왼쪽으로 */
body.skin-vector-2022 table.mw-collapsible span.mw-collapsible-toggle {
  float: left;
  margin: 0 8px 0 0;
  font-size: inherit;
  line-height: inherit;
}

body.skin-vector-2022 table.mw-collapsible span.mw-collapsible-toggle a {
  text-decoration: none;
  font-weight: 700;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

/* 5) 모바일에서는 TOC/인포박스 float 해제(깨짐 방지) */
@media (max-width: 720px) {
  body.skin-vector-2022 #toc,
  body.skin-vector-2022 .toc {
    float: none;
    width: auto;
    margin: 0 0 12px 0;
    padding: 0;
  }

  body.skin-vector-2022 table.infobox-namu {
    float: none;
    width: 100%;
    margin: 0 0 12px 0;
  }
}