Commit 7c917680f0779bbe25cecd9591afba7cdf1fad22
1 parent
9838b24c
badge_cart
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
frontend/views/layouts/main.php
| @@ -240,6 +240,7 @@ _________________________________________________________ --> | @@ -240,6 +240,7 @@ _________________________________________________________ --> | ||
| 240 | <!--/.nav-collapse --> | 240 | <!--/.nav-collapse --> |
| 241 | 241 | ||
| 242 | <div class="cart-item" id="cart"> | 242 | <div class="cart-item" id="cart"> |
| 243 | + <span class="badge">0</span> | ||
| 243 | <?php | 244 | <?php |
| 244 | echo Html::a( | 245 | echo Html::a( |
| 245 | Html::tag( | 246 | Html::tag( |
frontend/web/css/style.css
| @@ -4538,4 +4538,9 @@ a.list-group-item.active > .badge, | @@ -4538,4 +4538,9 @@ a.list-group-item.active > .badge, | ||
| 4538 | padding-right: 20px; | 4538 | padding-right: 20px; |
| 4539 | outline: none; | 4539 | outline: none; |
| 4540 | margin-bottom: 20px; | 4540 | margin-bottom: 20px; |
| 4541 | +} | ||
| 4542 | +#cart .badge{ | ||
| 4543 | + position: absolute; | ||
| 4544 | + top: 2px; | ||
| 4545 | + right: 4px; | ||
| 4541 | } | 4546 | } |
| 4542 | \ No newline at end of file | 4547 | \ No newline at end of file |