Skip to content

tomokinex/redmine_css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this ?

redmineのactivityをtwitterっぽく表示するcssです

導入方法

firefoxの場合

  1. アドオンでStylusを導入します(https://addons.mozilla.org/ja/firefox/addon/styl-us/)
  2. アドオンマネージャー → Stylus → スタイル管理 → 新スタイルを作成
  3. twitter_style.cssの内容をコピペ
    twitter_style_all.cssの内容をコピペ
  4. 適用先 → + → 次で始まるURL でhttps://redmine.hogehoge/activity を入力(hogehogeは適宜urlを参照)
    https://redmine.hogehoge/activity
    https://redmine.hogehoge/issue
    を入力(hogehogeは適宜urlを参照)

chromeの場合

firefoxとだいたい一緒です
https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=ja

仕様

アイコンが同じ画像しかできない
あらいさん, かばんちゃん, さーばるちゃん, ボスのbase64は埋め込んであるのでお好みでどうぞ
優秀なcommiterによって, できるようになりました
自分のuseridに対して, アイコンにしたい画像をbase64でencodeして貼り付ければ変更できます
以下がテンプレになります

a.user[href="/users/'自分のid'"] {
  background-image: url("base64にencodeした画像");
  display: inline-block;
  height: 78px;
  background-position: 0px 18px;
  background-repeat: no-repeat;
  background-size: 50px
}

画像サイズが大きすぎると落ちるので, 100×100ぐらいに縮小してからencodeしてください

追記

add_icon.pyで上記の操作ができるようになりました
python 3.6以上で動作するようです

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •