본문으로 이동

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

kosha Wiki
Add KOSHA prevention menu styles
Special:Search 결과 폭 보정 - 인터위키 사이드바용 5/12 공백 제거
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
1번째 줄: 1번째 줄:
/* 산재예방 정보 대문 메뉴 */
/* 검색 결과 폭 보정 (Special:Search)
.kosha-portal-hero {
* MediaWiki 코어는 검색 결과를 12분할 중 7칸(58.3%)에만 넣고
margin: 0 0 1.5rem;
* 나머지 5칸을 인터위키 검색 사이드바 자리로 비워둔다.
padding: 2rem 2.25rem;
* 이 위키는 인터위키 검색을 쓰지 않아 그 자리가 빈 공백으로 남으므로 해제한다.
border-radius: 18px;
* 되돌리려면 이 블록만 지우면 된다. */
background: linear-gradient(135deg, #073b6f 0%, #07569a 58%, #0879b8 100%);
.mw-special-Search .mw-search-results-container {
color: #fff;
width: 100%;
box-shadow: 0 10px 28px rgba(0, 54, 101, 0.18);
float: none;
}
}


.kosha-portal-eyebrow {
.mw-special-Search .mw-search-profile-tabs {
margin-bottom: 0.5rem;
max-width: none;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.15em;
opacity: 0.78;
}
 
.kosha-portal-heading {
font-size: clamp(1.65rem, 4vw, 2.35rem);
font-weight: 800;
line-height: 1.25;
}
 
.kosha-portal-description {
margin-top: 0.65rem;
font-size: 1rem;
line-height: 1.65;
opacity: 0.9;
}
 
.kosha-accordion {
display: grid;
gap: 0.75rem;
margin: 0 0 2rem;
}
 
.kosha-accordion-item {
overflow: hidden;
border: 1px solid #d8e1eb;
border-radius: 12px;
background: #fff;
box-shadow: 0 2px 8px rgba(14, 42, 70, 0.05);
}
 
.kosha-accordion-item.is-open {
border-color: #2b75b7;
box-shadow: 0 5px 16px rgba(7, 86, 154, 0.1);
}
 
.kosha-accordion-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
min-height: 3.2rem;
padding: 0.7rem 1rem 0.7rem 1.2rem;
background: #f7f9fc;
color: #172b3d;
cursor: pointer;
user-select: none;
}
 
.kosha-accordion-heading:hover,
.kosha-accordion-heading:focus-visible {
background: #eef5fb;
outline: 3px solid rgba(43, 117, 183, 0.22);
outline-offset: -3px;
}
 
.kosha-accordion-item.is-open .kosha-accordion-heading {
background: #07569a;
color: #fff;
}
 
.kosha-accordion-title {
font-size: 1rem;
font-weight: 700;
line-height: 1.45;
}
 
.kosha-accordion-icon {
display: inline-flex;
flex: 0 0 1.8rem;
align-items: center;
justify-content: center;
height: 1.8rem;
border-radius: 50%;
background: rgba(7, 86, 154, 0.1);
font-size: 1.2rem;
font-weight: 700;
}
 
.kosha-accordion-item.is-open .kosha-accordion-icon {
background: rgba(255, 255, 255, 0.18);
}
 
.kosha-accordion-panel {
display: none;
padding: 0.8rem 1.2rem 1rem;
background: #fff;
}
 
.kosha-accordion-item.is-open .kosha-accordion-panel {
display: block;
}
 
.kosha-accordion-panel ul {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.55rem 1.4rem;
margin: 0;
padding: 0;
list-style: none;
}
 
.kosha-accordion-panel li {
position: relative;
margin: 0;
padding-left: 1rem;
}
 
.kosha-accordion-panel li::before {
position: absolute;
top: 0.66em;
left: 0;
width: 0.35rem;
height: 0.35rem;
border-radius: 50%;
background: #2b75b7;
content: '';
}
 
.kosha-accordion-panel a,
.kosha-accordion-panel a.new {
display: inline-block;
padding: 0.3rem 0;
color: #1d4f7a;
font-weight: 600;
text-decoration: none;
}
 
.kosha-accordion-panel a:hover,
.kosha-accordion-panel a:focus {
color: #07569a;
text-decoration: underline;
}
 
@media (max-width: 720px) {
.kosha-portal-hero {
padding: 1.5rem 1.25rem;
border-radius: 14px;
}
 
.kosha-accordion-panel ul {
grid-template-columns: 1fr;
}
}
 
@media (prefers-reduced-motion: reduce) {
.kosha-accordion-heading {
scroll-behavior: auto;
}
}
}

2026년 8월 27일 (목) 15:18 기준 최신판

/* 검색 결과 폭 보정 (Special:Search)
 * MediaWiki 코어는 검색 결과를 12분할 중 7칸(58.3%)에만 넣고
 * 나머지 5칸을 인터위키 검색 사이드바 자리로 비워둔다.
 * 이 위키는 인터위키 검색을 쓰지 않아 그 자리가 빈 공백으로 남으므로 해제한다.
 * 되돌리려면 이 블록만 지우면 된다. */
.mw-special-Search .mw-search-results-container {
	width: 100%;
	float: none;
}

.mw-special-Search .mw-search-profile-tabs {
	max-width: none;
}