Commit 7c917680f0779bbe25cecd9591afba7cdf1fad22

Authored by Eugeny Galkovskiy
1 parent 9838b24c

badge_cart

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