File tree 4 files changed +20
-18
lines changed
4 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 23
23
color $gray
24
24
.subtext a :hover
25
25
text-decoration underline
26
- .poll-options
27
- padding-left 30px
28
- list-style-type disc
29
- li
30
- margin 12px 0
31
- p
32
- margin 8px 0
33
- & .current
34
- background-color darken ($bg , 5% )
35
26
</style >
36
27
37
28
<template >
Original file line number Diff line number Diff line change 1
1
<style lang="stylus">
2
- .view.items
2
+ @import "src/shared.styl"
3
+ .item-view
3
4
.item
4
5
padding-left 0
5
6
margin-bottom 30px
6
7
.index , .comments-link
7
8
display none
9
+ .poll-options
10
+ margin-left 30px
11
+ margin-bottom 40px
12
+ li
13
+ margin 12px 0
14
+ p
15
+ margin 8px 0
16
+ .subtext
17
+ color $gray
18
+ font-size 11px
8
19
</style >
9
20
10
21
<template >
11
- <div class =" view items " v-with =" id:params.itemId" v-show =" item" >
22
+ <div class =" view item-view " v-with =" id:params.itemId" v-show =" item" >
12
23
<div class =" item" v-component =" item" v-with =" item" ></div >
13
24
<ul class =" poll-options" v-if =" pollOptions" >
14
25
<li v-repeat =" pollOptions" >
@@ -56,7 +67,9 @@ module.exports = {
56
67
}.bind (this ))
57
68
},
58
69
fetchPollOptions : function () {
59
-
70
+ store .fetchItems (this .item .parts , function (options ) {
71
+ this .pollOptions = options
72
+ }.bind (this ))
60
73
}
61
74
},
62
75
components: {
Original file line number Diff line number Diff line change 1
1
<style lang="stylus">
2
- .view. news
2
+ .news-view
3
3
padding-left 0
4
4
padding-right 0
5
-
6
5
& .loading :before
7
6
content "Loading..."
8
7
position absolute
9
8
top 16px
10
9
left 20px
11
-
12
10
.nav
13
11
padding 10px 10px 10px 40px
14
12
margin-top 10px
20
18
</style >
21
19
22
20
<template >
23
- <div class =" view news" v-with =" page:params.page" v-class =" loading:!items.length" >
21
+ <div class =" view news-view " v-with =" page:params.page" v-class =" loading:!items.length" >
24
22
<!-- item list -->
25
23
<ul >
26
24
<li class =" item" v-repeat =" items" v-component =" item" trackby =" id" ></li >
Original file line number Diff line number Diff line change 1
1
<style lang="stylus">
2
- .view. user
2
+ .user-view
3
3
color $gray
4
4
li
5
5
margin 5px 0
13
13
</style >
14
14
15
15
<template >
16
- <div class =" view user" v-with =" id:params.userId" v-show =" user" >
16
+ <div class =" view user-view " v-with =" id:params.userId" v-show =" user" >
17
17
<ul >
18
18
<li ><span class =" label" >user:</span > {{user.id}}</li >
19
19
<li ><span class =" label" >created:</span > {{user.created | fromNow}} ago</li >
You can’t perform that action at this time.
0 commit comments