git ssb

16+

Dominic / patchbay



Commit e94a95495f3b7eba6f69deb5f5ea05031b453868

make dropdown work

Ev Bogue committed on 9/19/2016, 8:15:28 PM
Parent: a2f1f10faf04f3a1a83e74d7ab17e329638d6375

Files changed

modules/menu.jschanged
style.csschanged
modules/menu.jsView
@@ -3,11 +3,11 @@
33
44 var menu_items = plugs.map(exports.menu_items = [])
55
66 var status = h('div.status.error') //start off disconnected
7- var list = h('div.column', {style: 'display: none;'})
7 + var list = h('div.menu.column', {style: 'display: none;'})
88
9-var menu = h('div.menu.column', status, list , {
9 +var menu = h('div.column', status, list , {
1010 onmouseover: function (e) {
1111 list.style.display = 'flex'
1212 }, onmouseout: function () {
1313 list.style.display = 'none'
style.cssView
@@ -68,32 +68,49 @@
6868 margin-bottom: .9em;
6969 }
7070
7171 input, textarea {
72- border: 1px solid #eee;
72 + border: none;
7373 border-radius: .2em;
7474 font-family: sans-serif;
7575 }
7676
77 +textarea {
78 + padding: .5em;
79 +}
80 +
7781 button {
7882 background: #fff;
7983 color: #666;
80- border: 1px solid #ccc;
84 + border: 1px solid #bbb;
8185 border-radius: .5em;
82- padding: .5em;
83- margin-top: .2em;
84- margin-bottom: .2em;
86 + padding: .7em;
87 + margin: .5em;
8588 cursor: pointer;
8689 text-transform: uppercase;
8790 font-weight: bold;
8891 font-size: .7em;
8992 }
9093
9194 button:hover {
9295 background: #ccc;
93- border: #bbb;
96 + border: 1px solid #bbb;
9497 }
9598
99 +.menu {
100 + position: absolute;
101 + top: .5em;
102 + right: .5em;
103 + padding-top: .5em;
104 + padding-bottom: .5em;
105 + padding-right: 1em;
106 + padding-left: 1em;
107 + background: #f5f5f5;
108 + border: 1px solid #eee;
109 + box-shadow: 3px 0px 3px #ccc;
110 + border-radius: .2em;
111 +}
112 +
96113 /* scrolling feeds, threads */
97114
98115 .scroller {
99116 width: 100%;
@@ -111,10 +128,15 @@
111128 .compose {
112129 width: 100%;
113130 margin-top: .5em;
114131 margin-bottom: .5em;
132 + box-shadow: #dadada 1px 2px 8px;
115133 }
116134
135 +.compose button {
136 + float: right;
137 +}
138 +
117139 /* messages */
118140
119141 .message {
120142 display: block;

Built with git-ssb-web