Use icons instead of Unicode symbols for buttons

Fixes #26.
This commit is contained in:
Jonas Schäfer
2021-01-18 17:25:38 +01:00
parent 16f990f475
commit c1dbec51ab
17 changed files with 333 additions and 49 deletions

View File

@@ -402,24 +402,21 @@ div.form.layout-expanded {
}
/* icon support */
svg.icon {
display: inline-block;
vertical-align: middle;
width: 1em;
height: 1em;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
}
/* form buttons */
.btn-edit:before {
content: '';
}
.btn-delete:before {
content: '🗑';
}
.btn-link:before {
content: '+';
}
.btn-more:before {
content: '';
}
input[type="submit"], button, .button {
margin: 0 $w-s2;
padding: $w-s3 $w-s1;
@@ -430,6 +427,23 @@ input[type="submit"], button, .button {
margin: 0 $w-s4;
padding: $w-s4 $w-s2;
}
& > svg.icon:first-child {
margin-right: $w-s2;
td & {
margin-right: $w-s3;
}
}
& > svg.icon:last-child {
margin-right: 0;
margin-top: -$w-s4;
td & {
margin-right: 0;
}
}
}
a.button {