Fix usages of btn-block class
This commit is contained in:
parent
49a972bfd3
commit
5ce9972a3e
|
@ -47,13 +47,17 @@
|
|||
.card-body
|
||||
.row.mx-n2
|
||||
.col.px-2
|
||||
%button.btn.btn-block.btn-success.js-theme-button{ data: { theme: "theme-success" } }= t(".customize.themes.green")
|
||||
.d-grid
|
||||
%button.btn.btn-success.js-theme-button{ data: { theme: "theme-success" } }= t(".customize.themes.green")
|
||||
.col.px-2
|
||||
%button.btn.btn-block.btn-warning.js-theme-button{ data: { theme: "theme-warning" } }= t(".customize.themes.orange")
|
||||
.d-grid
|
||||
%button.btn.btn-warning.js-theme-button{ data: { theme: "theme-warning" } }= t(".customize.themes.orange")
|
||||
.col.px-2
|
||||
%button.btn.btn-block.btn-danger.js-theme-button{ data: { theme: "theme-danger" } }= t(".customize.themes.red")
|
||||
.d-grid
|
||||
%button.btn.btn-danger.js-theme-button{ data: { theme: "theme-danger" } }= t(".customize.themes.red")
|
||||
.col.px-2
|
||||
%button.btn.btn-block.btn-default.js-theme-button{ data: { theme: "reset" } }= t(".customize.themes.reset")
|
||||
.d-grid
|
||||
%button.btn.btn-default.js-theme-button{ data: { theme: "reset" } }= t(".customize.themes.reset")
|
||||
|
||||
.container.text-center
|
||||
%h2.mb-4= t(".more_features")
|
||||
|
|
|
@ -50,9 +50,11 @@
|
|||
%strong= t(".promote.message")
|
||||
.row
|
||||
.col-sm-5.offset-sm-1
|
||||
%button.btn.btn-block.btn-primary#create-account= t(".promote.create")
|
||||
.d-grid
|
||||
%button.btn.btn-primary#create-account= t(".promote.create")
|
||||
.col-sm-5
|
||||
%button.btn.btn-block.btn-default#new-question= t(".promote.another")
|
||||
.d-grid
|
||||
%button.btn.btn-default#new-question= t(".promote.another")
|
||||
.row
|
||||
.col-xs-12.col-sm-10.offset-sm-1.text-center
|
||||
%small= t(".promote.join", app_title: APP_CONFIG["site_name"])
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
.profile__actions
|
||||
- type ||= :nil
|
||||
- if user_signed_in? && user == current_user
|
||||
%a.btn.btn-dark.btn-block{ href: settings_profile_path } Edit profile
|
||||
.d-grid
|
||||
%a.btn.btn-dark{ href: settings_profile_path } Edit profile
|
||||
- elsif user_signed_in?
|
||||
.d-grid.gap-2
|
||||
- if current_user.following? user
|
||||
%button.btn.btn-primary.btn-block{ type: :button, name: 'user-action', data: { action: :unfollow, type: type, target: user.screen_name } }
|
||||
%button.btn.btn-primary{ type: :button, name: 'user-action', data: { action: :unfollow, type: type, target: user.screen_name } }
|
||||
= t("voc.unfollow")
|
||||
- else
|
||||
%button.btn.btn-primary.btn-block{ type: :button, name: 'user-action', data: { action: :follow, type: type, target: user.screen_name } }
|
||||
%button.btn.btn-primary{ type: :button, name: 'user-action', data: { action: :follow, type: type, target: user.screen_name } }
|
||||
= t("voc.follow")
|
||||
.btn-group.btn-block
|
||||
%button.btn.btn-light.btn-block.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
.btn-group
|
||||
%button.btn.btn-light.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
= t(".title")
|
||||
%span.caret
|
||||
.dropdown-menu
|
||||
|
|
Loading…
Reference in New Issue