Changeset - 8d6a7e174b03
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 6 years ago 2020-06-21 19:32:15
mads@kiilerich.com
Grafted from: 07edcc798f0a
diff: refactor table styling to clarify how classes are applied to tr or td

The styling is so specific that the generic selectors are misleading.

The font styling will now also be put on the <td> instead of just on the <a> it
might contain.
1 file changed with 13 insertions and 13 deletions:
0 comments (0 inline, 0 general)
kallithea/front-end/kallithea-diff.less
Show inline comments
 
@@ -96,49 +96,49 @@ BIN_FILENODE = 6
 
  }
 
  /* whitespace characters */
 
  td.code pre u {
 
    color: rgba(0, 0, 0, 0.3);
 
  }
 
  /* trailing spaces */
 
  td.code pre i {
 
    border-style: solid;
 
    border-width: 0 0 0 1px;
 
    border-color: rgba(0, 0, 0, 0.3);
 
  }
 

	
 
  /* line numbers */
 
  .lineno {
 
  /* line number columns */
 
  td.lineno {
 
    padding-left: 2px;
 
    padding-right: 2px !important;
 
    width: 30px;
 
    border-right: 1px solid @panel-default-border !important;
 
    vertical-align: middle !important;
 
    text-align: center;
 
  }
 
  .lineno.new {
 
    text-align: right;
 
  }
 
  .lineno.old {
 
    text-align: right;
 
  }
 
  .lineno a {
 
    color: #aaa !important;
 
    font-size: 11px;
 
    font-family: @font-family-monospace;
 
    line-height: normal;
 
    text-align: center;
 
  }
 
  td.lineno.new {
 
    text-align: right;
 
  }
 
  td.lineno.old {
 
    text-align: right;
 
  }
 
  td.lineno a {
 
    color: #aaa !important;
 
    padding-left: 6px;
 
    padding-right: 6px;
 
    display: block;
 
  }
 
  .line:hover .lineno a {
 
  tr.line:hover td.lineno a {
 
    color: #333 !important;
 
  }
 
  /** CODE **/
 
  .code {
 
    display: block;
 
  }
 
  .code pre {
 
    border: 0;
 
    padding: 0;
 
    margin: 0;
 
    background: none;
 
    min-height: 17px;
0 comments (0 inline, 0 general)