git ssb

30+

cel / git-ssb-web



Commit 6c3bdbd49435992bf4c2e1505bde11b539b4fce2

additional tweaks to button and search styles

Ev Bogue committed on 9/4/2016, 2:58:36 AM
Parent: b460e646757a25a1561fa141222ddcec1acf5239

Files changed

index.jschanged
static/styles.csschanged
index.jsView
@@ -461,9 +461,9 @@
461461 '<h1><a href="/">' + app +
462462 (appName == 'ssb' ? '' : ' <sub>' + appName + '</sub>') +
463463 '</a></h1> ' +
464464 '<input class="search-bar" name="q" size="60"' +
465- ' placeholder="🔍" value="' + q + '" />' +
465 + ' placeholder=" Search" value="' + q + '" />' +
466466 '</form>' +
467467 '</header>' +
468468 '<article><hr />'),
469469 this.renderTry(read),
@@ -522,9 +522,9 @@
522522 return c.type in msgTypes
523523 || (c.type == 'post' && c.repo && c.issue)
524524 }),
525525 typeof filter == 'function' ? filter(opts) : filter,
526- pull.take(50),
526 + pull.take(100),
527527 this.addAuthorName(),
528528 query.forwards && u.pullReverse(),
529529 paginate(
530530 function (first, cb) {
@@ -533,17 +533,17 @@
533533 query.gt = gt
534534 query.forwards = 1
535535 delete query.lt
536536 cb(null, '<a href="?' + qs.stringify(query) + '">' +
537- req._t('Newer') + '</a>')
537 + req._t('Next') + '</a>')
538538 },
539539 paramap(this.renderFeedItem.bind(this, req), 8),
540540 function (last, cb) {
541541 query.lt = feedId ? last.value.sequence : last.value.timestamp - 1
542542 delete query.gt
543543 delete query.forwards
544544 cb(null, '<a href="?' + qs.stringify(query) + '">' +
545- req._t('Older') + '</a>')
545 + req._t('Previous') + '</a>')
546546 },
547547 function (cb) {
548548 if (query.forwards) {
549549 delete query.gt
static/styles.cssView
@@ -59,19 +59,22 @@
5959 header .search-bar {
6060 float: right;
6161 margin-top: .5em;
6262 margin-left: 1ex;
63- max-width: 65%;
63 + max-width: 35%;
6464 padding: .25em;
65- font-size: 10pt;
65 + font-size: .8em;
66 + background: #f5f5f5;
67 + border-radius: 1em;
6668 }
6769
6870 .profile-icon {
6971 height: 1.5em;
7072 width: 1.5em;
7173 margin-right: .2em;
72- margin-left: .2em;
74 + margin-left: .15em;
7375 margin-top: .4em;
76 + margin-bottom: .5em;
7477 border: 1px solid #eee;
7578 float: left;
7679 }
7780
@@ -149,30 +152,18 @@
149152 input { border: 1px solid #eee;}
150153
151154 .btn {
152155 background: #eee;
153- background: #eee linear-gradient(#eee, #ccc);
154- border-radius: .5ex;
155- border: 1px solid #aaa;
156- border-top: 1px solid #ccc;
157- border-left: 1px solid #ccc;
158- color: #444;
159- display: inline-block;
160- font-size: 1em;
161- font-weight: bold;
162- text-decoration: none;
163- text-shadow: 0 1px #eee;
156 + border: 1px solid #e7e7e7;
157 + margin-top: .5em;
158 + padding: .3em .6em;
159 + border-radius: .7em;
164160 cursor: pointer;
165- padding: .2ex .5ex;
166161 }
167162
168163 .btn:hover {
169164 background: #ddd;
170- background: #ddd linear-gradient(#ddd, #aaa);
171- border: 1px solid #888;
172- border-top: 1px solid #aaa;
173- border-left: 1px solid #aaa;
174- color: #222;
165 + border: 1px solid #ccc;
175166 }
176167
177168 .name {
178169 font-size: inherit;
@@ -281,40 +272,32 @@
281272
282273 /* issues */
283274
284275 .issue-state {
285- margin-right: .25ex;
286276 }
287277
288278 .issue-state-open {
289- color: #38ae67;
290279 }
291280
292281 .issue-state-closed {
293- color: #d84a38;
282 + color: black ;
294283 }
295284
296285 /* issue */
297286
298287 .issue-status {
299- padding: .4ex .75ex;
300288 margin-right: .75ex;
301- border-radius: .5ex;
289 + border-radius: .2em;
302290 }
303291
304292 .open {
305- background-color: #38ae67;
306- color: white;
307293 font-weight: bold;
308294 }
309295
310296 .btn.open:hover {
311- background-color: #2b9d58;
312297 }
313298
314299 .closed {
315- background-color: #d84a38;
316- color: white;
317300 }
318301
319302 .mention-preview {
320303 overflow: hidden;

Built with git-ssb-web