🎨(theme-picker): Fix styling for non-Retina displays

This commit is contained in:
Jackie Luo 2016-03-21 19:35:47 -07:00
parent 5dcb3a1bce
commit b1d49e8477
2 changed files with 22 additions and 4 deletions

View file

@ -66,7 +66,8 @@ class ThemePicker extends React.Component {
<div className="theme-picker" tabIndex="1">
<Flexbox direction="column">
<RetinaImg
style={{width: "14", height: "14", margin: "12px", WebkitFilter: "none"}}
className="theme-picker-x"
style={{width: "14", height: "14", WebkitFilter: "none"}}
name="picker-close.png"
mode={RetinaImg.Mode.ContentDark}
onMouseDown={() => Actions.closeModal()} />
@ -81,7 +82,11 @@ class ThemePicker extends React.Component {
</Flexbox>
</div>
<div className="create-theme">
<a href="https://github.com/nylas/N1-theme-starter">Create a Theme</a>
<a
href="https://github.com/nylas/N1-theme-starter"
style={{color: "#3187e1"}}>
Create a Theme
</a>
</div>
</Flexbox>
</div>

View file

@ -3,6 +3,9 @@
.theme-picker {
text-align: center;
cursor: default;
.theme-picker-x {
margin: 6px;
}
h4 {
font-size: 14.5px;
margin-top: -10px;
@ -12,7 +15,7 @@
width: 115px;
height: 70px;
margin: 2px;
top: -10px;
top: -20px;
iframe {
pointer-events: none;
position: relative;
@ -24,9 +27,19 @@
text-align: center;
margin-top: 5px;
a {
color: #3187e1;
text-decoration: none;
cursor: default;
}
}
}
@media (-webkit-min-device-pixel-ratio: 2) {
.theme-picker {
.theme-picker-x {
margin: 12px;
}
.clickable-theme-option {
top: -10px;
}
}
}