Changeset - a92a06789f56
[Not reviewed]
default
0 2 0
domruf - 8 years ago 2017-10-26 21:20:48
dominikruf@gmail.com
less: remove unnecessary width 100% for diff code

table.code-difftable already has width: 100%
2 files changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -1722,566 +1722,565 @@ form.comment-form {
 
.comment-inline-form .comment-block-ta,
 
.comment-form .comment-block-ta {
 
  border: 1px solid #ccc;
 
  border-radius: 3px;
 
  box-sizing: border-box;
 
}
 
.comment-form-submit {
 
  margin-top: 5px;
 
  margin-left: 525px;
 
}
 
.file-comments {
 
  display: none;
 
}
 
.comment-form .comment {
 
  margin-left: 10px;
 
}
 
.comment-form .comment-help {
 
  padding: 5px 5px 5px 5px;
 
  color: #666;
 
}
 
.comment-form .comment-button {
 
  padding-top: 5px;
 
}
 
.add-another-button {
 
  margin-left: 10px;
 
  margin-top: 10px;
 
  margin-bottom: 10px;
 
}
 
.panel-heading .pull-left input[type=checkbox],
 
.panel-heading .pull-right input[type=checkbox] {
 
  position: relative;
 
  top: 4px;
 
  margin: -10px 2px 0;
 
}
 
/** comment inline form **/
 
.comment-inline-form {
 
  margin: 4px;
 
  max-width: 978px;
 
}
 
#comments-general-comments .comment-inline-form {
 
  margin: 0;
 
}
 
.comment-inline-form .submitting-overlay {
 
  height: 0;
 
  text-align: center;
 
  font-size: 16px;
 
  opacity: 0.5;
 
}
 
.comment-inline-form .clearfix,
 
.comment-form .clearfix {
 
  background: #EEE;
 
  border-radius: 4px;
 
  padding: 5px;
 
  margin: 0px;
 
}
 
div.comment-inline-form {
 
  padding: 4px 0px 6px 0px;
 
}
 
.comment-inline-form textarea {
 
  width: 100%;
 
  height: 100px;
 
  font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace;
 
}
 
form.comment-inline-form {
 
  margin-top: 10px;
 
  margin-left: 10px;
 
}
 
.comment-inline-form-submit {
 
  margin-top: 5px;
 
  margin-left: 525px;
 
}
 
.file-comments {
 
  display: none;
 
}
 
.comment-inline-form .comment {
 
  margin-left: 10px;
 
}
 
.comment-inline-form .comment-help {
 
  padding: 5px 5px 5px 5px;
 
  color: #666;
 
}
 
.comment-inline-form .comment-button {
 
  padding-top: 5px;
 
}
 
/** comment inline **/
 
.inline-comments .comment {
 
  margin: 3px 3px 5px 5px;
 
}
 
.inline-comments #comments-general-comments .comment {
 
  margin-left: 0;
 
}
 
.inline-comments .add-button-row {
 
  padding: 2px 4px 8px 5px;
 
}
 
.inline-comments .comments-number {
 
  padding: 0px 0px 10px 0px;
 
  color: #666;
 
}
 
input.status_change_checkbox,
 
input.status_change_radio {
 
  margin: 0 0 5px 15px;
 
}
 
.badge {
 
  padding: 4px 4px !important;
 
  text-align: center;
 
  color: #888 !important;
 
  background-color: #DEDEDE !important;
 
  border-radius: 4px !important;
 
}
 
@keyframes animated-comment-background {
 
  0% {
 
    background-position: 0 0;
 
  }
 
  100% {
 
    background-position: 20px 0;
 
  }
 
}
 
.comment-preview.failed .user,
 
.comment-preview.failed .panel-body {
 
  color: #666;
 
}
 
.comment-preview .comment-submission-status {
 
  float: right;
 
}
 
.comment-preview .comment-submission-status .btn-group {
 
  margin-left: 10px;
 
}
 
