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

311 lines
4.8 KiB
SCSS
Raw Normal View History

/**
* File content holder
*
*/
.file-holder {
border: 1px solid $border-color;
border-radius: $border-radius-default;
2016-05-18 09:11:06 -04:00
&.file-holder-no-border {
border: 0;
}
2015-10-17 13:18:37 -04:00
&.readme-holder {
margin: $gl-padding 0;
2015-10-17 13:18:37 -04:00
}
table {
@extend .table;
}
.file-title {
position: relative;
2016-12-12 17:26:21 -05:00
background-color: $gray-light;
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;
border-radius: $border-radius-default $border-radius-default 0 0;
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 {
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;
}
}
2016-04-01 15:27:39 -04:00
a:not(.btn) {
color: $gl-text-color;
}
2014-04-15 11:02:02 -04:00
.left-options {
margin-top: -3px;
}
}
.file-content {
2016-11-30 08:25:25 -05:00
background: $white-light;
&.image_file,
&.video {
2016-11-30 08:25:25 -05:00
background: $file-image-bg;
text-align: center;
img,
video {
padding: 20px;
max-width: 80%;
}
}
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
}
&.blob-no-preview {
2016-11-30 08:25:25 -05:00
background: $blob-bg;
text-shadow: 0 1px 2px $white-light;
padding: 100px 0;
}
/**
* Blame file
*/
&.blame {
table {
border: none;
margin: 0;
}
tr {
2016-11-30 08:25:25 -05:00
border-bottom: 1px solid $blame-border;
&:last-child {
border-bottom: none;
}
}
td {
border-top: none;
border-bottom: none;
&:first-child {
border-left: none;
}
&:last-child {
border-right: none;
}
}
td.blame-commit {
padding: 5px 10px;
min-width: 400px;
background: $gray-light;
}
td.line-numbers {
float: none;
2016-11-30 08:25:25 -05:00
border-left: 1px solid $blame-line-numbers-border;
2016-04-21 14:41:47 -04:00
i {
float: none;
margin-right: 0;
}
}
td.lines {
padding: 0;
}
}
&.logs {
2016-11-30 08:25:25 -05:00
background: $logs-bg;
max-height: 700px;
overflow-y: auto;
ol {
margin-left: 40px;
padding: 10px 0;
border-left: 1px solid $border-color;
margin-bottom: 0;
2016-11-30 08:25:25 -05:00
background: $white-light;
li {
2016-11-30 08:25:25 -05:00
color: $logs-li-color;
p {
margin: 0;
2016-11-30 08:25:25 -05:00
color: $logs-p-color;
line-height: 24px;
padding-left: 10px;
}
&:hover {
2016-02-23 11:13:43 -05:00
background: $row-hover;
}
}
}
}
/**
* Code file
*/
&.code {
padding: 0;
}
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
}
}
}
}
span.idiff {
&.left {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
&.right {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}
.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;
}
}
}
.file-title-flex-parent {
display: flex;
align-items: center;
2017-02-08 19:00:17 -05:00
justify-content: space-between;
background-color: $gray-light;
border-bottom: 1px solid $border-color;
2017-02-08 19:00:17 -05:00
padding: 5px $gl-padding;
margin: 0;
border-radius: $border-radius-default $border-radius-default 0 0;
.file-header-content {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-right: 30px;
position: relative;
}
.btn-clipboard {
position: absolute;
right: 0;
}
a {
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;
float: none;
}
}
}
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;
}