From 22cd966debeb83e361d059b4ef05f68ba9416a12 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Tue, 25 Apr 2017 19:15:24 +0300 Subject: [PATCH] check --- frontend/views/category/view.php | 8 +++++++- frontend/web/css/style.css | 31 +++++++++++++++++++++++++++++++ frontend/web/img/check.png | Bin 0 -> 15272 bytes 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 frontend/web/img/check.png diff --git a/frontend/views/category/view.php b/frontend/views/category/view.php index c61220c..b0f538f 100755 --- a/frontend/views/category/view.php +++ b/frontend/views/category/view.php @@ -143,8 +143,14 @@ _________________________________________________________ --> '/category/view', 'id' => $model->id, 'filter' => $filterHelper->buildLink($option), + ], + [ + //'class' => 'sads', ] - ) + ), + [ + 'class' => 'radio-but', + ] ); } ?> diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 97ded00..bb0f5dc 100644 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -4493,3 +4493,34 @@ a.list-group-item.active > .badge, left: 15px; right: 15px; } + +.radio-but{ + padding: 5px 0 5px 38px; + position: relative; + margin: 5px 0; +} +.radio-but a:before{ + content:''; + position:absolute; + left:0; + top:0; + width: 28px; + height:28px; + background: rgb(215, 220, 222); + border-radius: 5px; +} +.radio-but.checked a:before{ + background: rgb(26, 188, 156); +} +.radio-but.checked a:after{ + content: ''; + position: absolute; + left: 0; + top: 0; + width: 28px; + height: 28px; + background-image: url(../img/check.png); + background-size: 70%; + background-position: center; + background-repeat: no-repeat; +} \ No newline at end of file diff --git a/frontend/web/img/check.png b/frontend/web/img/check.png new file mode 100644 index 0000000..bb8a9d3 Binary files /dev/null and b/frontend/web/img/check.png differ -- libgit2 0.21.4