git ssb

16+

Dominic / patchbay



Commit bca0078c9b1103a1d6c6bb3b446ad2a4f5c50724

style tweaks : block-quote, mentions, line spacing

mix irving committed on 5/29/2017, 1:02:34 PM
Parent: cc2435e554c14c59867bd5f8aa9adeb7ae503fb8

Files changed

app/styles/css/global.jschanged
message/html/render/about.jschanged
app/styles/css/global.jsView
@@ -10,12 +10,24 @@
1010 }
1111
1212 const globalStyles = `
1313 body {
14- font-family: sans-serif;
14 + font-family: helvetica, sans-serif;
15 + font-size: 14px;
16 + line-height: 19px;
1517 color: #222;
1618 }
1719
20 +blockquote {
21 + border-left: 4px #e0e0e0 solid;
22 + color: #444;
23 + padding-left: 30px;
24 + background-color: #f9f9f9;
25 + padding: .2rem .2rem .2rem 1rem;
26 + margin: .5rem 0;
27 +}
28 +
29 +
1830 .emoji {
1931 height: 1em;
2032 width: 1em;
2133 margin-bottom: .2rem;
@@ -25,14 +37,14 @@
2537 h1, h2, h3, h4, h5, h6, p, ul, ol {
2638 margin-top: .35em;
2739 }
2840
29-h1 { font-size: 1.2em; }
30-h2 { font-size: 1.18em; }
31-h3 { font-size: 1.15em; }
32-h4 { font-size: 1.12em; }
33-h5 { font-size: 1.1em; }
34-h6 { font-size: 1em; }
41 +h1 { font-size: 1.2rem; }
42 +h2 { font-size: 1.18rem; }
43 +h3 { font-size: 1.15rem; }
44 +h4 { font-size: 1.12rem; }
45 +h5 { font-size: 1.1rem; }
46 +h6 { font-size: 1rem; }
3547
3648 * {
3749 word-break: break-word;
3850 }
message/html/render/about.jsView
@@ -41,16 +41,18 @@
4141
4242 const metaData = [
4343 when(name, h('div', [ h('strong', 'Name: '), name ])),
4444 when(description, h('div', [ h('strong', 'Description: '), description ])),
45- when(image, h('img', { src: api.blob.sync.url(image) }))
45 + when(image, h('img', { src: api.blob.sync.url(image), style: { 'margin-top': '.5rem' } }))
4646 ]
4747
4848 if (!ref.isFeed(about)) {
4949 return [
50- 'Describes ',
51- h('a', { href: about }, [about.slice(0, 7), '...']),
52- ' as: ',
50 + h('p', [
51 + 'Describes ',
52 + h('a', { href: about }, [about.slice(0, 7), '...']),
53 + ' as: '
54 + ]),
5355 ...metaData
5456 ]
5557 }
5658
@@ -58,9 +60,9 @@
5860 ? 'themself '
5961 : api.about.html.link(about)
6062
6163 return [
62- 'Declares the following about ', target,
64 + h('p', `Declares the following about ${target}`),
6365 ...metaData
6466 ]
6567 }
6668 }

Built with git-ssb-web