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

357 lines
6.1 KiB
SCSS
Raw Normal View History

.fade-enter-active,
.fade-leave-active {
2017-08-15 15:53:41 -04:00
transition: opacity $sidebar-transition-duration;
2017-06-27 14:10:43 -04:00
}
2017-08-03 22:11:14 -04:00
.monaco-loader {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
2017-08-04 08:39:44 -04:00
background: $black-transparent;
2017-08-03 22:11:14 -04:00
}
.modal.popup-dialog {
display: block;
background-color: $black-transparent;
2017-08-07 18:46:22 -04:00
z-index: 2100;
2017-08-06 12:51:26 -04:00
@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-08-16 13:03:58 -04:00
.repository-view {
2017-06-27 14:10:43 -04:00
border: 1px solid $border-color;
border-radius: $border-radius-default;
color: $almost-black;
2017-08-16 13:03:58 -04:00
.tree-content-holder {
display: flex;
max-height: 100vh;
min-height: 300px;
}
.tree-content-holder-mini {
height: 100vh;
}
.panel-right {
2017-08-16 13:03:58 -04:00
display: flex;
flex-direction: column;
2017-07-23 12:23:35 -04:00
width: 80%;
2017-08-16 13:03:58 -04:00
height: 100%;
.monaco-editor.vs {
.line-numbers {
cursor: pointer;
&:hover {
text-decoration: underline;
}
2017-07-14 12:14:20 -04:00
}
2017-07-14 07:44:26 -04:00
.cursor {
2017-07-24 12:13:02 -04:00
display: none !important;
}
}
.blob-no-preview {
.vertical-center {
justify-content: center;
width: 100%;
}
}
&.edit-mode {
2017-08-07 17:59:06 -04:00
.blob-viewer-container {
overflow: hidden;
}
2017-08-07 18:21:10 -04:00
.monaco-editor.vs {
.cursor {
background: $black;
border-color: $black;
2017-07-24 15:12:25 -04:00
display: block !important;
}
}
}
2017-06-30 17:44:48 -04:00
.blob-viewer-container {
2017-08-16 13:03:58 -04:00
flex: 1;
overflow: auto;
2017-08-29 04:05:41 -04:00
> div,
.file-content {
display: flex;
}
> div,
.file-content,
.blob-viewer,
.line-number,
.blob-content,
.code {
min-height: 100%;
width: 100%;
}
.line-numbers {
min-width: 44px;
}
.blob-content {
flex: 1;
overflow-x: auto;
}
}
#tabs {
2017-08-16 13:03:58 -04:00
flex-shrink: 0;
display: flex;
width: 100%;
padding-left: 0;
margin-bottom: 0;
white-space: nowrap;
2017-07-21 14:40:42 -04:00
overflow-y: hidden;
overflow-x: auto;
li {
animation: swipeRightAppear ease-in 0.1s;
animation-iteration-count: 1;
transform-origin: 0% 50%;
list-style-type: none;
background: $gray-normal;
display: inline-block;
padding: 10px 18px;
2017-08-04 12:17:12 -04:00
border-right: 1px solid $white-dark;
border-bottom: 1px solid $white-dark;
white-space: nowrap;
2017-08-15 15:53:41 -04:00
cursor: pointer;
2017-06-30 17:44:48 -04:00
&.remove {
animation: swipeRightDissapear ease-in 0.1s;
animation-iteration-count: 1;
transform-origin: 0% 50%;
2017-08-01 09:51:52 -04:00
a {
width: 0;
}
}
&.active {
background: $white-light;
2017-08-04 11:05:21 -04:00
border-bottom: none;
}
a {
2017-08-07 08:54:15 -04:00
@include str-truncated(100px);
color: $black;
2017-07-21 14:40:42 -04:00
width: 100px;
text-align: center;
vertical-align: middle;
2017-08-15 15:53:41 -04:00
text-decoration: none;
2017-07-21 14:40:42 -04:00
&.close {
width: auto;
font-size: 15px;
opacity: 1;
2017-08-06 13:03:46 -04:00
margin-right: -6px;
2017-07-21 14:40:42 -04:00
}
}
2017-06-30 17:44:48 -04:00
2017-08-15 15:53:41 -04:00
.close-icon,
.unsaved-icon {
float: right;
margin-top: 3px;
margin-left: 15px;
color: $gray-darkest;
}
2017-08-15 15:53:41 -04:00
.unsaved-icon {
color: $brand-success;
}
2017-08-04 11:05:21 -04:00
&.tabs-divider {
width: 100%;
background-color: $white-light;
border-right: none;
border-top-right-radius: 2px;
}
2017-06-30 17:44:48 -04:00
}
}
#repo-file-buttons {
background-color: $white-light;
border-bottom: 1px solid $white-normal;
padding: 5px 10px;
2017-07-21 14:40:42 -04:00
position: relative;
border-top: 1px solid $white-normal;
}
#binary-viewer {
height: 80vh;
overflow: auto;
margin: 0;
2017-06-30 17:44:48 -04:00
.blob-viewer {
padding-top: 20px;
padding-left: 20px;
2017-06-30 17:44:48 -04:00
}
.binary-unknown {
text-align: center;
padding-top: 100px;
2017-08-01 09:51:52 -04:00
background: $gray-light;
height: 100%;
font-size: 17px;
2017-08-01 09:51:52 -04:00
span {
display: block;
}
}
2017-06-30 17:44:48 -04:00
}
}
2017-07-14 07:44:26 -04:00
#commit-area {
2017-07-14 07:44:26 -04:00
background: $gray-light;
padding: 20px;
2017-08-15 15:53:41 -04:00
.help-block {
padding-top: 7px;
margin-top: 0;
}
}
#view-toggler {
height: 41px;
position: relative;
display: block;
2017-07-14 07:44:26 -04:00
border-bottom: 1px solid $white-normal;
background: $white-light;
margin-top: -5px;
2017-07-14 07:44:26 -04:00
}
#binary-viewer {
img {
max-width: 100%;
2017-07-11 18:44:33 -04:00
}
}
2017-06-27 14:10:43 -04:00
#sidebar {
2017-08-16 13:03:58 -04:00
flex: 1;
height: 100%;
&.sidebar-mini {
2017-07-23 12:23:35 -04:00
width: 20%;
border-right: 1px solid $white-normal;
overflow: auto;
}
2017-07-02 18:17:53 -04:00
2017-08-03 10:45:03 -04:00
table {
margin-bottom: 0;
}
tr {
animation: fadein 0.5s;
2017-07-24 12:13:02 -04:00
cursor: pointer;
2017-06-30 17:44:48 -04:00
&.repo-file-options td {
padding: 0;
border-top: none;
background: $gray-light;
width: 100%;
display: inline-block;
2017-07-02 18:17:53 -04:00
2017-08-04 04:41:18 -04:00
&:first-child {
border-top-left-radius: 2px;
}
.title {
display: inline-block;
font-size: 10px;
text-transform: uppercase;
font-weight: $gl-font-weight-bold;
color: $gray-darkest;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
padding: 2px 16px;
}
}
2017-08-15 15:53:41 -04:00
.file-icon {
margin-right: 5px;
}
td {
white-space: nowrap;
}
}
a {
2017-08-15 15:53:41 -04:00
@include str-truncated(250px);
color: $almost-black;
display: inline-block;
vertical-align: middle;
}
2017-07-02 18:17:53 -04:00
}
}
2017-08-07 17:56:07 -04:00
.render-error {
2017-08-15 15:53:41 -04:00
min-height: calc(100vh - 62px);
2017-08-07 18:21:10 -04:00
2017-08-07 17:56:07 -04:00
p {
width: 100%;
}
}
@keyframes swipeRightAppear {
0% {
2017-07-26 09:40:46 -04:00
transform: scaleX(0.00);
}
2017-07-26 09:40:46 -04:00
100% {
transform: scaleX(1.00);
}
}
@keyframes swipeRightDissapear {
0% {
transform: scaleX(1.00);
}
2017-07-26 09:40:46 -04:00
100% {
transform: scaleX(0.00);
}
}