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

408 lines
6.9 KiB
SCSS
Raw Normal View History

.fade-enter-active,
.fade-leave-active {
transition: opacity .5s;
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-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;
&.disabled {
opacity: 0.5;
pointer-events: none;
}
}
.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;
}
2017-08-04 07:33:57 -04:00
.blob-viewer[data-type="rich"] {
margin: 20px;
}
2017-06-27 14:10:43 -04:00
.tree-content-holder {
border: 1px solid $border-color;
border-radius: $border-radius-default;
color: $almost-black;
.panel-right {
display: inline-block;
2017-07-23 12:23:35 -04:00
width: 80%;
.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;
}
}
&.edit-mode {
.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 {
height: calc(100vh - 63px);
overflow: auto;
}
#tabs {
padding-left: 0;
margin-bottom: 0;
2017-08-04 11:05:21 -04:00
display: flex;
white-space: nowrap;
width: 100%;
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-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
display: inline-block;
width: 100px;
text-align: center;
vertical-align: middle;
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
i.fa.fa-times,
i.fa.fa-circle {
float: right;
margin-top: 3px;
margin-left: 15px;
color: $gray-darkest;
}
i.fa.fa-circle {
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;
margin-top: -5px;
}
#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;
span.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 {
&.sidebar-mini {
display: inline-block;
vertical-align: top;
2017-07-23 12:23:35 -04:00
width: 20%;
border-right: 1px solid $white-normal;
2017-08-03 10:45:03 -04:00
height: calc(100vh + 20px);
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: bold;
color: $gray-darkest;
width: 185px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
padding: 2px 16px;
}
}
.fa {
margin-right: 5px;
}
td {
white-space: nowrap;
}
}
a {
color: $almost-black;
display: inline-block;
vertical-align: middle;
}
2017-07-02 18:17:53 -04:00
ul {
list-style-type: none;
padding: 0;
li {
border-bottom: 1px solid $border-gray-normal;
padding: 10px 20px;
a {
color: $almost-black;
}
2017-06-27 14:10:43 -04:00
.fa {
font-size: $code_font_size;
margin-right: 5px;
}
2017-06-27 14:10:43 -04:00
}
2017-06-20 08:21:07 -04:00
}
}
2017-07-02 18:17:53 -04:00
}
.animation-container {
background: $repo-editor-grey;
2017-07-02 18:17:53 -04:00
height: 40px;
overflow: hidden;
position: relative;
&.animation-container-small {
height: 12px;
}
2017-07-02 18:17:53 -04:00
&::before {
animation-duration: 1s;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-name: blockTextShine;
animation-timing-function: linear;
background-image: $repo-editor-linear-gradient;
2017-07-02 18:17:53 -04:00
background-repeat: no-repeat;
background-size: 800px 45px;
content: ' ';
display: block;
height: 100%;
position: relative;
}
2017-07-02 18:17:53 -04:00
div {
background: $white-light;
2017-07-02 18:17:53 -04:00
height: 6px;
left: 0;
position: absolute;
right: 0;
2017-07-02 18:17:53 -04:00
}
2017-07-02 18:17:53 -04:00
.line-of-code-1 {
left: 0;
top: 8px;
}
2017-07-02 18:17:53 -04:00
.line-of-code-2 {
left: 150px;
top: 0;
2017-07-02 18:17:53 -04:00
height: 10px;
}
2017-07-02 18:17:53 -04:00
.line-of-code-3 {
left: 0;
top: 23px;
}
2017-07-02 18:17:53 -04:00
.line-of-code-4 {
left: 0;
top: 38px;
}
2017-07-02 18:17:53 -04:00
.line-of-code-5 {
left: 200px;
top: 28px;
height: 10px;
}
2017-07-02 18:17:53 -04:00
.line-of-code-6 {
top: 14px;
left: 230px;
height: 10px;
}
}
2017-08-07 17:56:07 -04:00
.render-error {
min-height: calc(100vh - 63px);
p {
width: 100%;
}
}
@keyframes blockTextShine {
0% {
transform: translateX(-468px);
}
100% {
transform: translateX(468px);
}
2017-07-02 18:17:53 -04:00
}
@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);
}
}