- commit
- ad80bc6edcabdc326b5cddc2db118eb8c4f4b3b8
- parent
- 50667ac430a3989684bb7cbcb42d28aa0f5f1db5
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2017-11-19 11:30
use better icons
Diffstat
| M | static/scss/tree.scss | 10 | ---------- |
| M | static/scss/user.scss | 10 | ---------- |
| M | static/src/voterunner.js | 4 | ++-- |
| M | tpl/app.html | 4 | ++-- |
4 files changed, 4 insertions, 24 deletions
diff --git a/static/scss/tree.scss b/static/scss/tree.scss
@@ -40,10 +40,6 @@ 40 40 } 41 41 42 42 &.is-expanded > .node__body {43 -1 .node__expand:before {44 -1 content: "v";45 -1 }46 -147 43 .node__header { 48 44 border-bottom: 1px solid $color-border; 49 45 } @@ -62,12 +58,6 @@ 62 58 } 63 59 } 64 6065 -1 .node__expand {66 -1 &:before {67 -1 content: ">";68 -1 }69 -1 }70 -171 61 .node__preview { 72 62 opacity: 0.7; 73 63 }
diff --git a/static/scss/user.scss b/static/scss/user.scss
@@ -10,12 +10,6 @@ 10 10 } 11 11 } 12 1213 -1 .user__undelegate {14 -1 &:before {15 -1 content: "‒";16 -1 }17 -1 }18 -119 13 .user__name { 20 14 input { 21 15 font-size: 120%; @@ -27,10 +21,6 @@ 27 21 font-size: 120%; 28 22 padding: $padding; 29 23 line-height: 1.6;30 -131 -1 &:before {32 -1 content: "X";33 -1 }34 24 } 35 25 36 26 .user__comment textarea {
diff --git a/static/src/voterunner.js b/static/src/voterunner.js
@@ -114,12 +114,12 @@ var tplNode = function(nodes, node, ID) {
114 114 h('button', {
115 115 className: 'node__expand bar__item bar__item--button bar__item--left',
116 116 title: _(node.expanded ? 'collapse' : 'expand'),
117 -1 }),
-1 117 }, node.expanded ? '\u25BC' : '\u25B6'),
118 118 h('button', {
119 119 className: 'node__delegate bar__item bar__item--button bar__item--right',
120 120 title: _('delegate to ') + getName(node),
121 121 attributes: delegateAttrs,
122 -1 }, '+'),
-1 122 }, '\u2795'),
123 123 h('div', {className: 'node__votes bar__item bar__item--right'}, '' + getVotes(nodes, node)),
124 124 h('div', {className: 'node__name bar__item' + (!node.expanded && node.comment ? '' : ' bar__item--grow')}, getName(node)),
125 125 !node.expanded && node.comment && h('div', {className: 'node__preview bar__item bar__item--grow'}, node.comment.substr(0, 100)),
diff --git a/tpl/app.html b/tpl/app.html
@@ -22,13 +22,13 @@ 22 22 <div class="bar"> 23 23 <div class="user__delegation bar__item bar__item--grow">(no delegation)</div> 24 24 <span class="user__votes bar__item bar__item--right" title="number of votes of you and all your followers">1</span>25 -1 <button class="user__undelegate bar__item bar__item--button bar__item--right" title="revoke delegation"></button>-1 25 <button class="user__undelegate bar__item bar__item--button bar__item--right" title="revoke delegation">➖</button> 26 26 </div> 27 27 <div class="bar"> 28 28 <div class="user__name bar__item bar__item--grow"> 29 29 <input type="text" placeholder="<enter your name>" /> 30 30 </div>31 -1 <button title="remove your opinion" class="user__rm bar__item bar__item--button bar__item--right"></button>-1 31 <button title="remove your opinion" class="user__rm bar__item bar__item--button bar__item--right">❌</button> 32 32 </div> 33 33 <div class="user__comment"> 34 34 <textarea></textarea>