cambiar btn-sm para que tenga el tamaño de badge

This commit is contained in:
f 2021-05-07 17:31:13 -03:00
parent 6df7f09c26
commit 418ffb8463
2 changed files with 7 additions and 3 deletions

View file

@ -214,6 +214,10 @@ svg {
} }
} }
.btn-sm {
@extend .badge
}
.black-bg { .black-bg {
color: $white; color: $white;
background-color: $black; background-color: $black;

View file

@ -16,11 +16,11 @@
- next if layout.hidden? - next if layout.hidden?
%tr %tr
%th= layout.humanized_name %th= layout.humanized_name
%td.pl-3= link_to t('posts.add'), new_site_post_path(@site, **@filter_params), class: 'btn btn-secondary badge' %td.pl-3= link_to t('posts.add'), new_site_post_path(@site, **@filter_params), class: 'btn btn-secondary btn-sm'
- if @filter_params[:layout] == layout.value - if @filter_params[:layout] == layout.value
%td= link_to t('posts.remove_filter'), site_posts_path(@site, **@filter_params.merge(layout: nil)), class: 'btn btn-primary badge' %td= link_to t('posts.remove_filter'), site_posts_path(@site, **@filter_params.merge(layout: nil)), class: 'btn btn-primary btn-sm'
- else - else
%td= link_to t('posts.filter'), site_posts_path(@site, **@filter_params.merge(layout: layout.value)), class: 'btn btn-secondary badge' %td= link_to t('posts.filter'), site_posts_path(@site, **@filter_params.merge(layout: layout.value)), class: 'btn btn-secondary btn-sm'
- if policy(@site).edit? - if policy(@site).edit?
= link_to t('sites.edit.btn', site: @site.title), edit_site_path(@site), class: 'btn' = link_to t('sites.edit.btn', site: @site.title), edit_site_path(@site), class: 'btn'