Skip to content

Commit

Permalink
Fixed scss linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Mar 30, 2019
1 parent f44b9fe commit e3b89c8
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 159 deletions.
6 changes: 3 additions & 3 deletions .scss-lint.yml
Expand Up @@ -96,7 +96,7 @@ linters:
width: 2

LeadingZero:
enabled: true
enabled: false
style: include_zero # or 'exclude_zero'

MergeableSelector:
Expand Down Expand Up @@ -126,7 +126,7 @@ linters:
max_properties: 10

PropertySortOrder:
enabled: true
enabled: false
ignore_unspecified: false
min_properties: 2
separate_groups: false
Expand Down Expand Up @@ -163,7 +163,7 @@ linters:
max_depth: 2

SelectorFormat:
enabled: true
enabled: false
convention: hyphenated_lowercase # or 'strict_BEM', or 'hyphenated_BEM', or 'snake_case', or 'camel_case', or a regex pattern

Shorthand:
Expand Down
336 changes: 190 additions & 146 deletions src/scss/_codemirror.scss
@@ -1,41 +1,49 @@

.CodeMirror{
--result-default: var(--theme-font-color);
--result-string: var(--red-color);

height: 100%;
width: 100%;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.4;
background: transparent;
cursor: text;
pre {
color: var(--theme-font-color);
font-family: var(--editor-font-family);
}
.CodeMirror {
--result-default: var(--theme-font-color);
--result-string: var(--red-color);

height: 100%;
width: 100%;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.4;
background: transparent;
cursor: text;

pre {
color: var(--theme-font-color);
font-family: var(--editor-font-family);
}
}
.CodeMirror-cursor{
border-left-color: var(--editor-cursor-color);

.CodeMirror-cursor {
border-left-color: var(--editor-cursor-color);
}
.CodeMirror-gutters{
background: transparent;
border: 0;

.CodeMirror-gutters {
background: transparent;
border: 0;
}
.CodeMirror-foldmarker{
color: var(--theme-font-color);
text-shadow: none;

.CodeMirror-foldmarker {
color: var(--theme-font-color);
text-shadow: none;
}

.CodeMirror-dialog {
background: var(--theme-bg-color);
background: var(--theme-bg-color);
}

.CodeMirror-jump-token {
cursor: pointer;
background: rgba(var(--rgb-yellow), .3);
border-radius: 4px;
cursor: pointer;
background: rgba(var(--rgb-yellow), .3);
border-radius: 4px;
}
input.CodeMirror-search-field {
display: inline-block;

.CodeMirror-search-field {
display: inline-block;
}

.CodeMirror-scroll {
&::-webkit-scrollbar {
width: 15px;
Expand All @@ -49,139 +57,175 @@ input.CodeMirror-search-field {
// .CodeMirror-lint-mark-error{
// border-bottom: 1px dotted #f00;
// }
.CodeMirror-lint-tooltip{
background: var(--theme-bg-color);
border: 1px solid var(--theme-off-border-color);
box-shadow: 0 2px 12px -2px rgba(var(--rgb-black), .05);
border-radius: 5px;
color: var(--theme-font-color);
padding: 10px;
font-family: sans-serif;
z-index: 1050;

.CodeMirror-lint-tooltip {
background: var(--theme-bg-color);
border: 1px solid var(--theme-off-border-color);
box-shadow: 0 2px 12px -2px rgba(var(--rgb-black), .05);
border-radius: 5px;
color: var(--theme-font-color);
padding: 10px;
font-family: sans-serif;
z-index: 1050;
}

.CodeMirror-Tern-tooltip {
z-index: 1050;
z-index: 1050;
}

.CodeMirror-hint-information,
.CodeMirror-hint-deprecation {
position: sticky;
bottom: 0;
border-top: 1px solid var(--theme-border-color);
white-space: normal;
line-height: 1.4;
padding: 5px 10px;
background: var(--white-color);
position: sticky;
bottom: 0;
border-top: 1px solid var(--theme-border-color);
white-space: normal;
line-height: 1.4;
padding: 5px 10px;
background: var(--white-color);
}

.CodeMirror-hint-information {
cursor: pointer;
cursor: pointer;
}

.CodeMirror-hints {
font-family: inherit;
box-shadow: 0 0 5px rgba(var(--rgb-black), .1);
z-index: 1050;
min-width: 175px;
max-width: 300px;
p {
line-height: inherit;
color: inherit;
font-size: inherit;
font-weight: inherit;
letter-spacing: inherit;
margin: 0;
}
font-family: inherit;
box-shadow: 0 0 5px rgba(var(--rgb-black), .1);
z-index: 1050;
min-width: 175px;
max-width: 300px;

p {
line-height: inherit;
color: inherit;
font-size: inherit;
font-weight: inherit;
letter-spacing: inherit;
margin: 0;
}
}

.CodeMirror-hint {
line-height: 1.4;
padding: 5px 10px;
width: 100%;
&.CodeMirror-Tern-completion {
padding-left: 25px;
&:before {
left: 5px;
bottom: 5px;
}
line-height: 1.4;
padding: 5px 10px;
width: 100%;

&.CodeMirror-Tern-completion {
padding-left: 25px;

&::before {
left: 5px;
bottom: 5px;
}
}
}
li.CodeMirror-hint-active {
background: var(--blue-color);
* {
color: var(--white-color);
}

.CodeMirror-hint-active {
background: var(--blue-color);

* {
color: var(--white-color);
}
}

.cm-s-default {
.cm-atom {
color: var(--editor-atom-color);
}
.cm-attribute {
color: var(--editor-attribute-color);
}
.cm-string, .cm-string-2, .cm-string-3 {
color: var(--editor-string-color);
}
.cm-variable, .cm-variable-2, .cm-variable-3 {
color: var(--editor-variable-color);
}
.cm-property {
color: var(--editor-property-color);
}
.cm-punctuation {
color: var(--editor-punctuation-color);
}
.cm-keyword {
color: var(--editor-keyword-color);
font-weight: bold;
}
.cm-comment {
color: var(--editor-comment-color);
}
.cm-def {
color: var(--editor-def-color);
}
.cm-number {
color: var(--editor-number-color);
}
.cm-atom {
color: var(--editor-atom-color);
}

.cm-attribute {
color: var(--editor-attribute-color);
}

.cm-string,
.cm-string-2,
.cm-string-3 {
color: var(--editor-string-color);
}

.cm-variable,
.cm-variable-2,
.cm-variable-3 {
color: var(--editor-variable-color);
}

.cm-property {
color: var(--editor-property-color);
}

.cm-punctuation {
color: var(--editor-punctuation-color);
}

.cm-keyword {
color: var(--editor-keyword-color);
font-weight: bold;
}

.cm-comment {
color: var(--editor-comment-color);
}

.cm-def {
color: var(--editor-def-color);
}

.cm-number {
color: var(--editor-number-color);
}
}
.cm-s-query-result{
// .cm-attribute{
// color: var(--result-default);
// }
// .cm-string{
// color: var(--result-string);
// }
// .cm-property{
// color: var(--result-default);
// }
// .cm-punctuation{
// color: var(--result-default);
// }
}
.cm-s-variable-editor{
background: var(--theme-off-bg-color);
.cm-attribute{
color: var(--result-default);
}
.cm-string{
color: var(--result-string);
}
.cm-property{
color: var(--result-default);
}
.cm-punctuation{
color: var(--result-default);
}

// .cm-s-query-result {
// // .cm-attribute{
// // color: var(--result-default);
// // }
// // .cm-string{
// // color: var(--result-string);
// // }
// // .cm-property{
// // color: var(--result-default);
// // }
// // .cm-punctuation{
// // color: var(--result-default);
// // }
// }

.cm-s-variable-editor {
background: var(--theme-off-bg-color);

.cm-attribute {
color: var(--result-default);
}

.cm-string {
color: var(--result-string);
}

.cm-property {
color: var(--result-default);
}

.cm-punctuation {
color: var(--result-default);
}
}

.cm-s-settings-editor {
line-height: 2;
pre {
color: var(--theme-off-font-color);
}
.cm-string {
color: var(--theme-font-color);
}
.cm-property {
color: var(--orange-color);
}
.cm-number {
color: var(--green-color);
}
}
line-height: 2;

pre {
color: var(--theme-off-font-color);
}

.cm-string {
color: var(--theme-font-color);
}

.cm-property {
color: var(--orange-color);
}

.cm-number {
color: var(--green-color);
}
}

0 comments on commit e3b89c8

Please sign in to comment.