Commit c2330d6f4c502dd3403846261543d2cbdac5d504
show pending images (blob not fetched yet)
Matt McKegg committed on 6/12/2017, 5:05:07 AMParent: 3738a10330418ba685af21142b05c622732f4eec
Files changed
package.json | changed |
styles/markdown.mcss | changed |
package.json | ||
---|---|---|
@@ -37,9 +37,9 @@ | ||
37 | 37 | "mutant-pull-reduce": "^1.1.0", |
38 | 38 | "non-private-ip": "^1.4.1", |
39 | 39 | "on-change-network": "0.0.2", |
40 | 40 | "on-wakeup": "^1.0.1", |
41 | - "patchcore": "~0.7.0", | |
41 | + "patchcore": "~0.8.0", | |
42 | 42 | "patchwork-gatherings": "^1.0.2", |
43 | 43 | "pull-abortable": "^4.1.0", |
44 | 44 | "pull-defer": "^0.2.2", |
45 | 45 | "pull-file": "~1.0.0", |
styles/markdown.mcss | ||
---|---|---|
@@ -1,6 +1,27 @@ | ||
1 | 1 | Markdown { |
2 | 2 | word-break: break-word |
3 | + (img) { | |
4 | + -pending { | |
5 | + border: 1px solid #DDD | |
6 | + background-color: #EEE | |
7 | + width: 120px | |
8 | + height: 40px | |
9 | + background-image: svg(fetching) | |
10 | + background-position: center | |
11 | + background-repeat: no-repeat | |
12 | + | |
13 | + @svg fetching { | |
14 | + width: 100px | |
15 | + height: 20px | |
16 | + content: '<text x='0' y='12'>Fetching image...</text>' | |
17 | + text { | |
18 | + font: caption | |
19 | + font-size: 12px | |
20 | + } | |
21 | + } | |
22 | + } | |
23 | + } | |
3 | 24 | (blockquote) { |
4 | 25 | margin: 1rem 0; |
5 | 26 | padding: 5px 20px; |
6 | 27 | border-left: 4px gainsboro solid; |
Built with git-ssb-web