미디어위키:Gadget-CreatePageUw.css
참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.
- 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
- 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
- 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
/* 문서 재배하기 전용 스타일 */
/* 기본 문구 숨김 */
body.mw-special-CreatePage
.oo-ui-fieldsetLayout-header,
body.mw-special-CreatePage
.oo-ui-fieldLayout-header,
body.mw-special-CreatePage
label[for="mw-input-wptitle"] {
display: none !important;
}
/* 입력 양식 전체 배치 */
body.mw-special-CreatePage
.mw-body-content
.mw-htmlform {
width: 100%;
max-width: 700px;
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
}
body.mw-special-CreatePage
.mw-htmlform fieldset,
body.mw-special-CreatePage
.oo-ui-fieldsetLayout,
body.mw-special-CreatePage
.oo-ui-fieldsetLayout-group {
width: 100%;
max-width: 700px;
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
}
/* 입력창 배치 초기화 */
body.mw-special-CreatePage
.pvz-createpage-input-layout,
body.mw-special-CreatePage
.pvz-createpage-input-layout
.oo-ui-fieldLayout-body,
body.mw-special-CreatePage
.pvz-createpage-input-layout
.oo-ui-fieldLayout-field {
display: block !important;
width: 100% !important;
max-width: 700px !important;
min-width: 0 !important;
margin: 0 auto !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
outline: 0 !important;
background: transparent !important;
background-image: none !important;
box-shadow: none !important;
box-sizing: border-box !important;
}
/* Sprout 이미지 */
body.mw-special-CreatePage
.pvz-createpage-sprout {
display: flex;
align-items: flex-end;
justify-content: center;
width: 100%;
margin: 0 0 0.6rem;
box-sizing: border-box;
}
body.mw-special-CreatePage
.pvz-createpage-sprout img {
display: block;
width: 96px !important;
max-width: 96px !important;
height: auto !important;
margin: 0 auto;
object-fit: contain;
filter:
drop-shadow(
0 4px 6px
rgba(45, 33, 24, 0.16)
);
}
/* OOUI 입력창 바깥 디자인 제거 */
body.mw-special-CreatePage
.pvz-createpage-input-widget,
body.mw-special-CreatePage
.pvz-createpage-input-widget.oo-ui-textInputWidget,
body.mw-special-CreatePage
.pvz-createpage-input-widget.oo-ui-widget-enabled,
body.mw-special-CreatePage
.pvz-createpage-input-widget:hover,
body.mw-special-CreatePage
.pvz-createpage-input-widget:focus,
body.mw-special-CreatePage
.pvz-createpage-input-widget:focus-within {
display: block !important;
width: 100% !important;
max-width: 700px !important;
min-width: 0 !important;
margin: 0 auto !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
outline: 0 !important;
background: transparent !important;
background-color: transparent !important;
background-image: none !important;
box-shadow: none !important;
box-sizing: border-box !important;
}
body.mw-special-CreatePage
.pvz-createpage-input-widget::before,
body.mw-special-CreatePage
.pvz-createpage-input-widget::after {
display: none !important;
content: none !important;
}
body.mw-special-CreatePage
.pvz-createpage-input-widget
.oo-ui-iconElement-icon,
body.mw-special-CreatePage
.pvz-createpage-input-widget
.oo-ui-indicatorElement-indicator {
display: none !important;
}
/* 커스텀 문서명 입력창 */
body.mw-special-CreatePage
#mw-input-wptitle,
body.mw-special-CreatePage
#mw-input-wptitle.oo-ui-inputWidget-input,
body.mw-special-CreatePage
.pvz-createpage-input {
-webkit-appearance: none !important;
appearance: none !important;
display: block !important;
position: relative !important;
z-index: 1 !important;
width: 100% !important;
max-width: 700px !important;
min-width: 0 !important;
min-height: 48px !important;
margin: 0 auto !important;
padding: 0.72rem 1rem !important;
border: 1px solid #aaa9a5 !important;
border-radius: 19px !important;
outline: 0 !important;
background: #fffdf7 !important;
background-color: #fffdf7 !important;
background-image: none !important;
box-shadow:
inset 0 1px 3px
rgba(55, 45, 35, 0.06) !important;
color: #493b31 !important;
caret-color: #4a8b3b !important;
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif !important;
font-size: 0.98rem !important;
font-weight: 300 !important;
line-height: 1.45 !important;
text-align: left !important;
opacity: 1 !important;
visibility: visible !important;
pointer-events: auto !important;
user-select: text !important;
-webkit-user-select: text !important;
box-sizing: border-box !important;
cursor: text !important;
transition:
border-color 0.14s ease,
box-shadow 0.14s ease,
background-color 0.14s ease !important;
}
/* 입력창 안내 문구 */
body.mw-special-CreatePage
#mw-input-wptitle::placeholder,
body.mw-special-CreatePage
.pvz-createpage-input::placeholder {
color: rgba(73, 51, 41, 0.42) !important;
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif !important;
font-weight: 300 !important;
opacity: 1 !important;
}
/* 입력창 마우스 올림 */
body.mw-special-CreatePage
#mw-input-wptitle:hover,
body.mw-special-CreatePage
.pvz-createpage-input:hover {
border-color: #92928e !important;
background: #fffefa !important;
box-shadow:
inset 0 1px 3px
rgba(55, 45, 35, 0.05) !important;
}
/* 입력창 선택 */
body.mw-special-CreatePage
#mw-input-wptitle:focus,
body.mw-special-CreatePage
#mw-input-wptitle:focus-visible,
body.mw-special-CreatePage
.pvz-createpage-input:focus,
body.mw-special-CreatePage
.pvz-createpage-input:focus-visible {
border-color: #4a8b3b !important;
outline: 0 !important;
background: #ffffff !important;
background-image: none !important;
box-shadow:
0 0 0 1px #4a8b3b,
inset 0 1px 3px
rgba(55, 45, 35, 0.04) !important;
}
/* 자동 완성 색상 제거 */
body.mw-special-CreatePage
#mw-input-wptitle:-webkit-autofill,
body.mw-special-CreatePage
#mw-input-wptitle:-webkit-autofill:hover,
body.mw-special-CreatePage
#mw-input-wptitle:-webkit-autofill:focus {
-webkit-text-fill-color: #493b31 !important;
caret-color: #4a8b3b !important;
border-color: #4a8b3b !important;
box-shadow:
inset 0 0 0 1000px #ffffff,
0 0 0 1px #4a8b3b !important;
}
/* 제출 버튼 배치 초기화 */
body.mw-special-CreatePage
.pvz-createpage-submit-layout,
body.mw-special-CreatePage
.pvz-createpage-submit-layout
.oo-ui-fieldLayout-body {
display: block !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
body.mw-special-CreatePage
.pvz-createpage-submit-layout
.oo-ui-fieldLayout-field {
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
/* OOUI 버튼 바깥 디자인 제거 */
body.mw-special-CreatePage
.pvz-createpage-submit-widget,
body.mw-special-CreatePage
.pvz-createpage-submit-widget.oo-ui-buttonInputWidget,
body.mw-special-CreatePage
.pvz-createpage-submit-widget.oo-ui-buttonWidget {
display: block !important;
width: max-content !important;
max-width: 100% !important;
margin: 0.65rem auto 0 !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
outline: 0 !important;
background: transparent !important;
background-image: none !important;
box-shadow: none !important;
box-sizing: border-box !important;
}
/* 커스텀 제출 버튼 */
body.mw-special-CreatePage
.pvz-createpage-submit-button,
body.mw-special-CreatePage
.mw-htmlform input[type="submit"],
body.mw-special-CreatePage
.mw-htmlform button[type="submit"] {
-webkit-appearance: none !important;
appearance: none !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: auto !important;
min-width: 0 !important;
min-height: 30px !important;
margin: 0 !important;
padding: 0.2rem 0.58rem !important;
border: 2px solid #173f1d !important;
border-radius: 11px !important;
outline: 0 !important;
background:
linear-gradient(
180deg,
#70b758 0%,
#559c43 100%
) !important;
background-color: #5ca249 !important;
background-image:
linear-gradient(
180deg,
#70b758 0%,
#559c43 100%
) !important;
box-shadow:
inset 0 -2px 0
rgba(26, 69, 29, 0.35),
0 2px 4px
rgba(44, 81, 38, 0.14) !important;
color: #fffbed !important;
text-shadow:
#173f1d 1.6px 0 0,
#173f1d 1.51193px 0.52351px 0,
#173f1d 1.25742px 0.98939px 0,
#173f1d 0.86449px 1.34635px 0,
#173f1d 0.37638px 1.55510px 0,
#173f1d -0.15316px 1.59265px 0,
#173f1d -0.66583px 1.45488px 0,
#173f1d -1.10521px 1.15694px 0,
#173f1d -1.42292px 0.73164px 0,
#173f1d -1.58399px 0.22579px 0,
#173f1d -1.57068px -0.30491px 0,
#173f1d -1.38446px -0.80204px 0,
#173f1d -1.04583px -1.21089px 0,
#173f1d -0.59207px -1.48642px 0,
#173f1d -0.07313px -1.59833px 0,
#173f1d 0.45386px -1.53428px 0,
#173f1d 0.93089px -1.30133px 0,
#173f1d 1.30543px -0.92511px 0,
#173f1d 1.53627px -0.44707px 0,
rgba(20, 55, 25, 0.28)
0 1.5px 1px !important;
font-family:
"SB Aggro M",
"SB 어그로 M",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif !important;
font-size: 0.88rem !important;
font-weight: 500 !important;
line-height: 1.15 !important;
text-align: center !important;
white-space: nowrap !important;
cursor: pointer !important;
box-sizing: border-box !important;
transition:
border-color 0.12s ease,
background-color 0.12s ease,
background-image 0.12s ease,
box-shadow 0.12s ease !important;
}
/* OOUI 버튼 문구 */
body.mw-special-CreatePage
.pvz-createpage-submit-button
.oo-ui-labelElement-label {
margin: 0 !important;
padding: 0 !important;
color: inherit !important;
font: inherit !important;
line-height: inherit !important;
text-shadow: inherit !important;
}
/* 제출 버튼 마우스 올림 */
body.mw-special-CreatePage
.pvz-createpage-submit-button:hover,
body.mw-special-CreatePage
.mw-htmlform input[type="submit"]:hover,
body.mw-special-CreatePage
.mw-htmlform button[type="submit"]:hover {
border-color: #123617 !important;
background:
linear-gradient(
180deg,
#62a94d 0%,
#47883a 100%
) !important;
background-color: #4f9140 !important;
background-image:
linear-gradient(
180deg,
#62a94d 0%,
#47883a 100%
) !important;
box-shadow:
inset 0 -2px 0
rgba(20, 59, 24, 0.4),
0 2px 4px
rgba(38, 73, 33, 0.16) !important;
transform: none !important;
filter: none !important;
}
/* 제출 버튼 클릭 */
body.mw-special-CreatePage
.pvz-createpage-submit-button:active,
body.mw-special-CreatePage
.mw-htmlform input[type="submit"]:active,
body.mw-special-CreatePage
.mw-htmlform button[type="submit"]:active {
border-color: #0f3014 !important;
background:
linear-gradient(
180deg,
#559b43 0%,
#3f7d34 100%
) !important;
background-color: #468338 !important;
background-image:
linear-gradient(
180deg,
#559b43 0%,
#3f7d34 100%
) !important;
box-shadow:
inset 0 2px 3px
rgba(18, 53, 22, 0.34) !important;
transform: none !important;
filter: none !important;
}
/* 제출 버튼 선택 */
body.mw-special-CreatePage
.pvz-createpage-submit-button:focus,
body.mw-special-CreatePage
.pvz-createpage-submit-button:focus-visible,
body.mw-special-CreatePage
.mw-htmlform input[type="submit"]:focus-visible,
body.mw-special-CreatePage
.mw-htmlform button[type="submit"]:focus-visible {
outline: 0 !important;
border-color: #173f1d !important;
box-shadow:
0 0 0 3px
rgba(74, 139, 59, 0.22),
inset 0 -2px 0
rgba(26, 69, 29, 0.35) !important;
}
/* 모바일 */
@media (max-width: 600px) {
body.mw-special-CreatePage
.mw-body-content
.mw-htmlform {
max-width: 100%;
}
body.mw-special-CreatePage
.pvz-createpage-sprout img {
width: 78px !important;
max-width: 78px !important;
}
body.mw-special-CreatePage
#mw-input-wptitle,
body.mw-special-CreatePage
.pvz-createpage-input {
min-height: 44px !important;
padding: 0.68rem 0.9rem !important;
border-radius: 17px !important;
font-size: 0.93rem !important;
}
body.mw-special-CreatePage
.pvz-createpage-submit-button,
body.mw-special-CreatePage
.mw-htmlform input[type="submit"],
body.mw-special-CreatePage
.mw-htmlform button[type="submit"] {
min-height: 29px !important;
padding: 0.18rem 0.54rem !important;
border-radius: 10px !important;
font-size: 0.84rem !important;
}
}