diff --git a/theme_fasion/README.rst b/theme_fasion/README.rst new file mode 100644 index 000000000..e8ee93296 --- /dev/null +++ b/theme_fasion/README.rst @@ -0,0 +1,42 @@ +Theme Fashion +========= +* Design Web Pages with theme fashion + +Installation +============ + - www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +Bidhin @ cybrosys +Rahna Kabeer @ cybrosys(v15) + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/theme_fasion/__init__.py b/theme_fasion/__init__.py new file mode 100644 index 000000000..b604a293c --- /dev/null +++ b/theme_fasion/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models diff --git a/theme_fasion/__manifest__.py b/theme_fasion/__manifest__.py new file mode 100644 index 000000000..07033ded2 --- /dev/null +++ b/theme_fasion/__manifest__.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': 'Theme Fashion', + 'description': 'Design Web Pages with theme Fashion', + 'summary': 'Theme Fashion', + 'category': 'Theme/eCommerce', + 'version': '15.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['website_sale', 'website_sale_wishlist', 'website'], + 'data': [ + 'views/layout.xml', + 'views/product/product.xml', + 'views/product/blog.xml', + 'views/preview/preview.xml', + 'views/banner/banner.xml', + 'views/slider/slider.xml', + 'views/slider/sliders.xml', + 'views/cart/cart.xml', + 'views/contact/contact.xml', + 'views/about/about.xml', + 'views/template.xml', + 'views/product_views.xml', + ], + 'images': [ + 'static/description/banner.jpg', + 'static/description/theme_screenshot.jpg', + ], + 'assets': { + 'web.assets_frontend': [ + 'theme_fasion/static/src/css/style.css', + 'theme_fasion/static/src/js/custom.js', + 'theme_fasion/static/src/js/jquery.flexisel.js', + 'theme_fasion/static/src/js/owl.carousel.js', + 'theme_fasion/static/src/css/stylenav.css', + ], + }, + 'license': 'LGPL-3', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/theme_fasion/doc/RELEASE_NOTES.md b/theme_fasion/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a7832319d --- /dev/null +++ b/theme_fasion/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 18.03.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Theme Fashion \ No newline at end of file diff --git a/theme_fasion/models/__init__.py b/theme_fasion/models/__init__.py new file mode 100644 index 000000000..b6d5e967b --- /dev/null +++ b/theme_fasion/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import theme_fasion diff --git a/theme_fasion/models/theme_fasion.py b/theme_fasion/models/theme_fasion.py new file mode 100644 index 000000000..6df7fefeb --- /dev/null +++ b/theme_fasion/models/theme_fasion.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +"""theme fashion header""" +from odoo import models + + +class ThemeFashion(models.AbstractModel): + """Inherit the model theme.utils for adding new header file""" + _inherit = 'theme.utils' + + def _theme_fasion_post_copy(self, mod): + """For viewing default header""" + + self.enable_view('theme_fasion.template_header_hamburger_oe_structure_header_fasions') + self.disable_view('website.template_header_default') diff --git a/theme_fasion/static/description/banner.png b/theme_fasion/static/description/banner.png new file mode 100644 index 000000000..47cbdf4be Binary files /dev/null and b/theme_fasion/static/description/banner.png differ diff --git a/theme_fasion/static/description/icon.png b/theme_fasion/static/description/icon.png new file mode 100644 index 000000000..4157ba05e Binary files /dev/null and b/theme_fasion/static/description/icon.png differ diff --git a/theme_fasion/static/description/images/1.jpg b/theme_fasion/static/description/images/1.jpg new file mode 100644 index 000000000..8a63c931b Binary files /dev/null and b/theme_fasion/static/description/images/1.jpg differ diff --git a/theme_fasion/static/description/images/2.jpg b/theme_fasion/static/description/images/2.jpg new file mode 100644 index 000000000..c658221f4 Binary files /dev/null and b/theme_fasion/static/description/images/2.jpg differ diff --git a/theme_fasion/static/description/images/3.jpg b/theme_fasion/static/description/images/3.jpg new file mode 100644 index 000000000..6b5ab568b Binary files /dev/null and b/theme_fasion/static/description/images/3.jpg differ diff --git a/theme_fasion/static/description/images/4.jpg b/theme_fasion/static/description/images/4.jpg new file mode 100644 index 000000000..08c8900fa Binary files /dev/null and b/theme_fasion/static/description/images/4.jpg differ diff --git a/theme_fasion/static/description/images/5.jpg b/theme_fasion/static/description/images/5.jpg new file mode 100644 index 000000000..310cf3844 Binary files /dev/null and b/theme_fasion/static/description/images/5.jpg differ diff --git a/theme_fasion/static/description/images/6.jpg b/theme_fasion/static/description/images/6.jpg new file mode 100644 index 000000000..cfd3132bc Binary files /dev/null and b/theme_fasion/static/description/images/6.jpg differ diff --git a/theme_fasion/static/description/images/Cybrosys.png b/theme_fasion/static/description/images/Cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/theme_fasion/static/description/images/Cybrosys.png differ diff --git a/theme_fasion/static/description/images/banner.png b/theme_fasion/static/description/images/banner.png new file mode 100644 index 000000000..47cbdf4be Binary files /dev/null and b/theme_fasion/static/description/images/banner.png differ diff --git a/theme_fasion/static/description/images/contact_15.jpg b/theme_fasion/static/description/images/contact_15.jpg new file mode 100644 index 000000000..f67a195c0 Binary files /dev/null and b/theme_fasion/static/description/images/contact_15.jpg differ diff --git a/theme_fasion/static/description/images/cybro-logo-oca-no-text.png b/theme_fasion/static/description/images/cybro-logo-oca-no-text.png new file mode 100644 index 000000000..180d15dd6 Binary files /dev/null and b/theme_fasion/static/description/images/cybro-logo-oca-no-text.png differ diff --git a/theme_fasion/static/description/images/cybro-logo-oca.png b/theme_fasion/static/description/images/cybro-logo-oca.png new file mode 100644 index 000000000..90e4c9cb9 Binary files /dev/null and b/theme_fasion/static/description/images/cybro-logo-oca.png differ diff --git a/theme_fasion/static/description/images/demo-1.jpg b/theme_fasion/static/description/images/demo-1.jpg new file mode 100644 index 000000000..477d5e252 Binary files /dev/null and b/theme_fasion/static/description/images/demo-1.jpg differ diff --git a/theme_fasion/static/description/images/demo-2.jpg b/theme_fasion/static/description/images/demo-2.jpg new file mode 100644 index 000000000..05a78c846 Binary files /dev/null and b/theme_fasion/static/description/images/demo-2.jpg differ diff --git a/theme_fasion/static/description/images/demo-3.jpg b/theme_fasion/static/description/images/demo-3.jpg new file mode 100644 index 000000000..fb72857c5 Binary files /dev/null and b/theme_fasion/static/description/images/demo-3.jpg differ diff --git a/theme_fasion/static/description/images/hero.png b/theme_fasion/static/description/images/hero.png new file mode 100644 index 000000000..fa41e0546 Binary files /dev/null and b/theme_fasion/static/description/images/hero.png differ diff --git a/theme_fasion/static/description/images/laptop-screenshots.jpg b/theme_fasion/static/description/images/laptop-screenshots.jpg new file mode 100644 index 000000000..dc3533bc6 Binary files /dev/null and b/theme_fasion/static/description/images/laptop-screenshots.jpg differ diff --git a/theme_fasion/static/description/images/phone-screenshots.jpg b/theme_fasion/static/description/images/phone-screenshots.jpg new file mode 100644 index 000000000..c1cc77963 Binary files /dev/null and b/theme_fasion/static/description/images/phone-screenshots.jpg differ diff --git a/theme_fasion/static/description/images/product_view.jpg b/theme_fasion/static/description/images/product_view.jpg new file mode 100644 index 000000000..0ac756d93 Binary files /dev/null and b/theme_fasion/static/description/images/product_view.jpg differ diff --git a/theme_fasion/static/description/images/shop_page.jpg b/theme_fasion/static/description/images/shop_page.jpg new file mode 100644 index 000000000..05a78c846 Binary files /dev/null and b/theme_fasion/static/description/images/shop_page.jpg differ diff --git a/theme_fasion/static/description/index.html b/theme_fasion/static/description/index.html new file mode 100644 index 000000000..30baadf17 --- /dev/null +++ b/theme_fasion/static/description/index.html @@ -0,0 +1,265 @@ + +
+
+
+ Cybrosys Logo +
+
+
+
+
+ Theme Screenshot +
+
+

Theme Fashion

+

+ Theme Fashion is a attractive and unique front-end theme mainly suitable for eCommerce website. Many + custom designed snippets facilitates to add better user experience. Contains best deals with new arrival + products slider, testimonial slider that are configured from the backend. This theme fully customized + the eCommerce website, shop view, custom categories view, product view, contact us page...etc. it + contains price filter and clear cart options by default. +

+
+
+ + + + +
+
+

Desktop View

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive webpages. +

+
+
+ Theme Screenshot +
+
+
+
+ Theme Screenshot +
+
+

Mobile View

+

+ User friendly and modern looking theme makes your page more Stylish And Beautiful. +

+
+
+ + + + +
+ +
+
+
+ Theme Screenshot +
+
+

Shop View

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive + webpages. +

+
+
+
+ + + +
+
+
+ Theme Screenshot +
+
+

Cart View

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive + webpages. +

+
+
+
+ +
+ + + + +
+
+ Theme Screenshot +
+
+

Overview

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive webpages. +

+
+
+ + + +
+ +
+
+
+ Theme Screenshot +
+
+

New Arrivals

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive + webpages. +

+
+
+
+ + + +
+
+
+ Theme Screenshot +
+
+

Contact Map

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive + webpages. +

+
+
+
+ + + + +
+
+
+ Theme Screenshot +
+
+

Checkout Address

+

+ It is easy to customize and use. Just drag and drop the building blocks to make attractive + webpages. +

+
+
+
+ +
+ + + +
+
+
+

Demo Pages

+
+
+
+ +
+
+
+ +
Home
+
+
+
+ +
+
+ +
Shop
+
+
+
+ +
+
+ +
Cart
+
+
+
+ +
+
+ + + +
+
+

Get Help

+
+

If you have anything to share with us + based + on + your use of this module, please let us know. We are ready to offer our support.

+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+

A Quality Theme From

