These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Encore\Admin\Form\Field; |
||
4 | |||
5 | use Encore\Admin\Admin; |
||
6 | |||
7 | class CheckboxCard extends CheckboxButton |
||
8 | { |
||
9 | protected function addStyle() |
||
10 | { |
||
11 | $style = <<<'STYLE' |
||
12 | .card-group label { |
||
13 | cursor: pointer; |
||
14 | margin-right: 8px; |
||
15 | font-weight: 400; |
||
16 | } |
||
17 | |||
18 | .card-group .panel { |
||
19 | margin-bottom: 0px; |
||
20 | } |
||
21 | |||
22 | .card-group .panel-body { |
||
23 | padding: 10px 15px; |
||
24 | } |
||
25 | |||
26 | .card-group .active { |
||
27 | border: 2px solid #367fa9; |
||
28 | } |
||
29 | STYLE; |
||
30 | |||
31 | Admin::style($style); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function render() |
||
38 | { |
||
39 | $this->addStyle(); |
||
40 | |||
41 | return parent::render(); |
||
0 ignored issues
–
show
Bug
Compatibility
introduced
by
Loading history...
|
|||
42 | } |
||
43 | } |
||
44 |