Add more button colors, icon style for small buttons
Plus tag icon for the tag buttons
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
</p>
|
</p>
|
||||||
<p class="tags">
|
<p class="tags">
|
||||||
{{#each expense.tags as |tag|}}
|
{{#each expense.tags as |tag|}}
|
||||||
<button class="small" role="none">{{tag}}</button>
|
<button class="small yellow" role="none">
|
||||||
|
<IconTag />{{tag}}
|
||||||
|
</button>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</p>
|
</p>
|
||||||
{{#if this.showDeleteButton}}
|
{{#if this.showDeleteButton}}
|
||||||
|
|||||||
+34
-13
@@ -31,32 +31,53 @@ button, input[type=submit], .button {
|
|||||||
&.small {
|
&.small {
|
||||||
font-size: 0.86rem;
|
font-size: 0.86rem;
|
||||||
padding: 0.2rem 0.8rem;
|
padding: 0.2rem 0.8rem;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-right: 0.4rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.danger:not(:disabled) {
|
&.danger:not(:disabled) {
|
||||||
color: $red;
|
color: $red;
|
||||||
background-color: rgba(40, 21, 21, 0.6);
|
background-color: rgba(40, 21, 21, 0.6);
|
||||||
border-color: rgba(40, 21, 21, 1);
|
border-color: rgba(40, 21, 21, 1);
|
||||||
|
&:hover { background-color: rgba(40, 21, 21, 0.8); }
|
||||||
&:hover {
|
&:focus, &:active, &.active { border-color: $red; }
|
||||||
background-color: rgba(40, 21, 21, 0.8);
|
|
||||||
}
|
|
||||||
&:focus, &:active, &.active {
|
|
||||||
border-color: $red;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.green:not(:disabled) {
|
&.green:not(:disabled) {
|
||||||
color: $green;
|
color: $green;
|
||||||
background-color: rgba(21, 40, 21, 0.6);
|
background-color: rgba(21, 40, 21, 0.6);
|
||||||
border-color: rgba(21, 40, 21, 1);
|
border-color: rgba(21, 40, 21, 1);
|
||||||
|
&:hover { background-color: rgba(21, 40, 21, 0.8); }
|
||||||
|
&:focus, &:active, &.active { border-color: $green; }
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&.pink:not(:disabled) {
|
||||||
background-color: rgba(21, 40, 21, 0.8);
|
color: $pink;
|
||||||
}
|
background-color: rgba(40, 21, 40, 0.6);
|
||||||
&:focus, &:active, &.active {
|
border-color: rgba(40, 21, 40, 1);
|
||||||
border-color: $green;
|
&:hover { background-color: rgba(40, 21, 40, 0.8); }
|
||||||
}
|
&:focus, &:active, &.active { border-color: $pink; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.purple:not(:disabled) {
|
||||||
|
color: $purple;
|
||||||
|
background-color: rgba(24, 21, 40, 0.6);
|
||||||
|
border-color: rgba(24, 21, 40, 1);
|
||||||
|
&:hover { background-color: rgba(24, 21, 40, 0.8); }
|
||||||
|
&:focus, &:active, &.active { border-color: $purple; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.yellow:not(:disabled) {
|
||||||
|
color: $yellow;
|
||||||
|
background-color: rgba(40, 40, 21, 0.6);
|
||||||
|
border-color: rgba(40, 40, 21, 1);
|
||||||
|
&:hover { background-color: rgba(40, 40, 21, 0.8); }
|
||||||
|
&:focus, &:active, &.active { border-color: $yellow; }
|
||||||
}
|
}
|
||||||
|
|
||||||
&.icon {
|
&.icon {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg>
|
||||||
|
After Width: | Height: | Size: 355 B |
Reference in New Issue
Block a user