Skip to content
This repository was archived by the owner on Aug 25, 2018. It is now read-only.

Commit 37d3a91

Browse files
authored
Merge pull request #131 from atom/sm-overlay
Change overlay background color
2 parents 4d9379f + 80b0d1b commit 37d3a91

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

styles/packages.less

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,57 @@
175175
border-color: @level-3-color;
176176
}
177177
}
178+
179+
180+
181+
// GitHub package ---------------------------------------------------
182+
183+
.github {
184+
185+
// Fix focus styles
186+
// Since it's not possible to add a padding to <atom-text-editor>
187+
// a pseudo element is used to add the border when focused.
188+
&-CommitView-editor atom-text-editor.is-focused {
189+
box-shadow: none;
190+
&:before {
191+
content: "";
192+
position: absolute;
193+
top: -2px;
194+
left: -2px;
195+
right: -2px;
196+
bottom: -2px;
197+
border: 2px solid;
198+
border-color: inherit;
199+
border-radius: @component-border-radius;
200+
}
201+
}
202+
203+
// Add focus styles since :focus doesn't work
204+
&-CommitView-coAuthorEditor {
205+
&.is-focused {
206+
.focus();
207+
}
208+
&.is-open {
209+
border-top-left-radius: 0;
210+
border-top-right-radius: 0;
211+
}
212+
213+
214+
.Select-option {
215+
&.is-focused {
216+
border-bottom-left-radius: 0;
217+
border-bottom-right-radius: 0;
218+
color: @accent-text-color;
219+
background-color: @accent-color;
220+
}
221+
}
222+
.Select-menu-outer {
223+
left: -2px;
224+
right: -2px;
225+
bottom: 100%;
226+
border: 2px solid @accent-color;
227+
background-color: @overlay-background-color;
228+
}
229+
}
230+
231+
}

styles/ui-variables.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@panel-heading-background-color: @level-2-color;
5656
@panel-heading-border-color: @base-border-color;
5757

58-
@overlay-background-color: @level-2-color;
58+
@overlay-background-color: mix(@level-2-color, @level-3-color);
5959
@overlay-border-color: @base-border-color;
6060

6161
@button-background-color: @level-1-color;

0 commit comments

Comments
 (0)