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

편집 요약 없음
편집 요약 없음
 
47번째 줄: 47번째 줄:
.page-대문 .mai
.page-대문 .mai


/* ===== Segmented Toolbar (compact) ===== */
/* ===== Compact Segmented Toolbar ===== */
.portal-toolbar {
.portal-toolbar {
   display: inline-flex;               /* 한 덩어리 */
  /* 색/크기 기본값 */
  --ptb-radius: 8px;
  --ptb-divider: #c8ccd1;  /* 칸막이/외곽선 */
  --ptb-surface: #f6f7f8;  /* 블록 배경 */
  --ptb-hover:  #eaecf0;  /* 호버 배경 */
  --ptb-label:  #202122;  /* 글자색 */
 
   display: inline-flex;     /* 한 덩어리 */
   align-items: stretch;
   align-items: stretch;
   border: 1px solid var(--pt-divider, #bfc3c7);
   border: 1px solid var(--ptb-divider);
   border-radius: 8px;
   border-radius: var(--ptb-radius);
   background: var(--pt-surface, #f8f9fa);
   background: var(--ptb-surface);
   overflow: hidden;                   /* 둥근 모서리 */
   overflow: hidden;         /* 둥근 모서리 내부로 자르기 */
   gap: 0;
   gap: 0;
   margin: 12px 0 20px;
   margin: 8px 0 18px;
   font-size: 0.95em;                 /* 살짝 작게 */
   font-size: 0.93em;         /* 살짝 컴팩트 */
  line-height: 1.2;
}
}


/* 줄바꿈으로 생기는 <p>를 평탄화 → 가로 정렬 유지 */
/* 위키텍스트 줄바꿈이 만들어내는 <p>를 평탄화 → 가로 유지 */
.portal-toolbar > p { margin: 0; display: contents; }
.portal-toolbar > p { margin: 0; display: contents; }


/* 각 칸 */
/* 각 칸(세그먼트) */
.portal-toolbar .tab { display: flex; }
.portal-toolbar .tab { display: flex; }


/* 칸 사이 1px 분할선 */
/* 칸막이 */
.portal-toolbar .tab + .tab {
.portal-toolbar .tab + .tab {
   border-left: 1px solid var(--pt-divider, #bfc3c7);
   border-left: 1px solid var(--ptb-divider);
}
}


/* 링크(버튼) = 칸 전체 클릭 영역 */
/* 링크(버튼) 칸 전체 클릭 영역 */
.portal-toolbar .tab a {
.portal-toolbar .tab a {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   padding: 6px 12px;
   padding: 4px 10px;         /* 좌우 여백 */
   min-height: 32px;
   min-height: 30px;         /* 버튼 높이 */
   min-width: 84px;                   /* 너무 좁아지지 않게 */
   min-width: 76px;           /* 너무 좁아지지 않게 */
  text-decoration: none;
   font-weight: 600;
   font-weight: 600;
   color: var(--pt-label, #202122);
   color: var(--ptb-label);
  text-decoration: none;
   white-space: nowrap;
   white-space: nowrap;
}
}
.portal-toolbar .tab a:hover  { background: var(--pt-hover, #eaecf0); }
.portal-toolbar .tab a:hover  { background: var(--ptb-hover); }
.portal-toolbar .tab a:active { background: #e0e3e7; }
.portal-toolbar .tab a:active { background: #e0e3e7; }


/* 다크 모드 대응 */
/* 가운데 정렬 유틸 */
.portal-toolbar-wrap { display: flex; justify-content: center; }
 
/* 다크 모드(Vector-2022 night & 시스템 다크) */
html.skin-theme-clientpref-night .portal-toolbar,
html.skin-theme-clientpref-night .portal-toolbar,
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
   .portal-toolbar {
   .portal-toolbar {
     border-color: var(--pt-divider-dark, #383c40);
     --ptb-divider: #3a3f44;
     background: var(--pt-surface-dark, #2d2f34);
    --ptb-surface: #2e3237;
    --ptb-hover:  #3a3f45;
     --ptb-label:  #e6e8ea;
   }
   }
  .portal-toolbar .tab + .tab { border-left-color: var(--pt-divider-dark, #383c40); }
  .portal-toolbar .tab a { color: var(--pt-label-dark, #eaecf0); }
  .portal-toolbar .tab a:hover { background: var(--pt-hover-dark, #33373d); }
}
}
/* 가운데 정렬을 원하면 이 유틸 클래스를 래퍼에 사용 */
.portal-toolbar-center { display: flex; justify-content: center; }