{"id":3909,"date":"2019-04-15T08:48:52","date_gmt":"2019-04-15T04:18:52","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/?p=3909"},"modified":"2019-04-15T19:17:28","modified_gmt":"2019-04-15T14:47:28","slug":"how-design-shopping-cart-ui-using-css-and-js","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/how-design-shopping-cart-ui-using-css-and-js\/","title":{"rendered":"\u0637\u0631\u0627\u062d\u06cc \u0631\u0627\u0628\u0637 \u06a9\u0627\u0631\u0628\u0631\u06cc (UI) \u0633\u0628\u062f\u062e\u0631\u06cc\u062f \u0641\u0631\u0648\u0634\u06af\u0627\u0647 \u0628\u0627 CSS \u0648 JavaScript"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/how-design-shopping-cart-ui-using-css-and-js\/#%da%a9%d8%af%d9%87%d8%a7%db%8c_html_%d8%b3%d8%a8%d8%af_%d8%ae%d8%b1%db%8c%d8%af\" >\u06a9\u062f\u0647\u0627\u06cc HTML \u0633\u0628\u062f \u062e\u0631\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/how-design-shopping-cart-ui-using-css-and-js\/#%da%a9%d8%af%d9%87%d8%a7%db%8c_css_%d8%b3%d8%a8%d8%af_%d8%ae%d8%b1%db%8c%d8%af\" >\u06a9\u062f\u0647\u0627\u06cc CSS \u0633\u0628\u062f \u062e\u0631\u06cc\u062f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/how-design-shopping-cart-ui-using-css-and-js\/#%da%a9%d8%af_%d8%ac%d8%a7%d9%88%d8%a7_%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa_%d8%b3%d8%a8%d8%af_%d8%ae%d8%b1%db%8c%d8%af\" >\u06a9\u062f \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0633\u0628\u062f \u062e\u0631\u06cc\u062f<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p>\u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u0628\u062e\u0634\u200c\u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u0641\u0631\u0648\u0634\u06af\u0627\u0647 \u0622\u0646\u0644\u0627\u06cc\u0646 \u0628\u0647\u200c\u062d\u0633\u0627\u0628 \u0645\u06cc\u200c\u0622\u06cc\u062f\u060c<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0646\u062d\u0648 \u0633\u0627\u062e\u062a \u0633\u0628\u062f \u062e\u0631\u06cc\u062f (Shopping Cart ) \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong> HTML \u0648 CSS3<\/strong> \u0631\u0627 \u0622\u0645\u0648\u0632\u0634 \u062f\u0647\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0627\u0632 \u0641\u0648\u0646\u062a\u00ad\u200c\u0647\u0627\u06cc \u06af\u0648\u06af\u0644\u060c \u0628\u0647\u200c\u062e\u0635\u0648\u0635 \u00abRoboto\u00bb\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645. \u0648 \u06a9\u062f\u0647\u0627\u06cc Javascript \u0647\u0645 \u0628\u0631\u0627\u06cc \u0627\u0646\u06cc\u0645\u0634\u0646 \u0648 \u062a\u0639\u062f\u0627\u062f \u0645\u0648\u062c\u0648\u062f\u06cc \u0633\u0628\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%da%a9%d8%af%d9%87%d8%a7%db%8c_html_%d8%b3%d8%a8%d8%af_%d8%ae%d8%b1%db%8c%d8%af\"><\/span><strong>\u06a9\u062f\u0647\u0627\u06cc HTML \u0633\u0628\u062f \u062e\u0631\u06cc\u062f <br \/>\n<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>\u06af\u0627\u0645 \u06f1<\/strong>: \u0627\u0628\u062a\u062f\u0627 \u0633\u0627\u062e\u062a\u0627\u0631 HTML \u0631\u0627 \u0645\u06cc\u200c\u0633\u0627\u0632\u06cc\u0645.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u06cc\u06a9 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 div \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u0622\u0646 \u0631\u0627 \u00ab.shopping-cart\u00bb \u0645\u06cc\u200c\u00ad\u0646\u0627\u0645\u06cc\u0645.<\/p>\n<p>\u062f\u0631 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u060c \u06cc\u06a9 \u0639\u0646\u0648\u0627\u0646 \u0648 \u0633\u0647 \u0622\u06cc\u062a\u0645 \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0647\u0633\u062a\u0646\u062f:<\/p>\n<ul>\n<li>\u062f\u0648 \u062f\u06a9\u0645\u0647\u060c \u062f\u06a9\u0645\u0647 \u062d\u0630\u0641 (Delete) \u0648 \u062f\u06a9\u0645\u0647 \u0645\u0648\u0631\u062f\u00ad\u0639\u0644\u0627\u0642\u0647 (Favorite)<\/li>\n<li>\u062a\u0635\u0648\u06cc\u0631 \u0645\u062d\u0635\u0648\u0644<\/li>\n<li>\u0646\u0627\u0645 \u0648 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0645\u062d\u0635\u0648\u0644<\/li>\n<li>\u062f\u06a9\u0645\u0647\u00ad\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0639\u062f\u0627\u062f \u0645\u062d\u0635\u0648\u0644\u0627\u062a \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u00ad\u06a9\u0646\u0646\u062f<\/li>\n<li>\u0642\u06cc\u0645\u062a \u06a9\u0644<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xhtml\" data-enlighter-title=\"\">&lt;div class=&quot;shopping-cart&quot;&gt;\r\n  &lt;!-- Title --&gt;\r\n  &lt;div class=&quot;title&quot;&gt;\r\n    Shopping Bag\r\n  &lt;\/div&gt;\r\n \r\n  &lt;!-- Product #1 --&gt;\r\n  &lt;div class=&quot;item&quot;&gt;\r\n    &lt;div class=&quot;buttons&quot;&gt;\r\n      &lt;span class=&quot;delete-btn&quot;&gt;&lt;\/span&gt;\r\n      &lt;span class=&quot;like-btn&quot;&gt;&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;image&quot;&gt;\r\n      &lt;img src=&quot;item-1.png&quot; alt=&quot;&quot; \/&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;description&quot;&gt;\r\n      &lt;span&gt;Common Projects&lt;\/span&gt;\r\n      &lt;span&gt;Bball High&lt;\/span&gt;\r\n      &lt;span&gt;White&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;quantity&quot;&gt;\r\n      &lt;button class=&quot;plus-btn&quot; type=&quot;button&quot; name=&quot;button&quot;&gt;\r\n        &lt;img src=&quot;plus.svg&quot; alt=&quot;&quot; \/&gt;\r\n      &lt;\/button&gt;\r\n      &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;1&quot;&gt;\r\n      &lt;button class=&quot;minus-btn&quot; type=&quot;button&quot; name=&quot;button&quot;&gt;\r\n        &lt;img src=&quot;minus.svg&quot; alt=&quot;&quot; \/&gt;\r\n      &lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;total-price&quot;&gt;$549&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n \r\n  &lt;!-- Product #2 --&gt;\r\n  &lt;div class=&quot;item&quot;&gt;\r\n    &lt;div class=&quot;buttons&quot;&gt;\r\n      &lt;span class=&quot;delete-btn&quot;&gt;&lt;\/span&gt;\r\n      &lt;span class=&quot;like-btn&quot;&gt;&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;image&quot;&gt;\r\n      &lt;img src=&quot;item-2.png&quot; alt=&quot;&quot;\/&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;description&quot;&gt;\r\n      &lt;span&gt;Maison Margiela&lt;\/span&gt;\r\n      &lt;span&gt;Future Sneakers&lt;\/span&gt;\r\n      &lt;span&gt;White&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;quantity&quot;&gt;\r\n      &lt;button class=&quot;plus-btn&quot; type=&quot;button&quot; name=&quot;button&quot;&gt;\r\n        &lt;img src=&quot;plus.svg&quot; alt=&quot;&quot; \/&gt;\r\n      &lt;\/button&gt;\r\n      &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;1&quot;&gt;\r\n      &lt;button class=&quot;minus-btn&quot; type=&quot;button&quot; name=&quot;button&quot;&gt;\r\n        &lt;img src=&quot;minus.svg&quot; alt=&quot;&quot; \/&gt;\r\n      &lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;total-price&quot;&gt;$870&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n \r\n  &lt;!-- Product #3 --&gt;\r\n  &lt;div class=&quot;item&quot;&gt;\r\n    &lt;div class=&quot;buttons&quot;&gt;\r\n      &lt;span class=&quot;delete-btn&quot;&gt;&lt;\/span&gt;\r\n      &lt;span class=&quot;like-btn&quot;&gt;&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;image&quot;&gt;\r\n      &lt;img src=&quot;item-3.png&quot; alt=&quot;&quot; \/&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;description&quot;&gt;\r\n      &lt;span&gt;Our Legacy&lt;\/span&gt;\r\n      &lt;span&gt;Brushed Scarf&lt;\/span&gt;\r\n      &lt;span&gt;Brown&lt;\/span&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;quantity&quot;&gt;\r\n      &lt;button class=&quot;plus-btn&quot; type=&quot;button&quot; name=&quot;button&quot;&gt;\r\n        &lt;img src=&quot;plus.svg&quot; alt=&quot;&quot; \/&gt;\r\n      &lt;\/button&gt;\r\n      &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;1&quot;&gt;\r\n      &lt;button class=&quot;minus-btn&quot; type=&quot;button&quot; name=&quot;button&quot;&gt;\r\n        &lt;img src=&quot;minus.svg&quot; alt=&quot;&quot; \/&gt;\r\n      &lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n \r\n    &lt;div class=&quot;total-price&quot;&gt;$349&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%da%a9%d8%af%d9%87%d8%a7%db%8c_css_%d8%b3%d8%a8%d8%af_%d8%ae%d8%b1%db%8c%d8%af\"><\/span><strong>\u06a9\u062f\u0647\u0627\u06cc CSS \u0633\u0628\u062f \u062e\u0631\u06cc\u062f <br \/>\n<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0641\u0648\u0646\u062a\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645\u060c \u0631\u0627 \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u062f\u0627\u0631\u06cc\u062f.<\/p>\n<p>\u062d\u0627\u0644\u060c \u0628\u0627 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0628\u0631\u062e\u06cc \u0631\u0648\u0634\u00ad\u200c\u0647\u0627 (style) \u0631\u0627 \u0628\u0647 \u0628\u062f\u0646\u0647 (body) \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">* {\r\n  box-sizing: border-box;\r\n}\r\n \r\nhtml,\r\nbody {\r\n  width: 100%;\r\n  height: 100%;\r\n  margin: 0;\r\n  background-color: #7EC855;\r\n  font-family: &#039;Roboto&#039;, sans-serif;\r\n}<\/pre>\n<p style=\"direction: rtl;\">\u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0631\u0627 \u062f\u0631 \u0627\u0646\u062f\u0627\u0632\u0647 \u06f7\u06f5\u06f0\u00d7\u06f4\u06f2\u06f3 \u067e\u06cc\u06a9\u0633\u0644 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0645\u0627 \u0627\u0632 \u0641\u0644\u06a9\u0633\u200c\u00ad\u0628\u0627\u06a9\u0633 (flexbox) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0631\u0627 \u0637\u0648\u0631\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0641\u0644\u06a9\u0633 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u062f \u0648 \u062c\u0647\u062a \u0641\u0644\u06a9\u0633 \u0639\u0645\u0648\u062f\u06cc \u0628\u0627\u0634\u062f\u060c \u0632\u06cc\u0631\u0627 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\u060c \u062c\u0647\u062a \u0641\u0644\u06a9\u0633 \u0627\u0641\u0642\u06cc \u0627\u0633\u062a.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">.shopping-cart {\r\n  width: 750px;\r\n  height: 423px;\r\n  margin: 80px auto;\r\n  background: #FFFFFF;\r\n  box-shadow: 1px 2px 3px 0px rgba(0,0,0,0.10);\r\n  border-radius: 6px;\r\n \r\n  display: flex;\r\n  flex-direction: column;\r\n}<\/pre>\n<p>\u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0631\u0627 \u0628\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0627\u0631\u062a\u0641\u0627\u0639 \u00ab\u0639\u0646\u0648\u0627\u0646\u00bb \u0628\u0647 \u06f6\u06f0 \u067e\u06cc\u06a9\u0633\u0644 \u0648 \u0627\u0636\u0627\u0641\u0647 \u0646\u0645\u0648\u062f\u0646 \u0628\u0631\u062e\u06cc \u0633\u0628\u06a9\u00ad\u200c\u0647\u0627\u06cc (style) \u067e\u0627\u06cc\u0647\u200c\u00ad\u0627\u06cc \u0634\u0631\u0648\u0639 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645. \u0633\u067e\u0633\u060c \u0628\u0647 \u0633\u0631\u0627\u063a \u0633\u0647 \u0622\u06cc\u062a\u0645\u06cc \u06a9\u0647 \u062f\u0631 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0647\u0633\u062a\u0646\u062f\u060c \u0645\u06cc\u00ad\u200c\u0631\u0648\u06cc\u0645. \u0627\u0631\u062a\u0641\u0627\u0639 \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0627\u06cc\u0646 \u0633\u0647 \u0645\u0648\u0631\u062f \u0631\u0627 \u06f1\u06f2\u06f0 \u067e\u06cc\u06a9\u0633\u0644 \u0642\u0631\u0627\u0631 \u0645\u06cc\u200c\u00ad\u062f\u0647\u06cc\u0645 \u0648 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0641\u0644\u06a9\u0633 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"\">.title {\r\n  height: 60px;\r\n  border-bottom: 1px solid #E1E8EE;\r\n  padding: 20px 30px;\r\n  color: #5E6977;\r\n  font-size: 18px;\r\n  font-weight: 400;\r\n}\r\n \r\n.item {\r\n  padding: 20px 30px;\r\n  height: 120px;\r\n  display: flex;\r\n}\r\n \r\n.item:nth-child(3) {\r\n  border-top:  1px solid #E1E8EE;\r\n  border-bottom:  1px solid #E1E8EE;\r\n}<\/pre>\n<p>\u062d\u0627\u0644\u060c \u0633\u0627\u062e\u062a\u0627\u0631 \u067e\u0627\u06cc\u0647 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0631\u0627 \u0637\u0631\u0627\u062d\u06cc \u06a9\u0631\u062f\u0647\u00ad\u200c\u0627\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a\u060c \u0645\u062d\u0635\u0648\u0644\u0627\u062a\u00ad\u0645\u0627\u0646 \u0631\u0627 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628 \u0645\u06cc\u200c\u00ad\u0633\u0627\u0632\u06cc\u0645.<\/p>\n<p>\u0627\u0648\u0644\u06cc\u0646 \u0645\u0648\u0644\u0641\u0647\u200c\u00ad\u0647\u0627\u060c \u062f\u06a9\u0645\u0647\u200c\u00ad\u0647\u0627\u06cc \u062d\u0630\u0641 \u00abdelete\u00bb \u0648 \u0645\u0648\u0631\u062f\u00ad\u0639\u0644\u0627\u0642\u0647 \u00abfavorite\u00bb \u0647\u0633\u062a\u0646\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">.buttons {\r\n  position: relative;\r\n  padding-top: 30px;\r\n  margin-right: 60px;\r\n}\r\n.delete-btn,\r\n.like-btn {\r\n  display: inline-block;\r\n  Cursor: pointer;\r\n}\r\n.delete-btn {\r\n  width: 18px;\r\n  height: 17px;\r\n  background: url(&amp;quot;delete-icn.svg&amp;quot;) no-repeat center;\r\n}\r\n \r\n.like-btn {\r\n  position: absolute;\r\n  top: 9px;\r\n  left: 15px;\r\n  background: url(&#039;twitter-heart.png&#039;);\r\n  width: 60px;\r\n  height: 60px;\r\n  background-size: 2900%;\r\n  background-repeat: no-repeat;\r\n}<\/pre>\n<p>\u062a\u0635\u0648\u06cc\u0631 \u0645\u062a\u062d\u0631\u06a9 \u062f\u06a9\u0645\u0647 \u0642\u0644\u0628 \u062f\u0631 \u062a\u0648\u06cc\u06cc\u062a\u0631 \u0631\u0627 \u0645\u0648\u0631\u062f \u0639\u0644\u0627\u0642\u0647 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0633\u062a \u0648 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u0645 \u0627\u06cc\u0646 \u0627\u0646\u06cc\u0645\u06cc\u0634\u0646 \u0631\u0627 \u0628\u0647 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u062e\u0648\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u0645. \u062d\u0627\u0644\u060c \u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0622\u0646 \u0631\u0627 \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc \u0645\u06cc\u200c\u00ad\u06a9\u0646\u06cc\u0645.<\/p>\n<p>\u06a9\u0644\u0627\u0633 \u00abis-active\u00bb \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 jQuery \u0628\u0631\u0627\u06cc \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 \u06a9\u0644\u06cc\u06a9 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u200c\u00ad\u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u0628\u0631 \u0631\u0648\u06cc \u0622\u0646 \u0642\u0644\u0628 \u0628\u0647 \u062d\u0631\u06a9\u062a \u062f\u0631\u0622\u06cc\u062f\u00ad\u060c \u0627\u0644\u0628\u062a\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0631\u062f \u0645\u0637\u0644\u0628 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0628\u062e\u0634 \u0628\u0639\u062f\u06cc (\u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a) \u0627\u0633\u062a.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">.is-active {\r\n  animation-name: animate;\r\n  animation-duration: .8s;\r\n  animation-iteration-count: 1;\r\n  animation-timing-function: steps(28);\r\n  animation-fill-mode: forwards;\r\n}\r\n \r\n@keyframes animate {\r\n  0%   { background-position: left;  }\r\n  50%  { background-position: right; }\r\n  100% { background-position: right; }\r\n}<\/pre>\n<p>\u06af\u0627\u0645 \u0628\u0639\u062f\u06cc\u060c \u062a\u0635\u0648\u06cc\u0631 \u0645\u062d\u0635\u0648\u0644 \u0627\u0633\u062a \u06a9\u0647 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062d\u0627\u0634\u06cc\u0647 \u06f5\u06f0 \u067e\u06cc\u06a9\u0633\u0644\u06cc \u0627\u0632 \u0633\u0645\u062a \u0631\u0627\u0633\u062a \u062f\u0627\u0631\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">.image {\r\n  margin-right: 50px;\r\n}\r\n \r\nLet\u2019s add some basic style to  product name and description.\r\n.description {\r\n  padding-top: 10px;\r\n  margin-right: 60px;\r\n  width: 115px;\r\n}\r\n \r\n.description span {\r\n  display: block;\r\n  font-size: 14px;\r\n  color: #43484D;\r\n  font-weight: 400;\r\n}\r\n \r\n.description span:first-child {\r\n  margin-bottom: 5px;\r\n}\r\n.description span:last-child {\r\n  font-weight: 300;\r\n  margin-top: 8px;\r\n  color: #86939E;\r\n}<\/pre>\n<p>\u0633\u067e\u0633\u060c \u062a\u0639\u062f\u0627\u062f \u062f\u06a9\u0645\u0647 \u062a\u0639\u062f\u0627\u062f \u0633\u0641\u0627\u0631\u0634 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645\u060c \u06a9\u0647 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062f\u0648 \u062f\u06a9\u0645\u0647 \u0628\u0631\u0627\u06cc \u0627\u0636\u0627\u0641\u0647 \u0648 \u062d\u0630\u0641 \u062a\u0639\u062f\u0627\u062f \u0645\u062d\u0635\u0648\u0644 \u062f\u0627\u0631\u062f. \u0627\u0628\u062a\u062f\u0627\u060c CSS \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645 \u0648 \u0633\u067e\u0633 \u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0628\u0631\u062e\u06cc \u0645\u0634\u062e\u0635\u0627\u062a \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u00ad\u062f\u0647\u06cc\u0645.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">.quantity {\r\n  padding-top: 20px;\r\n  margin-right: 60px;\r\n}\r\n.quantity input {\r\n  -webkit-appearance: none;\r\n  border: none;\r\n  text-align: center;\r\n  width: 32px;\r\n  font-size: 16px;\r\n  color: #43484D;\r\n  font-weight: 300;\r\n}\r\n \r\nbutton[class*=btn] {\r\n  width: 30px;\r\n  height: 30px;\r\n  background-color: #E1E8EE;\r\n  border-radius: 6px;\r\n  border: none;\r\n  cursor: pointer;\r\n}\r\n.minus-btn img {\r\n  margin-bottom: 3px;\r\n}\r\n.plus-btn img {\r\n  margin-top: 2px;\r\n}\r\n \r\nbutton:focus,\r\ninput:focus {\r\n  outline:0;\r\n}<\/pre>\n<p>\u0648 \u062f\u0631 \u0622\u062e\u0631 \u0628\u0647 \u0633\u0631\u0627\u063a \u0642\u06cc\u0645\u062a \u06a9\u0644\u06cc \u0645\u062d\u0635\u0648\u0644 \u0645\u06cc\u00ad\u200c\u0631\u0648\u06cc\u0645.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">.total-price {\r\n  width: 83px;\r\n  padding-top: 27px;\r\n  text-align: center;\r\n  font-size: 16px;\r\n  color: #43484D;\r\n  font-weight: 300;\r\n}<\/pre>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u0645\u06cc\u00ad\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06a9\u062f \u0632\u06cc\u0631 \u0622\u0646 \u0631\u0627 responsive \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 CSS \u0627\u0633\u062a.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\" data-enlighter-title=\"\">@media (max-width: 800px) {\r\n  .shopping-cart {\r\n    width: 100%;\r\n    height: auto;\r\n    overflow: hidden;\r\n  }\r\n  .item {\r\n    height: auto;\r\n    flex-wrap: wrap;\r\n    justify-content: center;\r\n  }\r\n  .image img {\r\n    width: 50%;\r\n  }\r\n  .image,\r\n  .quantity,\r\n  .description {\r\n    width: 100%;\r\n    text-align: center;\r\n    margin: 6px 0;\r\n  }\r\n  .buttons {\r\n    margin-right: 20px;\r\n  }\r\n}<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%da%a9%d8%af_%d8%ac%d8%a7%d9%88%d8%a7_%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa_%d8%b3%d8%a8%d8%af_%d8%ae%d8%b1%db%8c%d8%af\"><\/span><strong>\u06a9\u062f \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0633\u0628\u062f \u062e\u0631\u06cc\u062f<br \/>\n<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06a9\u062f \u0632\u06cc\u0631\u060c \u0647\u0646\u06af\u0627\u0645 \u06a9\u0644\u06cc\u06a9 \u0628\u0631\u0631\u0648\u06cc \u0642\u0644\u0628\u060c\u200c \u0628\u0627 \u062d\u0627\u0644\u062a\u06cc \u0627\u0646\u06cc\u0645\u06cc\u0634\u0646 \u0648\u0627\u0631 \u062d\u0631\u06a9\u062a \u0645\u06cc\u00ad\u200c\u06a9\u0646\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-title=\"\">$(&#039;.like-btn&#039;).on(&#039;click&#039;, function() {\r\n   $(this).toggleClass(&#039;is-active&#039;);\r\n});<\/pre>\n<p>\u062d\u0627\u0644 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u062f\u06a9\u0645\u0647\u00ad\u200c\u06cc \u0645\u0642\u062f\u0627\u0631 \u0631\u0627 \u0641\u0639\u0627\u0644 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-title=\"\">$(&#039;.minus-btn&#039;).on(&#039;click&#039;, function(e) {\r\n    e.preventDefault();\r\n    var $this = $(this);\r\n    var $input = $this.closest(&#039;div&#039;).find(&#039;input&#039;);\r\n    var value = parseInt($input.val());\r\n \r\n    if (value &amp;amp;gt; 1) {\r\n        value = value - 1;\r\n    } else {\r\n        value = 0;\r\n    }\r\n \r\n  $input.val(value);\r\n \r\n});\r\n \r\n$(&#039;.plus-btn&#039;).on(&#039;click&#039;, function(e) {\r\n    e.preventDefault();\r\n    var $this = $(this);\r\n    var $input = $this.closest(&#039;div&#039;).find(&#039;input&#039;);\r\n    var value = parseInt($input.val());\r\n \r\n    if (value &amp;amp;lt; 100) {\r\n        value = value + 1;\r\n    } else {\r\n        value =100;\r\n    }\r\n \r\n    $input.val(value);\r\n});<\/pre>\n<p>\u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u062f\u0645\u0648 \u0637\u0631\u062d \u0637\u0631\u0627\u062c\u06cc \u0634\u062f\u0647 \u0628\u0631\u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 \u0632\u06cc\u0631 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: center;\"><a class=\"btn btn-default btn-md\" title=\"\u062f\u0645\u0648\u06cc \u0642\u0627\u0644\u0628 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f\" href=\"https:\/\/designmodo.com\/demo\/shopping-cart\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\u067e\u06cc\u0634 \u0646\u0645\u0627\u06cc\u0634 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f <\/a><\/p>\n<p>\u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u0647 \u067e\u0627\u06cc\u0627\u0646 \u0631\u0633\u06cc\u062f \u060c \u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u06cc\u0645 \u0627\u0632 \u0622\u0646 \u0644\u0630\u062a \u0628\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f \u0648 \u0686\u06cc\u0632 \u062c\u062f\u06cc\u062f\u06cc \u06cc\u0627\u062f \u06af\u0631\u0641\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u060c \u0627\u06af\u0631 \u0647\u0631\u06af\u0648\u0646\u0647 \u0633\u0648\u0627\u0644\u06cc \u062f\u0627\u0634\u062a\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0646\u0638\u0631\u0627\u062a \u0628\u0627 \u0645\u0627 \u0645\u0637\u0631\u062c \u06a9\u0646\u06cc\u062f<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;3909&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;8&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;4.1&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;4.1\\\/5 (8 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0637\u0631\u0627\u062d\u06cc \u0631\u0627\u0628\u0637 \u06a9\u0627\u0631\u0628\u0631\u06cc (UI) \u0633\u0628\u062f\u062e\u0631\u06cc\u062f \u0641\u0631\u0648\u0634\u06af\u0627\u0647 \u0628\u0627 CSS \u0648 JavaScript&quot;,&quot;width&quot;:&quot;141&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 141px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            4.1\/5 (8 \u0631\u0627\u06cc)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645\u200c\u062a\u0631\u06cc\u0646 \u0628\u062e\u0634\u200c\u0647\u0627 \u062f\u0631 \u06cc\u06a9 \u0641\u0631\u0648\u0634\u06af\u0627\u0647 \u0622\u0646\u0644\u0627\u06cc\u0646 \u0628\u0647\u200c\u062d\u0633\u0627\u0628 \u0645\u06cc\u200c\u0622\u06cc\u062f\u060c \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0646\u062d\u0648 \u0633\u0627\u062e\u062a \u0633\u0628\u062f \u062e\u0631\u06cc\u062f (Shopping Cart ) \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632  HTML \u0648 CSS3 \u0631\u0627 \u0622\u0645\u0648\u0632\u0634 \u062f\u0647\u06cc\u0645. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0627\u0632 \u0641\u0648\u0646\u062a\u00ad\u200c\u0647\u0627\u06cc \u06af\u0648\u06af\u0644\u060c \u0628\u0647\u200c\u062e\u0635\u0648\u0635 \u00abRoboto\u00bb\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u200c\u06a9\u0646\u06cc\u0645. \u0648 \u06a9\u062f\u0647\u0627\u06cc Javascript \u0647\u0645 \u0628\u0631\u0627\u06cc \u0627\u0646\u06cc\u0645\u0634\u0646 \u0648 \u062a\u0639\u062f\u0627\u062f \u0645\u0648\u062c\u0648\u062f\u06cc \u0633\u0628\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645<\/p>\n","protected":false},"author":6,"featured_media":3915,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[206,59],"tags":[938,414,937,939],"class_list":["post-3909","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-webdesign","tag-ui","tag-ux","tag-937","tag-939"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/3909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=3909"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/3909\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/3915"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=3909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=3909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=3909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}