material

  • 支援主、副標
  • 側欄用 sidebar.php 自訂
  • 支援 material 圖示庫
  • 字型大小都理想
  • 預設 logo 用 /images/logo.svg,下面是有一塊留空的,不知道自訂 logo 是否也需如此設計?是為了放網站副標嗎? 待問作者 FIXME
  • 20171028 從開始用這個 template 並反映兩個 bug 至今,原作者都沒有回應耶~是太忙?要丟給社群了?沒人關心?那我可能要跳船了嗎 XD
  • 20171113 作者有修好一個 bug 了(真正屬於 bug 的那個),所以或許還是可以繼續用了
  1. 不過會有一條大大的 page ID 放在頁面主標上不好看 ← 研究了一下 main.php,如果有設定 youarehere 則這邊就會顯示 pagetitle,不然就是顯示 page ID;總之都太大了 XD 或是作者規劃把 pagetitle 放上面,然後下面的 pagetext 的 h1 要隱藏起來,但還沒找到成功的實做 FIXME
    • 20171017 我目前先改 userall.css(注意這是 farmer 的!animal 似乎沒有自己的一套 user CSS,所以為了識別是專用於 material tpl,我加了 html.mdl-js):
      html.mdl-js div.content-card__text h1:first-of-type {display: none;}

      後來又顧及一些系統工具並無 .content-card__title,還有找不到頁面時也要保留 h1 ∴進一步改成:

      div#dokuwiki__top.tpl_material:not(.notFound) div.content-card__title + div.content-card__text h1:first-of-type {display: none;}

      1)(呼呼,學習 :not selector 試好久 :)
      → 分享:Hiding redundant h1 in div.content-card__text · Issue #3 · LeonStaufer/material-dokuwiki

  2. 搜尋功能目前好像不正常 FIXME

1)
中間曾以為下面這樣可以,但其實還是不行:
html.mdl-js :not(div.notFound) div.content-card__title + div.content-card__text h1:first-of-type {display: none;}
輸入您的意見. 允許使用維基語法:
Q​ M B G W
 
  • 上一次變更: 2017/11/13 02:24
  • ghsrobert