git ssb

2+

mixmix / ticktack



Commit f1afbfb0382d0d2375a5ca7ec9bc9b673a9bff84

stylefix: newThread button + Button

mix irving committed on 9/28/2017, 1:17:30 AM
Parent: 0107e46b337f0846775565435aaf8a90f95b1955

Files changed

app/html/context.jschanged
styles/button.mcsschanged
app/html/context.jsView
@@ -74,9 +74,9 @@
7474 ])
7575 }
7676
7777 function LevelTwoContext () {
78- const { key, value, feed: targetUser } = location
78+ const { key, value, feed: targetUser, page } = location
7979 const root = get(value, 'content.root', key)
8080 if (!targetUser) return
8181
8282 var threads = MutantArray()
@@ -93,10 +93,11 @@
9393 )
9494
9595 return h('div.level.-two', [
9696 Option({
97+ selected: page === 'threadNew',
9798 location: {page: 'threadNew', feed: targetUser},
98- label: h('Button', strings.threadNew.action.new)
99+ label: h('Button', strings.threadNew.action.new),
99100 }),
100101 map(threads, thread => {
101102 return Option({
102103 selected: thread.key === root,
styles/button.mcssView
@@ -1,29 +1,32 @@
11 Button {
22 font-family: arial
33 text-align: center
44
5- cursor: pointer
5+ $backgroundPrimary
66
7+ min-width: 6rem
78 padding: .2rem 1rem
8- min-width: 6rem
9+
910 border: 1px #b9b9b9 solid
1011 border-radius: 10rem
1112
13+ cursor: pointer
14+
1215 -subtle {
1316 color: #b9b9b9
1417 :hover {
1518 color: #222
1619 }
1720 }
21+
1822 -primary {
1923 $colorPrimary
24+ border: none
2025
2126 :hover {
2227 opacity: .9
2328 }
24-
25- border: 1px solid #3dc8c3
2629 }
2730
2831 -showMore {
2932 width: 100%

Built with git-ssb-web