gitlab-org--gitlab-foss/app/assets/stylesheets/pages/repo.scss

311 lines
4.7 KiB
SCSS
Raw Normal View History

.modal.popup-dialog {
display: block;
background-color: $black-transparent;
z-index: 2100;
@media (min-width: $screen-md-min) {
.modal-dialog {
width: 600px;
margin: 30px auto;
}
}
}
2017-08-01 09:51:52 -04:00
.project-refs-form,
.project-refs-target-form {
display: inline-block;
}
.fade-enter,
2017-08-06 12:51:56 -04:00
.fade-leave-to {
opacity: 0;
2017-06-27 14:10:43 -04:00
}
.commit-message {
2017-08-06 12:34:42 -04:00
@include str-truncated(250px);
}
2017-08-06 12:55:51 -04:00
.editable-mode {
display: inline-block;
}
@media (min-width: $screen-md-min) {
.blob-viewer[data-type="rich"] {
margin: 20px;
}
2017-08-04 07:33:57 -04:00
}
2017-11-23 12:16:01 -05:00
.multi-file {
display: flex;
height: calc(100vh - 145px);
border-top: 1px solid $white-dark;
border-bottom: 1px solid $white-dark;
&.is-collapsed {
.ide-file-list {
max-width: 250px;
}
2017-09-25 13:26:14 -04:00
}
2017-11-23 12:16:01 -05:00
}
2017-06-27 14:10:43 -04:00
2017-11-23 12:16:01 -05:00
.ide-file-list {
flex: 1;
2017-11-24 08:12:04 -05:00
overflow: scroll;
2017-11-23 12:16:01 -05:00
.file {
cursor: pointer;
2017-09-25 13:26:14 -04:00
}
2017-11-23 12:16:01 -05:00
a {
color: $gl-text-color;
2017-08-16 13:03:58 -04:00
}
2017-11-24 08:12:04 -05:00
th {
position: sticky;
top: 0;
2017-08-16 13:03:58 -04:00
}
2017-11-23 12:16:01 -05:00
}
2017-08-16 13:03:58 -04:00
2017-11-24 08:12:04 -05:00
.multi-file-table-name,
2017-11-23 12:16:01 -05:00
.multi-file-table-col-commit-message {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 0;
}
2017-11-24 08:12:04 -05:00
.multi-file-table-name {
2017-11-23 12:16:01 -05:00
width: 350px;
}
2017-11-23 12:16:01 -05:00
.multi-file-table-col-commit-message {
2017-11-24 08:12:04 -05:00
width: 50%;
2017-11-23 12:16:01 -05:00
}
2017-11-23 12:16:01 -05:00
.multi-file-edit-pane {
display: flex;
flex-direction: column;
flex: 1;
border-left: 1px solid $white-dark;
overflow: hidden;
}
2017-11-23 12:16:01 -05:00
.multi-file-tabs {
display: flex;
overflow: scroll;
background-color: $white-normal;
box-shadow: inset 0 -1px $white-dark;
2017-11-23 12:16:01 -05:00
> li {
position: relative;
}
}
2017-06-30 17:44:48 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-tab {
2017-11-24 08:12:04 -05:00
@include str-truncated(150px);
2017-11-23 12:16:01 -05:00
padding: ($gl-padding / 2) ($gl-padding + 12) ($gl-padding / 2) $gl-padding;
background-color: $gray-normal;
border-right: 1px solid $white-dark;
border-bottom: 1px solid $white-dark;
cursor: pointer;
&.active {
background-color: $white-light;
border-bottom-color: $white-light;
}
}
2017-11-23 12:16:01 -05:00
.multi-file-tab-close {
position: absolute;
right: 8px;
top: 50%;
padding: 0;
background: none;
border: 0;
font-size: $gl-font-size;
color: $gray-darkest;
transform: translateY(-50%);
&:not(.modified):hover,
&:not(.modified):focus {
color: $hint-color;
}
2017-11-23 12:16:01 -05:00
&.modified {
color: $indigo-700;
}
}
2017-11-23 12:16:01 -05:00
.multi-file-edit-pane-content {
flex: 1;
height: 0;
}
2017-08-29 04:05:41 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-editor-btn-group {
padding: $grid-size;
border-top: 1px solid $white-dark;
}
// Not great, but this is to deal with our current output
.multi-file-preview-holder {
height: 100%;
overflow: scroll;
2017-11-24 08:12:04 -05:00
.blob-viewer {
height: 100%;
2017-06-30 17:44:48 -04:00
}
2017-07-14 07:44:26 -04:00
2017-11-24 08:12:04 -05:00
.file-content.code {
display: flex;
2017-11-24 08:12:04 -05:00
i {
margin-left: -10px;
}
}
2017-11-24 08:12:04 -05:00
.line-numbers {
min-width: 50px;
2017-07-14 07:44:26 -04:00
}
2017-11-24 08:12:04 -05:00
.file-content,
.line-numbers,
.blob-content,
.code {
min-height: 100%;
}
2017-11-23 12:16:01 -05:00
}
2017-06-27 14:10:43 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-commit-panel {
display: flex;
flex-direction: column;
height: 100%;
width: 290px;
padding: $gl-padding;
background-color: $gray-light;
border-left: 1px solid $white-dark;
&.is-collapsed {
width: 60px;
padding: 0;
}
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-panel-section {
display: flex;
flex-direction: column;
flex: 1;
}
2017-07-02 18:17:53 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-commit-panel-header {
display: flex;
align-items: center;
2017-11-24 08:12:04 -05:00
padding: 0 0 12px;
2017-11-23 12:16:01 -05:00
margin-bottom: 12px;
border-bottom: 1px solid $white-dark;
2017-08-03 10:45:03 -04:00
2017-11-23 12:16:01 -05:00
&.is-collapsed {
border-bottom: 1px solid $white-dark;
2017-11-23 12:16:01 -05:00
svg {
margin-left: auto;
margin-right: auto;
}
}
2017-11-23 12:16:01 -05:00
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-panel-collapse-btn {
padding-top: 0;
padding-bottom: 0;
margin-left: auto;
font-size: 20px;
2017-11-23 12:16:01 -05:00
&.is-collapsed {
margin-right: auto;
}
2017-11-23 12:16:01 -05:00
}
2017-06-27 14:10:43 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-commit-list {
flex: 1;
overflow: scroll;
}
2017-07-02 18:17:53 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-commit-list-item {
display: flex;
align-items: center;
}
2017-08-03 10:45:03 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-addition {
fill: $green-500;
}
2017-08-04 04:41:18 -04:00
2017-11-23 12:16:01 -05:00
.multi-file-modified {
fill: $orange-500;
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-list-collapsed {
display: flex;
flex-direction: column;
2017-11-23 12:16:01 -05:00
> svg {
margin-left: auto;
margin-right: auto;
2017-07-02 18:17:53 -04:00
}
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-list-path {
@include str-truncated(100%);
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-form {
padding-top: 12px;
border-top: 1px solid $white-dark;
2017-07-02 18:17:53 -04:00
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-fieldset {
display: flex;
align-items: center;
padding-bottom: 12px;
2017-08-07 18:21:10 -04:00
2017-11-23 12:16:01 -05:00
.btn {
flex: 1;
2017-08-07 17:56:07 -04:00
}
}
2017-11-23 12:16:01 -05:00
.multi-file-commit-message.form-control {
height: 80px;
resize: none;
}
.dirty-diff {
// !important need to override monaco inline style
2017-11-28 10:21:46 -05:00
width: 4px !important;
left: 0 !important;
&-modified {
background-color: $blue-500;
}
&-added {
background-color: $green-600;
}
&-removed {
2017-11-28 10:21:46 -05:00
height: 0 !important;
width: 0 !important;
bottom: -2px;
border-style: solid;
border-width: 5px;
border-color: transparent transparent transparent $red-500;
&::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 100px;
height: 1px;
background-color: rgba($red-500, .5);
}
}
}