debian-mirror-gitlab/app/assets/stylesheets/framework/files.scss

192 lines
3.1 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
/**
* File content holder
*
*/
.file-holder {
border: 1px solid $border-color;
2014-09-02 18:07:02 +05:30
&.file-holder-no-border {
border: 0;
}
2015-11-26 14:37:03 +05:30
&.readme-holder {
2016-06-02 11:05:42 +05:30
margin: $gl-padding-top 0;
2015-11-26 14:37:03 +05:30
}
2014-09-02 18:07:02 +05:30
table {
@extend .table;
}
.file-title {
2015-04-26 12:48:37 +05:30
position: relative;
2016-06-02 11:05:42 +05:30
background-color: $background-color;
2015-04-26 12:48:37 +05:30
border-bottom: 1px solid $border-color;
2014-09-02 18:07:02 +05:30
margin: 0;
text-align: left;
2015-12-23 02:04:40 +05:30
padding: 10px $gl-padding;
2016-06-02 11:05:42 +05:30
word-wrap: break-word;
border-radius: 3px 3px 0 0;
2014-09-02 18:07:02 +05:30
&.file-title-clear {
padding-left: 0;
padding-right: 0;
background-color: transparent;
.file-actions {
right: 0;
}
}
2015-04-26 12:48:37 +05:30
.file-actions {
position: absolute;
top: 5px;
right: 15px;
.btn {
2016-06-02 11:05:42 +05:30
padding: 0 10px;
2015-04-26 12:48:37 +05:30
font-size: 13px;
line-height: 28px;
}
2014-09-02 18:07:02 +05:30
}
2016-06-02 11:05:42 +05:30
a:not(.btn) {
2016-08-24 12:49:21 +05:30
color: $gl-text-color;
2016-04-02 18:10:28 +05:30
}
2014-09-02 18:07:02 +05:30
.left-options {
margin-top: -3px;
}
}
.file-content {
background: #fff;
&.image_file {
background: #eee;
text-align: center;
img {
padding: 100px;
max-width: 50%;
}
}
&.wiki {
2015-09-25 12:07:36 +05:30
padding: $gl-padding;
2014-09-02 18:07:02 +05:30
.highlight {
margin-bottom: 9px;
> pre {
margin: 0;
}
}
}
&.blob-no-preview {
background: #eee;
2016-06-02 11:05:42 +05:30
text-shadow: 0 1px 2px #fff;
2014-09-02 18:07:02 +05:30
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;
}
}
2015-09-25 12:07:36 +05:30
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-02-05 20:25:01 +05:30
td.line-numbers {
float: none;
2016-06-02 11:05:42 +05:30
border-left: 1px solid #ddd;
i {
float: none;
margin-right: 0;
}
2015-09-25 12:07:36 +05:30
}
td.lines {
2016-02-05 20:25:01 +05:30
padding: 0;
2015-09-25 12:07:36 +05:30
code {
font-family: $monospace_font;
}
2016-02-05 20:25:01 +05:30
pre {
margin: 0;
}
2015-09-25 12:07:36 +05:30
}
2014-09-02 18:07:02 +05:30
}
&.logs {
background: #eee;
max-height: 700px;
overflow-y: auto;
ol {
margin-left: 40px;
padding: 10px 0;
2015-04-26 12:48:37 +05:30
border-left: 1px solid $border-color;
2014-09-02 18:07:02 +05:30
margin-bottom: 0;
background: white;
li {
color: #888;
p {
margin: 0;
color: #333;
line-height: 24px;
padding-left: 10px;
}
&:hover {
2016-04-02 18:10:28 +05:30
background: $row-hover;
2014-09-02 18:07:02 +05:30
}
}
}
}
/**
* Code file
*/
&.code {
padding: 0;
2016-06-02 11:05:42 +05:30
-webkit-overflow-scrolling: auto; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
2014-09-02 18:07:02 +05:30
}
}
}
2016-04-02 18:10:28 +05:30
span.idiff {
&.left {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
&.right {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}