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;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
2015-10-17 13:18:37 -04:00
|
|
|
&.readme-holder {
|
2016-03-28 05:26:45 -04:00
|
|
|
margin: $gl-padding-top 0;
|
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-04-01 15:27:39 -04:00
|
|
|
background-color: $background-color;
|
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;
|
2016-04-06 21:33:00 -04:00
|
|
|
border-radius: 3px 3px 0 0;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
2015-03-13 22:20:25 -04:00
|
|
|
.file-actions {
|
2012-11-23 11:33:43 -05:00
|
|
|
float: right;
|
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-01-29 13:37:17 -05:00
|
|
|
.filename {
|
|
|
|
&.old {
|
|
|
|
span.idiff {
|
|
|
|
background-color: #f8cbcb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
|
|
|
span.idiff {
|
|
|
|
background-color: #a6f3a6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-01 15:27:39 -04:00
|
|
|
a:not(.btn) {
|
2016-03-25 10:48:00 -04:00
|
|
|
color: $gl-dark-link-color;
|
|
|
|
}
|
|
|
|
|
2014-04-15 11:02:02 -04:00
|
|
|
.left-options {
|
|
|
|
margin-top: -3px;
|
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
2013-07-13 02:52:47 -04:00
|
|
|
.file-content {
|
2012-11-23 11:51:38 -05:00
|
|
|
background: #fff;
|
2012-08-29 14:23:43 -04:00
|
|
|
|
|
|
|
&.image_file {
|
2012-11-23 11:51:38 -05:00
|
|
|
background: #eee;
|
2012-11-23 11:33:43 -05:00
|
|
|
text-align: center;
|
2012-08-29 14:23:43 -04:00
|
|
|
img {
|
2012-11-23 11:33:43 -05:00
|
|
|
padding: 100px;
|
2014-01-16 11:25:32 -05:00
|
|
|
max-width: 50%;
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-10 11:09:12 -05:00
|
|
|
&.wiki {
|
2015-09-10 07:36:42 -04:00
|
|
|
padding: $gl-padding;
|
2013-05-23 02:37:24 -04:00
|
|
|
|
|
|
|
.highlight {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
|
|
|
|
> pre {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2013-01-10 11:09:12 -05:00
|
|
|
}
|
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
&.blob_file {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-10-01 11:26:55 -04:00
|
|
|
&.blob-no-preview {
|
|
|
|
background: #eee;
|
2016-03-15 15:56:28 -04:00
|
|
|
text-shadow: 0 1px 2px #fff;
|
2013-10-01 11:26:55 -04:00
|
|
|
padding: 100px 0;
|
|
|
|
}
|
|
|
|
|
2012-08-29 14:23:43 -04:00
|
|
|
/**
|
|
|
|
* Blame file
|
|
|
|
*/
|
|
|
|
&.blame {
|
2012-09-27 04:58:41 -04:00
|
|
|
table {
|
2012-11-23 11:33:43 -05:00
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
margin: 0;
|
2012-09-27 04:58:41 -04:00
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
tr {
|
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
}
|
|
|
|
td {
|
2012-09-27 04:58:41 -04:00
|
|
|
&:first-child {
|
2012-11-23 11:33:43 -05:00
|
|
|
border-left: none;
|
2012-09-27 04:58:41 -04:00
|
|
|
}
|
|
|
|
&:last-child {
|
2012-11-23 11:33:43 -05:00
|
|
|
border-right: none;
|
2012-09-27 04:58:41 -04:00
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
2015-09-10 07:36:42 -04:00
|
|
|
img.avatar {
|
|
|
|
border: 0 none;
|
|
|
|
float: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
td.blame-commit {
|
|
|
|
background: #f9f9f9;
|
|
|
|
min-width: 350px;
|
|
|
|
|
|
|
|
.commit-author-link {
|
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
}
|
2016-01-21 08:23:53 -05:00
|
|
|
td.line-numbers {
|
|
|
|
float: none;
|
2016-03-15 15:56:28 -04:00
|
|
|
border-left: 1px solid #ddd;
|
2015-09-10 07:36:42 -04:00
|
|
|
}
|
|
|
|
td.lines {
|
2016-01-21 08:23:53 -05:00
|
|
|
padding: 0;
|
2015-09-10 07:36:42 -04:00
|
|
|
code {
|
|
|
|
font-family: $monospace_font;
|
|
|
|
}
|
2016-01-21 08:23:53 -05:00
|
|
|
pre {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-09-10 07:36:42 -04:00
|
|
|
}
|
2012-08-29 14:23:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.logs {
|
2012-11-23 11:51:38 -05:00
|
|
|
background: #eee;
|
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;
|
2012-08-29 14:23:43 -04:00
|
|
|
background: white;
|
|
|
|
li {
|
2012-11-23 11:51:38 -05:00
|
|
|
color: #888;
|
2012-08-29 14:23:43 -04:00
|
|
|
p {
|
2012-11-23 11:33:43 -05:00
|
|
|
margin: 0;
|
2012-11-23 11:51:38 -05:00
|
|
|
color: #333;
|
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;
|
2016-03-10 14:31:21 -05:00
|
|
|
-webkit-overflow-scrolling: auto; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
|
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;
|
|
|
|
}
|
|
|
|
}
|