Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update desktop styles
dominik-zeglen6c05a943a069
diff --git a/saleor/core/templatetags/shop.py b/saleor/core/templatetags/shop.pyindex bce0428ba9..2c244af530 100644--- a/saleor/core/templatetags/shop.py+++ b/saleor/core/templatetags/shop.py@@ -23,6 +23,12 @@ def menu(site_menu=None, horizontal=False):'horizontal': horizontal}[email protected]_tag('footer_menu.html')+def footer_menu(site_menu=None):+ menu_items = site_menu.json_content if site_menu else []+ return {'menu_items': menu_items}++@register.simple_tagdef get_menu_item_name(menu_item, lang_code):translated = menu_item['translations'].get(lang_code)diff --git a/saleor/static/images/cart.svg b/saleor/static/images/cart.svgindex 1e996cc876..580d8bbbb4 100644--- a/saleor/static/images/cart.svg+++ b/saleor/static/images/cart.svg@@ -1,58 +1,3 @@-<svg width="35" height="30" viewBox="0 0 35 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:figma="http://www.figma.com/figma/ns">-<title>icon_cart_02</title>-<desc>Created using Figma</desc>-<g id="Canvas" transform="translate(-2038 1328)" figma:type="canvas">-<g id="icon_cart_02" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path0_fill" transform="translate(2045.84 -1313.83)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path1_fill" transform="translate(2044.28 -1323.32)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path2_fill" transform="translate(2046.1 -1303.38)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path3_fill" transform="translate(2063.27 -1303.38)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path4_fill" transform="translate(2038.04 -1328)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path5_fill" transform="translate(2046.29 -1317.67)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path6_fill" transform="translate(2053.47 -1322.8)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-<g id="Group" style="mix-blend-mode:normal;" figma:type="frame">-<g id="Vector" style="mix-blend-mode:normal;" figma:type="vector">-<use xlink:href="#path7_fill" transform="translate(2061.1 -1322.8)" fill="#333333" style="mix-blend-mode:normal;"/>-</g>-</g>-</g>-</g>-<defs>-<path id="path0_fill" d="M 21.6798 8.89357L 2.94701 8.89357C 1.51887 8.89357 1.10758e-07 7.85922 1.10758e-07 5.94475C 1.10758e-07 4.08472 1.43358 3.0558 2.82724 2.99955L 22.2187 0.0162459C 22.9773 -0.0998925 23.6868 0.419101 23.7993 1.17582C 23.9154 1.93253 23.3983 2.64206 22.6397 2.76001L 3.16114 5.75784C 3.07222 5.76873 3.04682 5.77598 2.96697 5.77236C 2.90709 5.77961 2.82906 5.80139 2.78551 5.82135C 2.78188 5.8395 2.77643 5.88123 2.77643 5.94475C 2.77643 6.00826 2.78188 6.04818 2.78551 6.06452C 2.83995 6.09718 2.94883 6.11351 2.94883 6.11351L 21.6798 6.11351C 22.4456 6.11351 23.0698 6.73776 23.0698 7.50354C 23.0698 8.26933 22.4437 8.89357 21.6798 8.89357Z"/>-<path id="path1_fill" d="M 4.50916 15.2631C 3.88129 15.2631 3.32237 14.8385 3.1645 14.2143L 0.0432792 1.72574C -0.0637859 1.31019 0.0305764 0.872853 0.295517 0.535326C 0.558643 0.197799 0.961498 2.35361e-07 1.39157 2.35361e-07L 26.365 2.35361e-07C 26.7896 2.35361e-07 27.1943 0.197798 27.4574 0.53351C 27.7205 0.871038 27.8149 1.31019 27.7096 1.72393L 25.3379 11.2128C 25.2036 11.7554 24.7535 12.1637 24.2037 12.249L 4.72329 15.2486C 4.65071 15.2559 4.57812 15.2631 4.50916 15.2631ZM 3.16631 2.77643L 5.54896 12.3107L 22.8645 9.64675L 24.583 2.77643L 3.16631 2.77643Z"/>-<path id="path2_fill" d="M 2.68752 5.37503C 4.17179 5.37503 5.37503 4.17179 5.37503 2.68751C 5.37503 1.20324 4.17179 0 2.68752 0C 1.20324 0 0 1.20324 0 2.68751C 0 4.17179 1.20324 5.37503 2.68752 5.37503Z"/>-<path id="path3_fill" d="M 2.68751 5.37503C 4.17179 5.37503 5.37503 4.17179 5.37503 2.68751C 5.37503 1.20324 4.17179 0 2.68751 0C 1.20324 0 0 1.20324 0 2.68751C 0 4.17179 1.20324 5.37503 2.68751 5.37503Z"/>-<path id="path4_fill" d="M 7.63247 7.45826C 7.05359 7.45826 6.51101 7.08989 6.31684 6.50919L 5.07198 2.77462L 1.39003 2.77462C 0.624244 2.77462 2.76896e-08 2.154 2.76896e-08 1.38822C 2.76896e-08 0.622429 0.624244 -5.88403e-08 1.39003 -5.88403e-08L 6.07186 -5.88403e-08C 6.6707 -5.88403e-08 7.19877 0.382894 7.38749 0.949068L 8.94992 5.6309C 9.19127 6.35858 8.79748 7.14251 8.07162 7.38568C 7.92645 7.43467 7.77764 7.45826 7.63247 7.45826Z"/>-<path id="path5_fill" d="M 23.0698 1.73663L 0.869223 1.73663C 0.390152 1.73663 -3.59964e-07 1.34829 -3.59964e-07 0.869223C -3.59964e-07 0.390152 0.390152 3.46119e-07 0.869223 3.46119e-07L 23.0698 3.46119e-07C 23.5489 3.46119e-07 23.939 0.390152 23.939 0.869223C 23.939 1.34829 23.5489 1.73663 23.0698 1.73663Z"/>-<path id="path6_fill" d="M 0.867408 13.757C 0.388337 13.757 -2.76896e-08 13.3704 -2.76896e-08 12.8914L -2.76896e-08 0.869223C -2.76896e-08 0.388338 0.388337 -3.04585e-07 0.867408 -3.04585e-07C 1.34648 -3.04585e-07 1.73663 0.388338 1.73663 0.869223L 1.73663 12.8914C 1.73482 13.3704 1.34648 13.757 0.867408 13.757Z"/>-<path id="path7_fill" d="M 0.869223 11.5794C 0.390152 11.5794 8.30687e-07 11.1892 8.30687e-07 10.7101L 8.30687e-07 0.869223C 8.30687e-07 0.388338 0.390152 -3.04585e-07 0.869223 -3.04585e-07C 1.34829 -3.04585e-07 1.73845 0.388338 1.73845 0.869223L 1.73845 10.712C 1.73845 11.191 1.34829 11.5794 0.869223 11.5794Z"/>-</defs>+<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M17.25 6.75C17.25 7.19325 17.25 7.51025 17.25 7.701C17.6981 7.9605 18 8.44519 18 9C18 9.82781 17.3278 10.5 16.5 10.5C15.6722 10.5 15 9.82781 15 9C15 8.44519 15.3019 7.9605 15.75 7.701V7.5V6.75H8.25002V7.5V7.701C8.69814 7.9605 9.00002 8.44519 9.00002 9C9.00002 9.82781 8.32783 10.5 7.50002 10.5C6.6722 10.5 6.00002 9.82781 6.00002 9C6.00002 8.44519 6.30189 7.9605 6.75002 7.701C6.75002 7.2725 6.75002 6.9555 6.75002 6.75H4.53002C4.38752 6.7575 4.24689 6.795 4.11939 6.86062C3.92627 6.95812 3.75002 7.0875 3.60002 7.245C3.42939 7.41937 3.28689 7.62 3.17627 7.8375C3.08627 8.01375 3.02439 8.20312 2.99439 8.39812L2.24814 21.0881C2.24627 21.1162 2.24439 21.1425 2.24064 21.1706C2.23877 21.1837 2.23877 21.1969 2.23877 21.21C2.24064 21.33 2.27252 21.4462 2.33064 21.5531C2.42627 21.7331 2.55377 21.8944 2.70752 22.0294C2.87627 22.1812 3.06752 22.3031 3.27752 22.3912C3.42939 22.4587 3.59439 22.4962 3.76127 22.5H20.2575H20.2875C20.4506 22.4962 20.61 22.4606 20.7581 22.3931C20.9588 22.305 21.1425 22.1831 21.3038 22.0331C21.4538 21.8962 21.5775 21.735 21.6694 21.5531C21.7275 21.4444 21.7594 21.3244 21.7613 21.2025C21.7613 21.1894 21.7613 21.1762 21.7594 21.165C21.7575 21.1387 21.7538 21.1125 21.7538 21.0881L21.0075 8.4075C20.9981 8.36062 20.985 8.31562 20.9663 8.27062C20.9269 8.17687 20.8781 8.08687 20.82 8.0025C20.6513 7.7625 20.4469 7.55062 20.2144 7.3725C19.965 7.1775 19.6913 7.01625 19.3969 6.89812C19.275 6.84937 19.1494 6.81 19.02 6.78187C18.93 6.76125 18.8381 6.75 18.7444 6.75H17.25ZM17.25 5.24962C17.25 4.79837 17.25 4.04844 17.25 2.99981C17.25 1.05487 16.401 0 14.6631 0C12.925 0 11.1171 0 9.34839 0C7.57952 0 6.75002 1.18219 6.75002 3.09581C6.75002 3.56119 6.75002 4.27912 6.75002 5.24962H4.50039C3.04164 5.28075 1.68152 6.75975 1.50039 8.24962L0.750392 20.9996C0.57583 22.5199 2.25677 23.9996 3.75039 23.9996H20.2504C21.7849 24.0277 23.4163 22.4951 23.2504 20.9996L22.5004 8.24962C22.3129 6.74962 20.2915 5.24962 18.7504 5.24962H17.25ZM8.25002 5.24962V5.01V3.09562C8.25002 3.09375 8.25002 3.09187 8.25002 3.09187C8.25002 2.92312 8.25939 2.75625 8.27814 2.58937C8.29501 2.45437 8.32127 2.32125 8.35689 2.19C8.39627 2.03437 8.46564 1.88812 8.56314 1.76062C8.62314 1.6875 8.70002 1.63125 8.78627 1.59375C8.85377 1.56562 8.92502 1.54312 8.99814 1.53C9.11252 1.50937 9.22689 1.5 9.34127 1.5C9.34314 1.5 9.34501 1.5 9.34876 1.5H14.6625C14.6663 1.5 14.6681 1.5 14.67 1.5C14.79 1.5 14.9081 1.50937 15.0263 1.52812C15.1031 1.54125 15.1781 1.56187 15.2513 1.59187C15.33 1.62187 15.4013 1.67062 15.4594 1.73437C15.5456 1.845 15.6075 1.97062 15.6431 2.1075C15.6788 2.23312 15.705 2.36062 15.72 2.49C15.7406 2.65875 15.75 2.82562 15.75 2.99437C15.75 2.99625 15.75 2.99812 15.75 3V4.94437V5.24962H8.25002Z" fill="currentColor"/></svg>diff --git a/saleor/static/images/logo-document.svg b/saleor/static/images/logo-document.svgindex b708951fc6..08e48a56a1 100644--- a/saleor/static/images/logo-document.svg+++ b/saleor/static/images/logo-document.svg@@ -1 +1 @@-<svg enable-background="new 0 0 57.6 19.5" viewBox="0 0 57.6 19.5" xmlns="http://www.w3.org/2000/svg"><path d="m15.5 3.1h-15.5l3.1-3.1h15.5z" fill="#54baba"/><g fill="#222046"><path d="m8.9 19.5c3.8 0 4.8-1.5 4.8-3.6 0-2.6-2.3-3.1-4.3-3.4-1.5-.3-2.2-.4-2.2-1.3 0-.7.6-.9 1.5-.9 1.2 0 1.5.3 1.6 1.3l3.1-.5c-.1-2.1-1.3-3.2-4.5-3.2-3.5 0-4.7 1.4-4.7 3.6 0 2.9 2.7 3.2 4.7 3.5 1.2.2 1.7.4 1.7 1.3 0 .7-.4 1-1.7 1-1.4 0-1.8-.2-2-1.3l-3 .4c.4 2.2 1.7 3.1 5 3.1z"/><path d="m17.5 19.5c1.7 0 2.5-.5 3-1.3v1.2h3.1v-7.6c0-2.5-1-3.8-4.4-3.8-3.3 0-4.4.9-4.9 3.2l3.1.5c.2-1 .5-1.3 1.7-1.3s1.4.5 1.4 1.3v.8h-1.4c-3.9 0-5.2 1.2-5.2 3.6 0 2.2 1.2 3.4 3.6 3.4zm1.4-2.3c-1.5 0-2-.3-2-1.4 0-.9.5-1.3 2.1-1.3h1.6v1.1c0 1-.5 1.6-1.7 1.6z"/><path d="m24.4 19.3h3.1v-16.2l-3.1 3.1z"/><path d="m33.2 19.5c3.6 0 4.6-1.7 4.8-3.4l-3-.4c-.1 1-.3 1.5-1.8 1.5s-1.8-.7-1.8-1.7v-.9h6.6v-2c0-2.8-1.1-4.7-4.8-4.7-3.6 0-4.9 1.9-4.9 4.3v3c0 2.3 1.3 4.3 4.9 4.3zm-1.8-7v-.6c0-1 .5-1.7 1.8-1.7s1.8.6 1.8 1.7v.6z"/><path d="m43.8 7.9c-3.6 0-5 1.8-5 4.3v3c0 2.5 1.4 4.3 5 4.3s5.1-1.8 5.1-4.3v-3c0-2.5-1.5-4.3-5.1-4.3zm2 7.4c0 1.1-.7 1.7-1.9 1.7s-1.9-.7-1.9-1.7v-3.2c0-1.1.6-1.7 1.9-1.7s1.9.7 1.9 1.7z"/><path d="m52.8 8-3.1 3.1v8.2h3.1v-8.2h1.7l3.1-3.1z"/></g></svg>\ No newline at end of file+<svg enable-background="new 20 0 57.6 19.5" viewBox="20 0 57.6 19.5" xmlns="http://www.w3.org/2000/svg"><path d="m15.5 3.1h-15.5l3.1-3.1h15.5z" fill="#54baba"/><g fill="#222046"><path d="m8.9 19.5c3.8 0 4.8-1.5 4.8-3.6 0-2.6-2.3-3.1-4.3-3.4-1.5-.3-2.2-.4-2.2-1.3 0-.7.6-.9 1.5-.9 1.2 0 1.5.3 1.6 1.3l3.1-.5c-.1-2.1-1.3-3.2-4.5-3.2-3.5 0-4.7 1.4-4.7 3.6 0 2.9 2.7 3.2 4.7 3.5 1.2.2 1.7.4 1.7 1.3 0 .7-.4 1-1.7 1-1.4 0-1.8-.2-2-1.3l-3 .4c.4 2.2 1.7 3.1 5 3.1z"/><path d="m17.5 19.5c1.7 0 2.5-.5 3-1.3v1.2h3.1v-7.6c0-2.5-1-3.8-4.4-3.8-3.3 0-4.4.9-4.9 3.2l3.1.5c.2-1 .5-1.3 1.7-1.3s1.4.5 1.4 1.3v.8h-1.4c-3.9 0-5.2 1.2-5.2 3.6 0 2.2 1.2 3.4 3.6 3.4zm1.4-2.3c-1.5 0-2-.3-2-1.4 0-.9.5-1.3 2.1-1.3h1.6v1.1c0 1-.5 1.6-1.7 1.6z"/><path d="m24.4 19.3h3.1v-16.2l-3.1 3.1z"/><path d="m33.2 19.5c3.6 0 4.6-1.7 4.8-3.4l-3-.4c-.1 1-.3 1.5-1.8 1.5s-1.8-.7-1.8-1.7v-.9h6.6v-2c0-2.8-1.1-4.7-4.8-4.7-3.6 0-4.9 1.9-4.9 4.3v3c0 2.3 1.3 4.3 4.9 4.3zm-1.8-7v-.6c0-1 .5-1.7 1.8-1.7s1.8.6 1.8 1.7v.6z"/><path d="m43.8 7.9c-3.6 0-5 1.8-5 4.3v3c0 2.5 1.4 4.3 5 4.3s5.1-1.8 5.1-4.3v-3c0-2.5-1.5-4.3-5.1-4.3zm2 7.4c0 1.1-.7 1.7-1.9 1.7s-1.9-.7-1.9-1.7v-3.2c0-1.1.6-1.7 1.9-1.7s1.9.7 1.9 1.7z"/><path d="m52.8 8-3.1 3.1v8.2h3.1v-8.2h1.7l3.1-3.1z"/></g></svg>\ No newline at end of filediff --git a/saleor/static/images/search.svg b/saleor/static/images/search.svgindex 32c30a23f8..60e676e337 100755--- a/saleor/static/images/search.svg+++ b/saleor/static/images/search.svg@@ -1 +1,3 @@-<svg width="30" height="30" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1216 832q0-185-131.5-316.5t-316.5-131.5-316.5 131.5-131.5 316.5 131.5 316.5 316.5 131.5 316.5-131.5 131.5-316.5zm512 832q0 52-38 90t-90 38q-54 0-90-38l-343-342q-179 124-399 124-143 0-273.5-55.5t-225-150-150-225-55.5-273.5 55.5-273.5 150-225 225-150 273.5-55.5 273.5 55.5 225 150 150 225 55.5 273.5q0 220-124 399l343 343q37 37 37 90z"/></svg>+<svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M14.6205 13.8251C15.9027 12.3584 16.68 10.4393 16.68 8.34005C16.68 3.73697 12.943 0 8.34005 0C3.73697 0 0 3.73697 0 8.34005C0 12.943 3.73697 16.68 8.34005 16.68C10.439 16.68 12.358 15.9029 13.8246 14.6209L17.0376 17.8327C17.143 17.9381 17.2865 17.9986 17.4355 17.9986C17.5846 17.9986 17.728 17.9381 17.8335 17.8327C17.939 17.7272 17.998 17.5852 17.998 17.4361C17.998 17.287 17.939 17.1436 17.8335 17.0381L14.6205 13.8251ZM13.5634 13.3159C14.164 12.6845 14.6474 11.9499 14.9887 11.1473C15.3627 10.2586 15.5554 9.30516 15.5554 8.34047C15.5554 8.33906 15.5554 8.33906 15.5554 8.33906C15.5554 7.37578 15.3627 6.42094 14.9887 5.53359C14.6244 4.67578 14.0985 3.89672 13.4404 3.24C12.7823 2.58047 12.0032 2.05594 11.1468 1.69172C10.258 1.31625 9.30459 1.12359 8.33991 1.125C7.37522 1.12359 6.42178 1.31625 5.53303 1.69172C4.67663 2.05594 3.89756 2.58047 3.23944 3.24C2.58131 3.89672 2.05538 4.67578 1.69256 5.53219C1.31709 6.42094 1.12444 7.37578 1.12444 8.34047C1.12444 9.30375 1.31709 10.2586 1.69256 11.1473C2.05538 12.0038 2.58131 12.7828 3.23944 13.4409C3.89756 14.0991 4.67663 14.625 5.53303 14.9878C6.42178 15.3633 7.37522 15.5559 8.3385 15.5545H8.33991C8.33991 15.5545 8.33991 15.5545 8.34131 15.5545C9.30459 15.5559 10.2594 15.3633 11.1468 14.9878C11.9495 14.6478 12.6841 14.1646 13.3154 13.564C13.3418 13.5111 13.3768 13.4625 13.4193 13.4198C13.4619 13.3772 13.5107 13.3424 13.5634 13.3159Z" fill="currentColor"/>+</svg>diff --git a/saleor/static/scss/components/_buttons.scss b/saleor/static/scss/components/_buttons.scssindex b7b223fccd..2c0873067a 100644--- a/saleor/static/scss/components/_buttons.scss+++ b/saleor/static/scss/components/_buttons.scss@@ -23,6 +23,15 @@ a.btn {color: $body-color;}}+ &-primary {+ border-color: transparent;+ color: $white;+ &:hover {+ background-color: #42beab;+ border-color: transparent;+ color: $white;+ }+ }&.primary {background-color: $blue;color: $white;@@ -80,13 +89,13 @@ a.btn {&.facebook {background: #3b5998;&:hover {- background: darken(#3b5998, 10%)+ background: darken(#3b5998, 10%);}}&.google {background: #dd4b39;&:hover {- background: darken(#dd4b39, 10%)+ background: darken(#dd4b39, 10%);}}}diff --git a/saleor/static/scss/components/_footer.scss b/saleor/static/scss/components/_footer.scssindex 8baffdd517..f059a137d8 100644--- a/saleor/static/scss/components/_footer.scss+++ b/saleor/static/scss/components/_footer.scss@@ -1,10 +1,34 @@.footer {- background-color: $gray;- padding: $global-padding * 2 0;- margin-top: $global-margin * 8;- @include media-breakpoint-down(xs) {- text-align: center;- margin-top: $global-margin * 2;+ &__menus {+ background-color: $light-gray;+ padding: $global-padding * 2 0;+ margin-top: $global-margin * 8;+ @include media-breakpoint-down(xs) {+ text-align: center;+ margin-top: $global-margin * 2;+ }+ .menu__item {+ & > a {+ font-weight: 600;+ }+ }+ &__social {+ display: flex;+ justify-content: center;+ flex-wrap: wrap;+ &-container {+ display: flex;+ flex-direction: column;+ justify-content: center;+ height: 100%;+ }+ }+ }+ &__copy {+ padding: $global-padding * 2 0 $global-padding * 3;+ &-text {+ text-align: right;+ }}&__logo {margin-bottom: $global-margin;@@ -17,11 +41,14 @@}}}+ hr {+ margin-top: 0;+ }ul {list-style: none;padding-left: 0;a {- color: $white;+ color: $black;line-height: 2;}}@@ -32,7 +59,18 @@opacity: 0.6;}&.social-footer {+ background-color: $dark-blue;+ border-radius: 100%;+ display: inline-block;+ height: 36px;+ margin-bottom: $global-margin;margin-right: $global-margin;+ width: 36px;+ svg {+ height: 16px;+ margin-top: 8px;+ width: 100%;+ }}}}diff --git a/saleor/static/scss/components/_forms.scss b/saleor/static/scss/components/_forms.scssindex 0c1a762ca0..d05701b103 100644--- a/saleor/static/scss/components/_forms.scss+++ b/saleor/static/scss/components/_forms.scss@@ -1,4 +1,6 @@-.form-control, select, input {+.form-control,+select,+input {color: $body-color;border-radius: 2px;border: 1px solid $gray;@@ -80,21 +82,23 @@}.form-control {width: 100%;- border-radius: 0;- padding-left: $global-padding;+ border-radius: $button-border-radius;+ padding: $global-padding;+ font-size: 0.8rem;}.btn {- width: 2.3rem;- height: 2.3rem;+ border-bottom-left-radius: 0;+ border-top-left-radius: 0;+ height: 100%;position: absolute;top: 0;right: 0;cursor: pointer;border-left: solid 1px $gray;- border-radius: 0;outline: 0;- @include transition(background, 0.3s)- img {+ display: flex;+ align-items: center;+ @include transition(background, 0.3s) img {height: 1.5rem;padding: $global-padding / 7;}@@ -109,7 +113,8 @@z-index: 5;margin-top: 0;.form-control {- padding: $global-padding * 2 $global-padding * 2 $global-padding * 2 $global-padding * 4;+ padding: $global-padding * 2 $global-padding * 2 $global-padding * 2+ $global-padding * 4;border: 0;}.mobile-close-search {@@ -153,7 +158,8 @@ input#id_quantity {vertical-align: top;margin: $global-margin / 4 $global-margin / 2 0 0;}- span, .address-details {+ span,+ .address-details {display: inline-block;}label {@@ -182,5 +188,5 @@ input#id_quantity {select.form-control {appearance: none;border-radius: 2px;- background: url('../images/arrow-select.svg') 100% 50% no-repeat / 24px 14px;+ background: url("../images/arrow-select.svg") 100% 50% no-repeat / 24px 14px;}diff --git a/saleor/static/scss/components/_header.scss b/saleor/static/scss/components/_header.scssindex 8350fe8ce2..2c42e28ecc 100644--- a/saleor/static/scss/components/_header.scss+++ b/saleor/static/scss/components/_header.scss@@ -25,7 +25,6 @@font-size: 1.5rem;&:hover {color: rgba($body-color, 0.6);-}}@@ -35,7 +34,7 @@position: relative;&:hover > a {- border-bottom: 3px solid black;+ border-bottom: 3px solid black;}& > a {@@ -176,10 +175,6 @@padding: $global-padding * 2 0;display: flex;align-items: center;- @include media-breakpoint-up(sm) {- margin-left: -27px;- margin-right: 27px;- }.menu-icon-mobile {position: relative;display: inline-block;@@ -204,10 +199,10 @@position: relative;form {svg {- width: 1.5rem;- height: 1.5rem;+ width: 18px;+ height: 18px;+ margin-left: 10px;vertical-align: middle;- padding: 0.1rem;}}.mobile-search-icon {@@ -278,7 +273,7 @@position: absolute;right: 20px;top: 20px;- background-color: $blue;+ background-color: $light-turquoise;border-radius: 100px;color: $white;width: 30px;diff --git a/saleor/static/scss/variables.scss b/saleor/static/scss/variables.scssindex 3dee2ad560..ec580673ec 100644--- a/saleor/static/scss/variables.scss+++ b/saleor/static/scss/variables.scss@@ -1,33 +1,36 @@// GLOBAL$global-padding: 1rem;$global-margin: 1rem;-$button-border-radius: 4px;+$button-border-radius: 12px;// COLORS$body-color: #333333;$white: #fff;-$light-gray: #f2f2f2;-$gray: #D3D1D0;+$light-gray: #f1f5f5;+$gray: #d3d1d0;$darken-gray: darken($gray, 10%);$skull-gray: #828282;-$blue: #26A5D4;+$blue: #26a5d4;$darken-blue: darken($blue, 10%);-$red: #EB5757;+$dark-blue: #21125e;+$red: #eb5757;$dark-red: #c53636;-$green: #27AE60;-$beige: #FFFAEC;+$green: #27ae60;+$beige: #fffaec;+$turquoise: #13bebb;+$light-turquoise: #3ee7cd;// TYPOGRAPHY-$font-family-sans-serif: 'Lato', sans-serif;+$font-family-sans-serif: "Lato", sans-serif;$h1-font-size: 3rem;$h2-font-size: 1.3rem;$h3-font-size: 1rem;$theme-colors: (- primary: $blue,+ primary: $light-turquoise,secondary: $white,success: $green,- info: #17a2b8,+ info: $turquoise,warning: #ffc107,danger: $red,light: #f8f9fa,diff --git a/templates/base.html b/templates/base.htmlindex b4ca791ac8..f58f2234de 100644--- a/templates/base.html+++ b/templates/base.html@@ -1,6 +1,6 @@<!DOCTYPE html>{% load i18n %}-{% load menu from shop %}+{% load footer_menu menu from shop %}{% load placeholder %}{% load render_bundle from webpack_loader %}{% load static %}@@ -123,7 +123,7 @@<svg data-src="{% static "images/logo-document.svg" %}" height="38px" width="176px"/></a></div>- <div class="col-2 col-md-4 navbar__search static">+ <div class="col-2 col-md-5 navbar__search static">{% if SEARCH_IS_ENABLED %}<div class="d-md-none mobile-search-icon"><svg data-src="{% static "images/search.svg" %}" width="30" height="30"/>@@ -136,20 +136,20 @@value="{% if query %}{{ query }}{% endif %}"placeholder="{% trans "Search for product" %}"required>- <button class="btn btn-link" type="submit">- <svg data-src="{% static "images/search.svg" %}" width="30" height="30"/>+ <button class="btn btn-primary" type="submit">+ {% trans "Search" %} <svg data-src="{% static "images/search.svg" %}" width="18" height="18"/></button></form>{% endif %}</div>- <div class="col-2 col-md-4">+ <div class="col-2 col-md-3"><div class="navbar__brand__cart float-right"><a rel="nofollow" class="cart__icon" href="{% url "cart:index" %}"><span class="cart-label d-none d-md-inline-block">{% trans "Your Cart" context "Main navigation item" %}</span><div class="navbar__brand__cart__icon">- <svg data-src="{% static "images/cart.svg" %}" width="35" height="30"/>+ <svg data-src="{% static "images/cart.svg" %}" width="24" height="24"/></div><span class="badge {% if not cart_counter %}empty{% endif %}">{% if cart_counter %}@@ -191,18 +191,19 @@</div>{% block footer %}<footer class="footer">+ <div class="footer__menus"><div class="container"><div class="row">- <div class="col-md-3">- <a href="{% url 'home' %}" class="footer__logo">- <svg data-src="{% static "images/logo-document.svg" %}" height="38px" width="176px"/>- </a>- </div>- <div class="col-md-3 col-sm-6">- {% menu site_menu=site.settings.bottom_menu %}- </div>- <div class="col-md-3 col-sm-6">- <ul>+ {% footer_menu site_menu=site.settings.bottom_menu %}+ <div class="col-md-2 col-sm-4">+ <ul class="menu">+ <li class="nav-item__dropdown menu__item">+ <a>+ <strong>+ {% trans "Account" %}+ </strong>+ </a>+ <hr /><li><a rel="nofollow" href="{% url "cart:index" %}">{% trans "Your Cart" context "Main navigation item" %}@@ -252,34 +253,51 @@{% endif %}</ul></div>- <div class="col-md-3 col-sm-12">- <a target="_blank" rel="noopener" class="social-footer" href="https://www.facebook.com/mirumeelabs/">- <svg data-src="{% static "images/facebook-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://github.com/mirumee/saleor">- <svg data-src="{% static "images/github-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://twitter.com/getsaleor">- <svg data-src="{% static "images/twitter-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://plus.google.com/+Mirumee">- <svg data-src="{% static "images/google-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://www.meetup.com/Mirumee-Talks/">- <svg data-src="{% static "images/meetup-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://linkedin.com/company/mirumee-software">- <svg data-src="{% static "images/linkedin-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://dribbble.com/mirumee">- <svg data-src="{% static "images/dribbble-logo.svg" %}" width="45px" height="45px"/>- </a>- <a target="_blank" rel="noopener" class="social-footer" href="https://www.instagram.com/explore/tags/mirumee/">- <svg data-src="{% static "images/instagram-logo.svg" %}" width="45px" height="45px"/>+ <div class="offset-md-2 col-md-4 col-sm-12">+ <div class="footer__menus__social-container">+ <div class="footer__menus__social">+ <a target="_blank" rel="noopener" class="social-footer" href="https://www.facebook.com/mirumeelabs/">+ <svg data-src="{% static "images/facebook-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://github.com/mirumee/saleor">+ <svg data-src="{% static "images/github-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://twitter.com/getsaleor">+ <svg data-src="{% static "images/twitter-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://plus.google.com/+Mirumee">+ <svg data-src="{% static "images/google-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://www.meetup.com/Mirumee-Talks/">+ <svg data-src="{% static "images/meetup-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://linkedin.com/company/mirumee-software">+ <svg data-src="{% static "images/linkedin-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://dribbble.com/mirumee">+ <svg data-src="{% static "images/dribbble-logo.svg" %}" width="45px" height="45px"/>+ </a>+ <a target="_blank" rel="noopener" class="social-footer" href="https://www.instagram.com/explore/tags/mirumee/">+ <svg data-src="{% static "images/instagram-logo.svg" %}" width="45px" height="45px"/>+ </a>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+ <div class="footer__copy">+ <div class="container">+ <div class="row">+ <div class="col-md-3">+ <a href="{% url 'home' %}" class="footer__logo">+ <svg data-src="{% static "images/logo-document.svg" %}" height="38px" width="176px"/></a></div>+ <div class="col-md-9 footer__copy-text">COPYRIGHT © 2009–2018 MIRUMEE SOFTWARE</div></div></div>+ </div></footer>{% endblock %}{% block footer_scripts %}diff --git a/templates/footer_menu.html b/templates/footer_menu.htmlnew file mode 100644index 0000000000..5baf3e864c--- /dev/null+++ b/templates/footer_menu.html@@ -0,0 +1,46 @@+{% url 'home' as home_url %}+{% load i18n %}+{% get_current_language as LANGUAGE_CODE %}+{% load get_menu_item_name from shop %}++{% for item in menu_items %}+{% with children=item.child_items %}+ <div class="col-sm-4 col-md-2">+ <ul class="menu">+ <li class="{% if children %}nav-item__dropdown{% endif %} menu__item">+ <a href="{{ item.url }}">+ {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=item %}+ </a>+ {% if children %}+ <hr />+ <div class="nav-item__submenu">+ <ul>+ {% for child in children %}+ <li>+ <a href="{{ child.url }}">+ {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=child %}+ </a>++ {% with grandchildren=child.child_items %}+ {% if grandchildren %}+ <ul>+ {% for grandchild in grandchildren %}+ <li>+ <a href="{{ grandchild.url }}">+ {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=grandchild %}+ </a>+ </li>+ {% endfor %}+ </ul>+ {% endif %}+ {% endwith %}+ </li>+ {% endfor %}+ </ul>+ </div>+ {% endif %}+ </li>+ </ul>+ </div>+{% endwith %}+{% endfor %}diff --git a/templates/menu.html b/templates/menu.htmlindex c8d16b379c..5ca189b037 100644--- a/templates/menu.html+++ b/templates/menu.html@@ -6,42 +6,42 @@<ul class="menu {% if horizontal %}nav mb-4 mb-md-0{% endif %}{% if request.get_full_path == home_url %} no-border{% endif %}">{% for item in menu_items %}{% with children=item.child_items %}- <li class="{% if horizontal %}nav-item{% endif %} {% if children %}nav-item__dropdown{% endif %} menu__item">- <a class="{% if horizontal %}nav-link{% endif %}" href="{{ item.url }}">{% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=item %}</a>- {% if children %}- <div class="{% if horizontal %}nav-item__dropdown-content{% else %}nav-item__submenu{% endif %}">- <div class="container">- <ul>- {% for child in children %}- <li>- <a href="{{ child.url }}">- {% if horizontal %}- <strong>{% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=child %}</strong>- {% else %}- {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=child %}- {% endif %}- </a>+ <li class="{% if horizontal %}nav-item{% endif %} {% if children %}nav-item__dropdown{% endif %} menu__item">+ <a class="{% if horizontal %}nav-link{% endif %}" href="{{ item.url }}">+ {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=item %}+ </a>+ {% if children %}+ <div class="{% if horizontal %}nav-item__dropdown-content{% else %}nav-item__submenu{% endif %}">+ <ul>+ {% for child in children %}+ <li>+ <a href="{{ child.url }}">+ {% if horizontal %}+ <strong>{% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=child %}</strong>+ {% else %}+ {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=child %}+ {% endif %}+ </a>- {% with grandchildren=child.child_items %}- {% if grandchildren %}- <ul>- {% for grandchild in grandchildren %}- <li>- <a href="{{ grandchild.url }}">- {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=grandchild %}- </a>- </li>- {% endfor %}- </ul>- {% endif %}- {% endwith %}- </li>- {% endfor %}- </ul>- </div>- </div>- {% endif %}- </li>+ {% with grandchildren=child.child_items %}+ {% if grandchildren %}+ <ul>+ {% for grandchild in grandchildren %}+ <li>+ <a href="{{ grandchild.url }}">+ {% get_menu_item_name lang_code=LANGUAGE_CODE menu_item=grandchild %}+ </a>+ </li>+ {% endfor %}+ </ul>+ {% endif %}+ {% endwith %}+ </li>+ {% endfor %}+ </ul>+ </div>+ {% endif %}+ </li>{% endwith %}{% endfor %}</ul>