Fix scss_lint offenses in repo, variables and layout sheets

This commit is contained in:
Luke "Jared" Bennett 2017-07-18 13:00:55 +01:00
parent c42aa99b40
commit 6c0eea630d
No known key found for this signature in database
GPG key ID: 402ED51FB5D306C2
3 changed files with 232 additions and 210 deletions

View file

@ -120,6 +120,7 @@ of the body element here, we negate cascading side effects but allow momentum sc
.page-with-sidebar {
-webkit-overflow-scrolling: auto;
}
.truncate {
width: 250px;
white-space: nowrap;

View file

@ -587,3 +587,10 @@ Convdev Index
$color-high-score: $green-400;
$color-average-score: $orange-400;
$color-low-score: $red-400;
/*
Repo editor
*/
$repo-editor-grey: #f6f7f9;
$repo-editor-grey-darker: #e9ebee;
$repo-editor-linear-gradient: linear-gradient(to right, $repo-editor-grey 0%, $repo-editor-grey-darker, 20%, $repo-editor-grey 40%, $repo-editor-grey 100%);

View file

@ -2,12 +2,14 @@
display: none;
}
.fade-enter-active, .fade-leave-active {
transition: opacity .5s
.fade-enter-active,
.fade-leave-active {
transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
opacity: 0
.fade-enter,
.fade-leave-to /* .fade-leave-active in <2.1.8 */ {
opacity: 0;
}
.commit-message {
@ -36,17 +38,18 @@ header {
text-decoration: underline;
}
}
.cursor {
background: rgba(255,255,255,0);
border-color: rgba(255,255,255,0);
background: $black;
border-color: $black;
}
}
&.edit-mode {
.monaco-editor.vs {
.cursor {
background: #000;
border-color: #000;
background: $black;
border-color: $black;
}
}
}
@ -63,7 +66,7 @@ header {
overflow-x: scroll;
li {
-webkit-animation: fadein 0.5s;
animation: fadein 0.5s;
list-style-type: none;
background: $gray-normal;
display: inline-block;
@ -76,10 +79,11 @@ header {
}
a {
color: black;
color: $black;
}
i.fa.fa-times, i.fa.fa-circle {
i.fa.fa-times,
i.fa.fa-circle {
float: right;
margin-top: 3px;
margin-left: 15px;
@ -87,6 +91,7 @@ header {
}
}
}
#ide {
height: 70vh;
}
@ -121,7 +126,7 @@ header {
position: relative;
display: block;
border-bottom: 1px solid $white-normal;
background: white;
background: $white-light;
margin-top: -5px;
}
@ -143,14 +148,14 @@ header {
}
tr {
-webkit-animation: fadein 0.5s;
animation: fadein 0.5s;
&.repo-file-options td {
padding: 0;
border-top: none;
background: $gray-light;
width: 190px;
display: inline-block;
border-top: none;
&:hover {
.title {
@ -176,6 +181,7 @@ header {
vertical-align: middle;
padding: 2px 16px;
}
ul {
display: none;
float: right;
@ -184,11 +190,12 @@ header {
li {
display: inline-block;
padding: 0px 2px;
padding: 0 2px;
border-bottom: none;
}
}
}
.fa {
margin-right: 5px;
}
@ -211,6 +218,7 @@ header {
a {
color: $almost-black;
}
.fa {
font-size: $code_font_size;
margin-right: 5px;
@ -222,7 +230,7 @@ header {
}
.animation-container {
background: #f6f7f9;
background: $repo-editor-grey;
height: 40px;
overflow: hidden;
position: relative;
@ -232,12 +240,12 @@ header {
}
&::before {
-webkit-animation-duration: 1s;
-webkit-animation-fill-mode: forwards;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: blockTextShine;
-webkit-animation-timing-function: linear;
background-image: linear-gradient(to right, #f6f7f9 0%, #e9ebee 20%, #f6f7f9 40%, #f6f7f9 100%);
animation-duration: 1s;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-name: blockTextShine;
animation-timing-function: linear;
background-image: $repo-editor-linear-gradient;
background-repeat: no-repeat;
background-size: 800px 45px;
content: ' ';
@ -247,11 +255,11 @@ header {
}
div {
background: #fff;
background: $white-light;
height: 6px;
left: 0;
position: absolute;
right: 0
right: 0;
}
.line-of-code-1 {
@ -261,7 +269,7 @@ header {
.line-of-code-2 {
left: 150px;
top: 0px;
top: 0;
height: 10px;
}
@ -288,16 +296,22 @@ header {
}
}
@-webkit-keyframes blockTextShine {
@keyframes blockTextShine {
0% {
transform: translateX(-468px)
transform: translateX(-468px);
}
100% {
transform: translateX(468px)
transform: translateX(468px);
}
}
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}