Changeset - 0e8e55f954be
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2019-03-22 02:14:36
mads@kiilerich.com
style: avoid double horizontal padding inside panel-body

Only give inline-comments padding if they actually appear inside a diff. General comments already have padding from .panel-body.

Drop padding on changesets columns (next to graphs). The graph already has space, and .panel-body gives spacing to the right.

Drop extra column padding for repo and PR summaries that use columns. The columns already have some padding from .panel-body.
1 file changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/front-end/style.less
Show inline comments
 
@@ -540,8 +540,8 @@ div.form div.form-group div.highlight,
 
  top: 4px;
 
  margin: -10px 2px 0;
 
}
 
/** comment inline **/
 
.inline-comments {
 
/** indent actual inline comments - not general comments **/
 
td.inline-comments {
 
  padding: 5px;
 
}
 
.inline-comments .comments-number {
 
@@ -692,6 +692,7 @@ div.comment-prev-next-links div.next-com
 
#updaterevs-table {
 
  .make-xs-column-offset(1);
 
  .make-xs-column(11);
 
  padding: 0;
 
}
 

	
 
/* use bootstrap grid columns for centered columns */
 
@@ -753,6 +754,7 @@ div.comment-prev-next-links div.next-com
 
  max-width: @container-md;
 
  .form-horizontal;
 
  .make-sm-column(10);
 
  padding-left: 0;
 
  .form-group > label {
 
    .make-sm-column(2);
 
  }
 
@@ -762,11 +764,13 @@ div.comment-prev-next-links div.next-com
 
}
 
#summary-menu-stats {
 
  .make-sm-column(2);
 
  padding-right: 0;
 
}
 

	
 
/* use columns and form-horizontal for pull request page */
 
.pr-box {
 
  .make-sm-column(9);
 
  padding-left: 0;
 
  max-width: @container-md;
 
  #pr-summary {
 
    .form-horizontal;
 
@@ -784,6 +788,7 @@ div.comment-prev-next-links div.next-com
 
}
 
.pr-reviewers-box {
 
  .make-sm-column(3);
 
  padding-right: 0;
 
}
 

	
 
/* repo table icons */
0 comments (0 inline, 0 general)