gitlab-org--gitlab-foss/app/assets/stylesheets/framework/files.scss

194 lines
3.2 KiB
SCSS
Raw Normal View History

/**
* File content holder
*
*/
.file-holder {
border: 1px solid $border-color;
2015-10-17 13:18:37 -04:00
&.readme-holder {
margin: $gl-padding-top 0;
2015-10-17 13:18:37 -04:00
}
table {
@extend .table;
}
.file-title {
position: relative;
2016-04-01 15:27:39 -04:00
background-color: $background-color;
border-bottom: 1px solid $border-color;
margin: 0;
text-align: left;
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;
2015-03-13 22:20:25 -04:00
.file-actions {
float: right;
position: absolute;
top: 5px;
right: 15px;
2015-03-13 22:20:25 -04:00
.btn {
padding: 0 10px;
2015-03-13 22:20:25 -04:00
font-size: 13px;
line-height: 28px;
}
}
.filename {
&.old {
2016-04-21 10:14:54 -04:00
display: inline-block;
span.idiff {
background-color: #f8cbcb;
}
}
&.new {
2016-04-21 10:14:54 -04:00
display: inline-block;
span.idiff {
background-color: #a6f3a6;
}
}
}
2016-04-01 15:27:39 -04:00
a:not(.btn) {
color: $gl-dark-link-color;
}
2014-04-15 11:02:02 -04:00
.left-options {
margin-top: -3px;
}
}
.file-content {
background: #fff;
&.image_file {
background: #eee;
text-align: center;
img {
padding: 100px;
max-width: 50%;
}
}
2013-01-10 11:09:12 -05:00
&.wiki {
padding: $gl-padding;
.highlight {
margin-bottom: 9px;
> pre {
margin: 0;
}
}
2013-01-10 11:09:12 -05:00
}
&.blob_file {
}
&.blob-no-preview {
background: #eee;
text-shadow: 0 1px 2px #fff;
padding: 100px 0;
}
/**
* Blame file
*/
&.blame {
table {
border: none;
box-shadow: none;
margin: 0;
}
tr {
border-bottom: 1px solid #eee;
}
td {
&:first-child {
border-left: none;
}
&:last-child {
border-right: none;
}
}
img.avatar {
border: 0 none;
float: none;
margin: 0;
padding: 0;
}
td.blame-commit {
background: #f9f9f9;
min-width: 350px;
.commit-author-link {
color: #888;
}
}
td.line-numbers {
float: none;
border-left: 1px solid #ddd;
}
td.lines {
padding: 0;
code {
font-family: $monospace_font;
}
pre {
margin: 0;
}
}
}
&.logs {
background: #eee;
max-height: 700px;
overflow-y: auto;
ol {
margin-left: 40px;
padding: 10px 0;
border-left: 1px solid $border-color;
margin-bottom: 0;
background: white;
li {
color: #888;
p {
margin: 0;
color: #333;
line-height: 24px;
padding-left: 10px;
}
&:hover {
2016-02-23 11:13:43 -05:00
background: $row-hover;
}
}
}
}
/**
* Code file
*/
&.code {
padding: 0;
2016-03-10 14:31:21 -05:00
-webkit-overflow-scrolling: auto; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
}
}
}
span.idiff {
&.left {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
&.right {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}