Files
@ 1cd6e633bab8
Branch filter:
Location: kallithea/kallithea/public/less/kallithea-diff.less
1cd6e633bab8
4.7 KiB
text/x-less-css
less: simplify positioning of the +/- symbols on diff lines
As before, we place the +/- symbols in the pre:before so they default to the
same font and styling as the line content.
Instead of giving the pre a wide left margin and put the :before out there
using negative positing and visible overflow, just give the :before a fixed
width on all lines.
This change has been modified by Mads Kiilerich.
As before, we place the +/- symbols in the pre:before so they default to the
same font and styling as the line content.
Instead of giving the pre a wide left margin and put the :before out there
using negative positing and visible overflow, just give the :before a fixed
width on all lines.
This change has been modified by Mads Kiilerich.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | /* bootstrap progress bar has margin-bottom we don't want that in files list */
.cs_files .progress {
margin-bottom: 0;
}
/* progress bars should be aligned right */
.cs_files .changes {
float: right;
color: #577632;
}
/* colors for changes */
.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;
}
/* binary
NEW_FILENODE = 1
DEL_FILENODE = 2
MOD_FILENODE = 3
RENAMED_FILENODE = 4
CHMOD_FILENODE = 5
BIN_FILENODE = 6
*/
.changes .bin {
background-color: #BBFFBB;
float: left;
text-align: center;
font-size: 9px;
padding: 2px 0px 2px 0px;
}
/* added binary */
.changes .bin.bin1 {
background-color: #BBFFBB;
}
/* deleted binary*/
.changes .bin.bin2 {
background-color: #FF8888;
}
/* mod binary*/
.changes .bin.bin3 {
background-color: #DDDDDD;
}
/* rename file*/
.changes .bin.bin4 {
background-color: #6D99FF;
}
/* chmod file*/
.changes .bin.bin5 {
background-color: #6D99FF;
}
/* center collapse button */
.diff-collapse {
text-align: center;
margin-bottom: 15px;
}
/* the whole line should be colored */
table.code-difftable {
border-collapse: collapse;
border-radius: 0px !important;
width: 100%;
}
/* line coloring */
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;
}
/* tabs */
table.code-difftable td.code pre u:before {
content: "\21a6";
display: inline-block;
width: 0;
}
/* CR */
table.code-difftable td.code pre u.cr:before {
content: "\21a4";
display: inline-block;
color: rgba(0, 0, 0, 0.5);
}
/* whitespace characters */
table.code-difftable td.code pre u {
color: rgba(0, 0, 0, 0.15);
}
/* trailing spaces */
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;
}
table.code-difftable .code pre {
min-height: 17px;
line-height: 17px;
white-space: pre-wrap;
word-break: break-all;
}
/* leading +/- on changed lines */
table.code-difftable .del .code pre:before {
content: "-";
color: #800;
}
table.code-difftable .add .code pre:before {
content: "+";
color: #080;
}
table.code-difftable .code pre:before {
content: " ";
margin: 0 2px;
}
/* comment bubble */
.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;
}
|