Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

Commit

Permalink
Merge pull request #36 from atom/as-remove-shadow-dom-styles
Browse files Browse the repository at this point in the history
Stop using shadow DOM selectors
  • Loading branch information
Antonio Scandurra committed Oct 17, 2016
2 parents 074a989 + 3855c36 commit 1c6a4c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions styles/atom.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ atom-workspace {
}

.scrollbars-visible-always {
/deep/ ::-webkit-scrollbar {
::-webkit-scrollbar {
width: 10px;
height: 10px;
}

/deep/ ::-webkit-scrollbar-track,
/deep/ ::-webkit-scrollbar-corner {
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
background: @scrollbar-background-color;
}

/deep/ ::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
background: @scrollbar-color;
border-radius: 5px;
box-shadow: 0 0 1px white inset;
Expand Down
6 changes: 3 additions & 3 deletions styles/editor.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "ui-variables";
@import "ui-mixins";

atom-text-editor[mini], atom-text-editor[mini]::shadow {
atom-text-editor[mini] {
color: lighten(@text-color, 15%);
background-color: darken(@input-background-color, 1%);
border: 1px solid lighten(@input-border-color, 10%);
Expand All @@ -17,7 +17,7 @@ atom-text-editor[mini], atom-text-editor[mini]::shadow {
}
}

atom-text-editor[mini].is-focused, atom-text-editor[mini].is-focused::shadow {
atom-text-editor[mini].is-focused {
color: @text-color;
background-color: @input-background-color;
border-color: @input-border-color;
Expand All @@ -30,7 +30,7 @@ atom-text-editor[mini].is-focused, atom-text-editor[mini].is-focused::shadow {
}

// FIXME: these should go in syntax themes?
atom-text-editor, atom-text-editor::shadow {
atom-text-editor {
.gutter.drop-shadow {
-webkit-box-shadow: -2px 0 10px 2px #222;
}
Expand Down

0 comments on commit 1c6a4c2

Please sign in to comment.