From f910791c9a0d255366e97758dc9d2d698ac82a58 Mon Sep 17 00:00:00 2001 From: EJ Klassen Date: Wed, 1 Feb 2017 16:42:00 -0800 Subject: [PATCH] fix(atom): remove deprecated selectors --- atom/config.cson | 7 ++++++- atom/styles.less | 28 +++++++++------------------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/atom/config.cson b/atom/config.cson index 9f46bbf..077576f 100644 --- a/atom/config.cson +++ b/atom/config.cson @@ -246,7 +246,12 @@ "minimap-codeglance": {} "mscgen-preview": cannedStyleTemplate: "classic" - "multi-wrap-guide": {} + mirrorEntities: true + "multi-wrap-guide": + columns: [ + 80 + ] + locked: true nuclide: "nuclide-file-tree": allowKeyboardPrefixNavigation: false diff --git a/atom/styles.less b/atom/styles.less index 5c75f59..d9867f9 100644 --- a/atom/styles.less +++ b/atom/styles.less @@ -30,7 +30,7 @@ atom-workspace { // -webkit-text-stroke-width: 0.1pt; } atom-text-editor { - &::shadow { + &.editor { -webkit-text-stroke-width: initial; } -webkit-text-stroke-width: initial; @@ -45,7 +45,7 @@ atom-pane-container { } // To style other content in the text editor's shadow DOM, use the ::shadow // expression -atom-text-editor::shadow .cursor { +atom-text-editor.editor .cursor { } @@ -78,7 +78,7 @@ atom-workspace.theme-quantum-ui { // } .theme-today { - atom-text-editor::shadow { + atom-text-editor.editor { .meta { &.class { color: inherit; @@ -96,9 +96,7 @@ atom-workspace.theme-quantum-ui { @current-line-highlight: fade(mix(@syntax-text-color, @syntax-background-color, 99%), 3.6%); @current-line-highlight-border: fade(mix(@syntax-text-color, @syntax-background-color, 99%), 15%); - atom-text-editor.is-focused, - atom-text-editor.is-focused::shadow, - :host(.is-focused) { + atom-text-editor.is-focused { .line-number.cursor-line { // border-top: @current-line-highlight-border 1px solid; background-color: transparent; @@ -121,16 +119,6 @@ atom-workspace.theme-quantum-ui { border-top-width: 0px; } } - atom-text-editor, - atom-text-editor::shadow, - :host(.is-focused) { - .line-number.cursor-line { - // border-top: @current-line-highlight-border 1px solid; - background-color: transparent; - background-image: linear-gradient(to right, #3b3b3b, fade(#3b3b3b, 75%) 70%, fade(#3b3b3b, 0%)); - // @current-line-highlight; - } - } } .term3 .terminal { background-color: #222; @@ -178,6 +166,11 @@ tree-view-breadcrumb::-webkit-scrollbar-thumb { @purple: #8959a8; // 0E @dark-red: #a3685a; // 0F +.npm-icon::before { + top: 3px; + line-height: 12px; +} + .indent-guide-improved { background-color: mix(@gray, @light-gray, 50); &.indent-guide-stack { @@ -229,9 +222,6 @@ tree-view-breadcrumb::-webkit-scrollbar-thumb { } } -.npm-icon { - font-size: 15px; -} .theme-native-ui { // don't remove project icon .project-root > .list-item > .icon-repo {