Add a reusable %tag and use it for the ACL 'tags' ready to use elsewhere

pull/4253/head
John Cowen 7 years ago
parent 76017b69b5
commit d2d501a4a4

@ -1,4 +1,9 @@
@import './icons';
@import './tag';
td strong {
@extend %tag;
background-color: $gray;
}
th {
color: $text-light !important;
}
@ -53,12 +58,6 @@ table td a {
tbody {
overflow-x: visible !important;
}
td strong {
display: inline-block;
background-color: $gray;
padding: 1px 5px;
border-radius: $radius-small;
}
th,
td:not(.actions),
td:not(.actions) a {

@ -0,0 +1,5 @@
%tag {
display: inline-block;
padding: 1px 5px;
border-radius: $radius-small;
}

@ -1,8 +1,13 @@
@import '../../../components/tag';
html.template-service.template-show main dl {
display: flex;
margin-bottom: 1.4em;
}
html.template-service.template-show main dt::after {
content: ':';
margin-right: 0.2em;
html.template-service.template-show main dt {
display: none;
}
html.template-service.template-show main dd span {
@extend %tag;
background-color: $gray;
margin-bottom: 0.5em;
}

@ -19,7 +19,9 @@
<dl>
<dt>Tags</dt>
<dd data-test-tags>
{{join ', ' item.Tags}}
{{#each item.Tags as |item|}}
<span>{{item}}</span>
{{/each}}
</dd>
</dl>
{{/if}}

Loading…
Cancel
Save