2012-08-29 14:23:43 -04:00
|
|
|
/**
|
|
|
|
* File content holder
|
|
|
|
*
|
|
|
|
*/
|
2013-07-13 02:52:47 -04:00
|
|
|
.file-holder {
|
2016-01-14 06:31:31 -05:00
|
|
|
border: 1px solid $border-color;
|
2017-05-08 19:58:54 -04:00
|
|
|
border-radius: $border-radius-default;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
2016-05-18 09:11:06 -04:00
|
|
|
&.file-holder-no-border {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2017-10-16 13:53:12 -04:00
|
|
|
&.file-holder-bottom-radius {
|
|
|
|
border-radius: 0 0 $border-radius-small $border-radius-small;
|
|
|
|
}
|
|
|
|
|
2015-10-17 13:18:37 -04:00
|
|
|
&.readme-holder {
|
2017-05-08 19:58:54 -04:00
|
|
|
margin: $gl-padding 0;
|
2017-06-23 06:33:47 -04:00
|
|
|
|
|
|
|
&.limited-width-container .file-content {
|
|
|
|
max-width: $limited-layout-width-sm;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2017-09-07 12:10:16 -04:00
|
|
|
|
|
|
|
@media (min-width: $screen-md-min) {
|
|
|
|
padding-top: 64px;
|
|
|
|
padding-bottom: 64px;
|
|
|
|
}
|
2017-06-23 06:33:47 -04:00
|
|
|
}
|
2015-10-17 13:18:37 -04:00
|
|
|
}
|
|
|
|
|
2013-09-24 05:08:28 -04:00
|
|
|
table {
|
|
|
|
@extend .table;
|
|
|
|
}
|
|
|
|
|
2013-07-13 02:52:47 -04:00
|
|
|
.file-title {
|
2015-03-14 02:40:46 -04:00
|
|
|
position: relative;
|
2016-12-12 17:26:21 -05:00
|
|
|
background-color: $gray-light;
|
2015-03-14 02:40:46 -04:00
|
|
|
border-bottom: 1px solid $border-color;
|
2012-08-29 14:23:43 -04:00
|
|
|
margin: 0;
|
|
|
|
text-align: left;
|
2015-12-02 08:46:15 -05:00
|
|
|
padding: 10px $gl-padding;
|
2016-04-06 17:40:29 -04:00
|
|
|
word-wrap: break-word;
|
2017-05-08 19:58:54 -04:00
|
|
|
border-radius: $border-radius-default $border-radius-default 0 0;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
2016-05-18 09:11:06 -04:00
|
|
|
&.file-title-clear {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
.file-actions {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-13 22:20:25 -04:00
|
|
|
.file-actions {
|
2015-03-14 02:40:46 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
right: 15px;
|
2015-03-13 22:20:25 -04:00
|
|
|
|
|
|
|
.btn {
|
2016-03-16 19:29:47 -04:00
|
|
|
padding: 0 10px;
|
2015-03-13 22:20:25 -04:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
|
2016-04-01 15:27:39 -04:00
|
|
|
a:not(.btn) {
|
2016-06-20 12:57:10 -04:00
|
|
|
color: $gl-text-color;
|
2016-03-25 10:48:00 -04:00
|
|
|
}
|
|
|
|
|
2014-04-15 11:02:02 -04:00
|
|
|
.left-options {
|
|
|
|
margin-top: -3px;
|
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2016-10-30 17:41:13 -04:00
|
|
|
.file-blame-legend {
|
|
|
|
background-color: $gray-light;
|
|
|
|
text-align: right;
|
|
|
|
padding: 8px $gl-padding;
|
2017-06-15 23:15:49 -04:00
|
|
|
border-bottom: 1px solid $border-color;
|
2016-10-30 17:41:13 -04:00
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.left-label {
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right-label {
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.legend-box {
|
|
|
|
display: inline-block;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
padding: 0 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 0 through 5 {
|
|
|
|
.legend-box-#{$i} {
|
2017-11-07 11:19:34 -05:00
|
|
|
background-color: mix($blame-cyan, $blame-blue, $i / 5 * 100%);
|
2016-10-30 17:41:13 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 1 through 4 {
|
|
|
|
.legend-box-#{$i + 5} {
|
2017-11-07 11:19:34 -05:00
|
|
|
background-color: mix($blame-gray, $blame-cyan, $i / 4 * 100%);
|
2016-10-30 17:41:13 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-13 02:52:47 -04:00
|
|
|
.file-content {
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $white-light;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
2017-04-13 12:48:37 -04:00
|
|
|
&.image_file,
|
|
|
|
&.video {
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $file-image-bg;
|
2012-11-23 11:33:43 -05:00
|
|
|
text-align: center;
|
2017-05-15 13:11:40 -04:00
|
|
|
padding: 30px;
|
2016-09-06 05:36:09 -04:00
|
|
|
|
2017-04-13 12:48:37 -04:00
|
|
|
img,
|
|
|
|
video {
|
2016-08-12 13:02:46 -04:00
|
|
|
max-width: 80%;
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-10 11:09:12 -05:00
|
|
|
&.wiki {
|
2016-06-28 12:36:41 -04:00
|
|
|
padding: 30px $gl-padding;
|
2013-01-10 11:09:12 -05:00
|
|
|
}
|
|
|
|
|
2013-10-01 11:26:55 -04:00
|
|
|
&.blob-no-preview {
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $blob-bg;
|
|
|
|
text-shadow: 0 1px 2px $white-light;
|
2013-10-01 11:26:55 -04:00
|
|
|
padding: 100px 0;
|
|
|
|
}
|
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
/**
|
2017-06-22 20:07:19 -04:00
|
|
|
* Blame file
|
2012-08-29 14:23:43 -04:00
|
|
|
*/
|
|
|
|
&.blame {
|
2012-09-27 04:58:41 -04:00
|
|
|
table {
|
2017-11-02 19:59:51 -04:00
|
|
|
border: 0;
|
2012-11-23 11:33:43 -05:00
|
|
|
margin: 0;
|
2012-09-27 04:58:41 -04:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
tr {
|
2016-11-30 08:25:25 -05:00
|
|
|
border-bottom: 1px solid $blame-border;
|
2017-05-08 19:58:54 -04:00
|
|
|
|
|
|
|
&:last-child {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-bottom: 0;
|
2017-05-08 19:58:54 -04:00
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
td {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-top: 0;
|
|
|
|
border-bottom: 0;
|
2017-05-08 19:58:54 -04:00
|
|
|
|
2012-09-27 04:58:41 -04:00
|
|
|
&:first-child {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-left: 0;
|
2012-09-27 04:58:41 -04:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2012-09-27 04:58:41 -04:00
|
|
|
&:last-child {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-right: 0;
|
2012-09-27 04:58:41 -04:00
|
|
|
}
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2017-07-12 05:50:26 -04:00
|
|
|
&.blame-commit {
|
|
|
|
padding: 5px 10px;
|
|
|
|
min-width: 400px;
|
|
|
|
max-width: 400px;
|
|
|
|
background: $gray-light;
|
|
|
|
border-left: 3px solid;
|
|
|
|
|
|
|
|
.commit-row-title {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-title {
|
|
|
|
flex: 1;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-numbers {
|
|
|
|
float: none;
|
|
|
|
border-left: 1px solid $blame-line-numbers-border;
|
2017-07-16 11:11:32 -04:00
|
|
|
|
2017-07-12 05:50:26 -04:00
|
|
|
i {
|
|
|
|
float: none;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2017-07-16 11:11:32 -04:00
|
|
|
}
|
|
|
|
|
2017-07-12 05:50:26 -04:00
|
|
|
&.lines {
|
|
|
|
padding: 0;
|
2017-07-16 11:11:32 -04:00
|
|
|
}
|
2016-10-30 17:41:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 0 through 5 {
|
|
|
|
td.blame-commit-age-#{$i} {
|
2017-11-07 11:19:34 -05:00
|
|
|
border-left-color: mix($blame-cyan, $blame-blue, $i / 5 * 100%);
|
2016-10-30 17:41:13 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 1 through 4 {
|
|
|
|
td.blame-commit-age-#{$i + 5} {
|
2017-11-07 11:19:34 -05:00
|
|
|
border-left-color: mix($blame-gray, $blame-cyan, $i / 4 * 100%);
|
2016-10-30 17:41:13 -04:00
|
|
|
}
|
2015-09-10 07:36:42 -04:00
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.logs {
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $logs-bg;
|
2012-08-29 14:23:43 -04:00
|
|
|
max-height: 700px;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
ol {
|
2012-11-23 11:33:43 -05:00
|
|
|
margin-left: 40px;
|
2012-08-29 14:23:43 -04:00
|
|
|
padding: 10px 0;
|
2015-03-14 02:40:46 -04:00
|
|
|
border-left: 1px solid $border-color;
|
2012-11-23 11:33:43 -05:00
|
|
|
margin-bottom: 0;
|
2016-11-30 08:25:25 -05:00
|
|
|
background: $white-light;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
li {
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $logs-li-color;
|
2016-10-14 16:39:08 -04:00
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
p {
|
2012-11-23 11:33:43 -05:00
|
|
|
margin: 0;
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $logs-p-color;
|
2012-11-23 11:33:43 -05:00
|
|
|
line-height: 24px;
|
2012-08-29 14:23:43 -04:00
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2016-02-23 11:13:43 -05:00
|
|
|
background: $row-hover;
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Code file
|
|
|
|
*/
|
|
|
|
&.code {
|
2012-11-09 18:03:46 -05:00
|
|
|
padding: 0;
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
2017-04-10 11:44:49 -04:00
|
|
|
|
|
|
|
.list-inline.previews {
|
2017-04-28 07:15:07 -04:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
align-content: flex-start;
|
|
|
|
align-items: baseline;
|
2017-04-10 11:44:49 -04:00
|
|
|
|
|
|
|
.preview {
|
2017-04-28 07:15:07 -04:00
|
|
|
padding: $gl-padding;
|
2017-04-10 11:44:49 -04:00
|
|
|
}
|
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
}
|
2016-01-29 13:37:17 -05:00
|
|
|
|
|
|
|
span.idiff {
|
|
|
|
&.left {
|
|
|
|
border-top-left-radius: 2px;
|
|
|
|
border-bottom-left-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.right {
|
|
|
|
border-top-right-radius: 2px;
|
|
|
|
border-bottom-right-radius: 2px;
|
|
|
|
}
|
|
|
|
}
|
2016-12-09 11:18:19 -05:00
|
|
|
|
|
|
|
.file-stats {
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
padding: 3px 0;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-file {
|
|
|
|
a {
|
|
|
|
color: $gl-text-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.renamed-file {
|
|
|
|
a {
|
|
|
|
color: $gl-text-orange;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.deleted-file {
|
|
|
|
a {
|
|
|
|
color: $gl-text-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-file {
|
|
|
|
a {
|
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
.new-file {
|
|
|
|
color: $notify-new-file;
|
|
|
|
}
|
|
|
|
|
|
|
|
.deleted-file {
|
|
|
|
color: $notify-deleted-file;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-23 04:33:19 -05:00
|
|
|
|
|
|
|
.file-title-flex-parent {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2017-02-08 19:00:17 -05:00
|
|
|
justify-content: space-between;
|
2017-01-23 04:33:19 -05:00
|
|
|
background-color: $gray-light;
|
|
|
|
border-bottom: 1px solid $border-color;
|
2017-02-08 19:00:17 -05:00
|
|
|
padding: 5px $gl-padding;
|
2017-01-23 04:33:19 -05:00
|
|
|
margin: 0;
|
2017-05-08 19:58:54 -04:00
|
|
|
border-radius: $border-radius-default $border-radius-default 0 0;
|
2017-01-23 04:33:19 -05:00
|
|
|
|
2017-02-08 18:06:04 -05:00
|
|
|
.file-header-content {
|
2017-01-23 04:33:19 -05:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2017-02-08 18:06:04 -05:00
|
|
|
padding-right: 30px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-clipboard {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2017-01-23 04:33:19 -05:00
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
small {
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-actions {
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
padding: 0 10px;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 28px;
|
|
|
|
display: inline-block;
|
2017-03-01 05:04:58 -05:00
|
|
|
float: none;
|
2017-01-23 04:33:19 -05:00
|
|
|
}
|
|
|
|
}
|
2017-11-05 22:25:44 -05:00
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.file-actions {
|
|
|
|
white-space: normal;
|
|
|
|
|
|
|
|
.btn-group {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-23 04:33:19 -05:00
|
|
|
}
|
2017-04-06 06:02:24 -04:00
|
|
|
|
|
|
|
.is-stl-loading {
|
|
|
|
.stl-controls {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2017-04-06 12:36:38 -04:00
|
|
|
|
|
|
|
.file-fork-suggestion {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
background-color: $gray-light;
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
padding: 5px $gl-padding;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-fork-suggestion-note {
|
|
|
|
margin-right: 1.5em;
|
|
|
|
}
|
2017-12-11 07:17:11 -05:00
|
|
|
|
|
|
|
.label-lfs {
|
|
|
|
color: $common-gray-light;
|
|
|
|
border: 1px solid $common-gray-light;
|
|
|
|
}
|