+
+
+ +
+
+ +
\ No newline at end of file diff --git a/theme_fasion/static/description/theme_screenshot.jpg b/theme_fasion/static/description/theme_screenshot.jpg new file mode 100644 index 000000000..18bfa940f Binary files /dev/null and b/theme_fasion/static/description/theme_screenshot.jpg differ diff --git a/theme_fasion/static/src/css/slick.css b/theme_fasion/static/src/css/slick.css new file mode 100644 index 000000000..57477e848 --- /dev/null +++ b/theme_fasion/static/src/css/slick.css @@ -0,0 +1,119 @@ +/* Slider */ +.slick-slider +{ + position: relative; + + display: block; + box-sizing: border-box; + + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + + -webkit-touch-callout: none; + -khtml-user-select: none; + -ms-touch-action: pan-y; + touch-action: pan-y; + -webkit-tap-highlight-color: transparent; +} + +.slick-list +{ + position: relative; + + display: block; + overflow: hidden; + + margin: 0; + padding: 0; +} +.slick-list:focus +{ + outline: none; +} +.slick-list.dragging +{ + cursor: pointer; + cursor: hand; +} + +.slick-slider .slick-track, +.slick-slider .slick-list +{ + -webkit-transform: translate3d(0, 0, 0); + -moz-transform: translate3d(0, 0, 0); + -ms-transform: translate3d(0, 0, 0); + -o-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} + +.slick-track +{ + position: relative; + top: 0; + left: 0; + + display: block; + margin-left: auto; + margin-right: auto; +} +.slick-track:before, +.slick-track:after +{ + display: table; + + content: ''; +} +.slick-track:after +{ + clear: both; +} +.slick-loading .slick-track +{ + visibility: hidden; +} + +.slick-slide +{ + display: none; + float: left; + + height: 100%; + min-height: 1px; +} +[dir='rtl'] .slick-slide +{ + float: right; +} +.slick-slide img +{ + display: block; +} +.slick-slide.slick-loading img +{ + display: none; +} +.slick-slide.dragging img +{ + pointer-events: none; +} +.slick-initialized .slick-slide +{ + display: block; +} +.slick-loading .slick-slide +{ + visibility: hidden; +} +.slick-vertical .slick-slide +{ + display: block; + + height: auto; + + border: 1px solid transparent; +} +.slick-arrow.slick-hidden { + display: none; +} diff --git a/theme_fasion/static/src/css/style.css b/theme_fasion/static/src/css/style.css new file mode 100644 index 000000000..3bebceee6 --- /dev/null +++ b/theme_fasion/static/src/css/style.css @@ -0,0 +1,2122 @@ +/*@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500&display=swap");*/ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ +/* Document + ========================================================================== */ +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ +html { + line-height: 1.15; + /* 1 */ + -webkit-text-size-adjust: 100%; + /* 2 */ +} + +/* Sections + ========================================================================== */ +/** + * Remove the margin in all browsers. + */ +body { + margin: 0; +} + +/** + * Render the `main` element consistently in IE. + */ +main { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ +hr { + box-sizing: content-box; + /* 1 */ + height: 0; + /* 1 */ + overflow: visible; + /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ +pre { + font-family: monospace, monospace; + /* 1 */ + font-size: 1em; + /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ +/** + * Remove the gray background on active links in IE 10. + */ +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ +abbr[title] { + border-bottom: none; + /* 1 */ + text-decoration: underline; + /* 2 */ + text-decoration: underline dotted; + /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ +code, +kbd, +samp { + font-family: monospace, monospace; + /* 1 */ + font-size: 1em; + /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ +/** + * Remove the border on images inside links in IE 10. + */ +img { + border-style: none; +} + +/* Forms + ========================================================================== */ +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ +button, +input, +optgroup, +select, +textarea { + font-family: inherit; + /* 1 */ + font-size: 100%; + /* 1 */ + line-height: 1.15; + /* 1 */ + margin: 0; + /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ +button, +input { + /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ +button, +select { + /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ +legend { + box-sizing: border-box; + /* 1 */ + color: inherit; + /* 2 */ + display: table; + /* 1 */ + max-width: 100%; + /* 1 */ + padding: 0; + /* 3 */ + white-space: normal; + /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; + /* 1 */ + padding: 0; + /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ +[type="search"] { + -webkit-appearance: textfield; + /* 1 */ + outline-offset: -2px; + /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ +::-webkit-file-upload-button { + -webkit-appearance: button; + /* 1 */ + font: inherit; + /* 2 */ +} + +/* Interactive + ========================================================================== */ +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ +/** + * Add the correct display in IE 10+. + */ +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ +[hidden] { + display: none; +} + +header { + margin-top: 37px; + margin-left: 20px; + margin-right: 20px; +} + +header .bg-light { + background-color: #ffffff00 !important; +} + +header .nav-link { + font-weight: 500; + color : black +} +ul :hover +{ + color: tomato; +} +.navbar-nav .nav-link { + padding-right: 0; + padding-left: 25px; +} + +@media screen and (max-width: 1261px) { + header .navbar { + position: relative; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + } +} + +header .header-top-left { + display: flex; + align-items: center; +} + +header .header-top-left a { + font-size: 16px; + font-weight: 500; + margin: 5px; + color: black; +} + +header .header-top-left a:hover { + color: #fe0000; + text-decoration: none; +} + +header .header-top-left img { + max-width: 20px; + width: 100px; + margin: 3px; +} + +header .header-top-left img a { + color: #0000; +} + +header .header-top-right { + display: flex; + align-items: center; +} + +header .header-top-right img { + max-width: 20px; + width: 100px; + margin: 3px; +} + +header .header-top-right .form-control { + border-top-left-radius: 21px; + border-bottom-left-radius: 21px; + border: 2px solid; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); +} + +@media screen and (max-width: 556px) { + header .header-top-right .form-control { + width: 120px; + } +} +@media screen and (max-width: 556px) { + header .header-top-right .form-control { + width: 120px; + } +} + +header .header-top-right .searchb { + background-color: black; + padding: 5px; + border: 1px solid black; + border-top-right-radius: 21px; + border-bottom-right-radius: 21px; + margin-left: 5px; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); +} + +.card-footer { + margin-top: 10px; + padding-top: 55px; + background-color: #55595a; +} + +.card-footer .footer_right { + padding-left: 0px; +} + +.card-footer .footer-left-words { + color: #ffff; + margin-top: 50px; + margin-bottom: 20px; + border-left: 6px solid red; + height: 46px; +} + +.card-footer .footer-left-words:hover { + color: #fe0000; +} + +.card-footer .footer_right .footer-right-words { + color: #ffff; + margin-top: 50px; +} + +.card-footer .footer_right .footer-right-words .footer_heading { + border-left: 6px solid red; + font-size: 25px; + padding-left: 8px; + height: 46px; +} + +.card-footer .footer_right .footer-right-words .footer_items { + text-align: left; + padding-left: 15px; +} + +.card-footer .footer_right .footer-right-words .footer_items a { + color: #ffff; + text-decoration: none; +} + +.card-footer .footer_right .footer-right-words .footer_items a:hover { + color: #fe0000; +} + +.card-footer .footer_right .footer-right-words .footer_items li { + margin-bottom: 8px; + list-style: none; +} + +.card-footer .copy_right { + margin-top: 30px; +} + +.card-footer .copy_right .copy_s { + display: flex; +} + +.card-footer .copy_right ul { + display: flex; + padding-left: 0; +} + +.card-footer .copy_right ul li { + width: 28px; + margin: 5px; + list-style-type: none; +} + +.card-footer .copy_right img { + width: 100%; + padding: 2px; +} + +.card-footer .site_name { + margin-left: 30px; + margin-top: 11px; +} + +.card-footer .site_name a { + color: #ffff; + text-decoration: none; +} + +.card-footer .site_name a:hover { + color: #fe0000; +} + +.card-footer .footer_line { + margin-left: 50px; +} + +.card-footer .footer_line:after { + content: " "; + display: block; + width: 676px; + height: 2px; + background-color: #ffff; + margin-top: 31px; +} + +@media screen and (max-width: 1199px) { + .card-footer .footer_line:after { + width: 540px; + } +} + +@media screen and (max-width: 992px) { + .card-footer .footer_line:after { + width: 395px; + } +} + +@media screen and (max-width: 768px) { + .card-footer .footer_line:after { + width: 180px; + margin-left: 50px; + } +} + +@media screen and (max-width: 535px) { + .card-footer .footer_line:after { + visibility: hidden; + } +} + +.message_bar input[type="text"].message_box { + padding: 10px 4px; + width: 74%; +} + +@media screen and (max-width: 768px) { + .message_bar input[type="text"].message_box { + width: 73%; + } +} + +@media screen and (max-width: 571px) { + .message_bar input[type="text"].message_box { + width: 50%; + } +} + +.navigation { + display: flex; +} + +.navigation #menuToggle span { + background-color: #21272B; +} + +.navigation #menu { + background: #8b5656; + right: 0px; + padding-top: 55px; +} + +.navigation #menu li { + margin-left: 15px; +} + +.navigation #menu .header-top-left { + display: flex; + align-items: center; +} + +.navigation #menu .header-top-left a { + font-size: 16px; + font-weight: 500; + margin: 5px; + color: black; +} + +.navigation #menu .header-top-left a:hover { + color: #fe0000; + text-decoration: none; +} + +.navigation #menu .header-top-left img { + max-width: 20px; + width: 100px; + margin: 5px; +} + +.navigation #menu .header-top-left img a { + color: #0000; +} + +.navigation #menu .header-top-right { + display: flex; + align-items: center; +} + +.navigation #menu .header-top-right img { + max-width: 20px; + width: 100px; + margin: 5px; +} + +.navigation #menu .header-top-right .form-control { + border-top-left-radius: 21px; + border-bottom-left-radius: 21px; + border: 2px solid; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); +} + +.navigation #menu .header-top-right .searchb { + background-color: black; + padding: 5px; + border: 1px solid black; + border-top-right-radius: 21px; + border-bottom-right-radius: 21px; + margin-left: 5px; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); +} + +.wrapper_heading { + margin-bottom: 60px; + margin-top: 80px; +} + +.wrapper_heading .m-Product-heading { + text-align: center; + font-weight: 600; + font-size: 60px; + padding-bottom: 15px; + margin-bottom: 20px; +} + +.wrapper_heading hr.new4 { + border: 1px solid; + width: 73%; +} + + + +.wrapper_heading .sub_product { + text-align: center; + color: #55595a; +} + +.product { + margin-bottom: 80px; + cursor: pointer; +} + +.product__image { + margin-bottom: 20px; + width: 100%; + height: 360px; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + position: relative; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); + border-radius: 6px; + border-color: #fff; +} + +.product__image:before { + background-image: radial-gradient(transparent, rgba(0, 0, 0, 0)); + content: ''; + height: 100%; + width: 100%; + display: block; + position: absolute; + opacity: 0; + transition: opacity .2s ease-in-out; +} + +.product:hover .product__image:before { + background-image: radial-gradient(transparent, rgba(0, 0, 0, 0.3)); + opacity: 1; +} + +.product-detials { + padding-bottom: 10px; + padding-top: 10px; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); + display: flex; + border-radius: 6px; + border-color: #fff; + height: auto !important; + align-items: center; + justify-content: space-between; + padding: 15px; +} + +.product .product__wraper { + display: flex; + margin: auto; +} + +.product__title { + font: 14px; + color: black; + margin-right: 20px; + display: flex; + align-items: center; + border-radius: 6px; + border-color: #fff; +} + +.product__rating { + margin-right: 10px; +} + +.product__rating img { + width: 100%; + max-width: 20px; + margin: 10px; +} + +.product_price { + font-weight: 800; + color: black; + margin-right: 20px; + +} +.product_price { + left: 100%; + position: initial; + + +} + +.sidebar { + height: 100%; + /* 100% Full-height */ + width: 0; + /* 0 width - change this with JavaScript */ + position: fixed; + /* Stay in place */ + z-index: 1; + /* Stay on top */ + top: 0; + right: 0; + background-color: #21272B; + overflow-x: hidden; + /* Disable horizontal scroll */ + padding-top: 60px; + /* Place content 60px from the top */ + transition: 0.5s; + /* 0.5 second transition effect to slide in the sidebar */ +} + +/* The sidebar links */ +.sidebar a { + padding: 8px 8px 8px 32px; + text-decoration: none; + font-size: 25px; + color: #818181; + display: block; + transition: 0.3s; +} + +/* When you mouse over the navigation links, change their color */ +.sidebar a:hover { + color: #f1f1f1; +} + +/* Position and style the close button (top right corner) */ +.sidebar .closebtn { + position: absolute; + top: 0; + right: 25px; + font-size: 36px; + margin-left: 50px; +} + +/* The button used to open the sidebar */ +.openbtn { + font-size: 30px; + cursor: pointer; + background-color: #ffffff00; + color: #21272B; + padding: 10px 15px; + border: none; +} + +.openbtn:hover { + background-color: #96909049; +} + +/* Style page content - use this if you want to push the page content to the right when you open the side navigation */ +#main { + transition: margin-right .5s; + /* If you want a transition effect */ +} + +/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */ +@media screen and (max-height: 450px) { + .sidebar { + padding-top: 15px; + } + .sidebar a { + font-size: 18px; + } +} + +.btn { + border: none !important; + outline: none !important; +} + +.oe_search_button { + background-color: none !important; + border-color: black; + padding: 9px 10px; +} + +.oe_search_button:hover { + background-color: #675462 !important; + border: none; +} + +.btn-primary { + color: black; + background-color: #ffff; + font-weight: 600; + border-radius: 5px; +} + +.btn-primary:hover { + color: #fff; + background-color: #a1a3a6; +} + +.btn-light{ + margin-left: 20px; + color: #fff; + padding: 9px 25px !important; + cursor: pointer; + background-color: black !important; + border-color: #fe0000; + padding: 9px 35px; + border-radius: 2px !important; +} +.btn-light:hover { + background-color: #675462 !important; + color: #fff; +} + +.btn-light:not(:disabled):not(.o_wysiwyg_loader):not(.disabled).active{ + background: #675462 !important; +} +.oe_website_sale .o_pricelist_dropdown > .btn, .oe_website_sale .o_sortby_dropdown > .btn{ + background-color: black !important; + color : #fff !important; +} + +.oe_website_sale .o_pricelist_dropdown > .btn:hover, .oe_website_sale .o_sortby_dropdown > .btn:hover{ + background-color: #675462 !important; + color : #fff !important; +} +.btn-checkout { + color: #fff; + padding: 10px 3px !important; + cursor: pointer; + background-color: red !important; + border-color: #fe0000; + padding: 9px 35px; +} + +.btn-checkout:hover { + background-color: #e60000 !important; + color: #fff; +} + +.btn-link { + color: red !important; + text-decoration: none !important; + border: none !important; + outline: none !important; +} + + +.btn-preview { + margin-left: 20px; + color: #fe0000; + padding: 9px 25px !important; + border-color: #fe0000 !important; + border: 1px solid !important; + cursor: pointer; + background-color: transparent !important; + padding: 9px 35px; + margin-left: auto; +} + +.btn-preview:hover { + background-color: #e60000 !important; + color: #fff; +} + +.btn-new { + color: #fff; + float: right; + background-color: #fe0000 !important; + border-color: #fe0000; + padding: 9px 35px; + margin-top: 20px; +} + +.btn-new:hover { + background-color: #e50000 !important; + border: none; + color: #fff; +} + +.btn-message { + color: #ffff; + font-weight: 700; + background-color: #21272B !important; + border-color: #21272B; + padding: 8px 26px; + border-radius: 0; +} + +.btn-message:hover { + background-color: #161a1d !important; + border: none !important; +} + +.btn-send { + background-color: #fff !important; + border-color: #fff; + padding: 8px 13px; + margin-top: 15px; +} + +.btn-send:hover { + background-color: #f2f2f2 !important; + border: none; +} + +.btn-more { + color: #fe0000; + background-color: #fff !important; + border-color: #fff; + padding: 9px 35px; + border-color: red; + border: 1px solid !important; +} + +.btn-more:hover { + background-color: #e50000 !important; + border: none; +} + +.banner { + margin-top: 50px; + margin-bottom: 50px; +} + +.banner .banner_left { + padding: 0; + background-color: #21272B; + padding-left: 100px; +} + +.banner .card { + background-color: #21272B; + border-radius: 0; + padding: 50px; +} + +@media screen and (max-width: 946px) { + .banner .card { + padding-left: 10px; + } +} + +.banner .card .card-title { + color: #ffff; + text-align-last: left; + margin-bottom: 20px; +} + +.banner .card .card-body { + color: #ffff; + text-align-last: left; + padding-bottom: 1px; +} + +.banner .card .hr { + background-color: #ffff; + width: 71%; + height: 3px; + float: left; +} + +.banner .card .hr2 { + background-color: #ffff; + width: 100%; + height: 1px; + float: left; +} + +.banner .card .social_media ul { + display: flex; + padding-left: 15px; +} + +.banner .card .social_media ul li { + width: 28px; + margin: 5px; + list-style-type: none; + background-color: #21272B; +} + +.banner .card .social_media img { + width: 100%; + padding: 2px; +} + +.banner .card .social_media img:hover { + border-radius: 9px; + background-color: #fe0000; +} + +.banner_right { + margin-top: 60px; + width: 100%; + max-width: 660px; + padding-left: 0px; +} + +@media screen and (max-width: 991px) { + .banner_right { + max-width: 100%; + } +} + +@media screen and (max-width: 768px) { + .banner_right { + max-width: 100%; + } +} + +.hh:after { + content: ""; + display: block; + margin-top: 5px; + padding-top: 20px; + /* This creates some space between the element and the border. */ + width: 200px; + height: 2px; + background-color: #fe0000; +} + +.nn:after { + content: ""; + display: block; + margin-top: 5px; + padding-top: 20px; + /* This creates some space between the element and the border. */ + width: 200px; + height: 2px; + background-color: #fe0000; +} + +.banner_img { + height: 290px; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + position: relative; +} + +.banner-sub-about { + background-size: cover; + position: relative; + width: 100%; + background-repeat: no-repeat; + background-position: center -76px; + margin-top: 20px; + margin-bottom: 80px; +} + +.banner-sub-contact { + background-size: cover; + position: relative; + width: 100%; + background-image: url(/theme_fasion/static/src/images/banner/contact_banner/800.jpg); + background-repeat: no-repeat; + background-position: center -76px; + margin-top: 20px; + margin-bottom: 80px; +} + +.banner-sub-cart { + background-size: cover; + position: relative; + width: 100%; + background-image: url(../images/banner/cart/19708.jpg); + background-repeat: no-repeat; + background-position: center -76px; + margin-top: 20px; + margin-bottom: 80px; +} + +.ourproduct { + background-size: cover; + position: relative; + width: 100%; + background-image: url(../images/our-product/productbg.jpg); + background-repeat: no-repeat; + background-position: bottom; + margin-top: 20px; + margin-bottom: 80px; +} + +.ourproduct .product__image { + width: 100%; + height: 368px; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + position: relative; + margin: 0; + box-shadow: none; +} + +.ourproduct .card { + border-radius: 0; +} + +.ourproduct .card .card-body { + background-color: #21272B; + color: #ffff; + padding: 52px 10px 52px 10px; +} +.card-body { + background-color: #21272B; + color: #fff; + padding: 52px 10px 52px 10px; +} + +@media screen and (max-width: 1087px) { + .ourproduct .card .card-body { + padding: 40px 10px 40px 10px; + } +} + +@media screen and (max-width: 877px) { + .ourproduct .card .card-body { + padding: 29px 10px 27px 10px; + } +} + +.ourproduct .card .card-body .card-title { + font-size: 35px; + margin-bottom: 2.75rem; +} + +.ourproduct .card .card-body .card-text { + margin-top: 37px; + margin-bottom: 30px; +} + +.ourproduct .ourproduct_disc { + margin-top: 80px; +} + +.ourproduct .ourproduct_disc .card { + border-radius: 0px !important; + background-color: transparent !important; +} + +.ourproduct .ourproduct_disc .card .card-body { + background-color: transparent !important; + margin-left: 160px; +} + +.ourproduct .ourproduct_disc .card .card-body .card-title { + font-size: 35px; + font-weight: 900; +} + +.ourproduct .ourproduct_disc .card .card-body .card-text { + margin-left: 10px; + margin-bottom: 0; + margin-top: 0px; +} + +.ourproduct .ourproduct_disc .card .card-body .blockword .vl { + border-left: 6px solid red; + height: auto; +} + +.product_more { + margin-top: 135px; +} + +.slider { + background-size: cover; + position: relative; + width: 100%; + background-image: linear-gradient(rgba(17, 17, 17, 0.79), rgba(17, 17, 17, 0.79)), url(/theme_fasion/static/src/images/Slider/test_bg.jpg); + background-repeat: no-repeat; + background-position: center; + margin-top: 40px; +} + +.slider .sliderdiv { + display: flex; + padding-top: 40px; + align-items: center; + justify-content: center; +} + +.slider .image_slider { + max-width: 550px; +} + +.slider .image_slider img { + width: 100%; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + position: relative; +} + +.slider .image_discription { + color: #ffff; + width: calc( 100% - 550px); +} + +.slider .image_discription > div { + width: 100%; +} + +.slider .image_discription:after { + content: " "; + display: block; + width: 550px; + height: 2px; + background-color: #ffff; + margin-top: 58px; +} + +@media screen and (max-width: 1199px) { + .slider .image_discription:after { + width: 367px; + margin-top: 10px; + } +} + +@media screen and (max-width: 992px) { + .slider .image_discription:after { + width: 125px; + } +} + +@media screen and (max-width: 768px) { + .slider .image_discription:after { + width: 60px; + } +} + +@media screen and (max-width: 535px) { + .slider .image_discription:after { + visibility: hidden; + } +} + +.imgdics_button .slick-prev { + display: none !important; +} + +.imgdics_button .slick-next { + margin-top: 128px; + background-color: transparent !important; + width: 0; + height: 0; + border: 0; + border-top: 15px solid transparent; + border-left: 30px solid #ffffff; + border-bottom: 15px solid transparent; +} + +.blog { + margin-top: 10px; + padding-top: 1px; + background-color: #21272B; +} + +.blog .wrapper_heading { + margin-bottom: 60px; +} + +.blog .wrapper_heading .m-Product-heading { + text-align: center; + font-weight: 600; + font-size: 60px; + color: #ffff; + padding-bottom: 15px; + margin-bottom: 20px; +} + +.blog .wrapper_heading hr.new4 { + border: 1px solid; + width: 73%; + color: #ffff; +} + +.blog .wrapper_heading .sub_product { + text-align: center; + color: #ffff; +} + +.blog .m-product .product { + margin-bottom: 80px; + cursor: pointer; +} + +.blog .m-product .product__image { + margin-bottom: 20px; + width: 100%; + height: 360px; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + position: relative; + box-shadow: 12px 4px 8px 2px rgba(0, 0, 0, 0.34); + border-radius: 6px; + border-color: #fff; +} + +.blog .m-product .product__image:before { + background-image: radial-gradient(transparent, rgba(0, 0, 0, 0)); + content: ''; + height: 100%; + width: 100%; + display: block; + position: absolute; + opacity: 0; + transition: opacity .2s ease-in-out; +} + +.blog .m-product .product:hover .product__image:before { + background-image: radial-gradient(transparent, rgba(0, 0, 0, 0.3)); + opacity: 1; +} + +.blog .m-product .product-words { + color: #ffff; + line-height: 30px; +} + +.banner-sub-about { + background-image: url(/theme_fasion/static/src/images/banner/banner.jpg); +} + +.banner-sub-about .banner-name { + margin: auto; +} + +.banner-sub-about .banner-name .banner-heading { + text-align: center; + padding-top: 156px; + padding-bottom: 156px; + font-size: 50px; + letter-spacing: 2px; + color: #ffff; +} + +.about_content { + margin-bottom: 50px; +} + +.about_content .about_subhead { + margin-bottom: 40px; +} + +.about_content .about_img { + padding-right: 50px; + border-radius: 2px; + width: 100%; +} + +@media screen and (max-width: 992px) { + .about_content .about_img { + padding-right: 0; + } +} + +.about_content .about_img img { + width: 80%; + border-radius: 13px; +} + +@media screen and (max-width: 992px) { + .about_content .about_img img { + width: 100%; + } +} + +@media screen and (max-width: 768px) { + .about_content .about_img img { + margin-bottom: 30px; + } +} + +.about_content .pince { + display: flex; + align-items: center; + margin-bottom: 20px; + margin-top: 10px; +} + +.about_content .pince .pince-left { + margin-right: 10px; + border: 1px solid; + padding: 6px; + padding-right: 12px; + padding-left: 15px; + padding-top: 13px; + border-color: #21272B; + border-radius: 50%; +} + +.about-bottom { + background-attachment: fixed; + background-image: linear-gradient(rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0.6)), url(/theme_fasion/static/src/images/banner/banner.jpg); + background-size: cover; + position: relative; + width: 100%; + text-align: end; + background-repeat: no-repeat; + margin-top: 80px; + margin-bottom: 80px; + height: 300px; + padding-top: 50px; + padding-bottom: 50px; + display: flex; + align-items: end; +} + +.about-bottom .abt-btm-words { + color: white; +} + +.n-product { + margin-bottom: 80px; +} + +.filter_sidebar { + margin-bottom: 50px; +} + +.filter_sidebar .kk { + display: flex; + align-items: center; + justify-content: space-evenly; +} + +.filter_sidebar .kk .filter_heading { + font-size: 15px; + font-size: 20px; + margin-bottom: 20px; + position: relative; +} + +.filter_sidebar .kk .h-line:after { + display: block; + content: ""; + background: #ee0808; + width: 10%; + height: 2px; + position: absolute; +} + +.filter_sidebar .filter_sidebar_sub { + font-size: 14px; + line-height: 2.429; + border: 1px solid #e1e1e1; + width: 100%; + margin-top: 20px; + margin-bottom: 30px; + padding: 3em 2.5em 2em; + padding-left: 2.5em; + padding-left: 0.5em; +} + +.filter_sidebar .filter_sidebar_sub .list { + list-style: none; +} + +.filter_sidebar .filter_sidebar-main .dresses_img_hover { + position: relative; +} + +.filter_sidebar .filter_sidebar-main .dresses_img_hover img { + width: 100%; +} + +.filter_sidebar .filter_sidebar-main .dresses_img_hover .dresses_img_hover_pos { + position: absolute; + top: 30%; + left: 60px; +} + +.filter_sidebar .filter_sidebar-main .dresses_img_hover .dresses_img_hover_pos h4 { + color: #fff; + font-size: 25px; +} + +.filter_sidebar .filter_sidebar-main .dresses_img_hover .dresses_img_hover_pos h4 span { + display: block; + font-weight: 700; + margin: 10px 0; + font-size: 45px; +} + +@media screen and (max-width: 576px) { + .filter_sidebar .filter_sidebar-main { + margin-right: 100px; + margin-left: 100px; + } +} + +.more_button { + margin: auto; +} + +.preview { + margin-top: 50px; + margin-bottom: 30px; +} + +.preview .breadcrumb-option { + margin-bottom: 40px; +} + +.preview .preview_image img { + width: 100%; + max-height: 577px; +} + +.preview .preview_details .preview-heading { + font-weight: 600; + letter-spacing: 1px; +} + +.preview .preview_details .preview_type { + color: #55595a; + font-size: 14px; +} + +.preview .preview_details .star_review { + display: flex; + list-style: none; + padding: 0; +} + +.preview .preview_details .count_review { + display: flex; + align-items: center; +} + +.preview .preview_details .single-price ul { + display: flex; + list-style: none; + justify-content: space-between; + align-items: center; + padding-left: 0px; + font-size: 15px; +} + +.preview .preview_details .single-price ul li:nth-child(1) { + font-size: 41px; + font-weight: 300; + color: #fe0000; +} + +.preview .preview_details .single-price ul li:nth-child(3) { + font-size: 20px; + color: #fe0000; +} + +.preview .preview_details .wrapper img { + width: 100%; + max-width: 20px; + margin-right: 5px; +} + +.preview .product__details__tab { + padding-top: 70px; + margin-bottom: 50px; +} + +.preview .product__details__tab .card { + margin-bottom: 3px; + border: none; +} + +.preview .product__details__tab .card-header { + background-color: #55595a; +} + +.banner-sub-contact .banner-name { + margin: auto; +} + +.banner-sub-contact .banner-name .banner-heading { + text-align: center; + padding-top: 156px; + padding-bottom: 156px; + font-size: 50px; + letter-spacing: 2px; + color: #ffff; +} + +.contact .address { + margin: 25px 0; +} + +.contact .address h4 { + margin-bottom: 25px; + color: #000; + font-weight: 600; + font-size: 16px; +} + +.contact .address h5 { + line-height: 30px; + color: #6B6B6B; + font-size: 16px; + letter-spacing: 0px; +} + +.contact a { + color: #6B6B6B; + text-decoration: none; +} + +.contact a:hover { + color: #5e5e5e !important; +} + +@media screen and (max-width: 992) { + .contact h5 { + line-height: 0; + font-size: 13px; + } +} + +.contact textarea { + width: 96%; + border: 1px solid #000; + resize: none; + padding: 10px; + height: 180px; + outline: none; + margin-top: 15px; + margin-bottom: 15px; +} + +.contact input[type="submit"] { + background: #fe0000; + padding: 14px 15px; + outline: none; + margin-top: 15px; + color: #fff; + border: none; +} + +.contact input[type="submit"]:hover { + background-color: #e60000 !important; + color: #fff; +} + +.contact_text { + width: 47%; + padding: 10px; + background: transparent; + border: 1px solid #000; + margin-bottom: 20px; + margin-top: 20px; + margin-right: 14px; + color: #000; + outline: none; +} +.s_website_form_submit a{ +background-color: #fe0000 !important; +color: white !important; +} + +@media screen and (max-width: 992px) { + .contact_text { + margin-right: 0; + } +} + +.map { + margin-top: 50px; +} + +.map .map-responsive { + overflow: hidden; + padding-bottom: 34.25%; + position: relative; + height: 0; +} + +.map .map-responsive iframe { + left: 0; + top: 0; + height: 100%; + width: 100%; + position: absolute; +} + +.banner-sub-cart .banner-name { + margin: auto; +} + +.banner-sub-cart .banner-name .banner-heading { + text-align: center; + padding-top: 156px; + padding-bottom: 156px; + font-size: 50px; + letter-spacing: 2px; + color: #ffff; +} + +.cart { + margin-bottom: 50px; + margin-top: 50px; +} + +.cart .cart_heading { + text-align: center; +} + +.cart .shopping-cart { + width: 800px; + margin: 80px auto; + background: #FFFFFF; + box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.1); + border-radius: 6px; + display: flex; + flex-direction: column; +} + +.cart .item { + padding: 20px 30px; + display: flex; +} + +.cart .item:nth-child(3) { + border-top: 1px solid #E1E8EE; + border-bottom: 1px solid #E1E8EE; +} + +.cart .buttons { + position: relative; + padding-top: 30px; + margin-right: 60px; +} + +.cart .delete-btn, +.cart .like-btn { + display: inline-block; + Cursor: pointer; +} + +.cart .delete-btn { + width: 18px; +} + +.cart .delete-btn img { + width: 100%; + width: 24px; + height: 17px; + margin-right: 20px; +} + +.cart .like-btn { + width: 18px; +} + +.cart .like-btn img { + width: 100%; + width: 24px; + height: 17px; + margin-left: 9px; +} + +.cart .is-active { + animation-name: animate; + animation-duration: .8s; + animation-iteration-count: 1; + animation-timing-function: steps(28); + animation-fill-mode: forwards; +} + +@keyframes animate { + 0% { + background-position: left; + } + 50% { + background-position: right; + } + 100% { + background-position: right; + } +} + +.cart .image { + width: 14%; + margin-right: 50px; +} + +.cart .image img { + width: 100%; +} + +.cart .description { + padding-top: 10px; + margin-right: 60px; + width: 115px; +} + +.cart .description span { + display: block; + font-size: 14px; + color: #43484D; + font-weight: 400; +} + +.cart .description span:first-child { + margin-bottom: 5px; +} + +.cart .description span:last-child { + font-weight: 300; + margin-top: 8px; + color: #86939E; +} + +.cart .quantity { + padding-top: 20px; + margin-right: 60px; +} + +.cart .quantity input { + border: none; + text-align: center; + width: 32px; + font-size: 16px; + color: #43484D; + font-weight: 300; +} + +.cart button[class*=btn] { + width: 30px; + height: 30px; + background-color: #E1E8EE; + border-radius: 6px; + border: none; + cursor: pointer; +} + +.cart .minus-btn img { + margin-bottom: 3px; +} + +.cart .plus-btn img { + margin-top: 2px; +} + +.cart button:focus, +.cart input:focus { + outline: 0; +} + +.cart .total-price { + width: 83px; + padding-top: 27px; + text-align: center; + font-size: 16px; + color: #43484D; + font-weight: 300; +} + +@media (max-width: 800px) { + .cart .shopping-cart { + width: 100%; + height: auto; + overflow: hidden; + } + .cart .item { + height: auto; + flex-wrap: wrap; + justify-content: center; + } + .cart .image img { + width: 50%; + } + .cart .image, + .cart .quantity, + .cart .description { + width: 100%; + text-align: center; + margin: 6px 0; + } + .cart .buttons { + margin-right: 20px; + } +} + +.cart .checkout_wrapper { + justify-content: center; +} +.navbar-nav { + -webkit-box-direction: normal; + -webkit-flex-direction: row !important; + flex-direction: row !important; + margin-left:2px ! important; +} +.nav-pills .nav-link.active, .nav-pills .show > .nav-link { + color: #FFFFFF; + background-color: #2b2b33; +} +.btn-fill-secondary, .btn-secondary .btn-light { + color: #FFFFFF; + background-color: #2b2b33; + border-color: #2b2b33; +} + +.o_wsale_product_btn { + background: transparent; + gap: 5px !important; + width: 100%; + left: 0 !important; + display: flex; + justify-content: center; + align-items: center; + bottom: 100% !important; + z-index: 2 !important; + } + +#products_grid.o_wsale_layout_list .product-detials{ + width: 70vh !important; + float: left; + align-items: flex-start !important; + justify-content: space-between !important; + padding: 15px; + flex-direction: column !important; + +} +#products_grid.o_wsale_layout_list .oe_product_cart .o_wsale_product_information_text { + margin-right: -3rem; + } + +#products_grid.o_wsale_layout_list .o_wsale_product_btn{ + width: 10vh !important; + flex-direction: column !important; + justify-content: unset !important; + margin-right: 13vh !important; + + } +} +.oe_product_cart .o_wsale_product_btn .btn { + width: 40px; + padding: 0.375rem 0.75rem; + line-height: 27px; + border-radius: 20% !important; + transform: scale(0); + opacity: 0; +} +.o_wsale_product_btn button{ + background: black !important; + border-radius: 5px !important; + height: 36px !important; + width: 40px !important; + line-height: 25px !important; +} +.o_wsale_product_btn button span{ + color: white !important; +} +.o_wsale_product_btn button:hover{ + background: #675462 !important; +} + +.o_wsale_product_btn a{ + background: black !important; + border-radius: 5px !important; + height: 36px !important; + width: 40px !important; + line-height: 25px !important; +} +.o_wsale_product_btn a span{ + color: white !important; +} +.o_wsale_product_btn a:hover{ + background: #675462 !important; +} +.o_we_buy_now { + margin-left: 20px; + color: #fe0000; + padding: 9px 25px !important; + border-color: #fe0000 !important; + border: 1px solid !important; + cursor: pointer; + background-color: transparent !important; + height: -webkit-fill-available; + margin-top: 15px; +} +.o_we_buy_now:hover { + background-color: #e60000 !important; + color: #fff; +} +.btn-check:checked + .btn-light{ + background: #675462 !important; +} + +.page-item.active .page-link { + z-index: 1; + color: #FFFFFF; + background-color: #2b2b33; + border-color: #2b2b33; +} +.ourproduct .card .card-body { + background-color: #21272B !important; + color: #fff; + padding: 52px 10px 52px 10px; +} +.banner .card .card-body { + color: #ffff; + text-align-last: left; + padding-bottom: 1px; + background-color: #21272B !important; +} +.contact_button{ +color: #FFFFFF; +background-color: #fe0000; +} +.o_we_website_top_actions .btn.btn-primary { + color: #FFFFFF; + background-color: #fe0000; + } +* { + font-family: "Montserrat", sans-serif; +} + +@media (max-width: 768px) { + .product-detials { + flex-direction: column; + align-items: center; + } + .btn-preview { + width: 23vh; + } + #add_to_cart_wrap { + display: inline-flex; + } + .o_wsale_product_btn{ + left: 0% !important; + right: unset !important; + } + .o_wsale_layout_list .o_wsale_product_btn{ + bottom: 15px !important; + display: contents !important; + + } + #products_grid.o_wsale_layout_list .product__price { + display: flex; + align-items: center !important; +} +} +.oe_subdescription{ + color: black !important; +} +.oe_price { + color: red !important; +} + diff --git a/theme_fasion/static/src/css/style.css.map b/theme_fasion/static/src/css/style.css.map new file mode 100644 index 000000000..f30a10e0e --- /dev/null +++ b/theme_fasion/static/src/css/style.css.map @@ -0,0 +1,34 @@ +{ + "version": 3, + "mappings": "AAAA,OAAO,CAAC,gGAAI;AEAZ,4EAA4E;AAE5E;gFACgF;AAEhF;;;GAGG;AAEF,AAAA,IAAI,CAAC;EACF,WAAW,EAAE,IAAI;EAAE,OAAO;EAC1B,wBAAwB,EAAE,IAAI;EAAE,OAAO;CAExC;;AAED;kFACgF;AAEhF;;KAEG;AAEH,AAAA,IAAI,CAAC;EACH,MAAM,EAAE,CAAC;CACV;;AAED;;KAEG;AAEH,AAAA,IAAI,CAAC;EACH,OAAO,EAAE,KAAK;CACf;;AAED;;;KAGG;AAEH,AAAA,EAAE,CAAC;EACD,SAAS,E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GACnB;;;AA9LP,AAiMI,KAjMC,CAiMD,iBAAiB,CAAA;EACf,eAAe,EAAE,MAAM;CAG5B;;ACrNH,AAAA,CAAC,CAAA;EAAC,WAAW,ExBCE,YAAY,EAAE,UAAU;CwBDP", + "sources": [ + "../scss/style.scss", + "../scss/_variables.scss", + "../scss/_normalize.scss", + "../scss/layouts/_layouts.scss", + "../scss/layouts/_header.scss", + "../scss/layouts/_footer.scss", + "../scss/layouts/_navigation.scss", + "../scss/layouts/_grid.scss", + "../scss/layouts/_product.scss", + "../scss/layouts/_sidebar.scss", + "../scss/components/_components.scss", + "../scss/components/_button.scss", + "../scss/components/_banner.scss", + "../scss/components/_banner-sub-pages.scss", + "../scss/pages/_pages.scss", + "../scss/pages/_home.scss", + "../scss/pages/home/_our-ptoduct.scss", + "../scss/pages/home/_main-product.scss", + "../scss/pages/home/_slider.scss", + "../scss/pages/home/_blog.scss", + "../scss/pages/_about.scss", + "../scss/pages/_product.scss", + "../scss/pages/_preview.scss", + "../scss/pages/_contact.scss", + "../scss/pages/_cart.scss", + "../scss/_common.scss" + ], + "names": [], + "file": "style.css" +} \ No newline at end of file diff --git a/theme_fasion/static/src/css/stylenav.css b/theme_fasion/static/src/css/stylenav.css new file mode 100644 index 000000000..bb7b95ff5 --- /dev/null +++ b/theme_fasion/static/src/css/stylenav.css @@ -0,0 +1,126 @@ + +a +{ + text-decoration: none; + color: #232323; + + transition: color 0.3s ease; +} + +a:hover +{ + color: tomato; +} + +#menuToggle +{ + display: block; + position: absolute; + top: 50px; + right: 50px; + + z-index: 1; + + -webkit-user-select: none; + user-select: none; +} + +#menuToggle input +{ + display: block; + width: 40px; + height: 32px; + position: absolute; + top: -7px; + left: -5px; + + cursor: pointer; + + opacity: 0; + z-index: 2; + + -webkit-touch-callout: none; +} + +#menuToggle span +{ + display: block; + width: 33px; + height: 4px; + margin-bottom: 5px; + position: relative; + + background: #cdcdcd; + border-radius: 3px; + + z-index: 1; + + transform-origin: 4px 0px; + + transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), + background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), + opacity 0.55s ease; +} + +#menuToggle span:first-child +{ + transform-origin: 0% 0%; +} + +#menuToggle span:nth-last-child(2) +{ + transform-origin: 0% 100%; +} + +#menuToggle input:checked ~ span +{ + opacity: 1; + transform: rotate(45deg) translate(-2px, -1px); + background: #232323; +} + +#menuToggle input:checked ~ span:nth-last-child(3) +{ + opacity: 0; + transform: rotate(0deg) scale(0.2, 0.2); +} + + +#menuToggle input:checked ~ span:nth-last-child(2) +{ + opacity: 1; + transform: rotate(-45deg) translate(0, -1px); +} + + +#menu +{ + position: absolute; + width: 300px; + margin: -100px 0 0 0; + padding: 50px; + padding-top: 125px; + right: -100px; + + background: #ededed; + list-style-type: none; + -webkit-font-smoothing: antialiased; + /* to stop flickering of text in safari */ + + transform-origin: 0% 0%; + transform: translate(100%, 0); + + transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0); +} + +#menu li +{ + padding: 10px 0; + font-size: 22px; +} + +#menuToggle input:checked ~ ul +{ + transform: scale(1.0, 1.0); + opacity: 1; +} \ No newline at end of file diff --git a/theme_fasion/static/src/images/Slider/test_bg.jpg b/theme_fasion/static/src/images/Slider/test_bg.jpg new file mode 100644 index 000000000..5b24c36bf Binary files /dev/null and b/theme_fasion/static/src/images/Slider/test_bg.jpg differ diff --git a/theme_fasion/static/src/images/Slider/testimonial/1.png b/theme_fasion/static/src/images/Slider/testimonial/1.png new file mode 100644 index 000000000..ad304d373 Binary files /dev/null and b/theme_fasion/static/src/images/Slider/testimonial/1.png differ diff --git a/theme_fasion/static/src/images/banner/banner.jpg b/theme_fasion/static/src/images/banner/banner.jpg new file mode 100644 index 000000000..82de502a4 Binary files /dev/null and b/theme_fasion/static/src/images/banner/banner.jpg differ diff --git a/theme_fasion/static/src/images/banner/cart/19708.jpg b/theme_fasion/static/src/images/banner/cart/19708.jpg new file mode 100644 index 000000000..c017e835a Binary files /dev/null and b/theme_fasion/static/src/images/banner/cart/19708.jpg differ diff --git a/theme_fasion/static/src/images/banner/contact_banner/800.jpg b/theme_fasion/static/src/images/banner/contact_banner/800.jpg new file mode 100644 index 000000000..15f3860d1 Binary files /dev/null and b/theme_fasion/static/src/images/banner/contact_banner/800.jpg differ diff --git a/theme_fasion/static/src/images/banner/hero.png b/theme_fasion/static/src/images/banner/hero.png new file mode 100644 index 000000000..80e845011 Binary files /dev/null and b/theme_fasion/static/src/images/banner/hero.png differ diff --git a/theme_fasion/static/src/images/banner/logo.png b/theme_fasion/static/src/images/banner/logo.png new file mode 100644 index 000000000..f4c6787fd Binary files /dev/null and b/theme_fasion/static/src/images/banner/logo.png differ diff --git a/theme_fasion/static/src/images/icons/car-icon/add.svg b/theme_fasion/static/src/images/icons/car-icon/add.svg new file mode 100644 index 000000000..d4277a1b1 --- /dev/null +++ b/theme_fasion/static/src/images/icons/car-icon/add.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/icons/car-icon/clear.svg b/theme_fasion/static/src/images/icons/car-icon/clear.svg new file mode 100644 index 000000000..875ce27cc --- /dev/null +++ b/theme_fasion/static/src/images/icons/car-icon/clear.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/icons/car-icon/plus.svg b/theme_fasion/static/src/images/icons/car-icon/plus.svg new file mode 100644 index 000000000..2d9029b72 --- /dev/null +++ b/theme_fasion/static/src/images/icons/car-icon/plus.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/car-icon/remove.svg b/theme_fasion/static/src/images/icons/car-icon/remove.svg new file mode 100644 index 000000000..135e85112 --- /dev/null +++ b/theme_fasion/static/src/images/icons/car-icon/remove.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/cell.png b/theme_fasion/static/src/images/icons/cell.png new file mode 100644 index 000000000..584cb62b0 Binary files /dev/null and b/theme_fasion/static/src/images/icons/cell.png differ diff --git a/theme_fasion/static/src/images/icons/cell.svg b/theme_fasion/static/src/images/icons/cell.svg new file mode 100644 index 000000000..87a6aae13 --- /dev/null +++ b/theme_fasion/static/src/images/icons/cell.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/email.png b/theme_fasion/static/src/images/icons/email.png new file mode 100644 index 000000000..94c2b4ab0 Binary files /dev/null and b/theme_fasion/static/src/images/icons/email.png differ diff --git a/theme_fasion/static/src/images/icons/email.svg b/theme_fasion/static/src/images/icons/email.svg new file mode 100644 index 000000000..f07a22e77 --- /dev/null +++ b/theme_fasion/static/src/images/icons/email.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/message.png b/theme_fasion/static/src/images/icons/message.png new file mode 100644 index 000000000..72d917723 Binary files /dev/null and b/theme_fasion/static/src/images/icons/message.png differ diff --git a/theme_fasion/static/src/images/icons/message.svg b/theme_fasion/static/src/images/icons/message.svg new file mode 100644 index 000000000..b1ca68434 --- /dev/null +++ b/theme_fasion/static/src/images/icons/message.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/product_icon/heart.svg b/theme_fasion/static/src/images/icons/product_icon/heart.svg new file mode 100644 index 000000000..aec7f7e07 --- /dev/null +++ b/theme_fasion/static/src/images/icons/product_icon/heart.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/rating/star.svg b/theme_fasion/static/src/images/icons/rating/star.svg new file mode 100644 index 000000000..f9840a296 --- /dev/null +++ b/theme_fasion/static/src/images/icons/rating/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/icons/search.png b/theme_fasion/static/src/images/icons/search.png new file mode 100644 index 000000000..b2fd0a030 Binary files /dev/null and b/theme_fasion/static/src/images/icons/search.png differ diff --git a/theme_fasion/static/src/images/icons/search.svg b/theme_fasion/static/src/images/icons/search.svg new file mode 100644 index 000000000..4f43fbeff --- /dev/null +++ b/theme_fasion/static/src/images/icons/search.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/icons/shopping/supermarket.svg b/theme_fasion/static/src/images/icons/shopping/supermarket.svg new file mode 100644 index 000000000..0ab7843f7 --- /dev/null +++ b/theme_fasion/static/src/images/icons/shopping/supermarket.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/icons/shopping/wishlist.svg b/theme_fasion/static/src/images/icons/shopping/wishlist.svg new file mode 100644 index 000000000..cbeda43d2 --- /dev/null +++ b/theme_fasion/static/src/images/icons/shopping/wishlist.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/icons/smartphone.svg b/theme_fasion/static/src/images/icons/smartphone.svg new file mode 100644 index 000000000..7ba8e0ded --- /dev/null +++ b/theme_fasion/static/src/images/icons/smartphone.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/offer_shoe/offer.jpg b/theme_fasion/static/src/images/offer_shoe/offer.jpg new file mode 100644 index 000000000..c93c537bd Binary files /dev/null and b/theme_fasion/static/src/images/offer_shoe/offer.jpg differ diff --git a/theme_fasion/static/src/images/our-product/productbg.jpg b/theme_fasion/static/src/images/our-product/productbg.jpg new file mode 100644 index 000000000..bcea572e3 Binary files /dev/null and b/theme_fasion/static/src/images/our-product/productbg.jpg differ diff --git a/theme_fasion/static/src/images/product/1.png b/theme_fasion/static/src/images/product/1.png new file mode 100644 index 000000000..34b1e59bd Binary files /dev/null and b/theme_fasion/static/src/images/product/1.png differ diff --git a/theme_fasion/static/src/images/product/2.png b/theme_fasion/static/src/images/product/2.png new file mode 100644 index 000000000..10cd96c66 Binary files /dev/null and b/theme_fasion/static/src/images/product/2.png differ diff --git a/theme_fasion/static/src/images/product/3.png b/theme_fasion/static/src/images/product/3.png new file mode 100644 index 000000000..cb8071901 Binary files /dev/null and b/theme_fasion/static/src/images/product/3.png differ diff --git a/theme_fasion/static/src/images/scial_media_icon/facebook.svg b/theme_fasion/static/src/images/scial_media_icon/facebook.svg new file mode 100644 index 000000000..1829bd900 --- /dev/null +++ b/theme_fasion/static/src/images/scial_media_icon/facebook.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme_fasion/static/src/images/scial_media_icon/hui.jpg b/theme_fasion/static/src/images/scial_media_icon/hui.jpg new file mode 100644 index 000000000..77cb250fb Binary files /dev/null and b/theme_fasion/static/src/images/scial_media_icon/hui.jpg differ diff --git a/theme_fasion/static/src/images/scial_media_icon/instagram.svg b/theme_fasion/static/src/images/scial_media_icon/instagram.svg new file mode 100644 index 000000000..5b4b1edd8 --- /dev/null +++ b/theme_fasion/static/src/images/scial_media_icon/instagram.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/theme_fasion/static/src/images/scial_media_icon/twitter-banner.svg b/theme_fasion/static/src/images/scial_media_icon/twitter-banner.svg new file mode 100644 index 000000000..618fb6123 --- /dev/null +++ b/theme_fasion/static/src/images/scial_media_icon/twitter-banner.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/scial_media_icon/twitter.svg b/theme_fasion/static/src/images/scial_media_icon/twitter.svg new file mode 100644 index 000000000..5994429be --- /dev/null +++ b/theme_fasion/static/src/images/scial_media_icon/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme_fasion/static/src/images/snippets/about.jpg b/theme_fasion/static/src/images/snippets/about.jpg new file mode 100644 index 000000000..2969d5059 Binary files /dev/null and b/theme_fasion/static/src/images/snippets/about.jpg differ diff --git a/theme_fasion/static/src/images/snippets/blogs-block.jpg b/theme_fasion/static/src/images/snippets/blogs-block.jpg new file mode 100644 index 000000000..36d557474 Binary files /dev/null and b/theme_fasion/static/src/images/snippets/blogs-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/cart-block.jpg b/theme_fasion/static/src/images/snippets/cart-block.jpg new file mode 100644 index 000000000..071bb2cc5 Binary files /dev/null and b/theme_fasion/static/src/images/snippets/cart-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/contact-block.jpg b/theme_fasion/static/src/images/snippets/contact-block.jpg new file mode 100644 index 000000000..064e6315a Binary files /dev/null and b/theme_fasion/static/src/images/snippets/contact-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/fashion-banner-block.jpg b/theme_fasion/static/src/images/snippets/fashion-banner-block.jpg new file mode 100644 index 000000000..ab727e8ab Binary files /dev/null and b/theme_fasion/static/src/images/snippets/fashion-banner-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/footer-block.jpg b/theme_fasion/static/src/images/snippets/footer-block.jpg new file mode 100644 index 000000000..69cda9dba Binary files /dev/null and b/theme_fasion/static/src/images/snippets/footer-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/index-banner-block.jpg b/theme_fasion/static/src/images/snippets/index-banner-block.jpg new file mode 100644 index 000000000..2017e484a Binary files /dev/null and b/theme_fasion/static/src/images/snippets/index-banner-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/product-fashion-block.jpg b/theme_fasion/static/src/images/snippets/product-fashion-block.jpg new file mode 100644 index 000000000..f6caff6fc Binary files /dev/null and b/theme_fasion/static/src/images/snippets/product-fashion-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/product-preview-block.jpg b/theme_fasion/static/src/images/snippets/product-preview-block.jpg new file mode 100644 index 000000000..bfcc48968 Binary files /dev/null and b/theme_fasion/static/src/images/snippets/product-preview-block.jpg differ diff --git a/theme_fasion/static/src/images/snippets/slider-block.jpg b/theme_fasion/static/src/images/snippets/slider-block.jpg new file mode 100644 index 000000000..035b69725 Binary files /dev/null and b/theme_fasion/static/src/images/snippets/slider-block.jpg differ diff --git a/theme_fasion/static/src/js/custom.js b/theme_fasion/static/src/js/custom.js new file mode 100644 index 000000000..a569671ee --- /dev/null +++ b/theme_fasion/static/src/js/custom.js @@ -0,0 +1,10 @@ +/* Set the width of the sidebar to 250px and the left margin of the page content to 250px */ +function openNav() { + document.getElementById("mySidebar").style.width = "250px"; + + } + + /* Set the width of the sidebar to 0 and the left margin of the page content to 0 */ + function closeNav() { + document.getElementById("mySidebar").style.width = "0"; + } \ No newline at end of file diff --git a/theme_fasion/static/src/js/jquery.flexisel.js b/theme_fasion/static/src/js/jquery.flexisel.js new file mode 100644 index 000000000..a955b5948 --- /dev/null +++ b/theme_fasion/static/src/js/jquery.flexisel.js @@ -0,0 +1,284 @@ +/* +* File: jquery.flexisel.js +* Version: 1.0.0 +* Description: Responsive carousel jQuery plugin +* Author: 9bit Studios +* Copyright 2012, 9bit Studios +* http://www.9bitstudios.com +* Free to use and abuse under the MIT license. +* http://www.opensource.org/licenses/mit-license.php +*/ + +(function ($) { + + $.fn.flexisel = function (options) { + + var defaults = $.extend({ + visibleItems: 4, + animationSpeed: 200, + autoPlay: false, + autoPlaySpeed: 3000, + pauseOnHover: true, + setMaxWidthAndHeight: false, + enableResponsiveBreakpoints: false, + responsiveBreakpoints: { + portrait: { + changePoint:480, + visibleItems: 1 + }, + landscape: { + changePoint:640, + visibleItems: 2 + }, + tablet: { + changePoint:768, + visibleItems: 3 + } + } + }, options); + + /****************************** + Private Variables + *******************************/ + + var object = $(this); + var settings = $.extend(defaults, options); + var itemsWidth; // Declare the global width of each item in carousel + var canNavigate = true; + var itemsVisible = settings.visibleItems; + + /****************************** + Public Methods + *******************************/ + + var methods = { + + init: function() { + + return this.each(function () { + methods.appendHTML(); + methods.setEventHandlers(); + methods.initializeItems(); + }); + }, + + /****************************** + Initialize Items + *******************************/ + + initializeItems: function() { + + var listParent = object.parent(); + var innerHeight = listParent.height(); + var childSet = object.children(); + + var innerWidth = listParent.width(); // Set widths + itemsWidth = (innerWidth)/itemsVisible; + childSet.width(itemsWidth); + childSet.last().insertBefore(childSet.first()); + childSet.last().insertBefore(childSet.first()); + object.css({'left' : -itemsWidth}); + + object.fadeIn(); + $(window).trigger("resize"); // needed to position arrows correctly + + }, + + + /****************************** + Append HTML + *******************************/ + + appendHTML: function() { + + object.addClass("nbs-flexisel-ul"); + object.wrap("
"); + object.find("li").addClass("nbs-flexisel-item"); + + if(settings.setMaxWidthAndHeight) { + var baseWidth = $(".nbs-flexisel-item > img").width(); + var baseHeight = $(".nbs-flexisel-item > img").height(); + $(".nbs-flexisel-item > img").css("max-width", baseWidth); + $(".nbs-flexisel-item > img").css("max-height", baseHeight); + } + + $("
").insertAfter(object); + var cloneContent = object.children().clone(); + object.append(cloneContent); + }, + + + /****************************** + Set Event Handlers + *******************************/ + setEventHandlers: function() { + + var listParent = object.parent(); + var childSet = object.children(); + var leftArrow = listParent.find($(".nbs-flexisel-nav-left")); + var rightArrow = listParent.find($(".nbs-flexisel-nav-right")); + + $(window).on("resize", function(event){ + + methods.setResponsiveEvents(); + + var innerWidth = $(listParent).width(); + var innerHeight = $(listParent).height(); + + itemsWidth = (innerWidth)/itemsVisible; + + childSet.width(itemsWidth); + object.css({'left' : -itemsWidth}); + + var halfArrowHeight = (leftArrow.height())/2; + var arrowMargin = (innerHeight/2) - halfArrowHeight; + leftArrow.css("top", arrowMargin + "px"); + rightArrow.css("top", arrowMargin + "px"); + + }); + + $(leftArrow).on("click", function (event) { + methods.scrollLeft(); + }); + + $(rightArrow).on("click", function (event) { + methods.scrollRight(); + }); + + if(settings.pauseOnHover == true) { + $(".nbs-flexisel-item").on({ + mouseenter: function () { + canNavigate = false; + }, + mouseleave: function () { + canNavigate = true; + } + }); + } + + if(settings.autoPlay == true) { + + setInterval(function () { + if(canNavigate == true) + methods.scrollRight(); + }, settings.autoPlaySpeed); + } + + }, + + /****************************** + Set Responsive Events + *******************************/ + + setResponsiveEvents: function() { + var contentWidth = $('html').width(); + + if(settings.enableResponsiveBreakpoints == true) { + if(contentWidth < settings.responsiveBreakpoints.portrait.changePoint) { + itemsVisible = settings.responsiveBreakpoints.portrait.visibleItems; + } + else if(contentWidth > settings.responsiveBreakpoints.portrait.changePoint && contentWidth < settings.responsiveBreakpoints.landscape.changePoint) { + itemsVisible = settings.responsiveBreakpoints.landscape.visibleItems; + } + else if(contentWidth > settings.responsiveBreakpoints.landscape.changePoint && contentWidth < settings.responsiveBreakpoints.tablet.changePoint) { + itemsVisible = settings.responsiveBreakpoints.tablet.visibleItems; + } + else { + itemsVisible = settings.visibleItems; + } + } + }, + + /****************************** + Scroll Left + *******************************/ + + scrollLeft:function() { + + if(canNavigate == true) { + canNavigate = false; + + var listParent = object.parent(); + var innerWidth = listParent.width(); + + itemsWidth = (innerWidth)/itemsVisible; + + var childSet = object.children(); + + object.animate({ + 'left' : "+=" + itemsWidth + }, + { + queue:false, + duration:settings.animationSpeed, + easing: "linear", + complete: function() { + childSet.last().insertBefore(childSet.first()); // Get the first list item and put it after the last list item (that's how the infinite effects is made) + methods.adjustScroll(); + canNavigate = true; + } + } + ); + } + }, + + /****************************** + Scroll Right + *******************************/ + + scrollRight:function() { + + if(canNavigate == true) { + canNavigate = false; + + var listParent = object.parent(); + var innerWidth = listParent.width(); + + itemsWidth = (innerWidth)/itemsVisible; + + var childSet = object.children(); + + object.animate({ + 'left' : "-=" + itemsWidth + }, + { + queue:false, + duration:settings.animationSpeed, + easing: "linear", + complete: function() { + childSet.first().insertAfter(childSet.last()); // Get the first list item and put it after the last list item (that's how the infinite effects is made) + methods.adjustScroll(); + canNavigate = true; + } + } + ); + } + }, + + /****************************** + Adjust Scroll + *******************************/ + + adjustScroll: function() { + + var listParent = object.parent(); + var childSet = object.children(); + + var innerWidth = listParent.width(); + itemsWidth = (innerWidth)/itemsVisible; + childSet.width(itemsWidth); + object.css({'left' : -itemsWidth}); + } + + }; + + if (methods[options]) { // $("#element").pluginName('methodName', 'arg1', 'arg2'); + return methods[options].apply(this, Array.prototype.slice.call(arguments, 1)); + } else if (typeof options === 'object' || !options) { // $("#element").pluginName({ option: 1, option:2 }); + return methods.init.apply(this); + } else { + $.error( 'Method "' + method + '" does not exist in flexisel plugin!'); + } +}; + +})(jQuery); diff --git a/theme_fasion/static/src/js/owl.carousel.js b/theme_fasion/static/src/js/owl.carousel.js new file mode 100644 index 000000000..66c67ebe0 --- /dev/null +++ b/theme_fasion/static/src/js/owl.carousel.js @@ -0,0 +1,3448 @@ +/** + * Owl Carousel v2.3.4 + * Copyright 2013-2018 David Deutsch + * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE + */ +/** + * Owl carousel + * @version 2.3.4 + * @author Bartosz Wojciechowski + * @author David Deutsch + * @license The MIT License (MIT) + * @todo Lazy Load Icon + * @todo prevent animationend bubling + * @todo itemsScaleUp + * @todo Test Zepto + * @todo stagePadding calculate wrong active classes + */ +;(function($, window, document, undefined) { + + /** + * Creates a carousel. + * @class The Owl Carousel. + * @public + * @param {HTMLElement|jQuery} element - The element to create the carousel for. + * @param {Object} [options] - The options + */ + function Owl(element, options) { + + /** + * Current settings for the carousel. + * @public + */ + this.settings = null; + + /** + * Current options set by the caller including defaults. + * @public + */ + this.options = $.extend({}, Owl.Defaults, options); + + /** + * Plugin element. + * @public + */ + this.$element = $(element); + + /** + * Proxied event handlers. + * @protected + */ + this._handlers = {}; + + /** + * References to the running plugins of this carousel. + * @protected + */ + this._plugins = {}; + + /** + * Currently suppressed events to prevent them from being retriggered. + * @protected + */ + this._supress = {}; + + /** + * Absolute current position. + * @protected + */ + this._current = null; + + /** + * Animation speed in milliseconds. + * @protected + */ + this._speed = null; + + /** + * Coordinates of all items in pixel. + * @todo The name of this member is missleading. + * @protected + */ + this._coordinates = []; + + /** + * Current breakpoint. + * @todo Real media queries would be nice. + * @protected + */ + this._breakpoint = null; + + /** + * Current width of the plugin element. + */ + this._width = null; + + /** + * All real items. + * @protected + */ + this._items = []; + + /** + * All cloned items. + * @protected + */ + this._clones = []; + + /** + * Merge values of all items. + * @todo Maybe this could be part of a plugin. + * @protected + */ + this._mergers = []; + + /** + * Widths of all items. + */ + this._widths = []; + + /** + * Invalidated parts within the update process. + * @protected + */ + this._invalidated = {}; + + /** + * Ordered list of workers for the update process. + * @protected + */ + this._pipe = []; + + /** + * Current state information for the drag operation. + * @todo #261 + * @protected + */ + this._drag = { + time: null, + target: null, + pointer: null, + stage: { + start: null, + current: null + }, + direction: null + }; + + /** + * Current state information and their tags. + * @type {Object} + * @protected + */ + this._states = { + current: {}, + tags: { + 'initializing': [ 'busy' ], + 'animating': [ 'busy' ], + 'dragging': [ 'interacting' ] + } + }; + + $.each([ 'onResize', 'onThrottledResize' ], $.proxy(function(i, handler) { + this._handlers[handler] = $.proxy(this[handler], this); + }, this)); + + $.each(Owl.Plugins, $.proxy(function(key, plugin) { + this._plugins[key.charAt(0).toLowerCase() + key.slice(1)] + = new plugin(this); + }, this)); + + $.each(Owl.Workers, $.proxy(function(priority, worker) { + this._pipe.push({ + 'filter': worker.filter, + 'run': $.proxy(worker.run, this) + }); + }, this)); + + this.setup(); + this.initialize(); + } + + /** + * Default options for the carousel. + * @public + */ + Owl.Defaults = { + items: 3, + loop: false, + center: false, + rewind: false, + checkVisibility: true, + + mouseDrag: true, + touchDrag: true, + pullDrag: true, + freeDrag: false, + + margin: 0, + stagePadding: 0, + + merge: false, + mergeFit: true, + autoWidth: false, + + startPosition: 0, + rtl: false, + + smartSpeed: 250, + fluidSpeed: false, + dragEndSpeed: false, + + responsive: {}, + responsiveRefreshRate: 200, + responsiveBaseElement: window, + + fallbackEasing: 'swing', + slideTransition: '', + + info: false, + + nestedItemSelector: false, + itemElement: 'div', + stageElement: 'div', + + refreshClass: 'owl-refresh', + loadedClass: 'owl-loaded', + loadingClass: 'owl-loading', + rtlClass: 'owl-rtl', + responsiveClass: 'owl-responsive', + dragClass: 'owl-drag', + itemClass: 'owl-item', + stageClass: 'owl-stage', + stageOuterClass: 'owl-stage-outer', + grabClass: 'owl-grab' + }; + + /** + * Enumeration for width. + * @public + * @readonly + * @enum {String} + */ + Owl.Width = { + Default: 'default', + Inner: 'inner', + Outer: 'outer' + }; + + /** + * Enumeration for types. + * @public + * @readonly + * @enum {String} + */ + Owl.Type = { + Event: 'event', + State: 'state' + }; + + /** + * Contains all registered plugins. + * @public + */ + Owl.Plugins = {}; + + /** + * List of workers involved in the update process. + */ + Owl.Workers = [ { + filter: [ 'width', 'settings' ], + run: function() { + this._width = this.$element.width(); + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function(cache) { + cache.current = this._items && this._items[this.relative(this._current)]; + } + }, { + filter: [ 'items', 'settings' ], + run: function() { + this.$stage.children('.cloned').remove(); + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function(cache) { + var margin = this.settings.margin || '', + grid = !this.settings.autoWidth, + rtl = this.settings.rtl, + css = { + 'width': 'auto', + 'margin-left': rtl ? margin : '', + 'margin-right': rtl ? '' : margin + }; + + !grid && this.$stage.children().css(css); + + cache.css = css; + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function(cache) { + var width = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, + merge = null, + iterator = this._items.length, + grid = !this.settings.autoWidth, + widths = []; + + cache.items = { + merge: false, + width: width + }; + + while (iterator--) { + merge = this._mergers[iterator]; + merge = this.settings.mergeFit && Math.min(merge, this.settings.items) || merge; + + cache.items.merge = merge > 1 || cache.items.merge; + + widths[iterator] = !grid ? this._items[iterator].width() : width * merge; + } + + this._widths = widths; + } + }, { + filter: [ 'items', 'settings' ], + run: function() { + var clones = [], + items = this._items, + settings = this.settings, + // TODO: Should be computed from number of min width items in stage + view = Math.max(settings.items * 2, 4), + size = Math.ceil(items.length / 2) * 2, + repeat = settings.loop && items.length ? settings.rewind ? view : Math.max(view, size) : 0, + append = '', + prepend = ''; + + repeat /= 2; + + while (repeat > 0) { + // Switch to only using appended clones + clones.push(this.normalize(clones.length / 2, true)); + append = append + items[clones[clones.length - 1]][0].outerHTML; + clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true)); + prepend = items[clones[clones.length - 1]][0].outerHTML + prepend; + repeat -= 1; + } + + this._clones = clones; + + $(append).addClass('cloned').appendTo(this.$stage); + $(prepend).addClass('cloned').prependTo(this.$stage); + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function() { + var rtl = this.settings.rtl ? 1 : -1, + size = this._clones.length + this._items.length, + iterator = -1, + previous = 0, + current = 0, + coordinates = []; + + while (++iterator < size) { + previous = coordinates[iterator - 1] || 0; + current = this._widths[this.relative(iterator)] + this.settings.margin; + coordinates.push(previous + current * rtl); + } + + this._coordinates = coordinates; + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function() { + var padding = this.settings.stagePadding, + coordinates = this._coordinates, + css = { + 'width': Math.ceil(Math.abs(coordinates[coordinates.length - 1])) + padding * 2, + 'padding-left': padding || '', + 'padding-right': padding || '' + }; + + this.$stage.css(css); + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function(cache) { + var iterator = this._coordinates.length, + grid = !this.settings.autoWidth, + items = this.$stage.children(); + + if (grid && cache.items.merge) { + while (iterator--) { + cache.css.width = this._widths[this.relative(iterator)]; + items.eq(iterator).css(cache.css); + } + } else if (grid) { + cache.css.width = cache.items.width; + items.css(cache.css); + } + } + }, { + filter: [ 'items' ], + run: function() { + this._coordinates.length < 1 && this.$stage.removeAttr('style'); + } + }, { + filter: [ 'width', 'items', 'settings' ], + run: function(cache) { + cache.current = cache.current ? this.$stage.children().index(cache.current) : 0; + cache.current = Math.max(this.minimum(), Math.min(this.maximum(), cache.current)); + this.reset(cache.current); + } + }, { + filter: [ 'position' ], + run: function() { + this.animate(this.coordinates(this._current)); + } + }, { + filter: [ 'width', 'position', 'items', 'settings' ], + run: function() { + var rtl = this.settings.rtl ? 1 : -1, + padding = this.settings.stagePadding * 2, + begin = this.coordinates(this.current()) + padding, + end = begin + this.width() * rtl, + inner, outer, matches = [], i, n; + + for (i = 0, n = this._coordinates.length; i < n; i++) { + inner = this._coordinates[i - 1] || 0; + outer = Math.abs(this._coordinates[i]) + padding * rtl; + + if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end))) + || (this.op(outer, '<', begin) && this.op(outer, '>', end))) { + matches.push(i); + } + } + + this.$stage.children('.active').removeClass('active'); + this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active'); + + this.$stage.children('.center').removeClass('center'); + if (this.settings.center) { + this.$stage.children().eq(this.current()).addClass('center'); + } + } + } ]; + + /** + * Create the stage DOM element + */ + Owl.prototype.initializeStage = function() { + this.$stage = this.$element.find('.' + this.settings.stageClass); + + // if the stage is already in the DOM, grab it and skip stage initialization + if (this.$stage.length) { + return; + } + + this.$element.addClass(this.options.loadingClass); + + // create stage + this.$stage = $('<' + this.settings.stageElement + '>', { + "class": this.settings.stageClass + }).wrap( $( '
', { + "class": this.settings.stageOuterClass + })); + + // append stage + this.$element.append(this.$stage.parent()); + }; + + /** + * Create item DOM elements + */ + Owl.prototype.initializeItems = function() { + var $items = this.$element.find('.owl-item'); + + // if the items are already in the DOM, grab them and skip item initialization + if ($items.length) { + this._items = $items.get().map(function(item) { + return $(item); + }); + + this._mergers = this._items.map(function() { + return 1; + }); + + this.refresh(); + + return; + } + + // append content + this.replace(this.$element.children().not(this.$stage.parent())); + + // check visibility + if (this.isVisible()) { + // update view + this.refresh(); + } else { + // invalidate width + this.invalidate('width'); + } + + this.$element + .removeClass(this.options.loadingClass) + .addClass(this.options.loadedClass); + }; + + /** + * Initializes the carousel. + * @protected + */ + Owl.prototype.initialize = function() { + this.enter('initializing'); + this.trigger('initialize'); + + this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl); + + if (this.settings.autoWidth && !this.is('pre-loading')) { + var imgs, nestedSelector, width; + imgs = this.$element.find('img'); + nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined; + width = this.$element.children(nestedSelector).width(); + + if (imgs.length && width <= 0) { + this.preloadAutoWidthImages(imgs); + } + } + + this.initializeStage(); + this.initializeItems(); + + // register event handlers + this.registerEventHandlers(); + + this.leave('initializing'); + this.trigger('initialized'); + }; + + /** + * @returns {Boolean} visibility of $element + * if you know the carousel will always be visible you can set `checkVisibility` to `false` to + * prevent the expensive browser layout forced reflow the $element.is(':visible') does + */ + Owl.prototype.isVisible = function() { + return this.settings.checkVisibility + ? this.$element.is(':visible') + : true; + }; + + /** + * Setups the current settings. + * @todo Remove responsive classes. Why should adaptive designs be brought into IE8? + * @todo Support for media queries by using `matchMedia` would be nice. + * @public + */ + Owl.prototype.setup = function() { + var viewport = this.viewport(), + overwrites = this.options.responsive, + match = -1, + settings = null; + + if (!overwrites) { + settings = $.extend({}, this.options); + } else { + $.each(overwrites, function(breakpoint) { + if (breakpoint <= viewport && breakpoint > match) { + match = Number(breakpoint); + } + }); + + settings = $.extend({}, this.options, overwrites[match]); + if (typeof settings.stagePadding === 'function') { + settings.stagePadding = settings.stagePadding(); + } + delete settings.responsive; + + // responsive class + if (settings.responsiveClass) { + this.$element.attr('class', + this.$element.attr('class').replace(new RegExp('(' + this.options.responsiveClass + '-)\\S+\\s', 'g'), '$1' + match) + ); + } + } + + this.trigger('change', { property: { name: 'settings', value: settings } }); + this._breakpoint = match; + this.settings = settings; + this.invalidate('settings'); + this.trigger('changed', { property: { name: 'settings', value: this.settings } }); + }; + + /** + * Updates option logic if necessery. + * @protected + */ + Owl.prototype.optionsLogic = function() { + if (this.settings.autoWidth) { + this.settings.stagePadding = false; + this.settings.merge = false; + } + }; + + /** + * Prepares an item before add. + * @todo Rename event parameter `content` to `item`. + * @protected + * @returns {jQuery|HTMLElement} - The item container. + */ + Owl.prototype.prepare = function(item) { + var event = this.trigger('prepare', { content: item }); + + if (!event.data) { + event.data = $('<' + this.settings.itemElement + '/>') + .addClass(this.options.itemClass).append(item) + } + + this.trigger('prepared', { content: event.data }); + + return event.data; + }; + + /** + * Updates the view. + * @public + */ + Owl.prototype.update = function() { + var i = 0, + n = this._pipe.length, + filter = $.proxy(function(p) { return this[p] }, this._invalidated), + cache = {}; + + while (i < n) { + if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) { + this._pipe[i].run(cache); + } + i++; + } + + this._invalidated = {}; + + !this.is('valid') && this.enter('valid'); + }; + + /** + * Gets the width of the view. + * @public + * @param {Owl.Width} [dimension=Owl.Width.Default] - The dimension to return. + * @returns {Number} - The width of the view in pixel. + */ + Owl.prototype.width = function(dimension) { + dimension = dimension || Owl.Width.Default; + switch (dimension) { + case Owl.Width.Inner: + case Owl.Width.Outer: + return this._width; + default: + return this._width - this.settings.stagePadding * 2 + this.settings.margin; + } + }; + + /** + * Refreshes the carousel primarily for adaptive purposes. + * @public + */ + Owl.prototype.refresh = function() { + this.enter('refreshing'); + this.trigger('refresh'); + + this.setup(); + + this.optionsLogic(); + + this.$element.addClass(this.options.refreshClass); + + this.update(); + + this.$element.removeClass(this.options.refreshClass); + + this.leave('refreshing'); + this.trigger('refreshed'); + }; + + /** + * Checks window `resize` event. + * @protected + */ + Owl.prototype.onThrottledResize = function() { + window.clearTimeout(this.resizeTimer); + this.resizeTimer = window.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate); + }; + + /** + * Checks window `resize` event. + * @protected + */ + Owl.prototype.onResize = function() { + if (!this._items.length) { + return false; + } + + if (this._width === this.$element.width()) { + return false; + } + + if (!this.isVisible()) { + return false; + } + + this.enter('resizing'); + + if (this.trigger('resize').isDefaultPrevented()) { + this.leave('resizing'); + return false; + } + + this.invalidate('width'); + + this.refresh(); + + this.leave('resizing'); + this.trigger('resized'); + }; + + /** + * Registers event handlers. + * @todo Check `msPointerEnabled` + * @todo #261 + * @protected + */ + Owl.prototype.registerEventHandlers = function() { + if ($.support.transition) { + this.$stage.on($.support.transition.end + '.owl.core', $.proxy(this.onTransitionEnd, this)); + } + + if (this.settings.responsive !== false) { + this.on(window, 'resize', this._handlers.onThrottledResize); + } + + if (this.settings.mouseDrag) { + this.$element.addClass(this.options.dragClass); + this.$stage.on('mousedown.owl.core', $.proxy(this.onDragStart, this)); + this.$stage.on('dragstart.owl.core selectstart.owl.core', function() { return false }); + } + + if (this.settings.touchDrag){ + this.$stage.on('touchstart.owl.core', $.proxy(this.onDragStart, this)); + this.$stage.on('touchcancel.owl.core', $.proxy(this.onDragEnd, this)); + } + }; + + /** + * Handles `touchstart` and `mousedown` events. + * @todo Horizontal swipe threshold as option + * @todo #261 + * @protected + * @param {Event} event - The event arguments. + */ + Owl.prototype.onDragStart = function(event) { + var stage = null; + + if (event.which === 3) { + return; + } + + if ($.support.transform) { + stage = this.$stage.css('transform').replace(/.*\(|\)| /g, '').split(','); + stage = { + x: stage[stage.length === 16 ? 12 : 4], + y: stage[stage.length === 16 ? 13 : 5] + }; + } else { + stage = this.$stage.position(); + stage = { + x: this.settings.rtl ? + stage.left + this.$stage.width() - this.width() + this.settings.margin : + stage.left, + y: stage.top + }; + } + + if (this.is('animating')) { + $.support.transform ? this.animate(stage.x) : this.$stage.stop() + this.invalidate('position'); + } + + this.$element.toggleClass(this.options.grabClass, event.type === 'mousedown'); + + this.speed(0); + + this._drag.time = new Date().getTime(); + this._drag.target = $(event.target); + this._drag.stage.start = stage; + this._drag.stage.current = stage; + this._drag.pointer = this.pointer(event); + + $(document).on('mouseup.owl.core touchend.owl.core', $.proxy(this.onDragEnd, this)); + + $(document).one('mousemove.owl.core touchmove.owl.core', $.proxy(function(event) { + var delta = this.difference(this._drag.pointer, this.pointer(event)); + + $(document).on('mousemove.owl.core touchmove.owl.core', $.proxy(this.onDragMove, this)); + + if (Math.abs(delta.x) < Math.abs(delta.y) && this.is('valid')) { + return; + } + + event.preventDefault(); + + this.enter('dragging'); + this.trigger('drag'); + }, this)); + }; + + /** + * Handles the `touchmove` and `mousemove` events. + * @todo #261 + * @protected + * @param {Event} event - The event arguments. + */ + Owl.prototype.onDragMove = function(event) { + var minimum = null, + maximum = null, + pull = null, + delta = this.difference(this._drag.pointer, this.pointer(event)), + stage = this.difference(this._drag.stage.start, delta); + + if (!this.is('dragging')) { + return; + } + + event.preventDefault(); + + if (this.settings.loop) { + minimum = this.coordinates(this.minimum()); + maximum = this.coordinates(this.maximum() + 1) - minimum; + stage.x = (((stage.x - minimum) % maximum + maximum) % maximum) + minimum; + } else { + minimum = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()); + maximum = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()); + pull = this.settings.pullDrag ? -1 * delta.x / 5 : 0; + stage.x = Math.max(Math.min(stage.x, minimum + pull), maximum + pull); + } + + this._drag.stage.current = stage; + + this.animate(stage.x); + }; + + /** + * Handles the `touchend` and `mouseup` events. + * @todo #261 + * @todo Threshold for click event + * @protected + * @param {Event} event - The event arguments. + */ + Owl.prototype.onDragEnd = function(event) { + var delta = this.difference(this._drag.pointer, this.pointer(event)), + stage = this._drag.stage.current, + direction = delta.x > 0 ^ this.settings.rtl ? 'left' : 'right'; + + $(document).off('.owl.core'); + + this.$element.removeClass(this.options.grabClass); + + if (delta.x !== 0 && this.is('dragging') || !this.is('valid')) { + this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed); + this.current(this.closest(stage.x, delta.x !== 0 ? direction : this._drag.direction)); + this.invalidate('position'); + this.update(); + + this._drag.direction = direction; + + if (Math.abs(delta.x) > 3 || new Date().getTime() - this._drag.time > 300) { + this._drag.target.one('click.owl.core', function() { return false; }); + } + } + + if (!this.is('dragging')) { + return; + } + + this.leave('dragging'); + this.trigger('dragged'); + }; + + /** + * Gets absolute position of the closest item for a coordinate. + * @todo Setting `freeDrag` makes `closest` not reusable. See #165. + * @protected + * @param {Number} coordinate - The coordinate in pixel. + * @param {String} direction - The direction to check for the closest item. Ether `left` or `right`. + * @return {Number} - The absolute position of the closest item. + */ + Owl.prototype.closest = function(coordinate, direction) { + var position = -1, + pull = 30, + width = this.width(), + coordinates = this.coordinates(); + + if (!this.settings.freeDrag) { + // check closest item + $.each(coordinates, $.proxy(function(index, value) { + // on a left pull, check on current index + if (direction === 'left' && coordinate > value - pull && coordinate < value + pull) { + position = index; + // on a right pull, check on previous index + // to do so, subtract width from value and set position = index + 1 + } else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) { + position = index + 1; + } else if (this.op(coordinate, '<', value) + && this.op(coordinate, '>', coordinates[index + 1] !== undefined ? coordinates[index + 1] : value - width)) { + position = direction === 'left' ? index + 1 : index; + } + return position === -1; + }, this)); + } + + if (!this.settings.loop) { + // non loop boundries + if (this.op(coordinate, '>', coordinates[this.minimum()])) { + position = coordinate = this.minimum(); + } else if (this.op(coordinate, '<', coordinates[this.maximum()])) { + position = coordinate = this.maximum(); + } + } + + return position; + }; + + /** + * Animates the stage. + * @todo #270 + * @public + * @param {Number} coordinate - The coordinate in pixels. + */ + Owl.prototype.animate = function(coordinate) { + var animate = this.speed() > 0; + + this.is('animating') && this.onTransitionEnd(); + + if (animate) { + this.enter('animating'); + this.trigger('translate'); + } + + if ($.support.transform3d && $.support.transition) { + this.$stage.css({ + transform: 'translate3d(' + coordinate + 'px,0px,0px)', + transition: (this.speed() / 1000) + 's' + ( + this.settings.slideTransition ? ' ' + this.settings.slideTransition : '' + ) + }); + } else if (animate) { + this.$stage.animate({ + left: coordinate + 'px' + }, this.speed(), this.settings.fallbackEasing, $.proxy(this.onTransitionEnd, this)); + } else { + this.$stage.css({ + left: coordinate + 'px' + }); + } + }; + + /** + * Checks whether the carousel is in a specific state or not. + * @param {String} state - The state to check. + * @returns {Boolean} - The flag which indicates if the carousel is busy. + */ + Owl.prototype.is = function(state) { + return this._states.current[state] && this._states.current[state] > 0; + }; + + /** + * Sets the absolute position of the current item. + * @public + * @param {Number} [position] - The new absolute position or nothing to leave it unchanged. + * @returns {Number} - The absolute position of the current item. + */ + Owl.prototype.current = function(position) { + if (position === undefined) { + return this._current; + } + + if (this._items.length === 0) { + return undefined; + } + + position = this.normalize(position); + + if (this._current !== position) { + var event = this.trigger('change', { property: { name: 'position', value: position } }); + + if (event.data !== undefined) { + position = this.normalize(event.data); + } + + this._current = position; + + this.invalidate('position'); + + this.trigger('changed', { property: { name: 'position', value: this._current } }); + } + + return this._current; + }; + + /** + * Invalidates the given part of the update routine. + * @param {String} [part] - The part to invalidate. + * @returns {Array.} - The invalidated parts. + */ + Owl.prototype.invalidate = function(part) { + if ($.type(part) === 'string') { + this._invalidated[part] = true; + this.is('valid') && this.leave('valid'); + } + return $.map(this._invalidated, function(v, i) { return i }); + }; + + /** + * Resets the absolute position of the current item. + * @public + * @param {Number} position - The absolute position of the new item. + */ + Owl.prototype.reset = function(position) { + position = this.normalize(position); + + if (position === undefined) { + return; + } + + this._speed = 0; + this._current = position; + + this.suppress([ 'translate', 'translated' ]); + + this.animate(this.coordinates(position)); + + this.release([ 'translate', 'translated' ]); + }; + + /** + * Normalizes an absolute or a relative position of an item. + * @public + * @param {Number} position - The absolute or relative position to normalize. + * @param {Boolean} [relative=false] - Whether the given position is relative or not. + * @returns {Number} - The normalized position. + */ + Owl.prototype.normalize = function(position, relative) { + var n = this._items.length, + m = relative ? 0 : this._clones.length; + + if (!this.isNumeric(position) || n < 1) { + position = undefined; + } else if (position < 0 || position >= n + m) { + position = ((position - m / 2) % n + n) % n + m / 2; + } + + return position; + }; + + /** + * Converts an absolute position of an item into a relative one. + * @public + * @param {Number} position - The absolute position to convert. + * @returns {Number} - The converted position. + */ + Owl.prototype.relative = function(position) { + position -= this._clones.length / 2; + return this.normalize(position, true); + }; + + /** + * Gets the maximum position for the current item. + * @public + * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position. + * @returns {Number} + */ + Owl.prototype.maximum = function(relative) { + var settings = this.settings, + maximum = this._coordinates.length, + iterator, + reciprocalItemsWidth, + elementWidth; + + if (settings.loop) { + maximum = this._clones.length / 2 + this._items.length - 1; + } else if (settings.autoWidth || settings.merge) { + iterator = this._items.length; + if (iterator) { + reciprocalItemsWidth = this._items[--iterator].width(); + elementWidth = this.$element.width(); + while (iterator--) { + reciprocalItemsWidth += this._items[iterator].width() + this.settings.margin; + if (reciprocalItemsWidth > elementWidth) { + break; + } + } + } + maximum = iterator + 1; + } else if (settings.center) { + maximum = this._items.length - 1; + } else { + maximum = this._items.length - settings.items; + } + + if (relative) { + maximum -= this._clones.length / 2; + } + + return Math.max(maximum, 0); + }; + + /** + * Gets the minimum position for the current item. + * @public + * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position. + * @returns {Number} + */ + Owl.prototype.minimum = function(relative) { + return relative ? 0 : this._clones.length / 2; + }; + + /** + * Gets an item at the specified relative position. + * @public + * @param {Number} [position] - The relative position of the item. + * @return {jQuery|Array.} - The item at the given position or all items if no position was given. + */ + Owl.prototype.items = function(position) { + if (position === undefined) { + return this._items.slice(); + } + + position = this.normalize(position, true); + return this._items[position]; + }; + + /** + * Gets an item at the specified relative position. + * @public + * @param {Number} [position] - The relative position of the item. + * @return {jQuery|Array.} - The item at the given position or all items if no position was given. + */ + Owl.prototype.mergers = function(position) { + if (position === undefined) { + return this._mergers.slice(); + } + + position = this.normalize(position, true); + return this._mergers[position]; + }; + + /** + * Gets the absolute positions of clones for an item. + * @public + * @param {Number} [position] - The relative position of the item. + * @returns {Array.} - The absolute positions of clones for the item or all if no position was given. + */ + Owl.prototype.clones = function(position) { + var odd = this._clones.length / 2, + even = odd + this._items.length, + map = function(index) { return index % 2 === 0 ? even + index / 2 : odd - (index + 1) / 2 }; + + if (position === undefined) { + return $.map(this._clones, function(v, i) { return map(i) }); + } + + return $.map(this._clones, function(v, i) { return v === position ? map(i) : null }); + }; + + /** + * Sets the current animation speed. + * @public + * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged. + * @returns {Number} - The current animation speed in milliseconds. + */ + Owl.prototype.speed = function(speed) { + if (speed !== undefined) { + this._speed = speed; + } + + return this._speed; + }; + + /** + * Gets the coordinate of an item. + * @todo The name of this method is missleanding. + * @public + * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`. + * @returns {Number|Array.} - The coordinate of the item in pixel or all coordinates. + */ + Owl.prototype.coordinates = function(position) { + var multiplier = 1, + newPosition = position - 1, + coordinate; + + if (position === undefined) { + return $.map(this._coordinates, $.proxy(function(coordinate, index) { + return this.coordinates(index); + }, this)); + } + + if (this.settings.center) { + if (this.settings.rtl) { + multiplier = -1; + newPosition = position + 1; + } + + coordinate = this._coordinates[position]; + coordinate += (this.width() - coordinate + (this._coordinates[newPosition] || 0)) / 2 * multiplier; + } else { + coordinate = this._coordinates[newPosition] || 0; + } + + coordinate = Math.ceil(coordinate); + + return coordinate; + }; + + /** + * Calculates the speed for a translation. + * @protected + * @param {Number} from - The absolute position of the start item. + * @param {Number} to - The absolute position of the target item. + * @param {Number} [factor=undefined] - The time factor in milliseconds. + * @returns {Number} - The time in milliseconds for the translation. + */ + Owl.prototype.duration = function(from, to, factor) { + if (factor === 0) { + return 0; + } + + return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed)); + }; + + /** + * Slides to the specified item. + * @public + * @param {Number} position - The position of the item. + * @param {Number} [speed] - The time in milliseconds for the transition. + */ + Owl.prototype.to = function(position, speed) { + var current = this.current(), + revert = null, + distance = position - this.relative(current), + direction = (distance > 0) - (distance < 0), + items = this._items.length, + minimum = this.minimum(), + maximum = this.maximum(); + + if (this.settings.loop) { + if (!this.settings.rewind && Math.abs(distance) > items / 2) { + distance += direction * -1 * items; + } + + position = current + distance; + revert = ((position - minimum) % items + items) % items + minimum; + + if (revert !== position && revert - distance <= maximum && revert - distance > 0) { + current = revert - distance; + position = revert; + this.reset(current); + } + } else if (this.settings.rewind) { + maximum += 1; + position = (position % maximum + maximum) % maximum; + } else { + position = Math.max(minimum, Math.min(maximum, position)); + } + + this.speed(this.duration(current, position, speed)); + this.current(position); + + if (this.isVisible()) { + this.update(); + } + }; + + /** + * Slides to the next item. + * @public + * @param {Number} [speed] - The time in milliseconds for the transition. + */ + Owl.prototype.next = function(speed) { + speed = speed || false; + this.to(this.relative(this.current()) + 1, speed); + }; + + /** + * Slides to the previous item. + * @public + * @param {Number} [speed] - The time in milliseconds for the transition. + */ + Owl.prototype.prev = function(speed) { + speed = speed || false; + this.to(this.relative(this.current()) - 1, speed); + }; + + /** + * Handles the end of an animation. + * @protected + * @param {Event} event - The event arguments. + */ + Owl.prototype.onTransitionEnd = function(event) { + + // if css2 animation then event object is undefined + if (event !== undefined) { + event.stopPropagation(); + + // Catch only owl-stage transitionEnd event + if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) { + return false; + } + } + + this.leave('animating'); + this.trigger('translated'); + }; + + /** + * Gets viewport width. + * @protected + * @return {Number} - The width in pixel. + */ + Owl.prototype.viewport = function() { + var width; + if (this.options.responsiveBaseElement !== window) { + width = $(this.options.responsiveBaseElement).width(); + } else if (window.innerWidth) { + width = window.innerWidth; + } else if (document.documentElement && document.documentElement.clientWidth) { + width = document.documentElement.clientWidth; + } else { + console.warn('Can not detect viewport width.'); + } + return width; + }; + + /** + * Replaces the current content. + * @public + * @param {HTMLElement|jQuery|String} content - The new content. + */ + Owl.prototype.replace = function(content) { + this.$stage.empty(); + this._items = []; + + if (content) { + content = (content instanceof jQuery) ? content : $(content); + } + + if (this.settings.nestedItemSelector) { + content = content.find('.' + this.settings.nestedItemSelector); + } + + content.filter(function() { + return this.nodeType === 1; + }).each($.proxy(function(index, item) { + item = this.prepare(item); + this.$stage.append(item); + this._items.push(item); + this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1); + }, this)); + + this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0); + + this.invalidate('items'); + }; + + /** + * Adds an item. + * @todo Use `item` instead of `content` for the event arguments. + * @public + * @param {HTMLElement|jQuery|String} content - The item content to add. + * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end. + */ + Owl.prototype.add = function(content, position) { + var current = this.relative(this._current); + + position = position === undefined ? this._items.length : this.normalize(position, true); + content = content instanceof jQuery ? content : $(content); + + this.trigger('add', { content: content, position: position }); + + content = this.prepare(content); + + if (this._items.length === 0 || position === this._items.length) { + this._items.length === 0 && this.$stage.append(content); + this._items.length !== 0 && this._items[position - 1].after(content); + this._items.push(content); + this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1); + } else { + this._items[position].before(content); + this._items.splice(position, 0, content); + this._mergers.splice(position, 0, content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1); + } + + this._items[current] && this.reset(this._items[current].index()); + + this.invalidate('items'); + + this.trigger('added', { content: content, position: position }); + }; + + /** + * Removes an item by its position. + * @todo Use `item` instead of `content` for the event arguments. + * @public + * @param {Number} position - The relative position of the item to remove. + */ + Owl.prototype.remove = function(position) { + position = this.normalize(position, true); + + if (position === undefined) { + return; + } + + this.trigger('remove', { content: this._items[position], position: position }); + + this._items[position].remove(); + this._items.splice(position, 1); + this._mergers.splice(position, 1); + + this.invalidate('items'); + + this.trigger('removed', { content: null, position: position }); + }; + + /** + * Preloads images with auto width. + * @todo Replace by a more generic approach + * @protected + */ + Owl.prototype.preloadAutoWidthImages = function(images) { + images.each($.proxy(function(i, element) { + this.enter('pre-loading'); + element = $(element); + $(new Image()).one('load', $.proxy(function(e) { + element.attr('src', e.target.src); + element.css('opacity', 1); + this.leave('pre-loading'); + !this.is('pre-loading') && !this.is('initializing') && this.refresh(); + }, this)).attr('src', element.attr('src') || element.attr('data-src') || element.attr('data-src-retina')); + }, this)); + }; + + /** + * Destroys the carousel. + * @public + */ + Owl.prototype.destroy = function() { + + this.$element.off('.owl.core'); + this.$stage.off('.owl.core'); + $(document).off('.owl.core'); + + if (this.settings.responsive !== false) { + window.clearTimeout(this.resizeTimer); + this.off(window, 'resize', this._handlers.onThrottledResize); + } + + for (var i in this._plugins) { + this._plugins[i].destroy(); + } + + this.$stage.children('.cloned').remove(); + + this.$stage.unwrap(); + this.$stage.children().contents().unwrap(); + this.$stage.children().unwrap(); + this.$stage.remove(); + this.$element + .removeClass(this.options.refreshClass) + .removeClass(this.options.loadingClass) + .removeClass(this.options.loadedClass) + .removeClass(this.options.rtlClass) + .removeClass(this.options.dragClass) + .removeClass(this.options.grabClass) + .attr('class', this.$element.attr('class').replace(new RegExp(this.options.responsiveClass + '-\\S+\\s', 'g'), '')) + .removeData('owl.carousel'); + }; + + /** + * Operators to calculate right-to-left and left-to-right. + * @protected + * @param {Number} [a] - The left side operand. + * @param {String} [o] - The operator. + * @param {Number} [b] - The right side operand. + */ + Owl.prototype.op = function(a, o, b) { + var rtl = this.settings.rtl; + switch (o) { + case '<': + return rtl ? a > b : a < b; + case '>': + return rtl ? a < b : a > b; + case '>=': + return rtl ? a <= b : a >= b; + case '<=': + return rtl ? a >= b : a <= b; + default: + break; + } + }; + + /** + * Attaches to an internal event. + * @protected + * @param {HTMLElement} element - The event source. + * @param {String} event - The event name. + * @param {Function} listener - The event handler to attach. + * @param {Boolean} capture - Wether the event should be handled at the capturing phase or not. + */ + Owl.prototype.on = function(element, event, listener, capture) { + if (element.addEventListener) { + element.addEventListener(event, listener, capture); + } else if (element.attachEvent) { + element.attachEvent('on' + event, listener); + } + }; + + /** + * Detaches from an internal event. + * @protected + * @param {HTMLElement} element - The event source. + * @param {String} event - The event name. + * @param {Function} listener - The attached event handler to detach. + * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not. + */ + Owl.prototype.off = function(element, event, listener, capture) { + if (element.removeEventListener) { + element.removeEventListener(event, listener, capture); + } else if (element.detachEvent) { + element.detachEvent('on' + event, listener); + } + }; + + /** + * Triggers a public event. + * @todo Remove `status`, `relatedTarget` should be used instead. + * @protected + * @param {String} name - The event name. + * @param {*} [data=null] - The event data. + * @param {String} [namespace=carousel] - The event namespace. + * @param {String} [state] - The state which is associated with the event. + * @param {Boolean} [enter=false] - Indicates if the call enters the specified state or not. + * @returns {Event} - The event arguments. + */ + Owl.prototype.trigger = function(name, data, namespace, state, enter) { + var status = { + item: { count: this._items.length, index: this.current() } + }, handler = $.camelCase( + $.grep([ 'on', name, namespace ], function(v) { return v }) + .join('-').toLowerCase() + ), event = $.Event( + [ name, 'owl', namespace || 'carousel' ].join('.').toLowerCase(), + $.extend({ relatedTarget: this }, status, data) + ); + + if (!this._supress[name]) { + $.each(this._plugins, function(name, plugin) { + if (plugin.onTrigger) { + plugin.onTrigger(event); + } + }); + + this.register({ type: Owl.Type.Event, name: name }); + this.$element.trigger(event); + + if (this.settings && typeof this.settings[handler] === 'function') { + this.settings[handler].call(this, event); + } + } + + return event; + }; + + /** + * Enters a state. + * @param name - The state name. + */ + Owl.prototype.enter = function(name) { + $.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) { + if (this._states.current[name] === undefined) { + this._states.current[name] = 0; + } + + this._states.current[name]++; + }, this)); + }; + + /** + * Leaves a state. + * @param name - The state name. + */ + Owl.prototype.leave = function(name) { + $.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) { + this._states.current[name]--; + }, this)); + }; + + /** + * Registers an event or state. + * @public + * @param {Object} object - The event or state to register. + */ + Owl.prototype.register = function(object) { + if (object.type === Owl.Type.Event) { + if (!$.event.special[object.name]) { + $.event.special[object.name] = {}; + } + + if (!$.event.special[object.name].owl) { + var _default = $.event.special[object.name]._default; + $.event.special[object.name]._default = function(e) { + if (_default && _default.apply && (!e.namespace || e.namespace.indexOf('owl') === -1)) { + return _default.apply(this, arguments); + } + return e.namespace && e.namespace.indexOf('owl') > -1; + }; + $.event.special[object.name].owl = true; + } + } else if (object.type === Owl.Type.State) { + if (!this._states.tags[object.name]) { + this._states.tags[object.name] = object.tags; + } else { + this._states.tags[object.name] = this._states.tags[object.name].concat(object.tags); + } + + this._states.tags[object.name] = $.grep(this._states.tags[object.name], $.proxy(function(tag, i) { + return $.inArray(tag, this._states.tags[object.name]) === i; + }, this)); + } + }; + + /** + * Suppresses events. + * @protected + * @param {Array.} events - The events to suppress. + */ + Owl.prototype.suppress = function(events) { + $.each(events, $.proxy(function(index, event) { + this._supress[event] = true; + }, this)); + }; + + /** + * Releases suppressed events. + * @protected + * @param {Array.} events - The events to release. + */ + Owl.prototype.release = function(events) { + $.each(events, $.proxy(function(index, event) { + delete this._supress[event]; + }, this)); + }; + + /** + * Gets unified pointer coordinates from event. + * @todo #261 + * @protected + * @param {Event} - The `mousedown` or `touchstart` event. + * @returns {Object} - Contains `x` and `y` coordinates of current pointer position. + */ + Owl.prototype.pointer = function(event) { + var result = { x: null, y: null }; + + event = event.originalEvent || event || window.event; + + event = event.touches && event.touches.length ? + event.touches[0] : event.changedTouches && event.changedTouches.length ? + event.changedTouches[0] : event; + + if (event.pageX) { + result.x = event.pageX; + result.y = event.pageY; + } else { + result.x = event.clientX; + result.y = event.clientY; + } + + return result; + }; + + /** + * Determines if the input is a Number or something that can be coerced to a Number + * @protected + * @param {Number|String|Object|Array|Boolean|RegExp|Function|Symbol} - The input to be tested + * @returns {Boolean} - An indication if the input is a Number or can be coerced to a Number + */ + Owl.prototype.isNumeric = function(number) { + return !isNaN(parseFloat(number)); + }; + + /** + * Gets the difference of two vectors. + * @todo #261 + * @protected + * @param {Object} - The first vector. + * @param {Object} - The second vector. + * @returns {Object} - The difference. + */ + Owl.prototype.difference = function(first, second) { + return { + x: first.x - second.x, + y: first.y - second.y + }; + }; + + /** + * The jQuery Plugin for the Owl Carousel + * @todo Navigation plugin `next` and `prev` + * @public + */ + $.fn.owlCarousel = function(option) { + var args = Array.prototype.slice.call(arguments, 1); + + return this.each(function() { + var $this = $(this), + data = $this.data('owl.carousel'); + + if (!data) { + data = new Owl(this, typeof option == 'object' && option); + $this.data('owl.carousel', data); + + $.each([ + 'next', 'prev', 'to', 'destroy', 'refresh', 'replace', 'add', 'remove' + ], function(i, event) { + data.register({ type: Owl.Type.Event, name: event }); + data.$element.on(event + '.owl.carousel.core', $.proxy(function(e) { + if (e.namespace && e.relatedTarget !== this) { + this.suppress([ event ]); + data[event].apply(this, [].slice.call(arguments, 1)); + this.release([ event ]); + } + }, data)); + }); + } + + if (typeof option == 'string' && option.charAt(0) !== '_') { + data[option].apply(data, args); + } + }); + }; + + /** + * The constructor for the jQuery Plugin + * @public + */ + $.fn.owlCarousel.Constructor = Owl; + +})(window.Zepto || window.jQuery, window, document); + +/** + * AutoRefresh Plugin + * @version 2.3.4 + * @author Artus Kolanowski + * @author David Deutsch + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + + /** + * Creates the auto refresh plugin. + * @class The Auto Refresh Plugin + * @param {Owl} carousel - The Owl Carousel + */ + var AutoRefresh = function(carousel) { + /** + * Reference to the core. + * @protected + * @type {Owl} + */ + this._core = carousel; + + /** + * Refresh interval. + * @protected + * @type {number} + */ + this._interval = null; + + /** + * Whether the element is currently visible or not. + * @protected + * @type {Boolean} + */ + this._visible = null; + + /** + * All event handlers. + * @protected + * @type {Object} + */ + this._handlers = { + 'initialized.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.autoRefresh) { + this.watch(); + } + }, this) + }; + + // set default options + this._core.options = $.extend({}, AutoRefresh.Defaults, this._core.options); + + // register event handlers + this._core.$element.on(this._handlers); + }; + + /** + * Default options. + * @public + */ + AutoRefresh.Defaults = { + autoRefresh: true, + autoRefreshInterval: 500 + }; + + /** + * Watches the element. + */ + AutoRefresh.prototype.watch = function() { + if (this._interval) { + return; + } + + this._visible = this._core.isVisible(); + this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval); + }; + + /** + * Refreshes the element. + */ + AutoRefresh.prototype.refresh = function() { + if (this._core.isVisible() === this._visible) { + return; + } + + this._visible = !this._visible; + + this._core.$element.toggleClass('owl-hidden', !this._visible); + + this._visible && (this._core.invalidate('width') && this._core.refresh()); + }; + + /** + * Destroys the plugin. + */ + AutoRefresh.prototype.destroy = function() { + var handler, property; + + window.clearInterval(this._interval); + + for (handler in this._handlers) { + this._core.$element.off(handler, this._handlers[handler]); + } + for (property in Object.getOwnPropertyNames(this)) { + typeof this[property] != 'function' && (this[property] = null); + } + }; + + $.fn.owlCarousel.Constructor.Plugins.AutoRefresh = AutoRefresh; + +})(window.Zepto || window.jQuery, window, document); + +/** + * Lazy Plugin + * @version 2.3.4 + * @author Bartosz Wojciechowski + * @author David Deutsch + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + + /** + * Creates the lazy plugin. + * @class The Lazy Plugin + * @param {Owl} carousel - The Owl Carousel + */ + var Lazy = function(carousel) { + + /** + * Reference to the core. + * @protected + * @type {Owl} + */ + this._core = carousel; + + /** + * Already loaded items. + * @protected + * @type {Array.} + */ + this._loaded = []; + + /** + * Event handlers. + * @protected + * @type {Object} + */ + this._handlers = { + 'initialized.owl.carousel change.owl.carousel resized.owl.carousel': $.proxy(function(e) { + if (!e.namespace) { + return; + } + + if (!this._core.settings || !this._core.settings.lazyLoad) { + return; + } + + if ((e.property && e.property.name == 'position') || e.type == 'initialized') { + var settings = this._core.settings, + n = (settings.center && Math.ceil(settings.items / 2) || settings.items), + i = ((settings.center && n * -1) || 0), + position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i, + clones = this._core.clones().length, + load = $.proxy(function(i, v) { this.load(v) }, this); + //TODO: Need documentation for this new option + if (settings.lazyLoadEager > 0) { + n += settings.lazyLoadEager; + // If the carousel is looping also preload images that are to the "left" + if (settings.loop) { + position -= settings.lazyLoadEager; + n++; + } + } + + while (i++ < n) { + this.load(clones / 2 + this._core.relative(position)); + clones && $.each(this._core.clones(this._core.relative(position)), load); + position++; + } + } + }, this) + }; + + // set the default options + this._core.options = $.extend({}, Lazy.Defaults, this._core.options); + + // register event handler + this._core.$element.on(this._handlers); + }; + + /** + * Default options. + * @public + */ + Lazy.Defaults = { + lazyLoad: false, + lazyLoadEager: 0 + }; + + /** + * Loads all resources of an item at the specified position. + * @param {Number} position - The absolute position of the item. + * @protected + */ + Lazy.prototype.load = function(position) { + var $item = this._core.$stage.children().eq(position), + $elements = $item && $item.find('.owl-lazy'); + + if (!$elements || $.inArray($item.get(0), this._loaded) > -1) { + return; + } + + $elements.each($.proxy(function(index, element) { + var $element = $(element), image, + url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src') || $element.attr('data-srcset'); + + this._core.trigger('load', { element: $element, url: url }, 'lazy'); + + if ($element.is('img')) { + $element.one('load.owl.lazy', $.proxy(function() { + $element.css('opacity', 1); + this._core.trigger('loaded', { element: $element, url: url }, 'lazy'); + }, this)).attr('src', url); + } else if ($element.is('source')) { + $element.one('load.owl.lazy', $.proxy(function() { + this._core.trigger('loaded', { element: $element, url: url }, 'lazy'); + }, this)).attr('srcset', url); + } else { + image = new Image(); + image.onload = $.proxy(function() { + $element.css({ + 'background-image': 'url("' + url + '")', + 'opacity': '1' + }); + this._core.trigger('loaded', { element: $element, url: url }, 'lazy'); + }, this); + image.src = url; + } + }, this)); + + this._loaded.push($item.get(0)); + }; + + /** + * Destroys the plugin. + * @public + */ + Lazy.prototype.destroy = function() { + var handler, property; + + for (handler in this.handlers) { + this._core.$element.off(handler, this.handlers[handler]); + } + for (property in Object.getOwnPropertyNames(this)) { + typeof this[property] != 'function' && (this[property] = null); + } + }; + + $.fn.owlCarousel.Constructor.Plugins.Lazy = Lazy; + +})(window.Zepto || window.jQuery, window, document); + +/** + * AutoHeight Plugin + * @version 2.3.4 + * @author Bartosz Wojciechowski + * @author David Deutsch + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + + /** + * Creates the auto height plugin. + * @class The Auto Height Plugin + * @param {Owl} carousel - The Owl Carousel + */ + var AutoHeight = function(carousel) { + /** + * Reference to the core. + * @protected + * @type {Owl} + */ + this._core = carousel; + + this._previousHeight = null; + + /** + * All event handlers. + * @protected + * @type {Object} + */ + this._handlers = { + 'initialized.owl.carousel refreshed.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.autoHeight) { + this.update(); + } + }, this), + 'changed.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.autoHeight && e.property.name === 'position'){ + this.update(); + } + }, this), + 'loaded.owl.lazy': $.proxy(function(e) { + if (e.namespace && this._core.settings.autoHeight + && e.element.closest('.' + this._core.settings.itemClass).index() === this._core.current()) { + this.update(); + } + }, this) + }; + + // set default options + this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options); + + // register event handlers + this._core.$element.on(this._handlers); + this._intervalId = null; + var refThis = this; + + // These changes have been taken from a PR by gavrochelegnou proposed in #1575 + // and have been made compatible with the latest jQuery version + $(window).on('load', function() { + if (refThis._core.settings.autoHeight) { + refThis.update(); + } + }); + + // Autoresize the height of the carousel when window is resized + // When carousel has images, the height is dependent on the width + // and should also change on resize + $(window).resize(function() { + if (refThis._core.settings.autoHeight) { + if (refThis._intervalId != null) { + clearTimeout(refThis._intervalId); + } + + refThis._intervalId = setTimeout(function() { + refThis.update(); + }, 250); + } + }); + + }; + + /** + * Default options. + * @public + */ + AutoHeight.Defaults = { + autoHeight: false, + autoHeightClass: 'owl-height' + }; + + /** + * Updates the view. + */ + AutoHeight.prototype.update = function() { + var start = this._core._current, + end = start + this._core.settings.items, + lazyLoadEnabled = this._core.settings.lazyLoad, + visible = this._core.$stage.children().toArray().slice(start, end), + heights = [], + maxheight = 0; + + $.each(visible, function(index, item) { + heights.push($(item).height()); + }); + + maxheight = Math.max.apply(null, heights); + + if (maxheight <= 1 && lazyLoadEnabled && this._previousHeight) { + maxheight = this._previousHeight; + } + + this._previousHeight = maxheight; + + this._core.$stage.parent() + .height(maxheight) + .addClass(this._core.settings.autoHeightClass); + }; + + AutoHeight.prototype.destroy = function() { + var handler, property; + + for (handler in this._handlers) { + this._core.$element.off(handler, this._handlers[handler]); + } + for (property in Object.getOwnPropertyNames(this)) { + typeof this[property] !== 'function' && (this[property] = null); + } + }; + + $.fn.owlCarousel.Constructor.Plugins.AutoHeight = AutoHeight; + +})(window.Zepto || window.jQuery, window, document); + +/** + * Video Plugin + * @version 2.3.4 + * @author Bartosz Wojciechowski + * @author David Deutsch + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + + /** + * Creates the video plugin. + * @class The Video Plugin + * @param {Owl} carousel - The Owl Carousel + */ + var Video = function(carousel) { + /** + * Reference to the core. + * @protected + * @type {Owl} + */ + this._core = carousel; + + /** + * Cache all video URLs. + * @protected + * @type {Object} + */ + this._videos = {}; + + /** + * Current playing item. + * @protected + * @type {jQuery} + */ + this._playing = null; + + /** + * All event handlers. + * @todo The cloned content removale is too late + * @protected + * @type {Object} + */ + this._handlers = { + 'initialized.owl.carousel': $.proxy(function(e) { + if (e.namespace) { + this._core.register({ type: 'state', name: 'playing', tags: [ 'interacting' ] }); + } + }, this), + 'resize.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.video && this.isInFullScreen()) { + e.preventDefault(); + } + }, this), + 'refreshed.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.is('resizing')) { + this._core.$stage.find('.cloned .owl-video-frame').remove(); + } + }, this), + 'changed.owl.carousel': $.proxy(function(e) { + if (e.namespace && e.property.name === 'position' && this._playing) { + this.stop(); + } + }, this), + 'prepared.owl.carousel': $.proxy(function(e) { + if (!e.namespace) { + return; + } + + var $element = $(e.content).find('.owl-video'); + + if ($element.length) { + $element.css('display', 'none'); + this.fetch($element, $(e.content)); + } + }, this) + }; + + // set default options + this._core.options = $.extend({}, Video.Defaults, this._core.options); + + // register event handlers + this._core.$element.on(this._handlers); + + this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function(e) { + this.play(e); + }, this)); + }; + + /** + * Default options. + * @public + */ + Video.Defaults = { + video: false, + videoHeight: false, + videoWidth: false + }; + + /** + * Gets the video ID and the type (YouTube/Vimeo/vzaar only). + * @protected + * @param {jQuery} target - The target containing the video data. + * @param {jQuery} item - The item containing the video. + */ + Video.prototype.fetch = function(target, item) { + var type = (function() { + if (target.attr('data-vimeo-id')) { + return 'vimeo'; + } else if (target.attr('data-vzaar-id')) { + return 'vzaar' + } else { + return 'youtube'; + } + })(), + id = target.attr('data-vimeo-id') || target.attr('data-youtube-id') || target.attr('data-vzaar-id'), + width = target.attr('data-width') || this._core.settings.videoWidth, + height = target.attr('data-height') || this._core.settings.videoHeight, + url = target.attr('href'); + + if (url) { + + /* + Parses the id's out of the following urls (and probably more): + https://www.youtube.com/watch?v=:id + https://youtu.be/:id + https://vimeo.com/:id + https://vimeo.com/channels/:channel/:id + https://vimeo.com/groups/:group/videos/:id + https://app.vzaar.com/videos/:id + + Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F + */ + + id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/); + + if (id[3].indexOf('youtu') > -1) { + type = 'youtube'; + } else if (id[3].indexOf('vimeo') > -1) { + type = 'vimeo'; + } else if (id[3].indexOf('vzaar') > -1) { + type = 'vzaar'; + } else { + throw new Error('Video URL not supported.'); + } + id = id[6]; + } else { + throw new Error('Missing video URL.'); + } + + this._videos[url] = { + type: type, + id: id, + width: width, + height: height + }; + + item.attr('data-video', url); + + this.thumbnail(target, this._videos[url]); + }; + + /** + * Creates video thumbnail. + * @protected + * @param {jQuery} target - The target containing the video data. + * @param {Object} info - The video info object. + * @see `fetch` + */ + Video.prototype.thumbnail = function(target, video) { + var tnLink, + icon, + path, + dimensions = video.width && video.height ? 'width:' + video.width + 'px;height:' + video.height + 'px;' : '', + customTn = target.find('img'), + srcType = 'src', + lazyClass = '', + settings = this._core.settings, + create = function(path) { + icon = '
'; + + if (settings.lazyLoad) { + tnLink = $('
',{ + "class": 'owl-video-tn ' + lazyClass, + "srcType": path + }); + } else { + tnLink = $( '
', { + "class": "owl-video-tn", + "style": 'opacity:1;background-image:url(' + path + ')' + }); + } + target.after(tnLink); + target.after(icon); + }; + + // wrap video content into owl-video-wrapper div + target.wrap( $( '
', { + "class": "owl-video-wrapper", + "style": dimensions + })); + + if (this._core.settings.lazyLoad) { + srcType = 'data-src'; + lazyClass = 'owl-lazy'; + } + + // custom thumbnail + if (customTn.length) { + create(customTn.attr(srcType)); + customTn.remove(); + return false; + } + + if (video.type === 'youtube') { + path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg"; + create(path); + } else if (video.type === 'vimeo') { + $.ajax({ + type: 'GET', + url: '//vimeo.com/api/v2/video/' + video.id + '.json', + jsonp: 'callback', + dataType: 'jsonp', + success: function(data) { + path = data[0].thumbnail_large; + create(path); + } + }); + } else if (video.type === 'vzaar') { + $.ajax({ + type: 'GET', + url: '//vzaar.com/api/videos/' + video.id + '.json', + jsonp: 'callback', + dataType: 'jsonp', + success: function(data) { + path = data.framegrab_url; + create(path); + } + }); + } + }; + + /** + * Stops the current video. + * @public + */ + Video.prototype.stop = function() { + this._core.trigger('stop', null, 'video'); + this._playing.find('.owl-video-frame').remove(); + this._playing.removeClass('owl-video-playing'); + this._playing = null; + this._core.leave('playing'); + this._core.trigger('stopped', null, 'video'); + }; + + /** + * Starts the current video. + * @public + * @param {Event} event - The event arguments. + */ + Video.prototype.play = function(event) { + var target = $(event.target), + item = target.closest('.' + this._core.settings.itemClass), + video = this._videos[item.attr('data-video')], + width = video.width || '100%', + height = video.height || this._core.$stage.height(), + html, + iframe; + + if (this._playing) { + return; + } + + this._core.enter('playing'); + this._core.trigger('play', null, 'video'); + + item = this._core.items(this._core.relative(item.index())); + + this._core.reset(item.index()); + + html = $( '' ); + html.attr( 'height', height ); + html.attr( 'width', width ); + if (video.type === 'youtube') { + html.attr( 'src', '//www.youtube.com/embed/' + video.id + '?autoplay=1&rel=0&v=' + video.id ); + } else if (video.type === 'vimeo') { + html.attr( 'src', '//player.vimeo.com/video/' + video.id + '?autoplay=1' ); + } else if (video.type === 'vzaar') { + html.attr( 'src', '//view.vzaar.com/' + video.id + '/player?autoplay=true' ); + } + + iframe = $(html).wrap( '
' ).insertAfter(item.find('.owl-video')); + + this._playing = item.addClass('owl-video-playing'); + }; + + /** + * Checks whether an video is currently in full screen mode or not. + * @todo Bad style because looks like a readonly method but changes members. + * @protected + * @returns {Boolean} + */ + Video.prototype.isInFullScreen = function() { + var element = document.fullscreenElement || document.mozFullScreenElement || + document.webkitFullscreenElement; + + return element && $(element).parent().hasClass('owl-video-frame'); + }; + + /** + * Destroys the plugin. + */ + Video.prototype.destroy = function() { + var handler, property; + + this._core.$element.off('click.owl.video'); + + for (handler in this._handlers) { + this._core.$element.off(handler, this._handlers[handler]); + } + for (property in Object.getOwnPropertyNames(this)) { + typeof this[property] != 'function' && (this[property] = null); + } + }; + + $.fn.owlCarousel.Constructor.Plugins.Video = Video; + +})(window.Zepto || window.jQuery, window, document); + +/** + * Animate Plugin + * @version 2.3.4 + * @author Bartosz Wojciechowski + * @author David Deutsch + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + + /** + * Creates the animate plugin. + * @class The Navigation Plugin + * @param {Owl} scope - The Owl Carousel + */ + var Animate = function(scope) { + this.core = scope; + this.core.options = $.extend({}, Animate.Defaults, this.core.options); + this.swapping = true; + this.previous = undefined; + this.next = undefined; + + this.handlers = { + 'change.owl.carousel': $.proxy(function(e) { + if (e.namespace && e.property.name == 'position') { + this.previous = this.core.current(); + this.next = e.property.value; + } + }, this), + 'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function(e) { + if (e.namespace) { + this.swapping = e.type == 'translated'; + } + }, this), + 'translate.owl.carousel': $.proxy(function(e) { + if (e.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) { + this.swap(); + } + }, this) + }; + + this.core.$element.on(this.handlers); + }; + + /** + * Default options. + * @public + */ + Animate.Defaults = { + animateOut: false, + animateIn: false + }; + + /** + * Toggles the animation classes whenever an translations starts. + * @protected + * @returns {Boolean|undefined} + */ + Animate.prototype.swap = function() { + + if (this.core.settings.items !== 1) { + return; + } + + if (!$.support.animation || !$.support.transition) { + return; + } + + this.core.speed(0); + + var left, + clear = $.proxy(this.clear, this), + previous = this.core.$stage.children().eq(this.previous), + next = this.core.$stage.children().eq(this.next), + incoming = this.core.settings.animateIn, + outgoing = this.core.settings.animateOut; + + if (this.core.current() === this.previous) { + return; + } + + if (outgoing) { + left = this.core.coordinates(this.previous) - this.core.coordinates(this.next); + previous.one($.support.animation.end, clear) + .css( { 'left': left + 'px' } ) + .addClass('animated owl-animated-out') + .addClass(outgoing); + } + + if (incoming) { + next.one($.support.animation.end, clear) + .addClass('animated owl-animated-in') + .addClass(incoming); + } + }; + + Animate.prototype.clear = function(e) { + $(e.target).css( { 'left': '' } ) + .removeClass('animated owl-animated-out owl-animated-in') + .removeClass(this.core.settings.animateIn) + .removeClass(this.core.settings.animateOut); + this.core.onTransitionEnd(); + }; + + /** + * Destroys the plugin. + * @public + */ + Animate.prototype.destroy = function() { + var handler, property; + + for (handler in this.handlers) { + this.core.$element.off(handler, this.handlers[handler]); + } + for (property in Object.getOwnPropertyNames(this)) { + typeof this[property] != 'function' && (this[property] = null); + } + }; + + $.fn.owlCarousel.Constructor.Plugins.Animate = Animate; + +})(window.Zepto || window.jQuery, window, document); + +/** + * Autoplay Plugin + * @version 2.3.4 + * @author Bartosz Wojciechowski + * @author Artus Kolanowski + * @author David Deutsch + * @author Tom De Caluwé + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + + /** + * Creates the autoplay plugin. + * @class The Autoplay Plugin + * @param {Owl} scope - The Owl Carousel + */ + var Autoplay = function(carousel) { + /** + * Reference to the core. + * @protected + * @type {Owl} + */ + this._core = carousel; + + /** + * The autoplay timeout id. + * @type {Number} + */ + this._call = null; + + /** + * Depending on the state of the plugin, this variable contains either + * the start time of the timer or the current timer value if it's + * paused. Since we start in a paused state we initialize the timer + * value. + * @type {Number} + */ + this._time = 0; + + /** + * Stores the timeout currently used. + * @type {Number} + */ + this._timeout = 0; + + /** + * Indicates whenever the autoplay is paused. + * @type {Boolean} + */ + this._paused = true; + + /** + * All event handlers. + * @protected + * @type {Object} + */ + this._handlers = { + 'changed.owl.carousel': $.proxy(function(e) { + if (e.namespace && e.property.name === 'settings') { + if (this._core.settings.autoplay) { + this.play(); + } else { + this.stop(); + } + } else if (e.namespace && e.property.name === 'position' && this._paused) { + // Reset the timer. This code is triggered when the position + // of the carousel was changed through user interaction. + this._time = 0; + } + }, this), + 'initialized.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.autoplay) { + this.play(); + } + }, this), + 'play.owl.autoplay': $.proxy(function(e, t, s) { + if (e.namespace) { + this.play(t, s); + } + }, this), + 'stop.owl.autoplay': $.proxy(function(e) { + if (e.namespace) { + this.stop(); + } + }, this), + 'mouseover.owl.autoplay': $.proxy(function() { + if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { + this.pause(); + } + }, this), + 'mouseleave.owl.autoplay': $.proxy(function() { + if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { + this.play(); + } + }, this), + 'touchstart.owl.core': $.proxy(function() { + if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) { + this.pause(); + } + }, this), + 'touchend.owl.core': $.proxy(function() { + if (this._core.settings.autoplayHoverPause) { + this.play(); + } + }, this) + }; + + // register event handlers + this._core.$element.on(this._handlers); + + // set default options + this._core.options = $.extend({}, Autoplay.Defaults, this._core.options); + }; + + /** + * Default options. + * @public + */ + Autoplay.Defaults = { + autoplay: false, + autoplayTimeout: 5000, + autoplayHoverPause: false, + autoplaySpeed: false + }; + + /** + * Transition to the next slide and set a timeout for the next transition. + * @private + * @param {Number} [speed] - The animation speed for the animations. + */ + Autoplay.prototype._next = function(speed) { + this._call = window.setTimeout( + $.proxy(this._next, this, speed), + this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read() + ); + + if (this._core.is('interacting') || document.hidden) { + return; + } + this._core.next(speed || this._core.settings.autoplaySpeed); + } + + /** + * Reads the current timer value when the timer is playing. + * @public + */ + Autoplay.prototype.read = function() { + return new Date().getTime() - this._time; + }; + + /** + * Starts the autoplay. + * @public + * @param {Number} [timeout] - The interval before the next animation starts. + * @param {Number} [speed] - The animation speed for the animations. + */ + Autoplay.prototype.play = function(timeout, speed) { + var elapsed; + + if (!this._core.is('rotating')) { + this._core.enter('rotating'); + } + + timeout = timeout || this._core.settings.autoplayTimeout; + + // Calculate the elapsed time since the last transition. If the carousel + // wasn't playing this calculation will yield zero. + elapsed = Math.min(this._time % (this._timeout || timeout), timeout); + + if (this._paused) { + // Start the clock. + this._time = this.read(); + this._paused = false; + } else { + // Clear the active timeout to allow replacement. + window.clearTimeout(this._call); + } + + // Adjust the origin of the timer to match the new timeout value. + this._time += this.read() % timeout - elapsed; + + this._timeout = timeout; + this._call = window.setTimeout($.proxy(this._next, this, speed), timeout - elapsed); + }; + + /** + * Stops the autoplay. + * @public + */ + Autoplay.prototype.stop = function() { + if (this._core.is('rotating')) { + // Reset the clock. + this._time = 0; + this._paused = true; + + window.clearTimeout(this._call); + this._core.leave('rotating'); + } + }; + + /** + * Pauses the autoplay. + * @public + */ + Autoplay.prototype.pause = function() { + if (this._core.is('rotating') && !this._paused) { + // Pause the clock. + this._time = this.read(); + this._paused = true; + + window.clearTimeout(this._call); + } + }; + + /** + * Destroys the plugin. + */ + Autoplay.prototype.destroy = function() { + var handler, property; + + this.stop(); + + for (handler in this._handlers) { + this._core.$element.off(handler, this._handlers[handler]); + } + for (property in Object.getOwnPropertyNames(this)) { + typeof this[property] != 'function' && (this[property] = null); + } + }; + + $.fn.owlCarousel.Constructor.Plugins.autoplay = Autoplay; + +})(window.Zepto || window.jQuery, window, document); + +/** + * Navigation Plugin + * @version 2.3.4 + * @author Artus Kolanowski + * @author David Deutsch + * @license The MIT License (MIT) + */ +;(function($, window, document, undefined) { + 'use strict'; + + /** + * Creates the navigation plugin. + * @class The Navigation Plugin + * @param {Owl} carousel - The Owl Carousel. + */ + var Navigation = function(carousel) { + /** + * Reference to the core. + * @protected + * @type {Owl} + */ + this._core = carousel; + + /** + * Indicates whether the plugin is initialized or not. + * @protected + * @type {Boolean} + */ + this._initialized = false; + + /** + * The current paging indexes. + * @protected + * @type {Array} + */ + this._pages = []; + + /** + * All DOM elements of the user interface. + * @protected + * @type {Object} + */ + this._controls = {}; + + /** + * Markup for an indicator. + * @protected + * @type {Array.} + */ + this._templates = []; + + /** + * The carousel element. + * @type {jQuery} + */ + this.$element = this._core.$element; + + /** + * Overridden methods of the carousel. + * @protected + * @type {Object} + */ + this._overrides = { + next: this._core.next, + prev: this._core.prev, + to: this._core.to + }; + + /** + * All event handlers. + * @protected + * @type {Object} + */ + this._handlers = { + 'prepared.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.dotsData) { + this._templates.push('
' + + $(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '
'); + } + }, this), + 'added.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.dotsData) { + this._templates.splice(e.position, 0, this._templates.pop()); + } + }, this), + 'remove.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._core.settings.dotsData) { + this._templates.splice(e.position, 1); + } + }, this), + 'changed.owl.carousel': $.proxy(function(e) { + if (e.namespace && e.property.name == 'position') { + this.draw(); + } + }, this), + 'initialized.owl.carousel': $.proxy(function(e) { + if (e.namespace && !this._initialized) { + this._core.trigger('initialize', null, 'navigation'); + this.initialize(); + this.update(); + this.draw(); + this._initialized = true; + this._core.trigger('initialized', null, 'navigation'); + } + }, this), + 'refreshed.owl.carousel': $.proxy(function(e) { + if (e.namespace && this._initialized) { + this._core.trigger('refresh', null, 'navigation'); + this.update(); + this.draw(); + this._core.trigger('refreshed', null, 'navigation'); + } + }, this) + }; + + // set default options + this._core.options = $.extend({}, Navigation.Defaults, this._core.options); + + // register event handlers + this.$element.on(this._handlers); + }; + + /** + * Default options. + * @public + * @todo Rename `slideBy` to `navBy` + */ + Navigation.Defaults = { + nav: false, + navText: [ + '', + '' + ], + navSpeed: false, + navElement: 'button type="button" role="presentation"', + navContainer: false, + navContainerClass: 'owl-nav', + navClass: [ + 'owl-prev', + 'owl-next' + ], + slideBy: 1, + dotClass: 'owl-dot', + dotsClass: 'owl-dots', + dots: true, + dotsEach: false, + dotsData: false, + dotsSpeed: false, + dotsContainer: false + }; + + /** + * Initializes the layout of the plugin and extends the carousel. + * @protected + */ + Navigation.prototype.initialize = function() { + var override, + settings = this._core.settings; + + // create DOM structure for relative navigation + this._controls.$relative = (settings.navContainer ? $(settings.navContainer) + : $('
').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled'); + + this._controls.$previous = $('<' + settings.navElement + '>') + .addClass(settings.navClass[0]) + .html(settings.navText[0]) + .prependTo(this._controls.$relative) + .on('click', $.proxy(function(e) { + this.prev(settings.navSpeed); + }, this)); + this._controls.$next = $('<' + settings.navElement + '>') + .addClass(settings.navClass[1]) + .html(settings.navText[1]) + .appendTo(this._controls.$relative) + .on('click', $.proxy(function(e) { + this.next(settings.navSpeed); + }, this)); + + // create DOM structure for absolute navigation + if (!settings.dotsData) { + this._templates = [ $('