미디어위키:Gadget-newtoolbar.css: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| (같은 사용자의 중간 판 10개는 보이지 않습니다) | |||
| 1번째 줄: | 1번째 줄: | ||
/* MediaWiki:Gadget-NewToolbar.css */ | /* MediaWiki:Gadget-NewToolbar.css | ||
*/ | |||
.ntb-preview-content { | |||
padding-bottom: 1rem; | |||
} | |||
#wpSave, #wpPreview, #wpDiff { | #wpSave, #wpPreview, #wpDiff { | ||
| 50번째 줄: | 54번째 줄: | ||
/* 버튼 */ | /* 버튼 */ | ||
.ntb-button { | button.ntb-button { | ||
display: inline-flex; | display: inline-flex !important; | ||
align-items: center; | align-items: center !important; | ||
gap: 4px; | gap: 4px !important; | ||
padding: 4px | padding: 4px 4px !important; | ||
border-radius: 0.5rem; | border-radius: 0.5rem !important; | ||
border: 1px solid transparent; | border: 1px solid transparent !important; | ||
background: transparent; | background: transparent !important; | ||
cursor: pointer; | cursor: pointer !important; | ||
font-size: 0.95rem; | font-size: 0.95rem !important; | ||
line-height: 1; | line-height: 1 !important; | ||
white-space: nowrap; | white-space: nowrap !important; | ||
color: var(--text); | color: var(--text) !important; | ||
font-weight: 400 !important; | |||
} | } | ||
/* hover 색은 light-dark()로 라이트/다크 각각 지정 */ | /* hover 색은 light-dark()로 라이트/다크 각각 지정 */ | ||
.ntb-button:hover { | .ntb-button:hover { | ||
background: light-dark(#eaf3ff, #283040); | background: light-dark(#eaf3ff, #283040) !important; | ||
border-color: light-dark(#c8ddff, #3b4a63); | border-color: light-dark(#c8ddff, #3b4a63) !important; | ||
} | } | ||
| 83번째 줄: | 88번째 줄: | ||
.ntb-icon-bold::before { | .ntb-icon-bold::before { | ||
content: '\f032'; | content: '\f032'; | ||
font-family: "Font Awesome 5 Free"; font-weight: 900; | |||
} | |||
.ntb-icon-redirect::before { | |||
content: '\f5eb'; | |||
font-family: "Font Awesome 5 Free"; font-weight: 900; | font-family: "Font Awesome 5 Free"; font-weight: 900; | ||
} | } | ||
| 225번째 줄: | 235번째 줄: | ||
.oo-ui-messageWidget.oo-ui-flaggedElement-success:not(.oo-ui-messageWidget-block) { | .oo-ui-messageWidget.oo-ui-flaggedElement-success:not(.oo-ui-messageWidget-block) { | ||
color: var(--text); | color: var(--text) !important; | ||
} | } | ||
2026년 1월 4일 (일) 23:23 기준 최신판
/* MediaWiki:Gadget-NewToolbar.css
*/
.ntb-preview-content {
padding-bottom: 1rem;
}
#wpSave, #wpPreview, #wpDiff {
border-radius: 0.5rem;
}
#mw-editform-cancel > a {
background-color: #d73333;
color: #fff;
margin-left: 6px;
border-radius: 0.5rem;
padding: 5px 10px;
border-color: #a06666;
margin-top: 0;
}
/* 툴바 전체 컨테이너 */
#ntb-toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 8px 12px;
/* 라이트/다크 공통 변수 사용 */
border-bottom: 1px solid var(--lightborder);
color: var(--text);
font-size: 1rem;
}
/* 각 그룹 */
.ntb-group {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px 4px 12px;
border-radius: 0.5rem;
/* 그룹 배경/테두리도 토큰 사용 */
background: var(--altbg);
border: 1px solid var(--border);
}
.ntb-group-label {
font-weight: 600;
margin-right: 4px;
opacity: 0.7;
color: var(--text);
}
/* 버튼 */
button.ntb-button {
display: inline-flex !important;
align-items: center !important;
gap: 4px !important;
padding: 4px 4px !important;
border-radius: 0.5rem !important;
border: 1px solid transparent !important;
background: transparent !important;
cursor: pointer !important;
font-size: 0.95rem !important;
line-height: 1 !important;
white-space: nowrap !important;
color: var(--text) !important;
font-weight: 400 !important;
}
/* hover 색은 light-dark()로 라이트/다크 각각 지정 */
.ntb-button:hover {
background: light-dark(#eaf3ff, #283040) !important;
border-color: light-dark(#c8ddff, #3b4a63) !important;
}
/* 아이콘 공통 */
.ntb-icon {
width: 17px;
height: 14px;
display: inline-block;
/* 텍스트 색과 맞추기 위해 currentColor 사용 */
color: var(--text);
}
/* 아이콘은 OOUI 아이콘 클래스를 그대로 써도 되고, 나중에 바꿔도 됨 */
.ntb-icon-bold::before {
content: '\f032';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-redirect::before {
content: '\f5eb';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-italic::before {
content: '\f033';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-heading::before {
content: '\f292';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-ul::before {
content: '\f0ca';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-ol::before {
content: '\f0cb';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-link::before {
content: '\f0c1';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-file::before {
content: '\f03e';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-ref::before {
content: '\f069';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-search::before {
content: '\f002';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
.ntb-icon-preview::before {
content: '\f06e';
font-family: "Font Awesome 5 Free"; font-weight: 900;
}
/* 찾기/바꾸기 패널 */
#ntb-find-panel.ntb-find-panel {
display: none;
padding: 8px 12px;
border-bottom: 1px solid var(--lightborder);
background: var(--bg);
color: var(--text);
font-size: 13px;
}
.ntb-find-row {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 6px;
}
.ntb-find-row label {
min-width: 48px;
color: var(--text);
opacity: 0.7;
}
.ntb-find-row input[type="text"] {
flex: 1;
padding: 4px 6px;
border-radius: 4px;
background: var(--altbg);
color: var(--text);
border: 1px solid var(--border);
}
.ntb-find-buttons {
display: flex;
gap: 6px;
margin-top: 4px;
}
#ntb-find-text, #ntb-replace-text {
background: var(--altbg);
border: var(--border) 1px solid;
border-radius: 0.5rem;
color: var(--text);
}
.ntb-find-buttons button {
padding: 4px 8px;
border-radius: 0.5rem;
border: 1px solid var(--border);
background: var(--altbg);
color: var(--text);
cursor: pointer;
font-size: 0.9rem;
}
/* hover는 라이트/다크 전용 색을 light-dark()로 지정 */
.ntb-find-buttons button:hover {
background: light-dark(#eaf3ff, #283040);
border-color: light-dark(#a2c4ff, #3b4a63);
}
/* 전체 화면 분할 모드 */
body.ntb-preview-open #wpTextbox1 {
width: 50% !important;
float: left;
}
#ntb-preview-panel {
width: 50%;
float: right;
height: calc(100vh - 120px);
overflow-y: auto;
background: var(--bg);
padding: 12px;
display: none;
}
.ntb-preview-title {
font-weight: 700;
margin-bottom: 8px;
border-bottom: 1px solid #ddd;
padding-bottom: 4px;
}
button:focus {
outline: none;
}
.oo-ui-messageWidget.oo-ui-flaggedElement-success:not(.oo-ui-messageWidget-block) {
color: var(--text) !important;
}