.comment-preview.submitting .panel-body {
 
  background-image: linear-gradient(-45deg, #FAFAFA, #FAFAFA 25%, #FFF 25%, #FFF 50%, #FAFAFA 50%, #FAFAFA 75%, #FFF 75%, #FFF 100%);
 
  background-size: 20px 20px;
 
  animation: animated-comment-background 0.4s linear infinite;
 
}
 
/****
 
PULL REQUESTS
 
*****/
 
.pullrequests_section_head {
 
  padding: 10px 10px 10px 0px;
 
  margin: 0 15px;
 
  font-size: 16px;
 
  font-weight: bold;
 
}
 
div.pr-details-title.closed {
 
  color: #555;
 
  background: #eee;
 
}
 
div.pr {
 
  margin: 0px 15px;
 
  padding: 4px 4px;
 
}
 
div.pr-desc {
 
  margin: 0px 15px;
 
}
 
tr.pr-closed td {
 
  background-color: #eee !important;
 
  color: #555 !important;
 
}
 
span.pr-closed-tag {
 
  margin-bottom: 1px;
 
  margin-right: 1px;
 
  padding: 1px 3px;
 
  font-size: 10px;
 
  color: #577632;
 
  white-space: nowrap;
 
  border-radius: 4px;
 
  border: 1px solid #d9e8f8;
 
  line-height: 1.5em;
 
}
 
.panel-body .pr-box {
 
  max-width: 978px;
 
  margin-right: 15px;
 
}
 
#s2id_org_ref,
 
#s2id_other_ref,
 
#s2id_org_repo,
 
#s2id_other_repo {
 
  min-width: 150px;
 
  margin: 5px;
 
}
 
#pr-summary .msg-div {
 
  margin: 5px 0;
 
}
 
#pr-summary > .pr-not-edit {
 
  min-height: 50px !important;
 
}
 
#pr-edit-btn {
 
  margin: 20px 0 0 !important;
 
  position: absolute;
 
}
 
/****
 
  PERMS
 
*****/
 
#perms .perms_section_head {
 
  padding: 10px 10px 10px 0px;
 
  font-size: 16px;
 
  font-weight: bold;
 
  text-transform: capitalize;
 
}
 
#perms .perms_section_head label {
 
  margin-left: 10px;
 
}
 
input.perm_filter {
 
  position: relative;
 
  top: 2px;
 
}
 
.perm-gravatar {
 
  vertical-align: middle;
 
  padding: 2px;
 
}
 
.perm-gravatar-ac {
 
  vertical-align: middle;
 
  padding: 2px;
 
  width: 14px;
 
  height: 14px;
 
}
 
.cs_files .progress {
 
  margin-bottom: 0;
 
}
 
.cs_files .changes {
 
  float: right;
 
  color: #577632;
 
}
 
.cs_files .changes .added {
 
  color: inherit;
 
  background-color: #BBFFBB;
 
  float: left;
 
  text-align: center;
 
  font-size: 9px;
 
  padding: 2px 0px 2px 0px;
 
}
 
.cs_files .changes .deleted {
 
  background-color: #FF8888;
 
  float: left;
 
  text-align: center;
 
  font-size: 9px;
 
  padding: 2px 0px 2px 0px;
 
}
 
/*new binary
 
NEW_FILENODE = 1
 
DEL_FILENODE = 2
 
MOD_FILENODE = 3
 
RENAMED_FILENODE = 4
 
CHMOD_FILENODE = 5
 
BIN_FILENODE = 6
 
*/
 
.cs_files .changes .bin {
 
  background-color: #BBFFBB;
 
  float: left;
 
  text-align: center;
 
  font-size: 9px;
 
  padding: 2px 0px 2px 0px;
 
}
 
.cs_files .changes .bin.bin1 {
 
  background-color: #BBFFBB;
 
}
 
/*deleted binary*/
 
.cs_files .changes .bin.bin2 {
 
  background-color: #FF8888;
 
}
 
/*mod binary*/
 
.cs_files .changes .bin.bin3 {
 
  background-color: #DDDDDD;
 
}
 
/*rename file*/
 
.cs_files .changes .bin.bin4 {
 
  background-color: #6D99FF;
 
}
 
/*chmod file*/
 
