틀:버튼: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
6번째 줄: 6번째 줄:
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다.
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다.


{|{{style|class=wiki|width=100%|layout=on}}
{|{{style|class=wiki|width=100%|align=center|layout=on}}
|-
|-
!문법||결과
!문법||결과
18번째 줄: 18번째 줄:
|{{버튼
|{{버튼
|id=btn-template-test
|id=btn-template-test
|style1=width: 100%; height: 50px; padding-top: 12.5px; background: var(--box--background); color: white; text-align: center; user-select: none;
|common=display: inline-block; max-width: 400px; width: 100%; margin: 0 auto; padding: 15px; user-select: none; transition: all .1s;
|style2=width: 100%; height: 50px; padding-top: 12.5px; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)), linear-gradient(135deg, red, orange, yellow, green, blue, navy, purple); color: black; text-align: center; user-select: none;
|style1=background: red; color: white;
|content=BUTTON
|style2=background: lime; color: black;
|content=IF YOU CLICK<br>THE BUTTON TURNS<br>INTO GREEN
}}
}}
|}
|}


{{김찬 제작 틀}}
{{김찬 제작 틀}}

2025년 1월 27일 (월) 22:03 판

:버튼
사용문서
새로고침
넘겨주기
이동하기

 이 틀은 {{btn}}(으)로도 사용할 수 있습니다.

{{버튼|id=아이디|style1=기본 스타일|style2=누른  스타일|content=내용}}

커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다.

문법 결과
{{버튼
|id=btn-template-test
|style1=width: 100%; height: 50px; padding-top: 12.5px; background: var(--box--background); color: white; text-align: center; user-select: none;
|style2=width: 100%; height: 50px; padding-top: 12.5px; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)), linear-gradient(135deg, red, orange, yellow, green, blue, navy, purple); color: black; text-align: center; user-select: none;
|content=BUTTON
}}
IF YOU CLICK
THE BUTTON TURNS
INTO GREEN
+
김찬 제작 틀
[ A~Z & etc. ]
[ ㄱ~ㅅ ]
[ ㅇ~ㅎ ]
※ 더 이상 사용하지 않거나 사용할 필요가 없는 경우 취소선 처리
※ 일부 극히 단순한 틀은 본 틀 목록에 미포함