wiki:template_dokuwiki_수정
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
wiki:template_dokuwiki_수정 [2020/06/30 12:13] – kieuns | wiki:template_dokuwiki_수정 [2024/05/25 23:35] (현재) – [TOC를 검색창 아래에 두기] kieuns | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | <title classes #id> | ||
+ | **dokuwiki_ki** 템플릿 수정 | ||
+ | </ | ||
+ | 다른 위키 템플릿 수정 목록 | ||
+ | |||
+ | {{section> | ||
+ | |||
+ | ====== 시작 ====== | ||
+ | |||
+ | 기본 템플릿< | ||
+ | |||
+ | '' | ||
+ | |||
+ | ====== 편집기 창에서 필요 없는 문장 제거 ====== | ||
+ | |||
+ | | '' | ||
+ | |||
+ | (↑)이걸 삭제하고 편집기를 좀 더 크게 하려고. | ||
+ | |||
+ | * 수정할 파일: '' | ||
+ | |||
+ | 저 파일에서 스트링을 전부 삭제함 | ||
+ | |||
+ | ====== 사이드바 배경 이미지 빼기 ====== | ||
+ | |||
+ | * 파일 '' | ||
+ | |||
+ | <code css> | ||
+ | /* 아래 코드 주석화 */ | ||
+ | /* background-image: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== 검색 후보 보여주는 팝업 위치 조정 ====== | ||
+ | |||
+ | * 파일 '' | ||
+ | |||
+ | <code css> | ||
+ | .dokuwiki form.search div.ajax_qsearch { | ||
+ | top: -.35em; /* top: -.35em; */ | ||
+ | font-size: 1em; | ||
+ | text-overflow: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | * 파일 '' | ||
+ | |||
+ | <code css> | ||
+ | .dokuwiki form.search { | ||
+ | div.no { | ||
+ | position: relative; | ||
+ | } | ||
+ | |||
+ | /* .JSpopup */ | ||
+ | div.ajax_qsearch { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | /* left: -13.5em; */ /* -( width of # | ||
+ | width: 12em; | ||
+ | padding: 0.5em; | ||
+ | font-size: .9em; | ||
+ | z-index: 20; | ||
+ | text-align: left; | ||
+ | display: none; | ||
+ | |||
+ | /* .... */ | ||
+ | </ | ||
+ | |||
+ | ====== 테이블 안쪽 글자 크기 조정 ====== | ||
+ | |||
+ | * 파일 '' | ||
+ | | ||
+ | **.dokuwiki table.inline** 항목 수정 | ||
+ | |||
+ | <code css> | ||
+ | .dokuwiki table.inline { | ||
+ | min-width: 50%; | ||
+ | font-size: inherit; /*새로 추가*/ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== 리스트 위아래 여백을 조정 ====== | ||
+ | |||
+ | * 파일 '' | ||
+ | |||
+ | 줄 68쯤 부분에 | ||
+ | |||
+ | <code css> | ||
+ | / | ||
+ | |||
+ | .dokuwiki .page{ | ||
+ | ul li { | ||
+ | color: @ini_text_alt; | ||
+ | /* 리스트 위, | ||
+ | margin-top: .4em; | ||
+ | margin-bottom: | ||
+ | /*margin: .4em 1em .4em 0;*/ | ||
+ | } | ||
+ | |||
+ | ol li { | ||
+ | color: @ini_text_neu; | ||
+ | } | ||
+ | |||
+ | li .li { | ||
+ | color: @ini_text; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ======구글폰트 사용====== | ||
+ | |||
+ | * **Noto Sans KR 폰트**를 추가 | ||
+ | * [[https:// | ||
+ | |||
+ | **main.php** | ||
+ | |||
+ | * %%< | ||
+ | |||
+ | <code html> | ||
+ | <link href=" | ||
+ | </ | ||
+ | |||
+ | **basic.less** | ||
+ | |||
+ | * body에 'Noto Sans KR' 폰트를 추가 | ||
+ | * body -> font 항목에 새 폰트 추가 | ||
+ | |||
+ | <code css> | ||
+ | body { | ||
+ | /* font: normal 87.5%/1.4 " | ||
+ | font: normal 87.5%/1.4 'Noto Sans KR', Arial, sans-serif; | ||
+ | /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */ | ||
+ | -webkit-text-size-adjust: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== 제목에 다른 폰트 설정 ====== | ||
+ | |||
+ | * 파일: '' | ||
+ | * h1 ~ h6 까지 다른 폰트 설정 | ||
+ | |||
+ | <code css> | ||
+ | h1, | ||
+ | h2, | ||
+ | h3, | ||
+ | h4, | ||
+ | h5, | ||
+ | h6 { | ||
+ | /* font-family: | ||
+ | font-family: | ||
+ | /* 이하는 그대로 쓰기 */ | ||
+ | </ | ||
+ | |||
+ | ====== 제목에 밑줄 긋기 ====== | ||
+ | |||
+ | * 파일: '' | ||
+ | * 화면 상단, 위키 타이틀의 밑줄 삭제. | ||
+ | * 위 항목을 설정하면 위키 타이틀에도 밑줄이 나오는데 그걸 삭제한다. | ||
+ | |||
+ | <code css> | ||
+ | # | ||
+ | /* 중간 패스 */ | ||
+ | h1 { | ||
+ | /* 중간 패스 */ | ||
+ | border-bottom: | ||
+ | /* 이하는 그대로 쓰기 */ | ||
+ | </ | ||
+ | |||
+ | ====== 위키 제목에 그림자 넣기 ====== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | <code css> | ||
+ | # | ||
+ | padding: 2em 0 1.5em; | ||
+ | |||
+ | .headings, | ||
+ | .tools { | ||
+ | / | ||
+ | |||
+ | /* 나머지 그대로 */ | ||
+ | |||
+ | h1 { | ||
+ | margin: 0; | ||
+ | font-size: 2.2em; | ||
+ | font-weight: | ||
+ | border-bottom: | ||
+ | text-shadow: | ||
+ | |||
+ | img { | ||
+ | float: left; | ||
+ | / | ||
+ | } | ||
+ | /* 나머지 생략 */ | ||
+ | </ | ||
+ | |||
+ | ======검색창 변경====== | ||
+ | |||
+ | aside 영역 상단에 서치바 추가 | ||
+ | |||
+ | * '' | ||
+ | |||
+ | 아래 부분을 찾아서, | ||
+ | <code php> | ||
+ | <!-- ********** ASIDE ********** --> | ||
+ | <div id=" | ||
+ | </ | ||
+ | |||
+ | 사이드바 출력하는 윗 부분에 검색창 추가 | ||
+ | |||
+ | <code php> | ||
+ | // sidebar 출력하는 코드는 이거 비슷할 것임 | ||
+ | <h3 class=" | ||
+ | </ | ||
+ | |||
+ | 추가할 검색창 코드 | ||
+ | <code php> | ||
+ | <!-- SITE TOOLS --> | ||
+ | <div id=" | ||
+ | php tpl_searchform(); | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 원래 검색창을 감춘다. | ||
+ | |||
+ | * '' | ||
+ | |||
+ | tpl_searchform() 함수 실행하는 부분을 찾아서 주석으로. | ||
+ | |||
+ | <code php> | ||
+ | <!-- SITE TOOLS --> | ||
+ | <div id=" | ||
+ | <h3 class=" | ||
+ | <?php / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== 배경 변경 ====== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | <code css> | ||
+ | body { | ||
+ | color: @ini_text; | ||
+ | / | ||
+ | background: @ini_background_site url(images/ | ||
+ | </ | ||
+ | |||
+ | * '' | ||
+ | |||
+ | %%dokuwiki__aside%%를 찾는다. | ||
+ | |||
+ | <code css> | ||
+ | # | ||
+ | width: @ini_sidebar_width; | ||
+ | float: left; | ||
+ | position: relative; | ||
+ | display: block; | ||
+ | /* 아래부분이 추가된것. 흰색을 투명도 그라데이션을 넣는다. */ | ||
+ | background-image: | ||
+ | </ | ||
+ | |||
+ | ====== sitetool 위치 변경 ====== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | <code css> | ||
+ | # | ||
+ | text-align: right; | ||
+ | /* 아래 2줄 추가 */ | ||
+ | position: relative; | ||
+ | top: 1em; | ||
+ | /* 이하 생략 */ | ||
+ | </ | ||
+ | |||
+ | * '' | ||
+ | |||
+ | %%# | ||
+ | |||
+ | <code css> | ||
+ | # | ||
+ | position: absolute; | ||
+ | top: 0.5em; | ||
+ | /*top: 1.8em;*/ /* 이 숫자를 늘려 아래로 내린다 */ | ||
+ | right: 40px; // pagetool width | ||
+ | text-align: right; | ||
+ | width: 100%; | ||
+ | /* 이하 생략 */ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== TOC를 검색창 아래에 두기 ====== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | <code css> | ||
+ | /* sidebar css 속성을 arctic-mbo 에서 가져오기 */ | ||
+ | div.dokuwiki div.sidebar_box { | ||
+ | border: 1px solid #ccc; | ||
+ | margin-bottom: | ||
+ | padding: .3em; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | |||
+ | #dw__toc { | ||
+ | margin: -0.1em 0em -0.1em 0em; | ||
+ | /*margin: -1.556em -2em .5em 1.4em;*/ | ||
+ | width: @ini_sidebar_width; | ||
+ | / | ||
+ | background: @ini_background; | ||
+ | color: inherit; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | * main.php | ||
+ | |||
+ | <code php> | ||
+ | <!-- 아래 부분 코드를 참조해서 넣을 위치를 찾는다 --> | ||
+ | |||
+ | <!-- ********** ASIDE ********** --> | ||
+ | <div id=" | ||
+ | <!-- SITE TOOLS --> | ||
+ | <div id=" | ||
+ | <?php tpl_searchform(); | ||
+ | </ | ||
+ | | ||
+ | <!-- 아래 줄을 추가한다 --> | ||
+ | <div class=" | ||
+ | | ||
+ | <!-- 이하 생략 --> | ||
+ | </ | ||
+ | |||
+ | ====== 목차를 글 위에 배치하기 ====== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | <code css> | ||
+ | # | ||
+ | margin: -0.1em 0em -0.1em 0em; | ||
+ | /*margin: -1.556em -2em .5em 1.4em;*/ | ||
+ | width: @ini_sidebar_width; | ||
+ | / | ||
+ | /* background: @ini_background; | ||
+ | background-color: | ||
+ | color: inherit; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | * '' | ||
+ | * 검색 결과가 | ||
+ | |||
+ | <code css> | ||
+ | /* toc container */ | ||
+ | #dw__toc { | ||
+ | /* float: right; */ /* <- 주석화 */ | ||
+ | margin: 0 0 1.4em 1.4em; | ||
+ | width: 12em; | ||
+ | background-color: | ||
+ | color: inherit; | ||
+ | /* 아래부분을 추가해서 글 위로 배치 */ | ||
+ | position: absolute; | ||
+ | right: 10px; | ||
+ | top: 10px; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | * 목차 너비 변경하려면, | ||
+ | * '' | ||
+ | |||
+ | <code css> | ||
+ | ./ | ||
+ | </ |