File tree 10 files changed +46
-37
lines changed
10 files changed +46
-37
lines changed Original file line number Diff line number Diff line change 57
57
AppWireframe
58
58
div ( {} ( :style $ @styleRoot ))
59
59
div ( {} ( :style $ @styleMain ))
60
- div ( {} ( :style $ @styleList ))
60
+ div ( {} :style @styleAroundSpace )
61
+ div ( {} :style @styleList )
61
62
cond ( ? user )
62
63
div ( {} ( :style $ @styleToolbar ))
63
64
Button $ {} ( :text :refresh ) ( :onClick @onRefresh )
84
85
:user $ UserDetail $ {}
85
86
:user $ store.getIn $ [] :users loginname
86
87
:post $ TopicPost
88
+ div ( {} :style @styleAroundSpace )
87
89
88
90
:styleRoot $ \ ()
89
91
{}
90
92
:position :absolute
91
93
:width :100%
92
94
:height :100%
93
95
:overflowX :auto
96
+ :backgroundColor ( hsl 180 26 28 )
94
97
95
98
:styleMain $ \ ()
96
99
{}
97
- :width :2200px
100
+ :width :3200px
98
101
:display :flex
99
102
:height :100%
100
103
101
- :styleList $ \ ()
102
- {}
103
- :height :100%
104
- :display :flex
105
- :flexDirection :column
104
+ :styleList $ {}
105
+ :height :100%
106
+ :display :flex
107
+ :flexDirection :column
108
+ :borderRight $ + ":1px solid " ( hsl 0 0 90 )
109
+ :backgroundColor :white
106
110
107
111
:styleToolbar $ \ ()
108
112
{}
109
113
:display :flex
110
114
:alignItems :center
111
- :padding ":10px 10px "
115
+ :padding ":10px 40px "
112
116
:justifyContent :flex-end
113
117
114
118
:styleToken $ \ ()
124
128
{}
125
129
:display :flex
126
130
:justifyContent :flex-end
131
+
132
+ :styleAroundSpace $ {}
133
+ :width 400
134
+ :flexShrink 0
Original file line number Diff line number Diff line change 34
34
:styleRoot $ \ ()
35
35
{}
36
36
:marginTop :10px
37
- :padding ":0 10px"
38
- :margin ":20px 0"
39
- :borderBottom $ + ":1px solid " ( hsl 0 0 95 )
37
+ :padding ":0 0px"
38
+ :margin ":40px 0"
40
39
41
40
:styleInfo $ \ ()
42
41
{}
45
44
46
45
:styleContent $ \ ()
47
46
{}
48
- :paddingLeft :24px
47
+ :paddingLeft :0px
Original file line number Diff line number Diff line change 58
58
:height :18px
59
59
:fontSize :12px
60
60
:borderRadius 2
61
+ :whiteSpace :nowrap
Original file line number Diff line number Diff line change 53
53
:renderEditor $ \ ()
54
54
div ( {} ( :style $ @styleEditor ))
55
55
Space $ {} ( :height 20 )
56
- div ( {} ( :style $ @styleSection )) ":reply:"
57
56
textarea $ {} ( :style $ @styleText )
58
57
:value @state.text
59
58
:onChange @onTextChange
60
59
:onKeyDown @onTextKeyDown
61
60
:placeholder :reply...
61
+ Space $ {} ( :height 10 )
62
62
div ( {} ( :style $ @styleWrapper ))
63
63
Content $ {} ( :text @state.text )
64
64
Space $ {} ( :height 10 )
72
72
replies $ topic.get :replies
73
73
74
74
div ( {} ( :style $ @styleRoot ))
75
- div ( {} ( :style $ @styleContent ) )
75
+ div ( {} :style @styleContent )
76
76
div ( {} ( :style $ @styleTitle ))
77
77
topic.get :title
78
78
Space $ {} :height 20
@@ -103,23 +103,24 @@ var
103
103
:width :1600px
104
104
:overflowY :auto
105
105
:height :100%
106
+ :backgroundColor :white
106
107
107
- :styleContent $ \ ()
108
- {}
109
- :width :800px
110
- :paddingBottom :300px
111
- :paddingLeft :20px
112
- :paddingRight :20px
113
- :height :100%
114
- :overflowY :auto
108
+ :styleContent $ {}
109
+ :width :800px
110
+ :paddingBottom :300px
111
+ :paddingLeft :40px
112
+ :paddingRight :40px
113
+ :height :100%
114
+ :overflowY :auto
115
+ :borderRight $ + ":1px solid " ( hsl 0 0 90 )
115
116
116
117
:styleReplies $ \ ()
117
118
{}
118
119
:width :800px
119
120
:height :100%
120
121
:display :inline-block
121
122
:overflowY :auto
122
- :padding ":10px 10px "
123
+ :padding ":20px 40px "
123
124
124
125
:styleTitle $ \ ()
125
126
{}
Original file line number Diff line number Diff line change 56
56
:display :flex
57
57
:flexDirection :row
58
58
:alignItems :center
59
- :padding ":8px 10px"
59
+ :padding ":10px 40px "
60
60
:cursor :pointer
61
- :borderBottom $ + ":1px solid " $ hsl 0 0 94
62
61
:backgroundColor $ cond @props.isSelected
63
62
hsl 0 0 95
64
- hsl 0 0 100
63
+ hsl 0 0 100 0
65
64
66
65
:styleTitle $ {}
67
66
:textDecoration :none
Original file line number Diff line number Diff line change 31
31
:isSelected ( is ( topic.get :id ) @props.selectedTopic )
32
32
33
33
:render $ \ ()
34
- div ( {} ( :style $ @styleRoot ) )
34
+ div ( {} :style @styleRoot )
35
35
Space $ {} ( :height 40 )
36
36
MessageList $ {} ( :messages @props.messages )
37
37
@props.topics.map @renderTopic
40
40
Button $ {} ( :text :more ) ( :onClick @onMore )
41
41
Space $ {} ( :height 400 )
42
42
43
- :styleRoot $ \ ()
44
- {}
45
- :width :600px
46
- :flex 1
47
- :overflowY :auto
48
- :display :inline-block
43
+ :styleRoot $ {}
44
+ :width :800px
45
+ :flex 1
46
+ :overflowY :auto
47
+ :display :inline-block
49
48
50
49
:styleFooter $ \ ()
51
50
{}
52
51
:display :flex
53
52
:justifyContent :flex-start
54
53
:marginTop :10px
55
- :paddingLeft :10px
54
+ :paddingLeft :40px
Original file line number Diff line number Diff line change 13
13
( {}~ div span ) React.DOM
14
14
15
15
= module.exports $ React.createClass $ {}
16
- :displayName :app -wireframe
16
+ :displayName :topic -wireframe
17
17
18
18
:render $ \ ()
19
19
div ( {} ( :style $ @styleRoot ))
27
27
:display :flex
28
28
:justifyContent :center
29
29
:alignItems :center
30
+ :backgroundColor :white
30
31
31
32
:styleBox $ \ ()
32
33
Original file line number Diff line number Diff line change 13
13
}
14
14
15
15
.topic-title : visited {
16
- color : hsl (0 , 0% , 70 % );
16
+ color : hsl (0 , 0% , 60 % );
17
17
}
Original file line number Diff line number Diff line change 2
2
.markdown-content p {
3
3
margin : 5px 0 ;
4
4
margin-bottom : 20px ;
5
+ line-height : 1.8em ;
5
6
}
6
7
7
8
.markdown-content img {
Original file line number Diff line number Diff line change 1
- {"main" :[" main.2525e543 .js" ," style.2525e543 .css" ],"vendor" :" vendor.770f7a2e .js" }
1
+ {"main" :[" main.f73b3938 .js" ," style.f73b3938 .css" ],"vendor" :" vendor.1a02a50d .js" }
You can’t perform that action at this time.
0 commit comments