【发布时间】:2016-07-14 23:48:42
【问题描述】:
我有这个 simple_form
= f.association :offence_categories, collection: OffenceCategory.where(prefix: ''), as: :check_boxes, wrapper_html: {class: 'buttons buttons-offence_categories'}, label: ''
由于 check_boxes 类,它在标签前输出了一个项目符号
&::before
content: ''
width: 8px
height: 8px
border: 2px solid #999
display: block
float: left
position: absolute
top: 12px
left: 10px
+border-radius(8px)
我不想仅仅为了改变它而创建另一个类。我想在表单中进行本地样式更改以删除 %before
有人知道怎么做吗?
【问题讨论】:
标签: ruby-on-rails haml simple-form