2015-10-08 16:22:34 -04:00
|
|
|
// Common
|
2014-02-24 02:36:22 -05:00
|
|
|
.diff-file {
|
2016-03-17 12:59:58 -04:00
|
|
|
margin-bottom: $gl-padding;
|
2014-02-24 02:36:22 -05:00
|
|
|
|
2017-02-08 18:06:04 -05:00
|
|
|
.file-title,
|
|
|
|
.file-title-flex-parent {
|
2016-10-14 08:39:20 -04:00
|
|
|
cursor: pointer;
|
|
|
|
|
2017-01-23 04:33:19 -05:00
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2016-10-14 08:39:20 -04:00
|
|
|
&:hover {
|
2016-12-12 17:26:21 -05:00
|
|
|
background-color: $gray-normal;
|
2016-10-14 08:39:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.diff-toggle-caret {
|
|
|
|
padding-right: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
.diff-content {
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $white-light;
|
2016-12-30 15:18:27 -05:00
|
|
|
color: $gl-text-color;
|
2016-04-01 15:27:39 -04:00
|
|
|
border-radius: 0 0 3px 3px;
|
2015-09-08 09:35:25 -04:00
|
|
|
|
2014-08-02 11:12:01 -04:00
|
|
|
.unfold {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
|
2014-06-14 15:54:56 -04:00
|
|
|
.file-mode-changed {
|
|
|
|
padding: 10px;
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $file-mode-changed;
|
2014-06-14 15:54:56 -04:00
|
|
|
}
|
|
|
|
|
2015-07-23 15:55:49 -04: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%;
|
2017-08-24 10:13:24 -04:00
|
|
|
font-weight: $gl-font-weight-bold;
|
2015-07-23 15:55:49 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
font-family: $monospace_font;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2016-01-13 08:27:05 -05:00
|
|
|
border-collapse: separate;
|
2016-03-16 19:29:47 -04:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2016-09-12 09:44:16 -04:00
|
|
|
table-layout: fixed;
|
|
|
|
|
|
|
|
.diff-line-num {
|
|
|
|
width: 50px;
|
2017-02-27 05:50:15 -05:00
|
|
|
|
|
|
|
a {
|
|
|
|
transition: none;
|
|
|
|
}
|
2016-09-12 09:44:16 -04:00
|
|
|
}
|
2016-04-06 16:20:13 -04:00
|
|
|
|
2015-09-08 09:35:25 -04:00
|
|
|
.line_holder td {
|
2015-01-26 21:56:56 -05:00
|
|
|
line-height: $code_line_height;
|
|
|
|
font-size: $code_font_size;
|
2016-04-06 16:20:13 -04:00
|
|
|
|
2016-04-14 10:10:36 -04:00
|
|
|
&.noteable_line {
|
|
|
|
position: relative;
|
2016-04-08 17:43:21 -04:00
|
|
|
}
|
|
|
|
|
2016-04-07 11:08:51 -04:00
|
|
|
span {
|
2016-04-20 12:48:24 -04:00
|
|
|
white-space: pre-wrap;
|
2016-04-07 11:08:51 -04:00
|
|
|
}
|
2017-04-17 06:16:41 -04:00
|
|
|
|
|
|
|
.line {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2016-04-06 16:20:13 -04:00
|
|
|
}
|
2017-09-28 10:55:25 -04:00
|
|
|
|
|
|
|
&.left-side-selected {
|
|
|
|
td.line_content.parallel.right-side {
|
2018-04-09 12:28:30 -04:00
|
|
|
user-select: none;
|
2017-09-28 10:55:25 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.right-side-selected {
|
|
|
|
td.line_content.parallel.left-side {
|
2018-04-09 12:28:30 -04:00
|
|
|
user-select: none;
|
2017-09-28 10:55:25 -04:00
|
|
|
}
|
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2014-03-21 00:05:46 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
tr.line_holder.parallel {
|
|
|
|
td.line_content.parallel {
|
2016-04-22 15:16:24 -04:00
|
|
|
width: 46%;
|
|
|
|
}
|
2017-03-08 11:07:26 -05:00
|
|
|
|
|
|
|
.add-diff-note {
|
|
|
|
margin-left: -55px;
|
|
|
|
}
|
2014-03-21 00:05:46 -04:00
|
|
|
}
|
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
.old_line,
|
|
|
|
.new_line {
|
2018-04-09 12:28:30 -04:00
|
|
|
user-select: none;
|
2016-03-16 19:29:47 -04:00
|
|
|
margin: 0;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2016-03-16 19:29:47 -04:00
|
|
|
padding: 0 5px;
|
2016-01-25 05:42:47 -05:00
|
|
|
border-right: 1px solid;
|
2014-02-24 02:36:22 -05:00
|
|
|
text-align: right;
|
|
|
|
min-width: 35px;
|
|
|
|
max-width: 50px;
|
|
|
|
width: 35px;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
a {
|
|
|
|
float: left;
|
|
|
|
width: 35px;
|
2017-08-24 10:13:24 -04:00
|
|
|
font-weight: $gl-font-weight-normal;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2017-02-24 09:56:20 -05:00
|
|
|
&[disabled] {
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
.line_content {
|
|
|
|
display: block;
|
2016-03-16 19:29:47 -04:00
|
|
|
margin: 0;
|
2016-10-26 21:47:14 -04:00
|
|
|
padding: 0 1.5em;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2016-10-26 21:47:14 -04:00
|
|
|
position: relative;
|
2016-04-25 17:12:32 -04:00
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
&.parallel {
|
|
|
|
display: table-cell;
|
2016-04-25 17:12:32 -04:00
|
|
|
|
|
|
|
span {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2016-10-26 21:47:14 -04:00
|
|
|
|
|
|
|
&.old {
|
|
|
|
&::before {
|
|
|
|
content: '-';
|
|
|
|
position: absolute;
|
|
|
|
left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
|
|
|
&::before {
|
|
|
|
content: '+';
|
|
|
|
position: absolute;
|
|
|
|
left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2018-04-16 13:48:53 -04:00
|
|
|
|
|
|
|
.diff-loading-error-block {
|
2018-04-17 04:07:48 -04:00
|
|
|
padding: $gl-padding * 2 $gl-padding;
|
|
|
|
text-align: center;
|
2018-04-16 13:48:53 -04:00
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
.image {
|
2017-05-15 13:11:40 -04:00
|
|
|
background: $file-image-bg;
|
2014-02-24 02:36:22 -05:00
|
|
|
text-align: center;
|
|
|
|
padding: 30px;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.wrap {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.frame {
|
|
|
|
display: inline-block;
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $white-light;
|
2014-02-24 02:36:22 -05:00
|
|
|
line-height: 0;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
img {
|
2016-11-30 08:25:25 -05:00
|
|
|
border: 1px solid $white-light;
|
2016-12-12 17:26:21 -05:00
|
|
|
background-image: linear-gradient(45deg, $border-color 25%, transparent 25%, transparent 75%, $border-color 75%, $border-color 100%),
|
|
|
|
linear-gradient(45deg, $border-color 25%, transparent 25%, transparent 75%, $border-color 75%, $border-color 100%);
|
2016-08-01 13:20:38 -04:00
|
|
|
background-size: 10px 10px;
|
|
|
|
background-position: 0 0, 5px 5px;
|
2014-02-24 02:36:22 -05:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2014-02-24 02:36:22 -05:00
|
|
|
&.deleted {
|
|
|
|
border: 1px solid $deleted;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.added {
|
|
|
|
border: 1px solid $added;
|
|
|
|
}
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.image-info {
|
2014-02-24 02:36:22 -05:00
|
|
|
font-size: 12px;
|
2016-03-18 17:18:00 -04:00
|
|
|
margin: 5px 0 0;
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $diff-image-info-color;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.view.swipe {
|
2014-02-24 02:36:22 -05:00
|
|
|
position: relative;
|
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.swipe-frame {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
position: relative;
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.swipe-wrap {
|
2014-02-24 02:36:22 -05:00
|
|
|
overflow: hidden;
|
2016-11-30 08:25:25 -05:00
|
|
|
border-left: 1px solid $diff-swipe-border;
|
2014-02-24 02:36:22 -05:00
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
top: 13px;
|
|
|
|
right: 7px;
|
|
|
|
}
|
2016-10-24 15:23:40 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.frame {
|
2014-02-24 02:36:22 -05:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
2016-10-24 15:23:40 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&.deleted {
|
2014-02-24 02:36:22 -05:00
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
top: 13px;
|
|
|
|
right: 7px;
|
|
|
|
}
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.swipe-bar {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
width: 15px;
|
|
|
|
z-index: 100;
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&:hover {
|
|
|
|
.top-handle {
|
2014-02-24 02:36:22 -05:00
|
|
|
background-position: -15px 3px;
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.bottom-handle {
|
2014-02-24 02:36:22 -05:00
|
|
|
background-position: -15px -11px;
|
|
|
|
}
|
2015-10-08 16:22:34 -04:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.top-handle {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
width: 15px;
|
|
|
|
position: absolute;
|
2016-03-16 19:29:47 -04:00
|
|
|
top: 0;
|
2014-03-06 04:05:00 -05:00
|
|
|
background: image-url('swipemode_sprites.gif') 0 3px no-repeat;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.bottom-handle {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
width: 15px;
|
|
|
|
position: absolute;
|
2016-03-16 19:29:47 -04:00
|
|
|
bottom: 0;
|
2014-03-06 04:05:00 -05:00
|
|
|
background: image-url('swipemode_sprites.gif') 0 -11px no-repeat;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
|
|
|
}
|
2015-10-08 16:22:34 -04:00
|
|
|
}
|
|
|
|
//.view.swipe
|
|
|
|
.view.onion-skin {
|
|
|
|
.onion-skin-frame {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
position: relative;
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
.frame.added,
|
|
|
|
.frame.deleted {
|
2014-02-24 02:36:22 -05:00
|
|
|
position: absolute;
|
|
|
|
display: block;
|
2016-03-16 19:29:47 -04:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.controls {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
height: 14px;
|
|
|
|
width: 300px;
|
|
|
|
z-index: 100;
|
|
|
|
position: absolute;
|
2016-03-16 19:29:47 -04:00
|
|
|
bottom: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
left: 50%;
|
|
|
|
margin-left: -150px;
|
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.drag-track {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2017-10-07 00:25:17 -04:00
|
|
|
top: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
left: 12px;
|
|
|
|
height: 10px;
|
|
|
|
width: 276px;
|
2014-03-06 04:05:00 -05:00
|
|
|
background: image-url('onion_skin_sprites.gif') -4px -20px repeat-x;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.dragger {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2016-03-16 19:29:47 -04:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
2016-03-16 19:29:47 -04:00
|
|
|
background: image-url('onion_skin_sprites.gif') 0 -34px repeat-x;
|
2014-02-24 02:36:22 -05:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.transparent {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 2px;
|
2016-03-16 19:29:47 -04:00
|
|
|
right: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
2016-03-16 19:29:47 -04:00
|
|
|
background: image-url('onion_skin_sprites.gif') -2px 0 no-repeat;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.opaque {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 2px;
|
2016-03-16 19:29:47 -04:00
|
|
|
left: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
2014-03-06 04:05:00 -05:00
|
|
|
background: image-url('onion_skin_sprites.gif') -2px -10px no-repeat;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
|
|
|
}
|
2015-10-08 16:22:34 -04:00
|
|
|
}
|
|
|
|
//.view.onion-skin
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
.view-modes {
|
2014-02-24 02:36:22 -05:00
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $gray-darker;
|
2014-02-24 02:36:22 -05:00
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
ul,
|
|
|
|
li {
|
2014-02-24 02:36:22 -05:00
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
li {
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $diff-view-modes-color;
|
|
|
|
border-left: 1px solid $diff-view-modes-border;
|
2014-02-24 02:36:22 -05:00
|
|
|
padding: 0 12px 0 16px;
|
|
|
|
cursor: pointer;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&:first-child {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-left: 0;
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&:hover {
|
2014-02-24 02:36:22 -05:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&.active {
|
2017-07-12 00:59:39 -04:00
|
|
|
cursor: default;
|
|
|
|
color: $gl-text-color;
|
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&:hover {
|
2014-02-24 02:36:22 -05:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2015-10-08 16:22:34 -04:00
|
|
|
&.disabled {
|
2014-02-24 02:36:22 -05:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-07-12 05:50:26 -04:00
|
|
|
|
|
|
|
.line_content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2014-02-24 02:36:22 -05:00
|
|
|
}
|
2014-05-22 05:25:44 -04:00
|
|
|
|
|
|
|
.file-content .diff-file {
|
|
|
|
margin: 0;
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2014-05-22 05:25:44 -04:00
|
|
|
}
|
2014-08-13 07:04:13 -04:00
|
|
|
|
|
|
|
.diff-wrap-lines .line_content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2015-09-08 11:22:26 -04:00
|
|
|
.inline-parallel-buttons {
|
|
|
|
float: right;
|
|
|
|
}
|
2015-10-08 16:22:34 -04:00
|
|
|
|
2016-04-07 15:36:53 -04:00
|
|
|
.files-changed {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-bottom: 0;
|
2016-04-07 15:36:53 -04:00
|
|
|
}
|
|
|
|
|
2017-03-14 01:02:30 -04:00
|
|
|
.diff-stats-summary-toggler {
|
|
|
|
padding: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
color: $gl-link-color;
|
2017-08-24 10:13:24 -04:00
|
|
|
font-weight: $gl-font-weight-bold;
|
2017-03-14 01:02:30 -04:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
color: $gl-link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-08 16:22:34 -04: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 13:45:19 -05:00
|
|
|
|
2016-01-21 08:56:23 -05:00
|
|
|
@mixin diff_background($background, $idiff, $border) {
|
|
|
|
background: $background;
|
2016-01-07 13:45:19 -05:00
|
|
|
|
2016-01-21 08:56:23 -05:00
|
|
|
&.line_content span.idiff {
|
|
|
|
background: $idiff;
|
2016-01-07 13:45:19 -05:00
|
|
|
}
|
|
|
|
|
2016-01-21 08:56:23 -05:00
|
|
|
&.diff-line-num {
|
|
|
|
border-color: $border;
|
2016-01-07 13:45:19 -05:00
|
|
|
}
|
|
|
|
}
|
2016-03-17 12:59:58 -04:00
|
|
|
|
|
|
|
.files {
|
2017-09-14 15:25:48 -04:00
|
|
|
margin-top: 1px;
|
2016-03-17 12:59:58 -04:00
|
|
|
|
|
|
|
.diff-file:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2016-04-08 17:43:21 -04:00
|
|
|
|
2016-04-13 13:54:21 -04:00
|
|
|
.file-holder {
|
|
|
|
.diff-line-num:not(.js-unfold-bottom) {
|
|
|
|
a {
|
2016-10-24 16:58:50 -04:00
|
|
|
&::before {
|
2016-04-13 16:33:44 -04:00
|
|
|
content: attr(data-linenumber);
|
2016-04-13 13:54:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-03-08 11:07:26 -05:00
|
|
|
|
|
|
|
.diff-comment-avatar-holders {
|
|
|
|
position: absolute;
|
|
|
|
height: 19px;
|
|
|
|
width: 19px;
|
|
|
|
margin-left: -15px;
|
2017-06-12 14:43:21 -04:00
|
|
|
z-index: 100;
|
2017-03-08 11:07:26 -05:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.diff-comment-avatar,
|
|
|
|
.diff-comments-more-count {
|
|
|
|
@for $i from 1 through 4 {
|
|
|
|
$x-pos: 14px;
|
|
|
|
|
|
|
|
&:nth-child(#{$i}) {
|
|
|
|
@if $i == 4 {
|
|
|
|
$x-pos: 14.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
transform: translateX((($i * $x-pos) - $x-pos));
|
|
|
|
|
|
|
|
&:hover {
|
2017-06-12 14:43:21 -04:00
|
|
|
transform: translateX((($i * $x-pos) - $x-pos));
|
2017-03-08 11:07:26 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-comments-more-count {
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-comment-avatar,
|
|
|
|
.diff-comments-more-count {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
|
|
|
margin-right: 0;
|
|
|
|
border-color: $white-light;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all .1s ease-out;
|
|
|
|
|
|
|
|
@for $i from 1 through 4 {
|
|
|
|
&:nth-child(#{$i}) {
|
|
|
|
z-index: (4 - $i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-comments-more-count {
|
|
|
|
width: 19px;
|
|
|
|
min-width: 19px;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-comments-more-count,
|
|
|
|
.diff-notes-collapse {
|
2017-05-04 08:11:15 -04:00
|
|
|
@extend .avatar-counter;
|
2017-03-08 11:07:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.diff-notes-collapse {
|
2017-10-07 00:25:17 -04:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: 50%;
|
2017-03-08 11:07:26 -05:00
|
|
|
padding: 0;
|
|
|
|
transition: transform .1s ease-out;
|
2017-06-12 14:43:21 -04:00
|
|
|
z-index: 100;
|
2017-03-08 11:07:26 -05:00
|
|
|
|
2017-10-07 00:25:17 -04:00
|
|
|
.collapse-icon {
|
|
|
|
height: 50%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2017-03-08 11:07:26 -05:00
|
|
|
svg {
|
2017-10-07 00:25:17 -04:00
|
|
|
vertical-align: middle;
|
2017-03-08 11:07:26 -05:00
|
|
|
}
|
|
|
|
|
2017-10-07 00:25:17 -04:00
|
|
|
.collapse-icon,
|
2017-03-08 11:07:26 -05:00
|
|
|
path {
|
|
|
|
fill: $white-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-07-27 06:01:09 -04:00
|
|
|
|
2017-07-27 10:53:04 -04:00
|
|
|
.diff-files-changed {
|
2017-08-15 04:02:40 -04:00
|
|
|
.inline-parallel-buttons {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2017-07-27 10:53:04 -04:00
|
|
|
.commit-stat-summary {
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(sm) {
|
2017-07-28 06:54:51 -04:00
|
|
|
margin-left: -$gl-padding;
|
|
|
|
padding-left: $gl-padding;
|
|
|
|
background-color: $white-light;
|
|
|
|
}
|
2017-07-27 10:53:04 -04:00
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(sm) {
|
2017-07-27 10:53:04 -04:00
|
|
|
position: -webkit-sticky;
|
|
|
|
position: sticky;
|
2017-09-07 03:46:01 -04:00
|
|
|
top: 24px;
|
2017-07-27 10:53:04 -04:00
|
|
|
background-color: $white-light;
|
|
|
|
z-index: 190;
|
|
|
|
|
2017-08-07 09:21:12 -04:00
|
|
|
&.diff-files-changed-merge-request {
|
2017-09-07 03:46:01 -04:00
|
|
|
top: 76px;
|
2017-08-07 09:21:12 -04:00
|
|
|
}
|
|
|
|
|
2017-07-27 10:53:04 -04:00
|
|
|
&.is-stuck {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
border-bottom: 1px solid $white-dark;
|
2018-04-18 15:18:16 -04:00
|
|
|
transform: translateY(52px);
|
2017-07-27 10:53:04 -04:00
|
|
|
|
|
|
|
.diff-stats-additions-deletions-expanded,
|
|
|
|
.inline-parallel-buttons {
|
2018-04-18 15:18:16 -04:00
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
&.is-stuck {
|
|
|
|
.diff-stats-additions-deletions-collapsed {
|
|
|
|
display: block !important;
|
2017-07-27 10:53:04 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(sm) {
|
2017-09-07 03:46:01 -04:00
|
|
|
.with-performance-bar {
|
|
|
|
.diff-files-changed.diff-files-changed-merge-request {
|
|
|
|
top: 76px + $performance-bar-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-27 06:01:09 -04:00
|
|
|
.diff-file-changes {
|
2017-11-14 05:50:00 -05:00
|
|
|
max-width: 560px;
|
2017-11-14 05:36:45 -05:00
|
|
|
width: 100%;
|
2017-07-27 06:01:09 -04:00
|
|
|
z-index: 150;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(sm) {
|
2017-07-28 06:54:51 -04:00
|
|
|
left: $gl-padding;
|
|
|
|
}
|
|
|
|
|
2017-11-14 05:36:45 -05:00
|
|
|
.diff-changed-file {
|
|
|
|
display: flex;
|
2017-07-27 06:01:09 -04:00
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 8px;
|
2017-11-14 05:36:45 -05:00
|
|
|
min-width: 0;
|
2017-07-27 06:01:09 -04:00
|
|
|
}
|
2017-09-11 08:00:55 -04:00
|
|
|
|
2017-11-14 05:36:45 -05:00
|
|
|
.diff-file-changed-icon {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-changed-file-content {
|
2017-09-11 08:00:55 -04:00
|
|
|
display: flex;
|
2017-11-14 05:36:45 -05:00
|
|
|
flex-direction: column;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2018-01-04 13:54:34 -05:00
|
|
|
.diff-changed-file-name,
|
|
|
|
.diff-changed-blank-file-name {
|
2017-11-14 05:36:45 -05:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2018-01-04 13:54:34 -05:00
|
|
|
.diff-changed-blank-file-name {
|
|
|
|
color: $gl-text-color-tertiary;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2017-11-14 05:36:45 -05:00
|
|
|
.diff-changed-file-path {
|
2017-11-15 10:13:58 -05:00
|
|
|
color: $gl-text-color-tertiary;
|
2017-11-14 05:36:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.diff-changed-stats {
|
|
|
|
margin-left: auto;
|
|
|
|
white-space: nowrap;
|
2017-09-11 08:00:55 -04:00
|
|
|
}
|
2017-07-27 06:01:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.diff-file-changes-path {
|
2017-09-11 08:00:55 -04:00
|
|
|
flex: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2017-07-27 06:01:09 -04:00
|
|
|
}
|
2017-10-07 00:25:17 -04:00
|
|
|
|
|
|
|
.note-container {
|
|
|
|
background-color: $gray-light;
|
|
|
|
border-top: 1px solid $white-normal;
|
|
|
|
|
|
|
|
// double jagged line divider
|
|
|
|
.discussion-notes + .discussion-notes::before,
|
|
|
|
.discussion-notes + .discussion-form::before {
|
|
|
|
content: '';
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 10px;
|
|
|
|
background-color: $white-light;
|
|
|
|
background-image: linear-gradient(45deg, transparent, transparent 73%, $diff-jagged-border-gradient-color 75%, $white-light 80%),
|
|
|
|
linear-gradient(225deg, transparent, transparent 73%, $diff-jagged-border-gradient-color 75%, $white-light 80%),
|
|
|
|
linear-gradient(135deg, transparent, transparent 73%, $diff-jagged-border-gradient-color 75%, $white-light 80%),
|
|
|
|
linear-gradient(-45deg, transparent, transparent 73%, $diff-jagged-border-gradient-color 75%, $white-light 80%);
|
|
|
|
background-position: 5px 5px,0 5px,0 5px,5px 5px;
|
|
|
|
background-size: 10px 10px;
|
|
|
|
background-repeat: repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notes {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-notes-collapse {
|
|
|
|
position: absolute;
|
|
|
|
left: -12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-file .note-container > .new-note,
|
|
|
|
.note-container .discussion-notes {
|
|
|
|
margin-left: 100px;
|
|
|
|
border-left: 1px solid $white-normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notes.active {
|
|
|
|
.diff-file .note-container > .new-note,
|
|
|
|
.note-container .discussion-notes {
|
|
|
|
// Override our margin and border (set for diff tab)
|
|
|
|
// when user is on the discussion tab for MR
|
|
|
|
margin-left: inherit;
|
|
|
|
border-left: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.files:not([data-can-create-note]) .frame {
|
|
|
|
cursor: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.frame.click-to-comment {
|
|
|
|
position: relative;
|
2017-12-05 02:35:37 -05:00
|
|
|
cursor: image-url('illustrations/image_comment_light_cursor.svg')
|
2017-10-07 00:25:17 -04:00
|
|
|
$image-comment-cursor-left-offset $image-comment-cursor-top-offset, auto;
|
|
|
|
|
|
|
|
// Retina cursor
|
2017-12-05 02:35:37 -05:00
|
|
|
cursor: -webkit-image-set(image-url('illustrations/image_comment_light_cursor.svg') 1x, image-url('illustrations/image_comment_light_cursor@2x.svg') 2x)
|
2017-10-07 00:25:17 -04:00
|
|
|
$image-comment-cursor-left-offset $image-comment-cursor-top-offset, auto;
|
|
|
|
|
|
|
|
.comment-indicator {
|
|
|
|
position: absolute;
|
|
|
|
padding: 0;
|
|
|
|
width: (2px * $image-comment-cursor-left-offset);
|
2017-12-05 02:35:37 -05:00
|
|
|
height: (2px * $image-comment-cursor-top-offset);
|
2017-10-07 00:25:17 -04:00
|
|
|
// center the indicator to match the top left click region
|
|
|
|
margin-top: (-1px * $image-comment-cursor-top-offset) + 2;
|
|
|
|
margin-left: (-1px * $image-comment-cursor-left-offset) + 1;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
.frame .badge.badge-pill,
|
|
|
|
.image-diff-avatar-link .badge.badge-pill,
|
|
|
|
.notes > .badge.badge-pill {
|
2017-10-07 00:25:17 -04:00
|
|
|
position: absolute;
|
|
|
|
background-color: $blue-400;
|
|
|
|
color: $white-light;
|
|
|
|
border: $white-light 1px solid;
|
|
|
|
min-height: $gl-padding;
|
|
|
|
padding: 5px 8px;
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
.frame .badge.badge-pill,
|
2017-10-07 00:25:17 -04:00
|
|
|
.frame .image-comment-badge {
|
|
|
|
// Center align badges on the frame
|
2017-12-05 02:35:37 -05:00
|
|
|
transform: translate(-50%, -50%);
|
2017-10-07 00:25:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.image-comment-badge {
|
|
|
|
position: absolute;
|
2017-12-05 02:35:37 -05:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
2017-10-07 00:25:17 -04:00
|
|
|
|
2017-12-05 02:35:37 -05:00
|
|
|
> svg {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2017-10-07 00:25:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-diff-avatar-link {
|
|
|
|
position: relative;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
.badge.badge-pill,
|
2017-10-07 00:25:17 -04:00
|
|
|
.image-comment-badge {
|
|
|
|
top: 25px;
|
|
|
|
right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
.notes > .badge.badge-pill {
|
2017-10-07 00:25:17 -04:00
|
|
|
display: none;
|
|
|
|
left: -13px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-notes {
|
|
|
|
min-height: 35px;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
// First child does not have the jagged borders
|
|
|
|
min-height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.collapsed {
|
|
|
|
background-color: $white-light;
|
|
|
|
|
|
|
|
.diff-notes-collapse,
|
|
|
|
.note,
|
|
|
|
.discussion-reply-holder, {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
.notes > .badge.badge-pill {
|
2017-10-07 00:25:17 -04:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-body .image .frame {
|
|
|
|
position: relative;
|
|
|
|
}
|