File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11body {
22 background-color : # fff ;
3+ margin : 0 ;
34}
45form {
56 margin : 0 ;
@@ -52,10 +53,11 @@ span.control:hover {
5253 }
5354}
5455
55- .App {
56+ .App__wrap {
5657 width : 90% ;
5758 max-width : 1280px ;
5859 margin : 0 auto;
60+ padding : 8px 0 ;
5961 color : # 000 ;
6062 background-color : # f5f5f5 ;
6163 font-size : 13.3333px ;
Original file line number Diff line number Diff line change @@ -15,8 +15,12 @@ var Settings = React.createClass({
1515 SettingsStore . save ( )
1616 } ,
1717
18+ onClick ( e ) {
19+ e . stopPropagation ( )
20+ } ,
21+
1822 render ( ) {
19- return < div ref = "container" className = "Settings" tabIndex = "-1" >
23+ return < div ref = "container" className = "Settings" tabIndex = "-1" onClick = { this . onClick } >
2024 < form onChange = { this . onChange } >
2125 < div className = "Settings__setting Settings__setting--checkbox" >
2226 < label htmlFor = "autoCollapse" >
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ var App = React.createClass({
5252 } ,
5353
5454 render ( ) {
55- return < div className = "App" >
55+ return < div className = "App" onClick = { this . state . showSettings && this . toggleSettings } >
56+ < div className = "App__wrap" >
5657 < div className = "App__header" >
5758 < img src = "logo.png" width = "16" height = "16" alt = "" /> { ' ' }
5859 < Link to = "news" className = "App__homelink" > React HN</ Link > { ' ' }
@@ -69,6 +70,7 @@ var App = React.createClass({
6970 < div className = "App__footer" >
7071 react-hn v{ process . env . VERSION } | < a href = "https://github.com/insin/react-hn" > insin/react-hn</ a >
7172 </ div >
73+ </ div >
7274 </ div >
7375 }
7476} )
You can’t perform that action at this time.
0 commit comments