btn change

This commit is contained in:
Yuri Kuznetsov
2023-11-07 15:27:18 +02:00
parent 5eebc138ae
commit 9cb44622a5
5 changed files with 17 additions and 13 deletions
+2
View File
@@ -21,7 +21,9 @@
<span class="{{iconClass}}"></span>
{{/if}}
{{/if}}
<span>
{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}}
</span>
</a>
{{/each}}
+2 -2
View File
@@ -450,12 +450,12 @@ class ViewHelper {
}
if (iconHtml) {
html = iconHtml + ' ' + html;
html = iconHtml + ' ' + '<span>' + html + '</span>';
}
else if (iconClass) {
const iconHtml = $('<span>').addClass(iconClass).get(0).outerHTML;
html = iconHtml + ' ' + html;
html = iconHtml + ' ' + '<span>' + html + '</span>';
}
const tag = link ? '<a>' : '<button>';
+1 -1
View File
@@ -466,7 +466,7 @@ class ModalView extends View {
}
if (o.iconHtml && !o.html) {
o.html = o.iconHtml + ' ' + this.getHelper().escapeString(o.text);
o.html = o.iconHtml + ' <span>' + this.getHelper().escapeString(o.text) + '</span>';
}
o.onClick = o.onClick || ((d, e) => {
+3 -10
View File
@@ -3214,20 +3214,13 @@ a.field-info > span.fa-info-circle {
.btn-default > .fa-sm.fa-rss {
position: relative;
top: -1px;
padding-right: 3px;
padding-right: 1px;
}
.header-buttons > .btn {
> .fas,
> .far {
padding-right: 2px;
}
}
.header-buttons > .btn > .fa-plus.fa-sm {
.btn:not(.btn-icon) > .fa-plus.fa-sm:first-child {
position: relative;
top: -1px;
padding-right: 3px;
padding-right: 1px;
}
.transform-flip,
+9
View File
@@ -244,6 +244,15 @@ a.btn {
}
}
.btn:not(.btn-icon) {
> .fas,
> .far {
&:first-child + span {
padding-left: 2px;
}
}
}
.btn-text {
color: var(--btn-text-color);
//border-radius: 0;