Skip to content

Commit

Permalink
fix(atom): remove deprecated selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall committed Feb 2, 2017
1 parent af7cf00 commit f910791
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
7 changes: 6 additions & 1 deletion atom/config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 9 additions & 19 deletions atom/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {

}

Expand Down Expand Up @@ -78,7 +78,7 @@ atom-workspace.theme-quantum-ui {
// }

.theme-today {
atom-text-editor::shadow {
atom-text-editor.editor {
.meta {
&.class {
color: inherit;
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f910791

Please sign in to comment.