GitLab 余白の調整
GitLab 5.2 を入れて使ってみた!
どーも、Githubと比べると、妙に余白がありすぎる感が否めず....
以下の箇所を変更して、余白を整えましたメモ。
app/assets/stylesheets/gitlab_bootstrap/tables.scss
--- a/app/assets/stylesheets/gitlab_bootstrap/tables.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/tables.scss @@ -31,7 +31,7 @@ table { } th, td { - padding: 10px; + /* padding: 10px; */ line-height: 18px; text-align: left; }
app/assets/stylesheets/sections/events.scss b/app/assets/stylesheets/sections/events.scss
--- a/app/assets/stylesheets/sections/events.scss +++ b/app/assets/stylesheets/sections/events.scss @@ -95,7 +95,7 @@ } } - padding: 16px 5px; + padding: 8px 5px; &:last-child { border:none } .event_commits {
vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-2.2.1.1/vendor/assets/stylesheets/bootstrap/_tables.scss
.table { width: 100%; margin-bottom: $baseLineHeight; // Cells th, td { padding: 6px; /* CHANGE THIS LINE */ line-height: $baseLineHeight; text-align: left; vertical-align: top; border-top: 1px solid $tableBorder; }
これでファイル一覧画面と最近のイベント画面が、すっきり表示に。