Commit 8611233549520a6d4415e9b337b9f4baebfb3b4f
1 parent
0ac5c50c
Веталь
Showing
3 changed files
with
14 additions
and
11 deletions
Show diff stats
common/modules/product/widgets/views/product_smart.php
@@ -28,7 +28,7 @@ use yii\helpers\Url; | @@ -28,7 +28,7 @@ use yii\helpers\Url; | ||
28 | echo '<strike><span id=\'old_cost\'>'.$product->variant->price_old.'</span> грн.</strike>'; | 28 | echo '<strike><span id=\'old_cost\'>'.$product->variant->price_old.'</span> грн.</strike>'; |
29 | } | 29 | } |
30 | 30 | ||
31 | - echo '<p class="cost">'.$product->variant->price.' грн.</p>'; | 31 | + echo '<p class="cost">'.$product->variant->price.' <span>грн.</span></p>'; |
32 | 32 | ||
33 | echo '</div>'; | 33 | echo '</div>'; |
34 | 34 |
frontend/views/catalog/product_item.php
@@ -38,7 +38,7 @@ use yii\helpers\Url; | @@ -38,7 +38,7 @@ use yii\helpers\Url; | ||
38 | echo '<strike><span id=\'old_cost\'>'.$product->variant->price_old.'</span> грн.</strike>'; | 38 | echo '<strike><span id=\'old_cost\'>'.$product->variant->price_old.'</span> грн.</strike>'; |
39 | } | 39 | } |
40 | 40 | ||
41 | - echo '<p class="cost">'.$product->variant->price.' грн.</p>'; | 41 | + echo '<p class="cost">'.$product->variant->price.' <span>грн.</span></p>'; |
42 | 42 | ||
43 | echo '</div>'; | 43 | echo '</div>'; |
44 | 44 |
frontend/web/css/style.css
@@ -107,15 +107,16 @@ a.myorders{color:#f75d50} | @@ -107,15 +107,16 @@ a.myorders{color:#f75d50} | ||
107 | border-top: 1px solid #d2d2d2; | 107 | border-top: 1px solid #d2d2d2; |
108 | } | 108 | } |
109 | .products ul{list-style:none;margin:0px;padding:0px;} | 109 | .products ul{list-style:none;margin:0px;padding:0px;} |
110 | -.products ul li.item{float:left;width:160px;margin:0px 35px 15px;text-align:center;position:relative;} | ||
111 | -.products ul li a.name{display:block;color:#494949;text-decoration:none;margin:15px 0px;height:30px;text-transform: uppercase;overflow: hidden;} | 110 | +.products ul li.item{float:left;width:192px;margin:0px 0 15px 0;text-align:center;position:relative;} |
111 | +.products ul li a.name{display:block;color:#333;font-size: 15px;text-decoration:none;margin:15px 0px;height:35px;overflow: hidden; box-sizing: border-box;padding: 0 10px;} | ||
112 | .products ul li .info{text-align: left;} | 112 | .products ul li .info{text-align: left;} |
113 | .pn{border:none;} | 113 | .pn{border:none;} |
114 | 114 | ||
115 | -.cost{color:#f75d50;font-size:20px;margin:0px;padding:0px;} | ||
116 | -.cost span.valute{font-size:16px;} | ||
117 | -strike{font-size:18px;} | ||
118 | - | 115 | +.cost{color:#f75d50;font-size:20px;margin:0;padding:0;} |
116 | +.cost span {font-size: 15px;} | ||
117 | +.cost span.valute{font-size:15px;} | ||
118 | +strike{font-size:20px;} | ||
119 | +strike span#old_cost {font-size: 15px;} | ||
119 | a.link_buy{font-size: 15px; display:block;margin:10px auto;width:122px;height:38px;line-height:38px;text-transform: uppercase;color:#ffffff;text-decoration:none;font-weight:600;text-align:center; | 120 | a.link_buy{font-size: 15px; display:block;margin:10px auto;width:122px;height:38px;line-height:38px;text-transform: uppercase;color:#ffffff;text-decoration:none;font-weight:600;text-align:center; |
120 | background: #95ba2f; | 121 | background: #95ba2f; |
121 | border-radius: 4px; | 122 | border-radius: 4px; |
@@ -177,7 +178,7 @@ a.more_map{color:#99a5ad;border-bottom:1px dotted #99a5ad;text-decoration:none;f | @@ -177,7 +178,7 @@ a.more_map{color:#99a5ad;border-bottom:1px dotted #99a5ad;text-decoration:none;f | ||
177 | 178 | ||
178 | 179 | ||
179 | .loyout{padding:20px 0px;} | 180 | .loyout{padding:20px 0px;} |
180 | -.leftbar{float:left;width:200px; } | 181 | +.leftbar{float:left;width:172px;margin-right: 20px; } |
181 | .rightbar{float:right;width:380px;margin-left:35px;} | 182 | .rightbar{float:right;width:380px;margin-left:35px;} |
182 | .rightbar2{float:right;width:320px;} | 183 | .rightbar2{float:right;width:320px;} |
183 | .content {overflow:hidden;min-height:500px;} | 184 | .content {overflow:hidden;min-height:500px;} |
@@ -397,7 +398,7 @@ ul.social {margin-top: 20px;} | @@ -397,7 +398,7 @@ ul.social {margin-top: 20px;} | ||
397 | .view_products2 li{margin:10px 0px;} | 398 | .view_products2 li{margin:10px 0px;} |
398 | 399 | ||
399 | 400 | ||
400 | -.pixbox{width:100%;height:200px;overflow: hidden;text-align: center;} | 401 | +.pixbox{width:160px;margin:0 auto;height:200px;overflow: hidden;text-align: center;} |
401 | 402 | ||
402 | 403 | ||
403 | .form-order{background:#f5f5f5;padding:10px;border:1px solid #d2d2d2;} | 404 | .form-order{background:#f5f5f5;padding:10px;border:1px solid #d2d2d2;} |
@@ -935,7 +936,7 @@ a.active{font-weight:bold;text-decoration: underline;} | @@ -935,7 +936,7 @@ a.active{font-weight:bold;text-decoration: underline;} | ||
935 | ul.product-special { | 936 | ul.product-special { |
936 | position: absolute; | 937 | position: absolute; |
937 | top: 0; | 938 | top: 0; |
938 | - left: 0; | 939 | + left: 16px; |
939 | } | 940 | } |
940 | ul.product-special li { | 941 | ul.product-special li { |
941 | color: #333; | 942 | color: #333; |
@@ -948,7 +949,9 @@ ul.product-special li { | @@ -948,7 +949,9 @@ ul.product-special li { | ||
948 | position: relative; | 949 | position: relative; |
949 | border-top-left-radius: 4px; | 950 | border-top-left-radius: 4px; |
950 | border-bottom-left-radius: 4px; | 951 | border-bottom-left-radius: 4px; |
952 | + margin-top: 8px; | ||
951 | } | 953 | } |
954 | +ul.product-special li:first-child {margin-top: 0} | ||
952 | ul.product-special li.top { | 955 | ul.product-special li.top { |
953 | background: #fbc665; | 956 | background: #fbc665; |
954 | } | 957 | } |