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

344 lines
5.8 KiB
SCSS
Raw Normal View History

2017-06-20 08:21:07 -04:00
[v-cloak] {
display: none;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity .5s;
2017-06-27 14:10:43 -04:00
}
.fade-enter,
.fade-leave-to /* .fade-leave-active in <2.1.8 */ {
opacity: 0;
2017-06-27 14:10:43 -04:00
}
.commit-message {
@include truncate(250px);
}
2017-06-27 14:10:43 -04:00
.tree-content-holder {
border: 1px solid $border-color;
border-radius: $border-radius-default;
color: $almost-black;
header {
background: $gray-light;
padding: 10px 15px;
}
.panel-right {
display: inline-block;
width: 85%;
.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 {
background: $black;
border-color: $black;
}
}
&.edit-mode {
.monaco-editor.vs {
.cursor {
background: $black;
border-color: $black;
}
}
}
2017-06-30 17:44:48 -04:00
#tabs {
height: 61px;
border-bottom: 1px solid $white-normal;
padding-left: 0;
margin-bottom: 0;
2017-06-30 17:44:48 -04:00
display: inline-block;
white-space: nowrap;
width: 100%;
2017-07-21 14:40:42 -04:00
overflow-y: hidden;
overflow-x: auto;
&.overflown {
height: 61px;
li {
padding: 20px 18px;
}
}
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: 20px 18px;
border-right: 1px solid $border-color;
white-space: nowrap;
2017-06-30 17:44:48 -04:00
&.active {
background: $white-light;
}
a {
color: $black;
2017-07-21 14:40:42 -04:00
display: inline-block;
width: 100px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
2017-07-21 14:40:42 -04:00
&.close {
width: auto;
font-size: 15px;
}
}
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;
}
2017-06-30 17:44:48 -04:00
}
}
#ide {
height: 70vh;
}
#repo-file-buttons {
background: $gray-light;
border-bottom: 1px solid $white-normal;
2017-07-21 14:40:42 -04:00
padding: 5px;
padding: 10px 5px;
position: relative;
border-top: 1px solid $white-normal;
margin-top: -5px;
}
#binary-viewer {
height: 70vh;
overflow: auto;
margin-top: 5px;
margin-left: 10px;
2017-06-30 17:44:48 -04:00
.blob-viewer {
padding-top: 20px;
padding-left: 20px;
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;
}
#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;
width: 15%;
border-right: 1px solid $white-normal;
height: 80vh;
overflow: auto;
}
2017-07-02 18:17:53 -04:00
tr {
animation: fadein 0.5s;
2017-06-30 17:44:48 -04:00
&.repo-file-options td {
padding: 0;
border-top: none;
background: $gray-light;
width: 190px;
display: inline-block;
2017-07-02 18:17:53 -04:00
&:hover {
.title {
width: 105px;
}
2017-06-30 17:44:48 -04:00
ul {
display: inline-block;
}
}
.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;
}
ul {
display: none;
float: right;
margin: 0 10px 0 0;
padding: 1px 0;
li {
display: inline-block;
padding: 0 2px;
border-bottom: none;
}
}
}
.fa {
margin-right: 5px;
}
}
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;
}
}
@keyframes blockTextShine {
0% {
transform: translateX(-468px);
}
100% {
transform: translateX(468px);
}
2017-07-02 18:17:53 -04:00
}
@keyframes swipeRightAppear {
0% {
transform: scaleX(0.00) ;
}
45% {
transform: scaleX(0.26) ;
}
100% {
transform: scaleX(1.00) ;
}
}