2015-10-08 20:22:34 +00:00
|
|
|
// Common
|
2014-02-24 07:36:22 +00:00
|
|
|
.diff-file {
|
2016-01-14 11:31:31 +00:00
|
|
|
border: 1px solid $border-color;
|
2016-03-17 16:59:58 +00:00
|
|
|
margin-bottom: $gl-padding;
|
2016-04-01 19:27:39 +00:00
|
|
|
border-radius: 3px;
|
2014-02-24 07:36:22 +00:00
|
|
|
|
2016-06-16 16:25:18 +00:00
|
|
|
.commit-short-id {
|
2016-06-17 09:06:17 +00:00
|
|
|
font-family: $regular_font;
|
2016-06-16 16:25:18 +00:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
2014-02-24 07:36:22 +00:00
|
|
|
.diff-header {
|
2015-03-14 06:40:46 +00:00
|
|
|
position: relative;
|
|
|
|
background: $background-color;
|
|
|
|
border-bottom: 1px solid $border-color;
|
2015-09-10 11:25:09 +00:00
|
|
|
padding: 10px 16px;
|
2014-02-24 07:36:22 +00:00
|
|
|
color: #555;
|
2015-02-26 17:03:34 +00:00
|
|
|
z-index: 10;
|
2016-04-07 19:36:53 +00:00
|
|
|
border-radius: 3px 3px 0 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
.diff-title {
|
2014-02-24 07:36:22 +00:00
|
|
|
font-family: $monospace_font;
|
2015-03-21 03:46:04 +00:00
|
|
|
word-break: break-all;
|
|
|
|
display: block;
|
2015-03-23 16:38:52 +00:00
|
|
|
|
|
|
|
.file-mode {
|
|
|
|
color: #777;
|
|
|
|
}
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.commit-short-id {
|
|
|
|
font-family: $monospace_font;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.diff-content {
|
|
|
|
overflow: auto;
|
|
|
|
overflow-y: hidden;
|
2016-03-15 19:56:28 +00:00
|
|
|
background: #fff;
|
2014-02-24 07:36:22 +00:00
|
|
|
color: #333;
|
2016-04-01 19:27:39 +00:00
|
|
|
border-radius: 0 0 3px 3px;
|
2016-04-15 17:05:07 +00:00
|
|
|
-webkit-overflow-scrolling: auto;
|
2015-09-08 13:35:25 +00:00
|
|
|
|
2014-08-02 15:12:01 +00:00
|
|
|
.unfold {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-02-24 07:36:22 +00:00
|
|
|
|
2014-06-14 19:54:56 +00:00
|
|
|
.file-mode-changed {
|
|
|
|
padding: 10px;
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
|
2015-07-23 19:55:49 +00:00
|
|
|
.suppressed-container {
|
|
|
|
padding: ($padding-base-vertical + 5px) $padding-base-horizontal;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
// "Changes suppressed. Click to show." link
|
|
|
|
.show-suppressed-diff {
|
|
|
|
font-size: 110%;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-24 07:36:22 +00:00
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
font-family: $monospace_font;
|
|
|
|
border: none;
|
2016-01-13 13:27:05 +00:00
|
|
|
border-collapse: separate;
|
2016-03-16 23:29:47 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2016-04-06 20:20:13 +00:00
|
|
|
|
2015-09-08 13:35:25 +00:00
|
|
|
.line_holder td {
|
2015-01-27 02:56:56 +00:00
|
|
|
line-height: $code_line_height;
|
|
|
|
font-size: $code_font_size;
|
2016-04-06 20:20:13 +00:00
|
|
|
|
2016-04-14 14:10:36 +00:00
|
|
|
&.noteable_line {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&.old {
|
|
|
|
&:before {
|
|
|
|
content: '-';
|
|
|
|
position: absolute;
|
|
|
|
}
|
2016-04-13 20:33:44 +00:00
|
|
|
}
|
2016-04-08 21:43:21 +00:00
|
|
|
|
2016-04-14 14:10:36 +00:00
|
|
|
&.new {
|
|
|
|
&:before {
|
|
|
|
content: '+';
|
|
|
|
position: absolute;
|
|
|
|
}
|
2016-04-13 20:33:44 +00:00
|
|
|
}
|
2016-04-08 21:43:21 +00:00
|
|
|
}
|
|
|
|
|
2016-04-07 15:08:51 +00:00
|
|
|
span {
|
2016-04-20 16:48:24 +00:00
|
|
|
white-space: pre-wrap;
|
2016-04-07 15:08:51 +00:00
|
|
|
}
|
2016-04-06 20:20:13 +00:00
|
|
|
}
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
2014-03-21 04:05:46 +00:00
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
tr.line_holder.parallel {
|
2016-01-21 13:23:53 +00:00
|
|
|
.old_line, .new_line {
|
2014-04-24 08:49:01 +00:00
|
|
|
min-width: 50px;
|
|
|
|
}
|
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
td.line_content.parallel {
|
2016-04-22 19:16:24 +00:00
|
|
|
width: 46%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.add-diff-note {
|
|
|
|
margin-left: -65px;
|
2014-04-24 08:49:01 +00:00
|
|
|
}
|
2014-03-21 04:05:46 +00:00
|
|
|
}
|
|
|
|
|
2016-01-21 13:23:53 +00:00
|
|
|
.old_line, .new_line {
|
2016-03-16 23:29:47 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
border: none;
|
2016-03-16 23:29:47 +00:00
|
|
|
padding: 0 5px;
|
2016-01-25 10:42:47 +00:00
|
|
|
border-right: 1px solid;
|
2014-02-24 07:36:22 +00:00
|
|
|
text-align: right;
|
|
|
|
min-width: 35px;
|
|
|
|
max-width: 50px;
|
|
|
|
width: 35px;
|
|
|
|
@include user-select(none);
|
|
|
|
a {
|
|
|
|
float: left;
|
|
|
|
width: 35px;
|
|
|
|
font-weight: normal;
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.line_content {
|
|
|
|
display: block;
|
2016-03-16 23:29:47 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0 0.5em;
|
2014-02-24 07:36:22 +00:00
|
|
|
border: none;
|
2016-04-25 21:12:32 +00:00
|
|
|
|
2014-02-24 07:36:22 +00:00
|
|
|
&.parallel {
|
|
|
|
display: table-cell;
|
2016-04-25 21:12:32 +00:00
|
|
|
|
|
|
|
span {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
}
|
2016-04-07 20:27:39 +00:00
|
|
|
|
|
|
|
.text-file.diff-wrap-lines table .line_holder td span {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
.image {
|
|
|
|
background: #ddd;
|
|
|
|
text-align: center;
|
|
|
|
padding: 30px;
|
2015-10-08 20:22:34 +00:00
|
|
|
.wrap {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.frame {
|
|
|
|
display: inline-block;
|
|
|
|
background-color: #fff;
|
|
|
|
line-height: 0;
|
2015-10-08 20:22:34 +00:00
|
|
|
img {
|
2016-03-15 19:56:28 +00:00
|
|
|
border: 1px solid #fff;
|
2014-03-06 09:05:00 +00:00
|
|
|
background: image-url('trans_bg.gif');
|
2014-02-24 07:36:22 +00:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
&.deleted {
|
|
|
|
border: 1px solid $deleted;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.added {
|
|
|
|
border: 1px solid $added;
|
|
|
|
}
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.image-info {
|
2014-02-24 07:36:22 +00:00
|
|
|
font-size: 12px;
|
2016-03-18 21:18:00 +00:00
|
|
|
margin: 5px 0 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
color: grey;
|
|
|
|
}
|
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
.view.swipe {
|
2014-02-24 07:36:22 +00:00
|
|
|
position: relative;
|
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
.swipe-frame {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
position: relative;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.swipe-wrap {
|
2014-02-24 07:36:22 +00:00
|
|
|
overflow: hidden;
|
|
|
|
border-left: 1px solid #999;
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
top: 13px;
|
|
|
|
right: 7px;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.frame {
|
2014-02-24 07:36:22 +00:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
2015-10-08 20:22:34 +00:00
|
|
|
&.deleted {
|
2014-02-24 07:36:22 +00:00
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
top: 13px;
|
|
|
|
right: 7px;
|
|
|
|
}
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.swipe-bar {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
width: 15px;
|
|
|
|
z-index: 100;
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
2015-10-08 20:22:34 +00:00
|
|
|
&:hover {
|
|
|
|
.top-handle {
|
2014-02-24 07:36:22 +00:00
|
|
|
background-position: -15px 3px;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.bottom-handle {
|
2014-02-24 07:36:22 +00:00
|
|
|
background-position: -15px -11px;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
}
|
|
|
|
.top-handle {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
width: 15px;
|
|
|
|
position: absolute;
|
2016-03-16 23:29:47 +00:00
|
|
|
top: 0;
|
2014-03-06 09:05:00 +00:00
|
|
|
background: image-url('swipemode_sprites.gif') 0 3px no-repeat;
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.bottom-handle {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
width: 15px;
|
|
|
|
position: absolute;
|
2016-03-16 23:29:47 +00:00
|
|
|
bottom: 0;
|
2014-03-06 09:05:00 +00:00
|
|
|
background: image-url('swipemode_sprites.gif') 0 -11px no-repeat;
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
}
|
|
|
|
//.view.swipe
|
|
|
|
.view.onion-skin {
|
|
|
|
.onion-skin-frame {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.frame.added, .frame.deleted {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
2016-03-16 23:29:47 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.controls {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
width: 300px;
|
|
|
|
z-index: 100;
|
|
|
|
position: absolute;
|
2016-03-16 23:29:47 +00:00
|
|
|
bottom: 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
left: 50%;
|
|
|
|
margin-left: -150px;
|
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
.drag-track {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 12px;
|
|
|
|
height: 10px;
|
|
|
|
width: 276px;
|
2014-03-06 09:05:00 +00:00
|
|
|
background: image-url('onion_skin_sprites.gif') -4px -20px repeat-x;
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dragger {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2016-03-16 23:29:47 +00:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
2016-03-16 23:29:47 +00:00
|
|
|
background: image-url('onion_skin_sprites.gif') 0 -34px repeat-x;
|
2014-02-24 07:36:22 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.transparent {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 2px;
|
2016-03-16 23:29:47 +00:00
|
|
|
right: 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
2016-03-16 23:29:47 +00:00
|
|
|
background: image-url('onion_skin_sprites.gif') -2px 0 no-repeat;
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.opaque {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 2px;
|
2016-03-16 23:29:47 +00:00
|
|
|
left: 0;
|
2014-02-24 07:36:22 +00:00
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
2014-03-06 09:05:00 +00:00
|
|
|
background: image-url('onion_skin_sprites.gif') -2px -10px no-repeat;
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
}
|
|
|
|
//.view.onion-skin
|
2014-02-24 07:36:22 +00:00
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
.view-modes {
|
2014-02-24 07:36:22 +00:00
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
2016-03-15 19:56:28 +00:00
|
|
|
background: #eee;
|
2014-02-24 07:36:22 +00:00
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
ul, li {
|
2014-02-24 07:36:22 +00:00
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
li {
|
2014-02-24 07:36:22 +00:00
|
|
|
color: grey;
|
|
|
|
border-left: 1px solid #c1c1c1;
|
|
|
|
padding: 0 12px 0 16px;
|
|
|
|
cursor: pointer;
|
2015-10-08 20:22:34 +00:00
|
|
|
&:first-child {
|
2014-02-24 07:36:22 +00:00
|
|
|
border-left: none;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
&:hover {
|
2014-02-24 07:36:22 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
&.active {
|
|
|
|
&:hover {
|
2014-02-24 07:36:22 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
cursor: default;
|
|
|
|
color: #333;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
&.disabled {
|
2014-02-24 07:36:22 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-05-22 09:25:44 +00:00
|
|
|
|
|
|
|
.file-content .diff-file {
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
}
|
2014-08-13 11:04:13 +00:00
|
|
|
|
|
|
|
.diff-file .line_content {
|
2016-04-20 16:48:24 +00:00
|
|
|
white-space: pre-wrap;
|
2014-08-13 11:04:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.diff-wrap-lines .line_content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2015-09-08 15:22:26 +00:00
|
|
|
.inline-parallel-buttons {
|
|
|
|
float: right;
|
|
|
|
}
|
2015-10-08 20:22:34 +00:00
|
|
|
|
2016-04-01 19:27:39 +00:00
|
|
|
.diffs {
|
|
|
|
.content-block {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-07 19:36:53 +00:00
|
|
|
.files-changed {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2015-10-08 20:22:34 +00:00
|
|
|
// Mobile
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
.diff-title {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.file-mode {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-controls {
|
|
|
|
position: static;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bigger screens
|
|
|
|
@media (min-width: 481px) {
|
|
|
|
.diff-title {
|
|
|
|
margin-right: 200px;
|
|
|
|
|
|
|
|
.file-mode {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-controls {
|
|
|
|
float: right;
|
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
right: 15px;
|
|
|
|
}
|
|
|
|
}
|
2016-01-07 18:45:19 +00:00
|
|
|
|
2016-01-21 13:56:23 +00:00
|
|
|
@mixin diff_background($background, $idiff, $border) {
|
|
|
|
background: $background;
|
2016-01-07 18:45:19 +00:00
|
|
|
|
2016-01-21 13:56:23 +00:00
|
|
|
&.line_content span.idiff {
|
|
|
|
background: $idiff;
|
2016-01-07 18:45:19 +00:00
|
|
|
}
|
|
|
|
|
2016-01-21 13:56:23 +00:00
|
|
|
&.diff-line-num {
|
|
|
|
border-color: $border;
|
2016-01-07 18:45:19 +00:00
|
|
|
}
|
|
|
|
}
|
2016-03-17 16:59:58 +00:00
|
|
|
|
|
|
|
.files {
|
|
|
|
margin-top: -1px;
|
|
|
|
|
|
|
|
.diff-file:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-04-08 21:43:21 +00:00
|
|
|
|
2016-04-13 17:54:21 +00:00
|
|
|
.file-holder {
|
|
|
|
.diff-line-num:not(.js-unfold-bottom) {
|
|
|
|
a {
|
|
|
|
&:before {
|
2016-04-13 20:33:44 +00:00
|
|
|
content: attr(data-linenumber);
|
2016-04-13 17:54:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|