.cs_files .changes .bin.bin5 {
 
  background-color: #6D99FF;
 
}
 
.cs_files .cs_added {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.cs_files .cs_changed,
 
.cs_files .cs_modified {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.cs_files .cs_removed {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.cs_files .cs_renamed {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.diff-collapse {
 
  text-align: center;
 
  margin-bottom: 15px;
 
}
 
table.code-difftable {
 
  border-collapse: collapse;
 
  border-radius: 0px !important;
 
  width: 100%;
 
}
 
table.code-difftable td {
 
  padding: 0 !important;
 
  background: none !important;
 
  border: 0 !important;
 
  vertical-align: baseline !important;
 
}
 
table.code-difftable .context {
 
  background: none repeat scroll 0 0 #DDE7EF;
 
  color: #999;
 
}
 
table.code-difftable .add {
 
  background: none repeat scroll 0 0 #DDFFDD;
 
}
 
table.code-difftable .add ins {
 
  background: none repeat scroll 0 0 #AAFFAA;
 
  text-decoration: none;
 
}
 
table.code-difftable .del {
 
  background: none repeat scroll 0 0 #FFDDDD;
 
}
 
table.code-difftable .del del {
 
  background: none repeat scroll 0 0 #FFAAAA;
 
  text-decoration: none;
 
}
 
table.code-difftable td.code pre u:before {
 
  content: "\21a6";
 
  display: inline-block;
 
  width: 0;
 
}
 
table.code-difftable td.code pre u.cr:before {
 
  content: "\21a4";
 
  display: inline-block;
 
  color: rgba(0, 0, 0, 0.5);
 
}
 
table.code-difftable td.code pre u {
 
  color: rgba(0, 0, 0, 0.15);
 
}
 
table.code-difftable td.code pre i {
 
  border-style: solid;
 
  border-width: 0 0 0 1px;
 
  color: rgba(0, 0, 0, 0.5);
 
}
 
/** LINE NUMBERS **/
 
table.code-difftable .lineno {
 
  padding-left: 2px;
 
  padding-right: 2px !important;
 
  width: 30px;
 
  -moz-user-select: none;
 
  -webkit-user-select: none;
 
  border-right: 1px solid #CCC !important;
 
  border-left: 0px solid #CCC !important;
 
  border-top: 0px solid #CCC !important;
 
  border-bottom: none !important;
 
  vertical-align: middle !important;
 
  text-align: center;
 
}
 
table.code-difftable .lineno.new {
 
  text-align: right;
 
}
 
table.code-difftable .lineno.old {
 
  text-align: right;
 
}
 
table.code-difftable .lineno a {
 
  color: #aaa !important;
 
  font: 11px Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace !important;
 
  padding-left: 6px;
 
  padding-right: 6px;
 
  display: block;
 
}
 
table.code-difftable .line:hover .lineno a {
 
  color: #333 !important;
 
}
 
table.code-difftable .lineno-inline {
 
  background: none repeat scroll 0 0 #FFF !important;
 
  padding-left: 2px;
 
  padding-right: 2px;
 
  text-align: right;
 
  width: 30px;
 
  -moz-user-select: none;
 
  -webkit-user-select: none;
 
}
 
/** CODE **/
 
table.code-difftable .code {
 
  display: block;
 
  width: 100%;
 
}
 
table.code-difftable .code pre {
 
  margin: 0 0 0 12px !important;
 
  padding: 0;
 
  min-height: 17px;
 
  line-height: 17px;
 
  white-space: pre-wrap;
 
  word-break: break-all;
 
}
 
table.code-difftable .del .code pre:before {
 
  content: "-";
 
  color: #800;
 
  float: left;
 
  left: -1em;
 
  position: relative;
 
  width: 0;
 
}
 
table.code-difftable .add .code pre:before {
 
  content: "+";
 
  color: #080;
 
  float: left;
 
  left: -1em;
 
  position: relative;
 
  width: 0;
 
}
 
table.code-difftable .unmod .code pre:before {
 
  content: " ";
 
  float: left;
 
  left: -1em;
 
  position: relative;
 
  width: 0;
 
}
 
.add-bubble {
 
  position: relative;
 
  display: none;
 
  float: left;
 
  width: 0px;
 
  height: 0px;
 
  left: -8px;
 
  box-sizing: border-box;
 
}
 
/* comment bubble, only visible when in a commentable diff */
 
.commentable-diff tr.line.add:hover td .add-bubble,
 
.commentable-diff tr.line.del:hover td .add-bubble,
 
.commentable-diff tr.line.unmod:hover td .add-bubble {
 
  display: block;
 
  z-index: 1;
 
}
 
.add-bubble div {
 
  background: #577632;
 
  width: 16px;
 
  height: 16px;
 
  cursor: pointer;
 
  padding: 0 2px 2px 0.5px;
 
  border: 1px solid #577632;
 
  border-radius: 3px;
 
  box-sizing: border-box;
 
}
 
.add-bubble div:before {
 
  font-size: 14px;
 
  color: #ffffff;
 
  font-family: "kallithea";
 
  content: '\1f5ea';
 
}
 
.add-bubble div:hover {
 
  transform: scale(1.2, 1.2);
 
}
 
/* file diff icons */
 
.icon-diff-modified:before {
 
  color: #d0b44c;
 
}
 
.icon-diff-removed:before {
 
  color: #bd2c00;
 
}
 
.icon-diff-added:before {
 
  color: #6cc644;
 
}
 
.icon-diff-renamed:before {
 
  color: #677a85;
 
}
 
/* show some context of link targets - but only works when the link target
 
   can be extended with any visual difference */
 
div.comment:target:before {
 
  display: block;
 
  height: 100px;
 
  margin: -100px 0 0;
 
  content: "";
 
}
 
div.comment:target > .panel {
 
  border: solid 2px #ee0 !important;
 
}
 
.lineno:target a {
 
  border: solid 2px #ee0 !important;
 
  margin: -2px;
 
}
 
.btn-image-diff-show,
 
.btn-image-diff-swap {
 
  margin: 5px;
 
}
 
.img-diff {
 
  max-width: 45%;
 
  height: auto;
 
  margin: 5px;
 
  /* http://lea.verou.me/demos/css3-patterns.html */
 
  background-image: linear-gradient(45deg, #888 25%, transparent 25%, transparent), linear-gradient(-45deg, #888 25%, transparent 25%, transparent), linear-gradient(45deg, transparent 75%, #888 75%), linear-gradient(-45deg, transparent 75%, #888 75%);
 
  background-size: 10px 10px;
 
  background-color: #999;
 
}
 
.img-preview {
 
  max-width: 100%;
 
  height: auto;
 
  margin: 5px;
 
}
 
div.comment-prev-next-links div.prev-comment,
 
div.comment-prev-next-links div.next-comment {
 
  display: inline-block;
 
  min-width: 150px;
 
  margin: 3px 6px;
 
}
 
#comments-general-comments div.comment-prev-next-links div.prev-comment,
 
#comments-general-comments div.comment-prev-next-links div.next-comment {
 
  margin-left: 0;
 
}
 
body table.dataTable thead .sorting {
 
  background-image: none;
 
}
 
body table.dataTable thead .sorting_asc {
 
  background-image: none;
 
}
 
body table.dataTable thead .sorting_desc {
 
  background-image: none;
 
}
 
body table.dataTable thead .sorting_asc_disabled {
 
  background-image: none;
 
}
 
body table.dataTable thead .sorting_desc_disabled {
 
  background-image: none;
 
}
 
body table.dataTable thead .sorting_asc::after {
 
  font-family: "kallithea";
 
  content: "\23f6";
 
}
 
body table.dataTable thead .sorting_desc::after {
 
  font-family: "kallithea";
 
  content: "\23f7";
 
}
 
.dataTables_wrapper .dataTables_left {
 
  float: left !important;
 
}
 
.dataTables_wrapper .dataTables_right {
 
  float: right;
 
}
 
.dataTables_wrapper .dataTables_right > div {
 
  padding-left: 30px;
 
}
 
.dataTables_wrapper .dataTables_info {
 
  clear: none;
 
  padding-top: 3px;
 
}
 
.dataTables_wrapper .dataTables_paginate {
 
  padding-top: 0;
 
}
 
.dataTables_wrapper .dataTables_paginate .paginate_button {
 
  padding: 3px 10px;
 
}
 
.dataTables_wrapper .dataTables_paginate > a.paginate_button {
 
  padding-top: 1px;
 
  border: 0 !important;
 
}
 
.dataTables_wrapper label {
 
  margin-bottom: 0;
 
  font-weight: inherit;
 
}
 
#content div.panel .changelog-panel > .changelog-heading,
 
#content div.panel .changelog-panel > ul.pagination {
 
  margin-left: 100px;
 
}
 
textarea.commit-message {
 
  width: 100% !important;
 
  box-sizing: border-box;
 
}
kallithea/public/less/kallithea-diff.less
Show inline comments
 
.cs_files .progress {
 
  margin-bottom: 0;
 
}
 
.cs_files .changes {
 
  float: right;
 
  color: #577632;
 
}
 
.cs_files .changes .added {
 
  color: inherit;
 
  background-color: #BBFFBB;
 
  float: left;
 
  text-align: center;
 
  font-size: 9px;
 
  padding: 2px 0px 2px 0px;
 
}
 
.cs_files .changes .deleted {
 
  background-color: #FF8888;
 
  float: left;
 
  text-align: center;
 
  font-size: 9px;
 
  padding: 2px 0px 2px 0px;
 
}
 
/*new binary
 
NEW_FILENODE = 1
 
DEL_FILENODE = 2
 
MOD_FILENODE = 3
 
RENAMED_FILENODE = 4
 
CHMOD_FILENODE = 5
 
BIN_FILENODE = 6
 
*/
 
.cs_files .changes .bin {
 
  background-color: #BBFFBB;
 
  float: left;
 
  text-align: center;
 
  font-size: 9px;
 
  padding: 2px 0px 2px 0px;
 
}
 
.cs_files .changes .bin.bin1 {
 
  background-color: #BBFFBB;
 
}
 
/*deleted binary*/
 
.cs_files .changes .bin.bin2 {
 
  background-color: #FF8888;
 
}
 
/*mod binary*/
 
.cs_files .changes .bin.bin3 {
 
  background-color: #DDDDDD;
 
}
 
/*rename file*/
 
.cs_files .changes .bin.bin4 {
 
  background-color: #6D99FF;
 
}
 
/*chmod file*/
 
.cs_files .changes .bin.bin5 {
 
  background-color: #6D99FF;
 
}
 
.cs_files .cs_added {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.cs_files .cs_changed,
 
.cs_files .cs_modified {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.cs_files .cs_removed {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.cs_files .cs_renamed {
 
  height: 16px;
 
  margin-top: 7px;
 
  text-align: left;
 
}
 
.diff-collapse {
 
  text-align: center;
 
  margin-bottom: 15px;
 
}
 
table.code-difftable {
 
  border-collapse: collapse;
 
  border-radius: 0px !important;
 
  width: 100%;
 
}
 
table.code-difftable td {
 
  padding: 0 !important;
 
  background: none !important;
 
  border: 0 !important;
 
  vertical-align: baseline !important;
 
}
 
table.code-difftable .context {
 
  background: none repeat scroll 0 0 #DDE7EF;
 
  color: #999;
 
}
 
table.code-difftable .add {
 
  background: none repeat scroll 0 0 #DDFFDD;
 
}
 
table.code-difftable .add ins {
 
  background: none repeat scroll 0 0 #AAFFAA;
 
  text-decoration: none;
 
}
 
table.code-difftable .del {
 
  background: none repeat scroll 0 0 #FFDDDD;
 
}
 
table.code-difftable .del del {
 
  background: none repeat scroll 0 0 #FFAAAA;
 
  text-decoration: none;
 
}
 
table.code-difftable td.code pre u:before {
 
  content: "\21a6";
 
  display: inline-block;
 
  width: 0;
 
}
 
table.code-difftable td.code pre u.cr:before {
 
  content: "\21a4";
 
  display: inline-block;
 
  color: rgba(0, 0, 0, 0.5);
 
}
 
table.code-difftable td.code pre u {
 
  color: rgba(0, 0, 0, 0.15);
 
}
 
table.code-difftable td.code pre i {
 
  border-style: solid;
 
  border-width: 0 0 0 1px;
 
  color: rgba(0, 0, 0, 0.5);
 
}
 
/** LINE NUMBERS **/
 
table.code-difftable .lineno {
 
  padding-left: 2px;
 
  padding-right: 2px !important;
 
  width: 30px;
 
  -moz-user-select: none;
 
  -webkit-user-select: none;
 
  border-right: 1px solid #CCC !important;
 
  border-left: 0px solid #CCC !important;
 
  border-top: 0px solid #CCC !important;
 
  border-bottom: none !important;
 
  vertical-align: middle !important;
 
  text-align: center;
 
}
 
table.code-difftable .lineno.new {
 
  text-align: right;
 
}
 
table.code-difftable .lineno.old {
 
  text-align: right;
 
}
 
table.code-difftable .lineno a {
 
  color: #aaa !important;
 
  font: 11px Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace !important;
 
  padding-left: 6px;
 
  padding-right: 6px;
 
  display: block;
 
}
 
table.code-difftable .line:hover .lineno a {
 
  color: #333 !important;
 
}
 
table.code-difftable .lineno-inline {
 
  background: none repeat scroll 0 0 #FFF !important;
 
  padding-left: 2px;
 
  padding-right: 2px;
 
  text-align: right;
 
  width: 30px;
 
  -moz-user-select: none;
 
  -webkit-user-select: none;
 
}
 
/** CODE **/
 
table.code-difftable .code {
 
  display: block;
 
  width: 100%;
 
}
 
table.code-difftable .code pre {
 
  margin: 0 0 0 12px !important;
 
  padding: 0;
 
  min-height: 17px;
 
  line-height: 17px;
 
  white-space: pre-wrap;
 
  word-break: break-all;
 
}
 
table.code-difftable .del .code pre:before {
 
  content: "-";
 
  color: #800;
 
  float: left;
 
  left: -1em;
 
  position: relative;
 
  width: 0;
 
}
 
table.code-difftable .add .code pre:before {
 
  content: "+";
 
  color: #080;
 
  float: left;
 
  left: -1em;
 
  position: relative;
 
  width: 0;
 
}
 
table.code-difftable .unmod .code pre:before {
 
  content: " ";
 
  float: left;
 
  left: -1em;
 
  position: relative;
 
  width: 0;
 
}
 
.add-bubble {
 
  position: relative;
 
  display: none;
 
  float: left;
 
  width: 0px;
 
  height: 0px;
 
  left: -8px;
 
  box-sizing: border-box;
 
}
 
/* comment bubble, only visible when in a commentable diff */
 
.commentable-diff tr.line.add:hover td .add-bubble,
 
.commentable-diff tr.line.del:hover td .add-bubble,
 
.commentable-diff tr.line.unmod:hover td .add-bubble {
 
  display: block;
 
  z-index: 1;
 
}
 
.add-bubble div {
 
  background: #577632;
 
  width: 16px;
 
  height: 16px;
 
  cursor: pointer;
 
  padding: 0 2px 2px 0.5px;
 
  border: 1px solid #577632;
 
  border-radius: 3px;
 
  box-sizing: border-box;
 
}
 
.add-bubble div:before {
 
  font-size: 14px;
 
  color: #ffffff;
 
  font-family: "kallithea";
 
  content: '\1f5ea';
 
}
 
.add-bubble div:hover {
 
  transform: scale(1.2, 1.2);
 
}
 

	
 
/* file diff icons */
 
.icon-diff-modified:before {
 
  color: #d0b44c;
 
}
 
.icon-diff-removed:before {
 
  color: #bd2c00;
 
}
 
.icon-diff-added:before {
 
  color: #6cc644;
 
}
 
.icon-diff-renamed:before {
 
  color: #677a85;
 
}
0 comments (0 inline, 0 general)