Fix theme settings HAML lint nits

This commit is contained in:
Andreas Nedbal 2022-02-13 00:43:23 +01:00 committed by Andreas Nedbal
parent ec680d6722
commit 56d42ebf35
1 changed files with 23 additions and 23 deletions

View File

@ -15,9 +15,9 @@
.row
.col-sm-6
= f.text_field :background_color, class: 'color', data: { default: 0xF0EDF4 }
= f.text_field :background_color, class: "color", data: { default: 0xF0EDF4 }
.col-sm-6
= f.text_field :body_text, class: 'color', data: { default: 0x000000 }
= f.text_field :body_text, class: "color", data: { default: 0x000000 }
.card
.card-body
%h2= t(".colors.heading")
@ -25,56 +25,56 @@
.row
.col-sm-6
= f.text_field :primary_color, class: 'color', data: { default: 0x5E35B1 }
= f.text_field :primary_color, class: "color", data: { default: 0x5E35B1 }
.col-sm-6
= f.text_field :primary_text, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :primary_text, class: "color", data: { default: 0xFFFFFF }
.col-sm-12
.alert.alert-primary= t(".colors.alert.example", type: t(".colors.alert.type.primary"))
.row
.col-sm-6
= f.text_field :danger_color, class: 'color', data: { default: 0xDC3545 }
= f.text_field :danger_color, class: "color", data: { default: 0xDC3545 }
.col-sm-6
= f.text_field :danger_text, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :danger_text, class: "color", data: { default: 0xFFFFFF }
.col-sm-12
.alert.alert-danger= t(".colors.alert.example", type: t(".colors.alert.type.danger"))
.row
.col-sm-6
= f.text_field :warning_color, class: 'color', data: { default: 0xFFC107 }
= f.text_field :warning_color, class: "color", data: { default: 0xFFC107 }
.col-sm-6
= f.text_field :warning_text, class: 'color', data: { default: 0x292929 }
= f.text_field :warning_text, class: "color", data: { default: 0x292929 }
.col-sm-12
.alert.alert-warning= t(".colors.alert.example", type: t(".colors.alert.type.warning"))
.row
.col-sm-6
= f.text_field :info_color, class: 'color', data: { default: 0x17A2B8 }
= f.text_field :info_color, class: "color", data: { default: 0x17A2B8 }
.col-sm-6
= f.text_field :info_text, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :info_text, class: "color", data: { default: 0xFFFFFF }
.col-sm-12
.alert.alert-info= t(".colors.alert.example", type: t(".colors.alert.type.info"))
.row
.col-sm-6
= f.text_field :success_color, class: 'color', data: { default: 0x28A745 }
= f.text_field :success_color, class: "color", data: { default: 0x28A745 }
.col-sm-6
= f.text_field :success_text, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :success_text, class: "color", data: { default: 0xFFFFFF }
.col-sm-12
.alert.alert-success= t(".colors.alert.example", type: t(".colors.alert.type.success"))
.row
.col-sm-6
= f.text_field :dark_color, class: 'color', data: { default: 0x343A40 }
= f.text_field :dark_color, class: "color", data: { default: 0x343A40 }
.col-sm-6
= f.text_field :dark_text, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :dark_text, class: "color", data: { default: 0xFFFFFF }
.col-sm-12
%a.btn.btn-dark.mb-3{ href: '#' }= t(".colors.button.example", type: t(".colors.button.type.dark"))
%a.btn.btn-dark.mb-3{ href: "#" }= t(".colors.button.example", type: t(".colors.button.type.dark"))
.row
.col-sm-6
= f.text_field :light_color, class: 'color', data: { default: 0xF8F9FA }
= f.text_field :light_color, class: "color", data: { default: 0xF8F9FA }
.col-sm-6
= f.text_field :light_text, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :light_text, class: "color", data: { default: 0xFFFFFF }
.col-sm-12
%a.btn.btn-light.mb-3{ href: '#' }= t(".colors.button.example", type: t(".colors.button.type.light"))
%a.btn.btn-light.mb-3{ href: "#" }= t(".colors.button.example", type: t(".colors.button.type.light"))
.row
.col-sm-6
= f.text_field :muted_text, class: 'color', data: { default: 0x6C757D }
= f.text_field :muted_text, class: "color", data: { default: 0x6C757D }
.col-sm-6
%p.pt-4.text-muted= t(".colors.text.example")
.card
@ -84,9 +84,9 @@
.row
.col-sm-6
= f.text_field :input_color, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :input_color, class: "color", data: { default: 0xFFFFFF }
.col-sm-6
= f.text_field :input_text, class: 'color', data: { default: 0x000000 }
= f.text_field :input_text, class: "color", data: { default: 0x000000 }
.card
.card-body
%h2= t(".raised.heading")
@ -94,9 +94,9 @@
.row
.col-sm-6
= f.text_field :raised_background, class: 'color', data: { default: 0xFFFFFF }
= f.text_field :raised_background, class: "color", data: { default: 0xFFFFFF }
.col-sm-6
= f.text_field :raised_accent, class: 'color', data: { default: 0xF7F7F7 }
= f.text_field :raised_accent, class: "color", data: { default: 0xF7F7F7 }
.card-footer
%p= t(".raised.accent.example")
.card