From 888851f95d49f688e8235304071bc4c895428875 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 16 May 2016 16:52:59 +0300 Subject: [PATCH] 16.05.16 ann fotorama gallery --- console/config/.gitignore | 2 +- console/config/bootstrap.php | 4 ++-- console/config/main.php | 50 +++++++++++++++++++++++++------------------------- console/config/params.php | 8 ++++---- frontend/assets/FotoramaAsset.php | 29 +++++++++++++++++++++++++++++ frontend/controllers/CabinetController.php | 198 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------- frontend/controllers/CatalogController.php | 396 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ frontend/controllers/EventController.php | 94 +++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------- frontend/controllers/OrdersController.php | 622 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- frontend/controllers/PageController.php | 38 +++++++++++++++++++------------------- frontend/controllers/PostController.php | 40 ++++++++++++++++++++-------------------- frontend/controllers/PuttyController.php | 82 +++++++++++++++++++++++++++++++++++++++++----------------------------------------- frontend/controllers/ServiceController.php | 94 +++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------- frontend/controllers/SiteController.php | 534 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- frontend/views/catalog/product.php | 33 +++++++++++---------------------- frontend/views/site/about.php | 32 ++++++++++++++++---------------- frontend/views/site/contact.php | 90 +++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------- frontend/views/site/error.php | 42 +++++++++++++++++++++--------------------- frontend/views/site/login.php | 78 +++++++++++++++++++++++++++++++++++++++--------------------------------------- frontend/views/site/requestPasswordResetToken.php | 62 +++++++++++++++++++++++++++++++------------------------------- frontend/views/site/resetPassword.php | 62 +++++++++++++++++++++++++++++++------------------------------- frontend/views/site/signup.php | 70 +++++++++++++++++++++++++++++++++++----------------------------------- frontend/web/.gitignore | 4 ++-- frontend/web/css/concat_all_back.css | 6190 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- frontend/web/css/site.css | 210 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------- frontend/web/js/basket.js | 360 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ frontend/web/js/jquery.maskedinput.min.js | 12 ++++++------ frontend/web/robots.txt | 2 +- 28 files changed, 4728 insertions(+), 4710 deletions(-) create mode 100644 frontend/assets/FotoramaAsset.php diff --git a/console/config/.gitignore b/console/config/.gitignore index 20da318..8ded784 100755 --- a/console/config/.gitignore +++ b/console/config/.gitignore @@ -1,2 +1,2 @@ -main-local.php +main-local.php params-local.php \ No newline at end of file diff --git a/console/config/bootstrap.php b/console/config/bootstrap.php index a4abe2d..ab4fa67 100755 --- a/console/config/bootstrap.php +++ b/console/config/bootstrap.php @@ -1,2 +1,2 @@ - 'app-console', - 'basePath' => dirname(__DIR__), - 'bootstrap' => ['log'], - 'controllerNamespace' => 'console\controllers', - 'components' => [ - 'log' => [ - 'targets' => [ - [ - 'class' => 'yii\log\FileTarget', - 'levels' => ['error', 'warning'], - ], - ], - ], - ], - 'params' => $params, -]; + 'app-console', + 'basePath' => dirname(__DIR__), + 'bootstrap' => ['log'], + 'controllerNamespace' => 'console\controllers', + 'components' => [ + 'log' => [ + 'targets' => [ + [ + 'class' => 'yii\log\FileTarget', + 'levels' => ['error', 'warning'], + ], + ], + ], + ], + 'params' => $params, +]; diff --git a/console/config/params.php b/console/config/params.php index 7f754b9..4ee7a49 100755 --- a/console/config/params.php +++ b/console/config/params.php @@ -1,4 +1,4 @@ - 'admin@example.com', -]; + 'admin@example.com', +]; diff --git a/frontend/assets/FotoramaAsset.php b/frontend/assets/FotoramaAsset.php new file mode 100644 index 0000000..a55a0b1 --- /dev/null +++ b/frontend/assets/FotoramaAsset.php @@ -0,0 +1,29 @@ + + * @since 2.0 + */ +class FotoramaAsset extends AssetBundle +{ + public $basePath = '@webroot'; + public $baseUrl = '@web'; + public $css = [ + 'js/vendor/bower/fotorama/fotorama.css' + ]; + public $js = [ + 'js/vendor/bower/fotorama/fotorama.js' + ]; + public $jsOptions = array( + 'position' => \yii\web\View::POS_END + ); +} diff --git a/frontend/controllers/CabinetController.php b/frontend/controllers/CabinetController.php index e60d215..56be783 100755 --- a/frontend/controllers/CabinetController.php +++ b/frontend/controllers/CabinetController.php @@ -1,100 +1,100 @@ - [ - 'class' => AccessControl::className(), - 'rules' => [ - [ - 'actions' => ['login', 'error'], - 'allow' => true, - ], - [ - 'actions' => ['logout', 'index', 'create', 'update', 'view', 'delete','my-orders','bookmarks'], - 'allow' => true, - 'roles' => ['@'], - ], - ], - ], - 'verbs' => [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'logout' => ['post'], - ], - ], - ]; - } - - public function actionIndex(){ - return $this->render('index'); - } - - public function actionUpdate(){ - - - - $model = Yii::$app->user->identity; - - - if(Yii::$app->request->post()){ - - $model->load(Yii::$app->request->post()); - $model->validate(); - - if($model->validate()){ - $model->save(); - - } - - } - - - return $this->render('update',[ - 'model' =>$model - ]); - } - - - public function actionBookmarks(){ - return $this->render('bookmarks',[ - - ]); - } - - public function actionMyOrders(){ - return $this->render('my-orders',[ - - ]); - } - + [ + 'class' => AccessControl::className(), + 'rules' => [ + [ + 'actions' => ['login', 'error'], + 'allow' => true, + ], + [ + 'actions' => ['logout', 'index', 'create', 'update', 'view', 'delete','my-orders','bookmarks'], + 'allow' => true, + 'roles' => ['@'], + ], + ], + ], + 'verbs' => [ + 'class' => VerbFilter::className(), + 'actions' => [ + 'logout' => ['post'], + ], + ], + ]; + } + + public function actionIndex(){ + return $this->render('index'); + } + + public function actionUpdate(){ + + + + $model = Yii::$app->user->identity; + + + if(Yii::$app->request->post()){ + + $model->load(Yii::$app->request->post()); + $model->validate(); + + if($model->validate()){ + $model->save(); + + } + + } + + + return $this->render('update',[ + 'model' =>$model + ]); + } + + + public function actionBookmarks(){ + return $this->render('bookmarks',[ + + ]); + } + + public function actionMyOrders(){ + return $this->render('my-orders',[ + + ]); + } + } \ No newline at end of file diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index 944e682..b14e86b 100755 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -1,198 +1,198 @@ -request->get('category'); - $filter = Yii::$app->request->get('filter', []); - $word = trim(Yii::$app->request->get('word', '')); - - if (empty($category->category_id) && empty($word)) { - throw new HttpException(404 ,'Page not found'); - } - - $last_products = ProductHelper::getLastProducts(true); - - if (!empty($word)) { - $params = []; - - $params['keywords'] = explode(' ', preg_replace("|[\s,.!:&?~();-]|i", " ", $word)); - foreach($params['keywords'] as $i => &$keyword) { - $keyword = trim($keyword); - if (empty($keyword)) { - unset($params['keywords'][$i]); - } - } - - $productModel = new ProductFrontendSearch(); - $productProvider = $productModel->search($category, $params); - - $categoriesQuery = Category::find() - ->innerJoin(ProductCategory::tableName(), ProductCategory::tableName() .'.category_id = '. Category::tableName() .'.category_id') - ->innerJoin(Product::tableName(), Product::tableName() .'.product_id = '. ProductCategory::tableName() .'.product_id'); - foreach ($params['keywords'] as $keyword) { - $categoriesQuery->andWhere(['ilike', 'product.name', $keyword]); - } - $categories = $categoriesQuery->all(); - - return $this->render( - 'search', - [ - 'keywords' => $params['keywords'], - 'category' => $category, - 'productModel' => $productModel, - 'productProvider' => $productProvider, - 'last_products' => $last_products, - 'categories' => $categories, - ] - ); - - } elseif ($category->depth < 2) { - return $this->render( - 'categories', - [ - 'category' => $category, - 'last_products' => $last_products, - ] - ); - } else { - $params = []; - - if ( !empty($filter['brands']) ) { - $brands = Brand::find()->select('brand_id')->where(['in', 'alias', $filter['brands']])->all(); - $params['brands'] = []; - foreach ($brands as $brand) { - $params['brands'][] = $brand->brand_id; - } - } - - if ( !empty($filter['options']) ) { - $params['options'] = $filter['options']; - /*$optionQuery = TaxOption::find(); - $optionQuery->select('tax_option_id'); - $optionQuery->innerJoinWith('group'); - foreach ($filter['options'] as $option_key => $option_values) { - $optionQuery->orWhere([ - 'tax_group_id' => $option_key, - 'alias' => $filter['options'] - ]); - } - $options = ->where(['in', 'alias', $filter['options']])->all(); - $params['options'] = []; - foreach ($options as $option) { - $params['options'][] = $option->tax_option_id; - }*/ - } - - if ( !empty($filter['prices']) ) { - $params['prices'] = $filter['prices']; - } - - $productModel = new ProductFrontendSearch(); - $productProvider = $productModel->search($category, $params); - - $brandModel = new BrandSearch(); - $brandProvider = $brandModel->getBrands($category, $params); - - $optionsProvider = $productModel->optionsForCategory($category, $params); - $groups = []; - foreach ($optionsProvider->models as $option) { - if (!isset($groups[$option->tax_group_id])) { - $groups[$option->tax_group_id] = $option->taxGroup; - $groups[$option->tax_group_id]->_options = []; - } - $groups[$option->tax_group_id]->_options[] = $option; - } - foreach($groups as $i => $group) { - if (empty($group->_options)) - unset($groups[$i]); - } - - $priceLimits = $productModel->priceLimits($category, $params); - - return $this->render( - 'products', - [ - 'category' => $category, - 'brandModel' => $brandModel, - 'brandProvider' => $brandProvider, - 'filter' => $filter, - 'productModel' => $productModel, - 'productProvider' => $productProvider, - 'optionsProvider' => $optionsProvider, - 'groups' => $groups, - 'priceLimits' => $priceLimits, - 'last_products' => $last_products, - ] - ); - } - } - - public function actionProduct() - { - $product = Yii::$app->request->get('product'); - - $groups = []; - foreach($product->category->getTaxGroups()->all() as $_group) { - $groups[$_group->tax_group_id] = $_group; - } - foreach ($product->options as $option) { - $groups[$option->tax_group_id]->_options[] = $option; - } - foreach($groups as $i => $group) { - if (empty($group->_options)) - unset($groups[$i]); - } - - $last_products = ProductHelper::getLastProducts(true); - ProductHelper::addLastProsucts($product->product_id); - - return $this->render('product', [ - 'product' => $product, - 'properties' => $groups, - 'last_products' => $last_products - ]); - } - - public function actionBrands() - { - return 'actionBrands'; - } - - public function actionBrand($alias) - { - return 'actionBrand:'. $alias; - } - -} +request->get('category'); + $filter = Yii::$app->request->get('filter', []); + $word = trim(Yii::$app->request->get('word', '')); + + if (empty($category->category_id) && empty($word)) { + throw new HttpException(404 ,'Page not found'); + } + + $last_products = ProductHelper::getLastProducts(true); + + if (!empty($word)) { + $params = []; + + $params['keywords'] = explode(' ', preg_replace("|[\s,.!:&?~();-]|i", " ", $word)); + foreach($params['keywords'] as $i => &$keyword) { + $keyword = trim($keyword); + if (empty($keyword)) { + unset($params['keywords'][$i]); + } + } + + $productModel = new ProductFrontendSearch(); + $productProvider = $productModel->search($category, $params); + + $categoriesQuery = Category::find() + ->innerJoin(ProductCategory::tableName(), ProductCategory::tableName() .'.category_id = '. Category::tableName() .'.category_id') + ->innerJoin(Product::tableName(), Product::tableName() .'.product_id = '. ProductCategory::tableName() .'.product_id'); + foreach ($params['keywords'] as $keyword) { + $categoriesQuery->andWhere(['ilike', 'product.name', $keyword]); + } + $categories = $categoriesQuery->all(); + + return $this->render( + 'search', + [ + 'keywords' => $params['keywords'], + 'category' => $category, + 'productModel' => $productModel, + 'productProvider' => $productProvider, + 'last_products' => $last_products, + 'categories' => $categories, + ] + ); + + } elseif ($category->depth < 2) { + return $this->render( + 'categories', + [ + 'category' => $category, + 'last_products' => $last_products, + ] + ); + } else { + $params = []; + + if ( !empty($filter['brands']) ) { + $brands = Brand::find()->select('brand_id')->where(['in', 'alias', $filter['brands']])->all(); + $params['brands'] = []; + foreach ($brands as $brand) { + $params['brands'][] = $brand->brand_id; + } + } + + if ( !empty($filter['options']) ) { + $params['options'] = $filter['options']; + /*$optionQuery = TaxOption::find(); + $optionQuery->select('tax_option_id'); + $optionQuery->innerJoinWith('group'); + foreach ($filter['options'] as $option_key => $option_values) { + $optionQuery->orWhere([ + 'tax_group_id' => $option_key, + 'alias' => $filter['options'] + ]); + } + $options = ->where(['in', 'alias', $filter['options']])->all(); + $params['options'] = []; + foreach ($options as $option) { + $params['options'][] = $option->tax_option_id; + }*/ + } + + if ( !empty($filter['prices']) ) { + $params['prices'] = $filter['prices']; + } + + $productModel = new ProductFrontendSearch(); + $productProvider = $productModel->search($category, $params); + + $brandModel = new BrandSearch(); + $brandProvider = $brandModel->getBrands($category, $params); + + $optionsProvider = $productModel->optionsForCategory($category, $params); + $groups = []; + foreach ($optionsProvider->models as $option) { + if (!isset($groups[$option->tax_group_id])) { + $groups[$option->tax_group_id] = $option->taxGroup; + $groups[$option->tax_group_id]->_options = []; + } + $groups[$option->tax_group_id]->_options[] = $option; + } + foreach($groups as $i => $group) { + if (empty($group->_options)) + unset($groups[$i]); + } + + $priceLimits = $productModel->priceLimits($category, $params); + + return $this->render( + 'products', + [ + 'category' => $category, + 'brandModel' => $brandModel, + 'brandProvider' => $brandProvider, + 'filter' => $filter, + 'productModel' => $productModel, + 'productProvider' => $productProvider, + 'optionsProvider' => $optionsProvider, + 'groups' => $groups, + 'priceLimits' => $priceLimits, + 'last_products' => $last_products, + ] + ); + } + } + + public function actionProduct() + { + $product = Yii::$app->request->get('product'); + + $groups = []; + foreach($product->category->getTaxGroups()->all() as $_group) { + $groups[$_group->tax_group_id] = $_group; + } + foreach ($product->options as $option) { + $groups[$option->tax_group_id]->_options[] = $option; + } + foreach($groups as $i => $group) { + if (empty($group->_options)) + unset($groups[$i]); + } + + $last_products = ProductHelper::getLastProducts(true); + ProductHelper::addLastProsucts($product->product_id); + + return $this->render('product', [ + 'product' => $product, + 'properties' => $groups, + 'last_products' => $last_products + ]); + } + + public function actionBrands() + { + return 'actionBrands'; + } + + public function actionBrand($alias) + { + return 'actionBrand:'. $alias; + } + +} diff --git a/frontend/controllers/EventController.php b/frontend/controllers/EventController.php index 34e09b1..cd2716b 100644 --- a/frontend/controllers/EventController.php +++ b/frontend/controllers/EventController.php @@ -1,48 +1,48 @@ - Event::find() ]); - - return $this->render('index', [ - 'dataProvider' => $dataProvider, - ]); - } - - - - public function actionView($alias) - { - - return $this->render('view', [ - 'model' => $this->findModel($alias), - ]); - } - - - protected function findModel($alias) - { - if (($model = Event::findOne(["alias"=>$alias])) !== null) { - return $model; - } else { - throw new NotFoundHttpException('The requested page does not exist.'); - } - } - - + Event::find() ]); + + return $this->render('index', [ + 'dataProvider' => $dataProvider, + ]); + } + + + + public function actionView($alias) + { + + return $this->render('view', [ + 'model' => $this->findModel($alias), + ]); + } + + + protected function findModel($alias) + { + if (($model = Event::findOne(["alias"=>$alias])) !== null) { + return $model; + } else { + throw new NotFoundHttpException('The requested page does not exist.'); + } + } + + } \ No newline at end of file diff --git a/frontend/controllers/OrdersController.php b/frontend/controllers/OrdersController.php index ab576bd..077c462 100755 --- a/frontend/controllers/OrdersController.php +++ b/frontend/controllers/OrdersController.php @@ -1,311 +1,311 @@ -id == 'buy-items' || $action->id == 'delete') { - Yii::$app->controller->enableCsrfValidation = false; - } - - return true; - } - - public function actionFirst(){ - - $array = Yii::$app->session->get('order'); - - if(isset($array['order_id']) ) { - $model = Orders::findOne($array['order_id']); - }else { - $model = new Orders(); - } - - - if(Yii::$app->request->post() && $model->load(Yii::$app->request->post())){ - - if($model->save()){ - - $array['order_id'] = $model->order_id; - - Yii::$app->session->set('order', $array ); - - return $this->redirect(['orders/second']); - } - - } else { - if (!Yii::$app->user->isGuest) { - $customer = Yii::$app->user->identity; - $model->name = $customer->name; - $model->email = $customer->email; - $model->phone = $customer->phone; - } - } - - - return $this->render('basket-step-01',[ - 'model' => $model - ]); - } - - public function actionSecond(){ - - $sessionData = \Yii::$app->session->get('order'); - - $order_id = $sessionData['order_id']; - - if(!empty($order_id)){ - $order_model = Orders::findOne($order_id); - } else{ - $order_model = new Orders; - } - - unset($sessionData['order_id']); - - $variant = ProductVariant::find()->where(['product_variant_id'=>array_keys($sessionData)])->indexBy('product_variant_id')->all(); - - - if(Yii::$app->request->post()){ - - foreach ($sessionData as $k => $item) { - $itemModel = OrderItems::find()->where(['order_id'=>$order_id, 'item_id'=> $variant[$k]->product_variant_id])->one(); - if($itemModel instanceof OrderItems){ - $itemModel->order_id = $order_id; - $itemModel->item_id = $variant[$k]->product_variant_id; - $itemModel->item_count = $sessionData[$k]['num']; - $itemModel->price = $variant[$k]->price; - $itemModel->save(); - } else { - $itemModel = new OrderItems(); - $itemModel->order_id = $order_id; - $itemModel->item_id = $variant[$k]->product_variant_id; - $itemModel->item_count = $sessionData[$k]['num']; - $itemModel->price = $variant[$k]->price; - $itemModel->save(); - } - - } - Yii::$app->session->set('order', [] ); - return $this->redirect(['orders/third']); - - } else { - - $price = 0; - - $count = count($sessionData); - - foreach ($sessionData as $k => $item) { - $sessionData[$k]['item'] = $variant[$k]; - $price += $variant[$k]->price * $sessionData[$k]['num']; - } - - } - - return $this->render('basket-step-02',[ - 'items'=>$sessionData, - 'count' => $count, - 'price' => $price, - 'order_id' => $order_id, - 'order_model' => $order_model, - ]); - - } - - public function actionThird(){ - return $this->render('basket-step-03'); - } - - -// /** -// * Lists all Order models. -// * @return mixed -// */ -// public function actionIndex() -// { -// -// if (Yii::$app->request->post()) { -// $item = $items_id = array(); -// -// $i = 0; -// $order = Yii::$app->request->post(); -// -// $orderData['Order'] = $order['OrderForm']; -// -// foreach($order['OrderForm']['one_item'] as $k => $v ){ -// $item[$k]['num'] = $v['num']; -// $items_id[] = $k; -// $i++; -// } -// -// $items = Items::find()->where(['id'=>$items_id])->all(); -// -// -// $orderModel = new Order(); -// $orderModel->load($orderData); -// $orderModel->save(); -// -// -// foreach($items as $one_item){ -// $ItemOrderModel = new ItemOrder(); -// $ItemOrderModel->order_id = $orderModel->id; -// $ItemOrderModel->num = $item[$one_item->id]['num']; -// $ItemOrderModel->item_id = $one_item->id; -// $ItemOrderModel->price = $one_item->price * $item[$one_item->id]['num']; -// $ItemOrderModel->item_name = $one_item->name; -// $ItemOrderModel->save(); -// } -// Yii::$app->session->set('order', [] ); -// return $this->redirect(['order/complete']); -// } -// $total_price = 0; -// -// $items_id = []; -// -// $orders = Yii::$app->session->get('order'); -// -// if(!empty($orders)){ -// foreach($orders as $k => $v) { -// $items_id[] = $k; -// } -// } -// -// -// $items = Items::find()->where(['id'=>$items_id])->all(); -// -// foreach($items as $item) { -// $total_price += $orders[$item['id']]['num'] * $item['price']; -// } -// -// -// $dataProvider = new ArrayDataProvider([ -// 'allModels' => $items -// ]); -// -// return $this->render('index', [ -// 'dataProvider' => $dataProvider, -// 'total_price'=> $total_price, -// 'model' => new OrderForm() -// ]); -// } - - - public function actionComplete() - { - return $this->render('complete', [ - ]); - } - - public function actionBuyItems(){ - $data = Yii::$app->request->post(); - $sessionData = Yii::$app->session->get('order'); - if(isset($sessionData) && !array_search($data['id'],Yii::$app->session->get('order')) ){ - $array = Yii::$app->session->get('order'); - $array[$data['id']] = $data; - Yii::$app->session->set('order', $array ); - } else { - $array[$data['id']] = $data; - Yii::$app->session->set('order', $array ); - } - echo BasketModal::widget([]); - - } - /** - * Displays a single Order model. - * @param integer $id - * @return mixed - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new Order model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new Order(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect(['view', 'id' => $model->id]); - } else { - return $this->render('create', [ - 'model' => $model, - ]); - } - } - - /** - * Updates an existing Order model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect(['view', 'id' => $model->id]); - } else { - return $this->render('update', [ - 'model' => $model, - ]); - } - } - - /** - * Deletes an existing Order model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - */ - public function actionDelete() - { - $data = Yii::$app->request->post(); - $sessionData = Yii::$app->session->get('order'); - unset($sessionData[$data['id']]); - Yii::$app->session->set('order', $sessionData); - return count(Yii::$app->session->get('order')); - } - - /** - * Finds the Order model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return Order the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = Order::findOne($id)) !== null) { - return $model; - } else { - throw new NotFoundHttpException('The requested page does not exist.'); - } - } -} +id == 'buy-items' || $action->id == 'delete') { + Yii::$app->controller->enableCsrfValidation = false; + } + + return true; + } + + public function actionFirst(){ + + $array = Yii::$app->session->get('order'); + + if(isset($array['order_id']) ) { + $model = Orders::findOne($array['order_id']); + }else { + $model = new Orders(); + } + + + if(Yii::$app->request->post() && $model->load(Yii::$app->request->post())){ + + if($model->save()){ + + $array['order_id'] = $model->order_id; + + Yii::$app->session->set('order', $array ); + + return $this->redirect(['orders/second']); + } + + } else { + if (!Yii::$app->user->isGuest) { + $customer = Yii::$app->user->identity; + $model->name = $customer->name; + $model->email = $customer->email; + $model->phone = $customer->phone; + } + } + + + return $this->render('basket-step-01',[ + 'model' => $model + ]); + } + + public function actionSecond(){ + + $sessionData = \Yii::$app->session->get('order'); + + $order_id = $sessionData['order_id']; + + if(!empty($order_id)){ + $order_model = Orders::findOne($order_id); + } else{ + $order_model = new Orders; + } + + unset($sessionData['order_id']); + + $variant = ProductVariant::find()->where(['product_variant_id'=>array_keys($sessionData)])->indexBy('product_variant_id')->all(); + + + if(Yii::$app->request->post()){ + + foreach ($sessionData as $k => $item) { + $itemModel = OrderItems::find()->where(['order_id'=>$order_id, 'item_id'=> $variant[$k]->product_variant_id])->one(); + if($itemModel instanceof OrderItems){ + $itemModel->order_id = $order_id; + $itemModel->item_id = $variant[$k]->product_variant_id; + $itemModel->item_count = $sessionData[$k]['num']; + $itemModel->price = $variant[$k]->price; + $itemModel->save(); + } else { + $itemModel = new OrderItems(); + $itemModel->order_id = $order_id; + $itemModel->item_id = $variant[$k]->product_variant_id; + $itemModel->item_count = $sessionData[$k]['num']; + $itemModel->price = $variant[$k]->price; + $itemModel->save(); + } + + } + Yii::$app->session->set('order', [] ); + return $this->redirect(['orders/third']); + + } else { + + $price = 0; + + $count = count($sessionData); + + foreach ($sessionData as $k => $item) { + $sessionData[$k]['item'] = $variant[$k]; + $price += $variant[$k]->price * $sessionData[$k]['num']; + } + + } + + return $this->render('basket-step-02',[ + 'items'=>$sessionData, + 'count' => $count, + 'price' => $price, + 'order_id' => $order_id, + 'order_model' => $order_model, + ]); + + } + + public function actionThird(){ + return $this->render('basket-step-03'); + } + + +// /** +// * Lists all Order models. +// * @return mixed +// */ +// public function actionIndex() +// { +// +// if (Yii::$app->request->post()) { +// $item = $items_id = array(); +// +// $i = 0; +// $order = Yii::$app->request->post(); +// +// $orderData['Order'] = $order['OrderForm']; +// +// foreach($order['OrderForm']['one_item'] as $k => $v ){ +// $item[$k]['num'] = $v['num']; +// $items_id[] = $k; +// $i++; +// } +// +// $items = Items::find()->where(['id'=>$items_id])->all(); +// +// +// $orderModel = new Order(); +// $orderModel->load($orderData); +// $orderModel->save(); +// +// +// foreach($items as $one_item){ +// $ItemOrderModel = new ItemOrder(); +// $ItemOrderModel->order_id = $orderModel->id; +// $ItemOrderModel->num = $item[$one_item->id]['num']; +// $ItemOrderModel->item_id = $one_item->id; +// $ItemOrderModel->price = $one_item->price * $item[$one_item->id]['num']; +// $ItemOrderModel->item_name = $one_item->name; +// $ItemOrderModel->save(); +// } +// Yii::$app->session->set('order', [] ); +// return $this->redirect(['order/complete']); +// } +// $total_price = 0; +// +// $items_id = []; +// +// $orders = Yii::$app->session->get('order'); +// +// if(!empty($orders)){ +// foreach($orders as $k => $v) { +// $items_id[] = $k; +// } +// } +// +// +// $items = Items::find()->where(['id'=>$items_id])->all(); +// +// foreach($items as $item) { +// $total_price += $orders[$item['id']]['num'] * $item['price']; +// } +// +// +// $dataProvider = new ArrayDataProvider([ +// 'allModels' => $items +// ]); +// +// return $this->render('index', [ +// 'dataProvider' => $dataProvider, +// 'total_price'=> $total_price, +// 'model' => new OrderForm() +// ]); +// } + + + public function actionComplete() + { + return $this->render('complete', [ + ]); + } + + public function actionBuyItems(){ + $data = Yii::$app->request->post(); + $sessionData = Yii::$app->session->get('order'); + if(isset($sessionData) && !array_search($data['id'],Yii::$app->session->get('order')) ){ + $array = Yii::$app->session->get('order'); + $array[$data['id']] = $data; + Yii::$app->session->set('order', $array ); + } else { + $array[$data['id']] = $data; + Yii::$app->session->set('order', $array ); + } + echo BasketModal::widget([]); + + } + /** + * Displays a single Order model. + * @param integer $id + * @return mixed + */ + public function actionView($id) + { + return $this->render('view', [ + 'model' => $this->findModel($id), + ]); + } + + /** + * Creates a new Order model. + * If creation is successful, the browser will be redirected to the 'view' page. + * @return mixed + */ + public function actionCreate() + { + $model = new Order(); + + if ($model->load(Yii::$app->request->post()) && $model->save()) { + return $this->redirect(['view', 'id' => $model->id]); + } else { + return $this->render('create', [ + 'model' => $model, + ]); + } + } + + /** + * Updates an existing Order model. + * If update is successful, the browser will be redirected to the 'view' page. + * @param integer $id + * @return mixed + */ + public function actionUpdate($id) + { + $model = $this->findModel($id); + + if ($model->load(Yii::$app->request->post()) && $model->save()) { + return $this->redirect(['view', 'id' => $model->id]); + } else { + return $this->render('update', [ + 'model' => $model, + ]); + } + } + + /** + * Deletes an existing Order model. + * If deletion is successful, the browser will be redirected to the 'index' page. + * @param integer $id + * @return mixed + */ + public function actionDelete() + { + $data = Yii::$app->request->post(); + $sessionData = Yii::$app->session->get('order'); + unset($sessionData[$data['id']]); + Yii::$app->session->set('order', $sessionData); + return count(Yii::$app->session->get('order')); + } + + /** + * Finds the Order model based on its primary key value. + * If the model is not found, a 404 HTTP exception will be thrown. + * @param integer $id + * @return Order the loaded model + * @throws NotFoundHttpException if the model cannot be found + */ + protected function findModel($id) + { + if (($model = Order::findOne($id)) !== null) { + return $model; + } else { + throw new NotFoundHttpException('The requested page does not exist.'); + } + } +} diff --git a/frontend/controllers/PageController.php b/frontend/controllers/PageController.php index a65088a..b0c3c88 100644 --- a/frontend/controllers/PageController.php +++ b/frontend/controllers/PageController.php @@ -1,20 +1,20 @@ -getPageTranslit($translit)) - throw new \Exception(404,'The requested page does not exist.'); - return $this->render('show',['page'=>$page]); - } +getPageTranslit($translit)) + throw new \Exception(404,'The requested page does not exist.'); + return $this->render('show',['page'=>$page]); + } } \ No newline at end of file diff --git a/frontend/controllers/PostController.php b/frontend/controllers/PostController.php index 8935ca7..55bbfd3 100755 --- a/frontend/controllers/PostController.php +++ b/frontend/controllers/PostController.php @@ -1,20 +1,20 @@ - 55]); - } - - public function actionView($id) - { - return 'actionView:'. $id; - } - -} + 55]); + } + + public function actionView($id) + { + return 'actionView:'. $id; + } + +} diff --git a/frontend/controllers/PuttyController.php b/frontend/controllers/PuttyController.php index a066df0..32fa0fc 100755 --- a/frontend/controllers/PuttyController.php +++ b/frontend/controllers/PuttyController.php @@ -1,41 +1,41 @@ -render('catalog'); - } - - public function actionItemCardOpen(){ - return $this->render('item-card-open'); - } - - public function actionCategory(){ - return $this->render('category'); - } - - public function actionManufacturers(){ - return $this->render('manufacturers'); - } - - - - - public function actionContacts(){ - return $this->render('contacts'); - } - - public function actionDelivery(){ - return $this->render('delivery'); - } - -} +render('catalog'); + } + + public function actionItemCardOpen(){ + return $this->render('item-card-open'); + } + + public function actionCategory(){ + return $this->render('category'); + } + + public function actionManufacturers(){ + return $this->render('manufacturers'); + } + + + + + public function actionContacts(){ + return $this->render('contacts'); + } + + public function actionDelivery(){ + return $this->render('delivery'); + } + +} diff --git a/frontend/controllers/ServiceController.php b/frontend/controllers/ServiceController.php index 1b50bf2..48da911 100644 --- a/frontend/controllers/ServiceController.php +++ b/frontend/controllers/ServiceController.php @@ -1,48 +1,48 @@ - Service::find() ]); - - return $this->render('index', [ - 'dataProvider' => $dataProvider, - ]); - } - - - - public function actionView($alias) - { - - return $this->render('view', [ - 'model' => $this->findModel($alias), - ]); - } - - - protected function findModel($alias) - { - if (($model = Service::findOne(["alias"=>$alias])) !== null) { - return $model; - } else { - throw new NotFoundHttpException('The requested page does not exist.'); - } - } - - + Service::find() ]); + + return $this->render('index', [ + 'dataProvider' => $dataProvider, + ]); + } + + + + public function actionView($alias) + { + + return $this->render('view', [ + 'model' => $this->findModel($alias), + ]); + } + + + protected function findModel($alias) + { + if (($model = Service::findOne(["alias"=>$alias])) !== null) { + return $model; + } else { + throw new NotFoundHttpException('The requested page does not exist.'); + } + } + + } \ No newline at end of file diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 707415e..513418c 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -1,267 +1,267 @@ - [ - 'class' => AccessControl::className(), - 'only' => ['logout', 'signup'], - 'rules' => [ - [ - 'actions' => ['signup'], - 'allow' => true, - 'roles' => ['?'], - ], - [ - 'actions' => ['logout'], - 'allow' => true, - 'roles' => ['@'], - ], - ], - ], - 'verbs' => [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'logout' => ['post'], - ], - ], - ]; - } - - /** - * @inheritdoc - */ - public function beforeAction($action) - { - if ($action->id == 'signup') { - Yii::$app->controller->enableCsrfValidation = false; - } - - return true; - } - - /** - * @inheritdoc - */ - public function actions() - { - return [ - 'error' => [ - 'class' => 'yii\web\ErrorAction', - ], - 'captcha' => [ - 'class' => 'yii\captcha\CaptchaAction', - 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null, - ], - 'thumb' => 'iutbay\yii2imagecache\ThumbAction', - ]; - } - - /** - * Displays homepage. - * - * @return mixed - */ - public function actionIndex() - { - $this->layout = 'main'; - return $this->render('index'); - } - - - public function actionMail(){ - - $type = Yii::$app->request->post('type'); - - switch ($type) { - case 'call_me': - $num = Yii::$app->request->post('num'); - if(!empty($num)){ - return json_encode(Mailer::widget(['text' => $num, 'subject' => 'Обратный звонок'])); - } - - break; - case "consultation": - $num = Yii::$app->request->post('num'); - $name = Yii::$app->request->post('name'); - - if(!empty($num)){ - return json_encode(Mailer::widget(['text' => "Номер телефона".$num.";
Имя:".$name, 'subject' => 'Обратный звонок'])); - } - break; - - - } - } - - /** - * Logs in a user. - * - * @return mixed - */ - public function actionLogin() - { - if (!\Yii::$app->user->isGuest) { - return $this->goHome(); - } - - $model = new LoginForm(); - if ($model->load(Yii::$app->request->post()) && $model->login()) { - return $this->goBack(); - } else { - return $this->render('login', [ - 'model' => $model, - ]); - } - } - - /** - * Logs out the current user. - * - * @return mixed - */ - public function actionLogout() - { - Yii::$app->user->logout(); - - return $this->goHome(); - } - - /** - * Displays contact page. - * - * @return mixed - */ - public function actionContact() - { - $model = new ContactForm(); - if ($model->load(Yii::$app->request->post()) && $model->validate()) { - if ($model->sendEmail(Yii::$app->params['adminEmail'])) { - Yii::$app->session->setFlash('success', 'Thank you for contacting us. We will respond to you as soon as possible.'); - } else { - Yii::$app->session->setFlash('error', 'There was an error sending email.'); - } - - return $this->refresh(); - } else { - return $this->render('contact', [ - 'model' => $model, - ]); - } - } - - /** - * Displays about page. - * - * @return mixed - */ - public function actionAbout() - { - return $this->render('about'); - } - - /** - * Signs user up. - * - * @return mixed - */ - public function actionSignup() - { - - if(Yii::$app->request->post()){ - if (Yii::$app->request->isAjax) { - Yii::$app->response->format = Response::FORMAT_JSON; - $model = new SignupForm(['scenario' => SignupForm::SCENARIO_AJAX]); - $model->load(Yii::$app->request->post()); - return ActiveForm::validate($model); - } else { - $model = new SignupForm(['scenario' => SignupForm::SCENARIO_SUBMIT]); - $model->load(Yii::$app->request->post()); - if ($user = $model->signup()) { - if (Yii::$app->getUser()->login($user)) { - return $this->goHome(); - } - } - } - } - return $this->render('signup', [ - 'model' => $model, - ]); - } - - /** - * Requests password reset. - * - * @return mixed - */ - public function actionRequestPasswordReset() - { - $model = new PasswordResetRequestForm(); - if ($model->load(Yii::$app->request->post()) && $model->validate()) { - if ($model->sendEmail()) { - Yii::$app->session->setFlash('success', 'Check your email for further instructions.'); - - return $this->goHome(); - } else { - Yii::$app->session->setFlash('error', 'Sorry, we are unable to reset password for email provided.'); - } - } - - return $this->render('requestPasswordResetToken', [ - 'model' => $model, - ]); - } - - /** - * Resets password. - * - * @param string $token - * @return mixed - * @throws BadRequestHttpException - */ - public function actionResetPassword($token) - { - try { - $model = new ResetPasswordForm($token); - } catch (InvalidParamException $e) { - throw new BadRequestHttpException($e->getMessage()); - } - - if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->resetPassword()) { - Yii::$app->session->setFlash('success', 'New password was saved.'); - - return $this->goHome(); - } - - return $this->render('resetPassword', [ - 'model' => $model, - ]); - } - - - -} + [ + 'class' => AccessControl::className(), + 'only' => ['logout', 'signup'], + 'rules' => [ + [ + 'actions' => ['signup'], + 'allow' => true, + 'roles' => ['?'], + ], + [ + 'actions' => ['logout'], + 'allow' => true, + 'roles' => ['@'], + ], + ], + ], + 'verbs' => [ + 'class' => VerbFilter::className(), + 'actions' => [ + 'logout' => ['post'], + ], + ], + ]; + } + + /** + * @inheritdoc + */ + public function beforeAction($action) + { + if ($action->id == 'signup') { + Yii::$app->controller->enableCsrfValidation = false; + } + + return true; + } + + /** + * @inheritdoc + */ + public function actions() + { + return [ + 'error' => [ + 'class' => 'yii\web\ErrorAction', + ], + 'captcha' => [ + 'class' => 'yii\captcha\CaptchaAction', + 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null, + ], + 'thumb' => 'iutbay\yii2imagecache\ThumbAction', + ]; + } + + /** + * Displays homepage. + * + * @return mixed + */ + public function actionIndex() + { + $this->layout = 'main'; + return $this->render('index'); + } + + + public function actionMail(){ + + $type = Yii::$app->request->post('type'); + + switch ($type) { + case 'call_me': + $num = Yii::$app->request->post('num'); + if(!empty($num)){ + return json_encode(Mailer::widget(['text' => $num, 'subject' => 'Обратный звонок'])); + } + + break; + case "consultation": + $num = Yii::$app->request->post('num'); + $name = Yii::$app->request->post('name'); + + if(!empty($num)){ + return json_encode(Mailer::widget(['text' => "Номер телефона".$num.";
Имя:".$name, 'subject' => 'Обратный звонок'])); + } + break; + + + } + } + + /** + * Logs in a user. + * + * @return mixed + */ + public function actionLogin() + { + if (!\Yii::$app->user->isGuest) { + return $this->goHome(); + } + + $model = new LoginForm(); + if ($model->load(Yii::$app->request->post()) && $model->login()) { + return $this->goBack(); + } else { + return $this->render('login', [ + 'model' => $model, + ]); + } + } + + /** + * Logs out the current user. + * + * @return mixed + */ + public function actionLogout() + { + Yii::$app->user->logout(); + + return $this->goHome(); + } + + /** + * Displays contact page. + * + * @return mixed + */ + public function actionContact() + { + $model = new ContactForm(); + if ($model->load(Yii::$app->request->post()) && $model->validate()) { + if ($model->sendEmail(Yii::$app->params['adminEmail'])) { + Yii::$app->session->setFlash('success', 'Thank you for contacting us. We will respond to you as soon as possible.'); + } else { + Yii::$app->session->setFlash('error', 'There was an error sending email.'); + } + + return $this->refresh(); + } else { + return $this->render('contact', [ + 'model' => $model, + ]); + } + } + + /** + * Displays about page. + * + * @return mixed + */ + public function actionAbout() + { + return $this->render('about'); + } + + /** + * Signs user up. + * + * @return mixed + */ + public function actionSignup() + { + + if(Yii::$app->request->post()){ + if (Yii::$app->request->isAjax) { + Yii::$app->response->format = Response::FORMAT_JSON; + $model = new SignupForm(['scenario' => SignupForm::SCENARIO_AJAX]); + $model->load(Yii::$app->request->post()); + return ActiveForm::validate($model); + } else { + $model = new SignupForm(['scenario' => SignupForm::SCENARIO_SUBMIT]); + $model->load(Yii::$app->request->post()); + if ($user = $model->signup()) { + if (Yii::$app->getUser()->login($user)) { + return $this->goHome(); + } + } + } + } + return $this->render('signup', [ + 'model' => $model, + ]); + } + + /** + * Requests password reset. + * + * @return mixed + */ + public function actionRequestPasswordReset() + { + $model = new PasswordResetRequestForm(); + if ($model->load(Yii::$app->request->post()) && $model->validate()) { + if ($model->sendEmail()) { + Yii::$app->session->setFlash('success', 'Check your email for further instructions.'); + + return $this->goHome(); + } else { + Yii::$app->session->setFlash('error', 'Sorry, we are unable to reset password for email provided.'); + } + } + + return $this->render('requestPasswordResetToken', [ + 'model' => $model, + ]); + } + + /** + * Resets password. + * + * @param string $token + * @return mixed + * @throws BadRequestHttpException + */ + public function actionResetPassword($token) + { + try { + $model = new ResetPasswordForm($token); + } catch (InvalidParamException $e) { + throw new BadRequestHttpException($e->getMessage()); + } + + if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->resetPassword()) { + Yii::$app->session->setFlash('success', 'New password was saved.'); + + return $this->goHome(); + } + + return $this->render('resetPassword', [ + 'model' => $model, + ]); + } + + + +} diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 144e120..2763f7d 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -1,7 +1,9 @@ registerCssFile(Yii::getAlias('@web/css/lightbox.css')); $this->registerJsFile(Yii::getAlias('@web/js/lightbox.js')); @@ -18,18 +20,17 @@ $this->params['breadcrumbs'][] = $product->name .' #'. $product->variant->sku;
-
- image)) :?> - <?= $product->name?> - - - image->imageUrl, 'product')?> - - - +
+ images)) :?> + + images as $image) :?> + + imageUrl, 'product_trumb')?> + +
+
- images)) :?> -
- images as $image) :?> -
- imageUrl, 'product_trumb')?> -
- - - - -
-
diff --git a/frontend/views/site/about.php b/frontend/views/site/about.php index 8eb0764..a45fdf4 100755 --- a/frontend/views/site/about.php +++ b/frontend/views/site/about.php @@ -1,16 +1,16 @@ -title = 'About'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-

title) ?>

- -

This is the About page. You may modify the following file to customize its content:

- - -
+title = 'About'; +$this->params['breadcrumbs'][] = $this->title; +?> +
+

title) ?>

+ +

This is the About page. You may modify the following file to customize its content:

+ + +
diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php index dcad18f..6a82ea8 100755 --- a/frontend/views/site/contact.php +++ b/frontend/views/site/contact.php @@ -1,45 +1,45 @@ -title = 'Contact'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-

title) ?>

- -

- If you have business inquiries or other questions, please fill out the following form to contact us. Thank you. -

- -
-
- 'contact-form']); ?> - - field($model, 'name')->textInput(['autofocus' => true]) ?> - - field($model, 'email') ?> - - field($model, 'subject') ?> - - field($model, 'body')->textArea(['rows' => 6]) ?> - - field($model, 'verifyCode')->widget(Captcha::className(), [ - 'template' => '
{image}
{input}
', - ]) ?> - -
- 'btn btn-primary', 'name' => 'contact-button']) ?> -
- - -
-
- -
+title = 'Contact'; +$this->params['breadcrumbs'][] = $this->title; +?> +
+

title) ?>

+ +

+ If you have business inquiries or other questions, please fill out the following form to contact us. Thank you. +

+ +
+
+ 'contact-form']); ?> + + field($model, 'name')->textInput(['autofocus' => true]) ?> + + field($model, 'email') ?> + + field($model, 'subject') ?> + + field($model, 'body')->textArea(['rows' => 6]) ?> + + field($model, 'verifyCode')->widget(Captcha::className(), [ + 'template' => '
{image}
{input}
', + ]) ?> + +
+ 'btn btn-primary', 'name' => 'contact-button']) ?> +
+ + +
+
+ +
diff --git a/frontend/views/site/error.php b/frontend/views/site/error.php index def81b0..7c7ac29 100755 --- a/frontend/views/site/error.php +++ b/frontend/views/site/error.php @@ -1,21 +1,21 @@ - -
- -

404

- - - -
-
- Добро пожаловать на страницу 404!
- Вы находитесь здесь, потому что ввели адрес страницы,
- которая уже не существует или была перемещена по другому адресу -
-
- … Возможно, запрашиваемая Вами страница была перенесена или удалена.
- Также возможно, Вы допустили небольшую опечатку при вводе адреса – такое
случается даже с нами, поэтому еще раз внимательно проверьте -
- -
- -
+ +
+ +

404

+ + + +
+
+ Добро пожаловать на страницу 404!
+ Вы находитесь здесь, потому что ввели адрес страницы,
+ которая уже не существует или была перемещена по другому адресу +
+
+ … Возможно, запрашиваемая Вами страница была перенесена или удалена.
+ Также возможно, Вы допустили небольшую опечатку при вводе адреса – такое
случается даже с нами, поэтому еще раз внимательно проверьте +
+ +
+ +
diff --git a/frontend/views/site/login.php b/frontend/views/site/login.php index 90e81c4..ea138d0 100755 --- a/frontend/views/site/login.php +++ b/frontend/views/site/login.php @@ -1,39 +1,39 @@ -title = 'Login'; -$this->params['breadcrumbs'][] = $this->title; -?> - +title = 'Login'; +$this->params['breadcrumbs'][] = $this->title; +?> + diff --git a/frontend/views/site/requestPasswordResetToken.php b/frontend/views/site/requestPasswordResetToken.php index 9f6822e..58e019e 100755 --- a/frontend/views/site/requestPasswordResetToken.php +++ b/frontend/views/site/requestPasswordResetToken.php @@ -1,31 +1,31 @@ -title = 'Request password reset'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-

title) ?>

- -

Please fill out your email. A link to reset password will be sent there.

- -
-
- 'request-password-reset-form']); ?> - - field($model, 'email')->textInput(['autofocus' => true]) ?> - -
- 'btn btn-primary']) ?> -
- - -
-
-
+title = 'Request password reset'; +$this->params['breadcrumbs'][] = $this->title; +?> +
+

title) ?>

+ +

Please fill out your email. A link to reset password will be sent there.

+ +
+
+ 'request-password-reset-form']); ?> + + field($model, 'email')->textInput(['autofocus' => true]) ?> + +
+ 'btn btn-primary']) ?> +
+ + +
+
+
diff --git a/frontend/views/site/resetPassword.php b/frontend/views/site/resetPassword.php index 36ef452..236c9fd 100755 --- a/frontend/views/site/resetPassword.php +++ b/frontend/views/site/resetPassword.php @@ -1,31 +1,31 @@ -title = 'Reset password'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-

title) ?>

- -

Please choose your new password:

- -
-
- 'reset-password-form']); ?> - - field($model, 'password')->passwordInput(['autofocus' => true]) ?> - -
- 'btn btn-primary']) ?> -
- - -
-
-
+title = 'Reset password'; +$this->params['breadcrumbs'][] = $this->title; +?> +
+

title) ?>

+ +

Please choose your new password:

+ +
+
+ 'reset-password-form']); ?> + + field($model, 'password')->passwordInput(['autofocus' => true]) ?> + +
+ 'btn btn-primary']) ?> +
+ + +
+
+
diff --git a/frontend/views/site/signup.php b/frontend/views/site/signup.php index de9dad6..49423e4 100755 --- a/frontend/views/site/signup.php +++ b/frontend/views/site/signup.php @@ -1,35 +1,35 @@ -title = 'Signup'; -$this->params['breadcrumbs'][] = $this->title; -?> - +title = 'Signup'; +$this->params['breadcrumbs'][] = $this->title; +?> + diff --git a/frontend/web/.gitignore b/frontend/web/.gitignore index 25c74e6..a6e95c8 100755 --- a/frontend/web/.gitignore +++ b/frontend/web/.gitignore @@ -1,2 +1,2 @@ -/index.php -/index-test.php +/index.php +/index-test.php diff --git a/frontend/web/css/concat_all_back.css b/frontend/web/css/concat_all_back.css index 17ec0a1..3a9d1cd 100755 --- a/frontend/web/css/concat_all_back.css +++ b/frontend/web/css/concat_all_back.css @@ -1,3096 +1,3096 @@ -.w_100 { - width: 100%; -} - -.w_960 { - width: 960px; - margin: auto; -} - -.cat_p_bradcrump { - padding: 30px 0px; -} - -.cat_p_bradcrump ul { - list-style: none; -} - -.cat_p_bradcrump ul li { - display: inline-block; -} - -.cat_p_bradcrump ul li i { - position: relative; - top: 1px; - padding: 0px 2px 0 8px; - color: #8C9295; - font-size: 13px; -} - -.cat_p_bradcrump ul li a { - font-size: 12px; - color: #898b8e; -} - -.cat_p_bradcrump ul .active a { - text-decoration: none; -} - -.cat_p_filter_bar { - font-family: 'HelveticaRegular', sans-serif; - width: 210px; - padding-right: 20px; - display: inline-block; - float: left; -} - -.cat_p_filter_bar .filter_list ul { - list-style: none; -} - -.cat_p_filter_bar .filter_list ul .title_2 { - font-size: 15px; - font-weight: bold; - color: #898b8e; - padding: 30px 0 20px; -} - -.cat_p_filter_bar .filter_list ul li { - border-bottom: 1px solid #bbbbbb; - position: relative; - padding: 15px 0; - font-weight: bold; - color: #333333; -} - -.cat_p_filter_bar .filter_list ul li .width_li_filter { - width: 180px; - display: block; -} - -.cat_p_filter_bar .filter_list ul li .arrow { - position: absolute; - right: 2px; - top: 3px; - font-size: 20px; - color: #727272; - padding: 10px 0 10px 200px; -} - -.cat_p_filter_bar .filter_list ul li .arrow i { - font-weight: bold; -} - -.cat_p_filter_bar .filter_list ul li .arrow img { - -webkit-transform: scale(1.3); - -ms-transform: scale(1.3); - transform: scale(1.3); - position: relative; - bottom: 3px; -} - -.cat_p_filter_bar .filter_list .price_filter { - display: none; - padding-top: 10px; -} - -.cat_p_filter_bar .filter_list .price_filter a { - color: #6aa033; -} - -.cat_p_filter_bar .filter_list .first_price_li { - padding-top: 30px; - display: block; -} - -.cat_p_filter_bar .filter_accept_bloc { - padding: 20px 0 40px; -} - -.cat_p_filter_bar .filter_accept_bloc button { - color: #fff; - padding: 10px; - font-size: 15px; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #898b8e; - -webkit-box-shadow: 0 2px 0 #636567; - box-shadow: 0 2px 0 #636567; -} - -.cat_p_filter_bar .filter_accept_bloc button:hover { - background-color: #707274; -} - -.cat_p_filter_bar .filter_accept_bloc a { - color: #6AA033; - font-size: 12px; -} - -.cat_p_filter_bar .product_list .title { - padding-bottom: 5px; - color: #898b8e; -} - -.cat_p_filter_bar .product_list a { - display: block; - padding: 5px 0 0 15px; - font-weight: normal; -} - -.cat_p_filter_bar .price_slider { - width: 203px; - /*margin: auto;*/ -} - -.cat_p_filter_bar .checkbox { - margin-top: 5px; - font-weight: normal; -} - -.cat_p_filter_bar .see_all a { - font-size: 13px; - position: relative; - bottom: 3px; -} - -.cat_p_filter_bar .see_all i { - font-size: 18px; - color: #898B8E; -} - -.cat_p_filter_bar .title { - font-size: 16px; - font-weight: bold; - color: #898b8e; - padding-bottom: 20px; -} - -.cat_p_filter_bar p { - margin-bottom: 20px; -} - -.cat_p_filter_bar p input { - padding: 8px; - -webkit-border-radius: 3px; - border-radius: 3px; - border: none; - border: 1px solid #bbb; - width: 60px; -} - -.cat_p_filter_bar p label { - display: block; - margin-bottom: 15px; -} - -.cat_p_catalog_list { - font-family: 'HelveticaRegular', sans-serif; - width: 700px; - padding-right: 10px; - display: inline-block; -} - -.cat_p_catalog_list ul { - list-style: none; - display: inline-block; -} - -.cat_p_catalog_list ul li { - display: inline-block; -} - -.cat_p_catalog_list ul li .active { - color: #333333; - text-decoration: none; -} - -.cat_p_catalog_list ul li a { - color: #6aa033; - font-size: 13px; -} - -.cat_p_catalog_list .sort_menu { - padding-bottom: 10px; - border-bottom: 1px solid #DBDCDD; - margin-bottom: 30px; - width: 720px; -} - -.cat_p_catalog_list .title { - font-size: 30px; - font-weight: bold; - padding-bottom: 20px; -} - -.cat_p_catalog_list .sort_price { - display: inline-block; - width: 225px; - position: relative; - font-size: 13px; -} - -.cat_p_catalog_list .sort_price select { - text-decoration: underline; - width: 120px; - border: none; - color: #6aa033; - -webkit-appearance: none; - /* скрытие треугольника в селекте */ - -moz-appearance: none; - appearance: none; - /* скрытие треугольника в селекте */ - text-indent: 0.01px; - /* скрытие треугольника в селекте в firefox */ - text-overflow: ''; - /* скрытие треугольника в селекте в firefox */ - /*&::-ms-expand { display: none; } скрытие треугольника в селекте в IE */ - background: transparent; -} - -.cat_p_catalog_list .sort_price select:focus { - outline: none; -} - -.cat_p_catalog_list .sort_price select option { - background: transparent; -} - -.cat_p_catalog_list .sort_price i { - position: absolute; - right: 72px; - top: 3px; - cursor: pointer; - font-weight: bold; - color: #898b8e; - z-index: -1; -} - -.cat_p_catalog_list .show { - display: inline-block; - width: 225px; - text-align: center; - font-size: 13px; -} - -.cat_p_catalog_list .show_pages { - display: inline-block; - width: 250px; - text-align: right; - font-size: 13px; -} - -.cat_p_catalog_list .show_pages i { - color: #898b8e; - position: relative; - top: 1px; - padding-left: 5px; - font-size: 15px; - cursor: pointer; -} - -.cat_p_item_card_list { - font-family: 'HelveticaRegular', sans-serif; -} - -.cat_p_item_card_list .novelty { - text-align: center; -} - -.cat_p_item_card_list .novelty .content { - width: 720px; - padding: 0; -} - -.cat_p_item_card_list .novelty .content .novelty_cont { - width: 720px; - padding-bottom: 10px; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item { - /*min-height: 375px;*/ - margin-right: 20px; - margin-bottom: 20px; - margin-left: 0; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item:after { - display: none; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item .item_bottom_img { - position: relative; - top: 3px; - right: 1px; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item:before { - content: ""; - position: absolute; - bottom: -1px; - right: -1px; - width: 0px; - height: 0px; - border-width: 13px 13px 0px 0px; - border-style: solid; - border-color: transparent #fff; - z-index: 2; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item .brand span { - color: #6aa033; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item .new { - background-color: red; - width: auto; - padding-right: 20px; -} - -.cat_p_item_card_list .novelty .content .novelty_cont .item .new:after { - right: 0px; - width: 0px; - height: 0px; - border-width: 18px 13px 0px 0px; - border-style: solid; - border-color: transparent #fff; -} - -.cat_p_item_card_list .novelty .content .load_more_btn { - font-size: 13px; - padding: 10px 15px; - background: #6AA033; - -webkit-border-radius: 2px; - border-radius: 2px; - border: none; - color: white; - -webkit-box-shadow: 0 2px 0 #507927; - box-shadow: 0 2px 0 #507927; - margin-bottom: 20px; -} - -.cat_p_item_card_list .novelty .content .load_more_btn:hover { - background: #5d8d2d; -} - -.cat_p_item_card_list .novelty .content .show_pages { - display: block; - margin: auto; - text-align: center; - margin-bottom: 7px; -} - -.cat_p_item_card_list .novelty .content .description { - color: #333333; - text-align: left; - font-weight: normal; - font-size: 13px; -} - -.cat_p_item_card_list .novelty .content .description h2 { - padding: 30px 0; - font-size: 30px; - font-weight: normal; -} - -.cat_p_item_card_list .novelty .content .description .bold { - font-weight: bold; -} - -.cat_p_item_card_list .novelty .content .description h4 { - padding: 20px 0; - font-size: 14px; -} - -.cat_p_item_card_list .novelty .content .description .margin_bottom_20 { - margin-bottom: 20px; -} - -.cat_p_item_card_list .novelty .content .description .empty_padding_400 { - width: 100px; - height: 380px; -} -/* светлый зеленый цвет, текст и кнопки */ - -/* средний серый цвет, текст и кнопки */ - -/* светлый серый цвет, рамки и линии */ - -/* темный серый цвет, большие названия, цифры */ - -a { - color: #6aa034; -} - -a:hover { - color: #517a27; -} - -h1 { - color: #333333; - font-size: 30px; - font-weight: normal; -} - -.flex-container { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.bradcrumps_top { - padding: 30px 0; - line-height: 0; -} - -.bradcrumps_top ul li { - display: inline-block; -} - -.bradcrumps_top ul li a { - font-size: 12px; - color: #6aa034; - text-decoration: underline; -} - -.bradcrumps_top ul li:last-child a { - text-decoration: none; - color: #898b8e; -} - -.bradcrumps_top ul li:last-child i { - display: none; -} - -.bradcrumps_top ul li i { - color: #898b8e; - padding: 0 2px 0 6px; - font-weight: bold; - font-size: 11px; -} - -.my_custom_card { - width: 218px; - display: inline-block; - border: 1px solid #cdd1d9; - border-bottom: none; - -webkit-border-top-left-radius: 2px; - border-top-left-radius: 2px; - -webkit-border-top-right-radius: 2px; - border-top-right-radius: 2px; - position: relative; - text-align: center; - margin-bottom: 1px; - margin-bottom: 19px; - color: #333333; - /* &:before { - content: ""; - position: absolute; - bottom: -1px; - right: -1px; - width: 0px; - height: 0px; - border-width: 13px 13px 0px 0px; - border-style: solid; - border-color: transparent #fff; - z-index: 2; - }*/ -} - -.my_custom_card .item_bottom_img { - bottom: 61px; - left: -1px; - position: absolute; - top: 374px; -} - -.my_custom_card .new { - position: absolute; - color: #ffffff; - left: 0px; - top: 14px; - text-transform: uppercase; - font-size: 10px; - text-align: left; - background-color: red; - width: auto; - padding: 1px 20px 0px 5px; - z-index: 1; - line-height: 17px; -} - -.my_custom_card .new:after { - content: ""; - height: 0px; - top: 0; - right: 0; - border-width: 21px 14px 0px 0px; - border-style: solid; - border-color: transparent #fff; - position: absolute; -} - -.my_custom_card .top { - background: #ffde00; - position: absolute; - padding: 1px 20px 0px 5px; - color: #ffffff; - left: 0px; - top: 35px; - text-transform: uppercase; - font-size: 10px; - color: #333333; - z-index: 1; -} - -.my_custom_card .top:after { - content: ""; - top: 0; - right: 0px; - border-width: 21px 14px 0px 0px; - border-style: solid; - border-color: transparent #fff; - position: absolute; -} - -.my_custom_card .item_link { - text-decoration: none; - border: 0; -} - -.my_custom_card .item_link .pic { - margin-top: 25px; -} - -.my_custom_card .item_link .title_item { - padding: 13px; - color: #6aa033; - margin-bottom: 3px; - font-size: 15px; - line-height: 17px; -} - -.my_custom_card .brand { - font-size: 12px; - line-height: 12px; -} - -.my_custom_card .brand span { - color: #6aa033; -} - -.my_custom_card .type { - font-size: 12px; -} - -.my_custom_card .price { - font-size: 20px; - font-weight: bold; - font-family: HelveticaBold; - padding-bottom: 11px; - padding-top: 6px; -} - -.my_custom_card .price span { - font-size: 13px !important; -} - -.my_custom_card .foo { - padding: 5px 53px 5px 14px; - border: none; - background-color: #6aa034; - color: white; - font-size: 12px; - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; - position: relative; - display: block; - margin: 0 auto 10px; -} - -.my_custom_card .foo:hover { - background-color: #5d8d2e; -} - -.my_custom_card .foo:active { - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.my_custom_card .foo img { - position: absolute; - padding: 3px 3px 3px 8px; - border-left: 1px solid #527B28; - right: 12px; - top: 3px; -} - -.my_custom_card .compare_add_but_d { - color: #6aa034; - font-size: 12px; - text-decoration: none; -} - -.my_custom_card .compare_add_but_d span { - border-bottom: 1px dotted #6aa034; - padding-left: 10px; -} - -.my_custom_card .compare_add_but_d span:hover { - color: #517a27; -} - -.my_custom_card img { - position: relative; - top: 4px; - right: 1px; -} - -ul { - list-style: none; -} - -h1.with_this { - margin-bottom: 21px; -} - -hr { - margin-bottom: 30px; - margin-top: 30px; - color: #C6C7C9; - border: none; - background-color: #C6C7C9; - height: 1px !important; - margin-right: -10px; - margin-left: -10px; -} - -.tabs_item_name { - font-weight: bold; - padding-bottom: 15px; - display: block; -} - -.open_card_item_title { - color: #333333; - font-size: 30px; - padding-bottom: 42px; - font-weight: bold; - margin: 0px; -} - -.item_3_blocks_wrap { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.item_3_blocks_wrap .item_img_block { - width: 320px; - position: relative; -} - -.item_3_blocks_wrap .item_img_block .main_img { - text-align: center; - border: 1px solid #C6C7C9; - height: 317px; - width: 318px; -} - -.item_3_blocks_wrap .item_img_block .main_img img { - height: 100%; -} - -.item_3_blocks_wrap .item_img_block .main_img .new { - background: #00adf0; - font-size: 10px; - padding: 1px 5px 0px 5px; - position: absolute; - left: 0; - top: 15px; - color: white; - line-height: 17px; -} - -.item_3_blocks_wrap .item_img_block .main_img .new:after { - content: ""; - border-width: 0px 0px 18px 17px; - border-style: solid; - border-color: black green transparent #00ADF0; - position: absolute; - bottom: 0px; - right: -17px; -} - -.item_3_blocks_wrap .item_img_block .main_img .top { - background: #ffde00; - font-size: 10px; - padding: 1px 5px 0px 5px; - position: absolute; - line-height: 17px; - left: 0; - top: 38px; - color: black; -} - -.item_3_blocks_wrap .item_img_block .main_img .top:after { - content: ""; - border-width: 0px 0px 18px 17px; - border-style: solid; - border-color: black green transparent #ffde00; - position: absolute; - bottom: 0px; - right: -17px; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide { - position: relative; - margin-top: 20px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-justify-content: space-around; - -ms-flex-pack: distribute; - justify-content: space-around; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block { - width: 80px; - height: 77px; - border: 1px solid #C6C7C9; - display: inline-block; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block img { - width: 96%; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block:first-child { - margin-left: 10px; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block:nth-child(3) { - margin-right: 10px; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .active { - border: 2px solid #C6C7C9; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .slider_arrow_right { - position: absolute; - right: 0; - top: 39%; -} - -.item_3_blocks_wrap .item_img_block .main_img_slide .slider_arrow_left { - position: absolute; - left: 0; - top: 39%; -} - -.item_3_blocks_wrap .busket_block { - position: relative; - width: 295px; -} - -.item_3_blocks_wrap .busket_block .grey_bg { - background-color: #f4f4f4; - padding: 27px 0 20px; - margin-top: 20px; -} - -.item_3_blocks_wrap .busket_block .top_code .code { - background: #ffde00; - color: black; - font-size: 12px; - color: #333333; - font-weight: bold; - padding: 4px 12px; - display: inline-block; -} - -.item_3_blocks_wrap .busket_block .top_code .have { - font-size: 12px; - color: #333333; - font-weight: bold; - padding: 4px 19px 7px; - position: absolute; - top: 0; - right: 0; -} - -.item_3_blocks_wrap .busket_block .top_code .have img { - position: absolute; - right: 100px; - left: -5px; -} - -.item_3_blocks_wrap .busket_block .counter { - text-align: center; -} - -.item_3_blocks_wrap .busket_block .counter .price { - color: #333333; - font-size: 28px; - font-weight: bold; - display: inline-block; - padding-left: 20px; - padding-top: 8px; - padding-bottom: 11px; -} - -.item_3_blocks_wrap .busket_block .counter .sign { - font-size: 15px; - color: #333333; - font-weight: bold; - display: inline-block; - margin-right: 15px; -} - -.item_3_blocks_wrap .busket_block .counter .count_block { - display: inline-block; - position: relative; -} - -.item_3_blocks_wrap .busket_block .counter .count_block .count_number { - display: inline-block; - font-size: 22px; - padding: 6px 13px 6px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; - position: relative; - /*top: -2px;*/ - background-color: #fff; -} - -.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons { - position: relative; - /*top: 4px;*/ - right: 6px; - display: inline-block; - vertical-align: bottom; -} - -.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_plus { - background-color: #898b8e; - color: white; - font-weight: bold; - border-bottom: 1px solid #707274; - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - font-size: 15px; - line-height: 15px; - padding: 0 7px; - cursor: pointer; -} - -.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_plus:hover { - background-color: #7c7e81; -} - -.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_minus { - background-color: #898b8e; - color: white; - font-weight: bold; - line-height: 16px; - border-top: 1px solid #A2A2A2; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - cursor: pointer; -} - -.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_minus:hover { - background-color: #7c7e81; -} - -.item_3_blocks_wrap .busket_block .in_cart_btn { - text-align: center; - padding-top: 16px; -} - -.item_3_blocks_wrap .busket_block .in_cart_btn a { - color: white; - text-decoration: none; -} - -.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn { - background: #6aa034; - border: none; - padding: 10px 55px 10px 15px; - font-size: 16px; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; - -webkit-border-radius: 2px; - border-radius: 2px; - position: relative; -} - -.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn:hover { - background: #5d8d2e; -} - -.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn:active { - position: relative; - top: 2px; - -webkit-box-shadow: none; - box-shadow: none; -} - -.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn img { - position: absolute; - padding: 7px 7px 7px 9px; - right: 7px; - width: 18px; - border-left: 1px solid #5d8d2e; - bottom: 2px; -} - -.item_3_blocks_wrap .busket_block .to_compare_link { - text-align: center; - margin-top: 18px; -} - -.item_3_blocks_wrap .busket_block .to_compare_link .add_to_compare { - border-bottom: 1px solid #6aa034; - border-style: dotted; - text-decoration: none; - border-top: none; - border-left: none; - border-right: none; - font-size: 12px; -} - -.item_3_blocks_wrap .busket_block .to_compare_link img { - position: relative; - top: 3px; - width: 19px; -} - -.item_3_blocks_wrap .busket_block .quick_order { - margin-top: 16px; -} - -.item_3_blocks_wrap .busket_block .quick_order form .text { - font-size: 12px; - color: #333333; - font-weight: bold; - padding-right: 3px; -} - -.item_3_blocks_wrap .busket_block .quick_order form .quick_order_phone { - font-size: 12px; - color: #333333; - padding: 9px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 2px; - border-radius: 2px; - width: 100px; -} - -.item_3_blocks_wrap .busket_block .quick_order form placeholder { - color: #C6C7C9; -} - -.item_3_blocks_wrap .busket_block .quick_order form button { - border: none; - font-size: 12px; - color: white; - padding: 7px 8px 6px 10px; - background: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; - -webkit-border-top-right-radius: 2px; - border-top-right-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - border-bottom-right-radius: 2px; - position: absolute; - right: 1px; -} - -.item_3_blocks_wrap .busket_block .quick_order form button:hover { - background: #5d8d2e; -} - -.item_3_blocks_wrap .busket_block .delivery { - font-size: 13px; - color: #333333; - margin-top: 27px; -} - -.item_3_blocks_wrap .busket_block .delivery a { - text-decoration: underline; -} - -.character_block { - width: 265px; - color: #333333; -} - -.character_block h3 { - line-height: 16px; -} - -.character_block .each { - border-bottom: 1px solid #C6C7C9; - border-style: dotted; - border-top: none; - border-left: none; - border-right: none; - font-size: 13px; - margin-top: 2px; -} - -.character_block .title { - display: inline-block; - background: white; - position: relative; - top: 4px; - color: #898b8e; -} - -.character_block .tech { - display: inline-block; - background: white; - float: right; - position: relative; - top: 4px; -} - -.character_block .tech_links { - margin-top: 20px; -} - -.character_block .tech_links a { - text-decoration: none; - border-bottom: 1px solid #6aa034; - border-style: dashed; - border-left: none; - border-right: none; - border-top: none; - font-size: 18px; - margin-top: 6px; - margin-right: 100px; - display: inline-block; -} - -.flex_container { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.tabs_block { - color: #333333; -} - -.watched_block { - margin-bottom: 45px; -} - -.watched_block h1 { - font-size: 30px; - color: #333333; - margin-bottom: 18px; -} - -.just_test_tracs { - -webkit-transition: all 02s easy; - transition: all 02s easy; - -webkit-transform: rotate(7deg); - -ms-transform: rotate(7deg); - transform: rotate(7deg); -} -/* светлый зеленый цвет, текст и кнопки */ - -/* средний серый цвет, текст и кнопки */ - -/* светлый серый цвет, рамки и линии */ - -/* темный серый цвет, большие названия, цифры */ - -.main_cont_wrap { - width: 940px; - margin: auto; - padding: 0px 10px; - color: #333333; - line-height: 19px; -} - -.main_cont_wrap .services_title { - font-size: 30px; - padding-top: 0px; - padding-bottom: 26px; - font-weight: bold; - margin: 0px; -} - -.main_cont_wrap .services_title_servis { - font-size: 30px; - padding-top: 0px; - padding-bottom: 39px; - font-weight: bold; - margin: 0px; -} - -.main_cont_wrap .services_block { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.main_cont_wrap .services_block .services_each { - width: 215px; - padding: 0 10px; - text-align: center; - display: inline-block; - margin-bottom: 45px; -} - -.main_cont_wrap .services_block .services_each .name { - font-size: 18px; - font-weight: bold; - padding: 20px 0px; - display: block; - padding-bottom: 16px; -} - -.main_cont_wrap .services_block .services_each img { - display: block; - height: 65px; - margin: auto; -} - -.main_cont_wrap .services_block .services_each p { - font-size: 13px; - line-height: 16px; -} - -.delivery_block { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - padding-bottom: 362px; - padding-top: 11px; -} - -.delivery_each_block { - font-size: 13px; - width: 450px; - line-height: 16px; -} - -.delivery_each_block img { - display: block; - width: 290px; - margin: auto; -} - -.delivery_each_block .name { - font-weight: bold; - padding: 27px 0 18px; - display: block; - text-align: center; - font-size: 15px; -} - -.delivery_each_block .address { - font-size: 16px; - font-weight: bold; - display: block; - padding-bottom: 20px; -} - -.contact_page_phones { - font-size: 16px; - font-weight: bold; - padding-bottom: 15px; -} - -.align_items_bottom { - -webkit-box-align: end; - -webkit-align-items: flex-end; - -ms-flex-align: end; - align-items: flex-end; -} - -.manufacturers_block { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - margin-bottom: 40px; - margin-top: 13px; -} - -.manufacturers_block a { - width: 172px; - height: 100px; - overflow: hidden; - margin-bottom: 20px; - display: inline-block; -} - -.payment_icon_1 { - display: inline-block; - background-image: url("../images/payment01.png"); - background-repeat: no-repeat; - width: 90px; - height: 40px; - float: left; - background-position: 26px 5px; -} - -.payment_icon_2 { - display: inline-block; - background-image: url("../images/payment01.png"); - background-repeat: no-repeat; - width: 90px; - height: 40px; - float: left; - background-position: 26px -32px; -} - -.payment_01 { - margin: 21px 2px; - display: block; -} - -span.bold { - font-weight: bold; -} - -span.red { - color: red; -} - -.font_size_13 { - font-size: 13px; -} - -.padding_450 { - padding-bottom: 450px; -} - -.basket_main_title { - margin-top: 0; - font-weight: bold; - font-size: 30px; - margin-bottom: 29px; -} - -.privet_info_block h3 { - font-size: 18px; - font-weight: bold; - padding-bottom: 16px; -} - -.privet_info_block label { - font-size: 13px; - font-weight: bold; -} - -.privet_info_block span.placehold { - font-size: 12px; - color: #898b8e; - font-weight: normal; -} - -.privet_info_block input { - padding: 7px 5px 9px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 2px; - border-radius: 2px; - margin: 0 12px 0 8px; - width: 256px; -} - -.privet_info_block .padding_cust { - padding: 0px 0px 8px 14px; -} - -.privet_info_block .padding_cust:nth-child(3) { - padding-left: 17px; -} - -.privet_info_block .padding_cust:nth-child(4) { - padding-left: 1px; -} - -.separator { - width: 960px; - height: 1px; - border-bottom: 1px solid #C6C7C9; - margin: 11px 0 27px; -} - -.delivery_radio h3 { - padding-bottom: 12px; -} - -.delivery_radio p { - display: inline-block; - font-size: 13px; -} - -.delivery_radio .padding_cust { - padding-bottom: 6px; -} - -.delivery_radio span.placehold { - color: #898b8e; - display: block; - font-size: 13px; - padding-left: 23px; - position: relative; - bottom: 4px; -} - -.basket_pay_block h3 { - padding-bottom: 12px; -} - -.basket_pay_block p { - display: inline-block; - font-size: 13px; -} - -.basket_pay_block .padding_cust { - padding-bottom: 6px; - position: relative; -} - -.basket_pay_block span.placehold { - color: #898b8e; - display: block; - font-size: 13px; - padding-left: 23px; - position: relative; - bottom: 4px; -} - -.basket_pay_block input[type="text"] { - margin-left: 8px; - height: 17px; - top: -11px; - position: absolute; - left: 315px; - height: 22px; - -webkit-border-radius: 2px; - border-radius: 2px; - border: 1px solid #C6C7C9; - width: 89px; - padding: 5px; -} - -.separator_02 { - width: 960px; - height: 1px; - border-bottom: 1px solid #C6C7C9; - margin: 3px 0 27px; -} - -.for_margin { - text-align: center; - margin: 27px 0 84px; -} - -.order_01_btn { - font-size: 13px; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; - border: none; - -webkit-border-radius: 2px; - border-radius: 2px; - background-color: #6aa034; - padding: 6px 22px; - color: white; -} - -.order_01_btn:hover { - background-color: #5d8d2e; -} - -.order_01_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.order_list { - width: 595px; -} - -.order_list .active { - background-color: #e0e1e2; -} - -.order_list h3 { - margin-bottom: 6px; -} - -.order_list hr { - margin-top: 0px; - margin-right: 0; - margin-left: 0; - margin-bottom: 16px; -} - -.order_list hr:nth-child(5) { - margin-top: 15px; - width: 930px; - margin-left: -10px; -} - -.order_list .all_price p { - font-size: 15px; - display: inline-block; -} - -.order_list .all_price p:nth-child(1) { - padding-left: 19px; - padding-right: 150px; -} - -.order_list .all_price p:nth-child(2) { - padding-right: 20px; -} - -.order_list .all_price .all_price { - font-size: 20px; - font-weight: bold; -} - -.order_list_li { - padding: 10px 20px; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; -} - -.order_list_li .little_img { - height: 78px; - width: 78px; - border: 1px solid #C6C7C9; - overflow: hidden; - display: inline-block; - margin-right: 14px; - float: left; -} - -.order_list_li .little_img img { - height: 100%; -} - -.order_list_li .name_and_code { - display: inline-block; - float: left; -} - -.order_list_li .name_and_code .name { - display: block; - color: #6aa034; - font-size: 15px; - width: 175px; - margin-bottom: 7px; - position: relative; - line-height: 18px; - top: -3px; -} - -.order_list_li .name_and_code .code { - display: block; - font-size: 12px; -} - -.order_list_li .how_many { - display: inline-block; - padding: 32px 20px 0px 85px; - font-weight: bold; -} - -.order_list_li .price { - display: inline-block; - padding-left: 44px; - font-weight: bold; - font-size: 18px; - padding-top: 31px; - padding-left: 48px; -} - -.order_list_li .price .price_text { - font-size: 15px; - font-weight: normal; -} - -.basket_step_2_delivery h3 { - font-size: 18px; - font-weight: bold; - margin-top: 28px; - margin-bottom: 12px; -} - -.basket_step_2_delivery h4 { - font-size: 18px; - font-weight: bold; - margin-top: 24px; - margin-bottom: 12px; -} - -.basket_step_2_delivery .detail { - font-size: 13px; - margin-bottom: 7px; -} - -.basket_step_2_delivery .detail .grey { - color: #898b8e; - display: inline-block; - width: 69px; -} - -.for_margin_2 { - text-align: center; - margin: 34px 0 42px; -} - -.cabinet_main_title { - margin-top: 0; - font-weight: bold; - font-size: 30px; - margin-bottom: 38px; -} - -.cabinet_wrap { - position: relative; - margin-bottom: 282px; -} - -.cabinet_wrap span.grey { - color: #898b8e; -} - -.cabinet_wrap .cab_01 { - padding-bottom: 24px; -} - -.cabinet_wrap .block_01 { - display: inline-block; - width: 233px; -} - -.cabinet_wrap .block_02 { - display: inline-block; - width: 79px; -} - -.cabinet_wrap .block_03 { - display: inline-block; - width: auto; -} - -.cabinet_wrap .block_04 { - display: inline-block; - padding-left: 60px; - border-left: 1px solid #C6C7C9; - position: relative; - vertical-align: top; - margin-left: 20px; -} - -.cabinet_wrap .block_04 .link { - padding-top: 21px; - padding-bottom: 20px; - font-size: 13px; -} - -.cabinet_wrap .block_04 .link .dotted { - border-bottom: 1px dotted #6aa034; -} - -.cabinet_wrap .block_04 .link a { - text-decoration: none; -} - -.cabinet_wrap .block_04 .link:nth-child(2) { - padding-top: 4px; - font-size: 13px; - padding-bottom: 20px; -} - -.cabinet_wrap .block_04 .link:nth-child(2) a { - border-bottom: none; - text-decoration: none; -} - -/*=============================================== MODAL WINDOWS ================================================*/ - -/* registration window */ - -/* стили модального окна*/ - -/* стили основного модального окна */ - -.modal_close_btn { - position: absolute; - right: -42px; - top: -59px; - cursor: pointer; - width: 100px; - height: 120px; - overflow: hidden; - background-image: url("../images/modal_close_btn.png"); - background-repeat: no-repeat; - background-position: -143px 0; -} - -.modal_close_btn:hover { - background-position: 0 0; -} - -.modal_wrapper { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 2; - top: 0; - left: 0; -} - -.modal_wrapper_reg { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 4; - top: 0; - left: 0; - display: none; -} - -.modal_wrapper_reg .modal_window { - text-align: right; - height: 428px; - width: 560px; - background-color: #fff; - padding: 20px; - -webkit-border-radius: 2px; - border-radius: 2px; - overflow: hidden; - position: relative; - margin-left: auto; - margin-right: auto; - margin-top:35px; - z-index:5; -} - -.modal_wrapper_reg .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 29px; - padding-bottom: 27px; - text-transform: uppercase; - text-align: center; -} - -.modal_wrapper_reg .modal_window input { - padding: 8px; - width: 251px; - margin-right: 56px; - margin-left: 11px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.modal_wrapper_reg .modal_window .my_cust_btn { - font-size: 13px; - padding: 8px 31px; - color: white; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.modal_wrapper_reg .modal_window .my_cust_btn:hover { - background-color: #5d8d2e; -} - -.modal_wrapper_reg .modal_window .my_cust_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.modal_wrapper_reg .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 30px; - padding-bottom: 26px; - text-transform: uppercase; - text-align: center; -} - -.modal_wrapper_reg .modal_window label { - display: block; - font-size: 13px; - width: 500px; - margin: auto; - margin-bottom: 8px; -} - -.modal_wrapper_reg .modal_window label:last-of-type { - position: relative; -} - -.modal_wrapper_reg .modal_window label:last-of-type input { - width: 119px; - margin-left: 140px; -} - -.modal_wrapper_reg .modal_window label:last-of-type img { - position: absolute; - top: 4px; - left: 176px; -} - -.modal_wrapper_reg .modal_window .for_btn_position { - text-align: center; - margin-top: 30px; -} - -/* login window */ - -.modal_wrapper_login { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 4; - top: 0; - left: 0; - display: none; -} - -.modal_wrapper_login .modal_window { - text-align: right; - height: 247px; - width: 459px; - background-color: #fff; - padding: 20px; - position: relative; - margin-left:auto; - margin-right:auto; - margin-top: 35px; - -webkit-border-radius: 2px; - border-radius: 2px; - overflow: hidden; - z-index:999; -} - -.modal_wrapper_login .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 29px; - padding-bottom: 27px; - text-transform: uppercase; - text-align: center; -} - -.modal_wrapper_login .modal_window input { - padding: 8px; - width: 251px; - margin-right: 56px; - margin-left: 11px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.modal_wrapper_login .modal_window .my_cust_btn { - font-size: 13px; - padding: 8px 31px; - color: white; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.modal_wrapper_login .modal_window .my_cust_btn:hover { - background-color: #5d8d2e; -} - -.modal_wrapper_login .modal_window .my_cust_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.modal_wrapper_login .modal_window .title { - padding-right: 8px; -} - -.modal_wrapper_login .modal_window label { - display: block; - font-size: 13px; - width: 459px; - margin: auto; - margin-bottom: 8px; -} - -.modal_wrapper_login .modal_window label input { - margin-right: 68px; -} - -.modal_wrapper_login .modal_window .pass_links { - text-align: center; - padding-left: 55px; - font-size: 13px; - margin-top: 11px; -} - -.modal_wrapper_login .modal_window .pass_links a { - padding-left: 47px; -} - -.modal_wrapper_login .modal_window .pass_links label { - display: inline; -} - -.modal_wrapper_login .modal_window .pass_links .remember_pas { - color: #6aa034; - text-decoration: underline; -} - -.modal_wrapper_login .modal_window .for_btn_position { - text-align: center; - margin-top: 23px; -} - -.modal_wrapper_login .modal_window .for_btn_position .my_cust_btn { - padding: 8px 38px; -} - -/* login window */ - -.consultation_modal { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 4; - top: 0; - left: 0; - display: none; -} - -.consultation_modal .modal_window { - text-align: right; - height: 247px; - width: 459px; - background-color: #fff; - padding: 20px; - position: relative; - margin-left:auto; - margin-right:auto; - margin-top: 35px; - -webkit-border-radius: 2px; - border-radius: 2px; - overflow: hidden; - z-index:999; -} - -.consultation_modal .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 29px; - padding-bottom: 27px; - text-transform: uppercase; - text-align: center; -} - -.consultation_modal .modal_window input { - padding: 8px; - width: 251px; - margin-right: 56px; - margin-left: 11px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.consultation_modal .modal_window .my_cust_btn { - font-size: 13px; - padding: 8px 31px; - color: white; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.consultation_modal .modal_window .my_cust_btn:hover { - background-color: #5d8d2e; -} - -.consultation_modal .modal_window .my_cust_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.consultation_modal .modal_window .title { - padding-right: 8px; -} - -.consultation_modal .modal_window label { - display: block; - font-size: 13px; - width: 459px; - margin: auto; - margin-bottom: 8px; -} - -.consultation_modal .modal_window label input { - margin-right: 68px; -} - -.consultation_modal .modal_window .pass_links { - text-align: center; - padding-left: 55px; - font-size: 13px; - margin-top: 11px; -} - -.consultation_modal .modal_window .pass_links a { - padding-left: 47px; -} - -.consultation_modal .modal_window .pass_links label { - display: inline; -} - -.consultation_modal .modal_window .pass_links .remember_pas { - color: #6aa034; - text-decoration: underline; -} - -.consultation_modal .modal_window .for_btn_position { - text-align: center; - margin-top: 23px; -} - -.consultation_modal .modal_window .for_btn_position .my_cust_btn { - padding: 8px 38px; -} - -/* forgot password window */ - -.forgot_pass_modal_wrapper { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 4; - top: 0; - left: 0; - display: none; -} - -.forgot_pass_modal_wrapper .modal_window { - text-align: right; - height: 252px; - width: 459px; - background-color: #fff; - padding: 20px; - position: relative; - margin-top: 35px; - margin-left:auto; - margin-right:auto; - -webkit-border-radius: 2px; - border-radius: 2px; - overflow: hidden; - z-index:5; -} - -.forgot_pass_modal_wrapper .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 29px; - padding-bottom: 27px; - text-transform: uppercase; - text-align: center; -} - -.forgot_pass_modal_wrapper .modal_window input { - padding: 8px; - width: 251px; - margin-right: 56px; - margin-left: 11px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.forgot_pass_modal_wrapper .modal_window .my_cust_btn { - font-size: 13px; - padding: 8px 31px; - color: white; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.forgot_pass_modal_wrapper .modal_window .my_cust_btn:hover { - background-color: #5d8d2e; -} - -.forgot_pass_modal_wrapper .modal_window .my_cust_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.forgot_pass_modal_wrapper .modal_window .title { - padding-right: 0px; - padding-top: 30px; - padding-bottom: 23px; -} - -.forgot_pass_modal_wrapper .modal_window .text { - color: #898b8e; - font-size: 13px; - text-align: left; - margin-bottom: 28px; -} - -.forgot_pass_modal_wrapper .modal_window label { - display: block; - font-size: 13px; - width: 459px; - margin: auto; - margin-bottom: 30px; -} - -.forgot_pass_modal_wrapper .modal_window label input { - margin-right: 52px; -} - -.forgot_pass_modal_wrapper .modal_window .pass_links { - text-align: center; - padding-left: 55px; - font-size: 13px; - margin-top: 11px; -} - -.forgot_pass_modal_wrapper .modal_window .pass_links a { - padding-left: 47px; -} - -.forgot_pass_modal_wrapper .modal_window .pass_links label { - display: inline; -} - -.forgot_pass_modal_wrapper .modal_window .pass_links .remember_pas { - color: #6aa034; - text-decoration: underline; -} - -.forgot_pass_modal_wrapper .modal_window .for_btn_position { - text-align: center; - margin-top: 23px; -} - -.forgot_pass_modal_wrapper .modal_window .for_btn_position .my_cust_btn { - padding: 8px 28px; -} - -/* forgot password success window */ - -.forgot_pass_success_wrapper { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 2; - top: 0; - left: 0; - display: none; - z-index:4; -} - -.forgot_pass_success_wrapper .modal_window { - text-align: right; - height: 158px; - width: 459px; - background-color: #fff; - padding: 20px; - position: relative; - margin-top: 35px; - margin-left:auto; - margin-right:auto; - -webkit-border-radius: 2px; - border-radius: 2px; - overflow: hidden; -} - -.forgot_pass_success_wrapper .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 29px; - padding-bottom: 27px; - text-transform: uppercase; - text-align: center; -} - -.forgot_pass_success_wrapper .modal_window input { - padding: 8px; - width: 251px; - margin-right: 56px; - margin-left: 11px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.forgot_pass_success_wrapper .modal_window .my_cust_btn { - font-size: 13px; - padding: 8px 31px; - color: white; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.forgot_pass_success_wrapper .modal_window .my_cust_btn:hover { - background-color: #5d8d2e; -} - -.forgot_pass_success_wrapper .modal_window .my_cust_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.forgot_pass_success_wrapper .modal_window .title { - padding-right: 0px; - padding-top: 30px; - padding-bottom: 23px; -} - -.forgot_pass_success_wrapper .modal_window .text { - color: #898b8e; - font-size: 13px; - text-align: center; - margin-bottom: 27px; -} - -.forgot_pass_success_wrapper .modal_window .for_btn_position { - text-align: center; - margin-top: 23px; -} - -.forgot_pass_success_wrapper .modal_window .for_btn_position .my_cust_btn { - padding: 8px 22px; -} -/* callback window */ - -.callback_wrapper { - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: absolute; - z-index: 2; - top: 0; - left: 0; - display: none; - z-index:5; -} - -.callback_wrapper .modal_window { - text-align: right; - height: 158px; - width: 459px; - background-color: #fff; - padding: 20px; - position: relative; - margin-top: 35px; - margin-left:auto; - margin-right:auto; - -webkit-border-radius: 2px; - border-radius: 2px; - overflow: hidden; -} - -.callback_wrapper .modal_window .title { - font-size: 18px; - font-weight: bold; - padding-top: 29px; - padding-bottom: 27px; - text-transform: uppercase; - text-align: center; -} - -.callback_wrapper .modal_window input { - padding: 8px; - width: 251px; - margin-right: 56px; - margin-left: 11px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; -} - -.callback_wrapper .modal_window .my_cust_btn { - font-size: 13px; - padding: 8px 31px; - color: white; - border: none; - -webkit-border-radius: 3px; - border-radius: 3px; - background-color: #6aa034; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.callback_wrapper .modal_window .my_cust_btn:hover { - background-color: #5d8d2e; -} - -.callback_wrapper .modal_window .my_cust_btn:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.callback_wrapper .modal_window .title { - padding-right: 0px; - padding-top: 32px; - padding-bottom: 25px; - font-size: 28px; -} - -.callback_wrapper .modal_window .text { - color: #333333; - font-size: 16px; - text-align: center; - margin-bottom: 27px; -} -/* BUSKET MODAL WINDOW */ - -/*==================== BUSKET MODAL BASIC */ - -.busket_modal_basic { - display: inline-block; - background: white; - position: relative; - overflow: hidden; -} - -.busket_modal_basic .order_list { - width: auto; - padding: 25px; -} - -.busket_modal_basic .order_list ul { - max-height: 350px; - overflow-y: overlay; - overflow-x: hidden; -} - -.busket_modal_basic .order_list h3 { - text-transform: uppercase; - font-weight: normal; - font-size: 20px; - padding: 20px 0 15px; -} - -.busket_modal_basic .order_list .order_list_li { - display: block; -} - -.busket_modal_basic .order_list .order_list_li .little_img { - float: none; -} - -.busket_modal_basic .order_list .order_list_li .name_and_code { - text-align: left; - float: none; -} - -.busket_modal_basic .order_list .order_list_li .name_and_code .name { - margin-bottom: 14px; -} - -.busket_modal_basic .order_list .order_list_li .price { - padding: 0; -} - -.busket_modal_basic .order_list .order_list_li .count_block_wrap { - display: inline-block; - vertical-align: top; - text-align: right; -} - -.busket_modal_basic .order_list .count_block { - display: block; - position: relative; - margin-bottom: 30px; -} - -.busket_modal_basic .order_list .count_block .count_number { - display: inline-block; - font-size: 22px; - padding: 3px 13px 3px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; - position: relative; - /*top: -2px;*/ - background-color: #fff; -} - -.busket_modal_basic .order_list .count_block .count_buttons { - position: relative; - /*top: 4px;*/ - right: 6px; - display: inline-block; - vertical-align: bottom; -} - -.busket_modal_basic .order_list .count_block .count_buttons .button_plus { - background-color: #898b8e; - color: white; - font-weight: bold; - border-bottom: 1px solid #707274; - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - font-size: 15px; - line-height: 15px; - padding: 0 7px; - cursor: pointer; -} - -.busket_modal_basic .order_list .count_block .count_buttons .button_plus:hover { - background-color: #7c7e81; -} - -.busket_modal_basic .order_list .count_block .count_buttons .button_minus { - background-color: #898b8e; - color: white; - font-weight: bold; - line-height: 16px; - text-align: center; - border-top: 1px solid #A2A2A2; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - cursor: pointer; -} - -.busket_modal_basic .order_list .count_block .count_buttons .button_minus:hover { - background-color: #7c7e81; -} - -.busket_modal_basic .order_list .busket_bottom_btn { - margin-top: 20px; - text-align: center; -} - -.busket_modal_basic .order_list .busket_bottom_btn a { - display: inline-block; - font-size: 13px; - margin-right: 97px; -} - -.busket_modal_basic .order_list .busket_bottom_btn button { - display: inline-block; - padding: 10px 20px; - color: white; - background-color: #6aa034; - border: none; - -webkit-border-radius: 2px; - border-radius: 2px; - font-size: 13px; - font-weight: normal; - -webkit-box-shadow: 0px 2px 0px #517a27; - box-shadow: 0px 2px 0px #517a27; -} - -.busket_modal_basic .order_list .busket_bottom_btn button:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.busket_modal_basic .order_list .busket_bottom_btn button:hover { - background-color: #5d8d2e; -} - -.busket_modal_basic .order_list .delete_item_btn { - display: inline-block; - vertical-align: top; - margin-top: 30px; - padding: 0 10px 0 0; - cursor: pointer; - color: #C6C7C9; - font-size: 20px; -} - -.busket_modal_basic .order_list .delete_item_btn:hover { - color: red; -} - -/*==================== BUSKET MODAL 1 */ - -.busket_modal_wrapper { - display: none; - color: #333333; - width: 100%; - background: rgba(0, 0, 0, 0.4); - position: fixed; - z-index: 4; - top: 0; - left: 0; -} - -.busket_modal_wrapper .m_a { - display: block; - text-align: center; - position: relative; - margin-top: 35px; -} - -.busket_modal_wrapper .busket_modal_01 { - display: inline-block; - background: white; - position: relative; - overflow: hidden; -} - -.busket_modal_wrapper .busket_modal_01 .order_list { - width: auto; - padding: 25px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list ul { - max-height: 350px; - overflow-y: overlay; - overflow-x: hidden; -} - -.busket_modal_wrapper .busket_modal_01 .order_list h3 { - text-transform: uppercase; - font-weight: normal; - font-size: 20px; - padding: 20px 0 15px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li { - display: block; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .little_img { - float: none; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .name_and_code { - text-align: left; - float: none; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .name_and_code .name { - margin-bottom: 14px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .price { - padding: 0; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .count_block_wrap { - display: inline-block; - vertical-align: top; - text-align: right; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block { - display: block; - position: relative; - margin-bottom: 30px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_number { - display: inline-block; - font-size: 22px; - padding: 3px 13px 3px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; - position: relative; - /*top: -2px;*/ - background-color: #fff; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons { - position: relative; - right: 16px; - display: inline-block; - vertical-align: bottom; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_plus { - background-color: #898b8e; - color: white; - font-weight: bold; - border-bottom: 1px solid #707274; - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - font-size: 15px; - line-height: 15px; - padding: 0 7px; - cursor: pointer; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_plus:hover { - background-color: #7c7e81; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_minus { - background-color: #898b8e; - color: white; - font-weight: bold; - line-height: 16px; - text-align: center; - border-top: 1px solid #A2A2A2; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - cursor: pointer; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_minus:hover { - background-color: #7c7e81; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn { - margin-top: 20px; - text-align: center; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn a { - display: inline-block; - font-size: 13px; - margin-right: 97px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn button { - display: inline-block; - padding: 10px 20px; - color: white; - background-color: #6aa034; - border: none; - -webkit-border-radius: 2px; - border-radius: 2px; - font-size: 13px; - font-weight: normal; - -webkit-box-shadow: 0px 2px 0px #517a27; - box-shadow: 0px 2px 0px #517a27; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn button:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn button:hover { - background-color: #5d8d2e; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .delete_item_btn { - display: inline-block; - vertical-align: top; - margin-top: 30px; - padding: 0 10px 0 0; - cursor: pointer; - color: #C6C7C9; - font-size: 20px; -} - -.busket_modal_wrapper .busket_modal_01 .order_list .delete_item_btn:hover { - color: red; -} - -/*==================== BUSKET MODAL 2 */ - -.busket_modal_header { - display: inline-block; - position: absolute; - top: 91px; - right: 0px; - border: 1px solid #898b8e; - z-index: 2; - display: none; - background-color: #fff; -} - -.busket_modal_header .busket_modal_02 { - display: inline-block; - background: white; - position: relative; - overflow: hidden; -} - -.busket_modal_header .busket_modal_02 .order_list { - width: auto; - padding: 25px; -} - -.busket_modal_header .busket_modal_02 .order_list ul { - max-height: 350px; - overflow-y: overlay; - overflow-x: hidden; -} - -.busket_modal_header .busket_modal_02 .order_list h3 { - text-transform: uppercase; - font-weight: normal; - font-size: 20px; - padding: 20px 0 15px; -} - -.busket_modal_header .busket_modal_02 .order_list .order_list_li { - display: block; -} - -.busket_modal_header .busket_modal_02 .order_list .order_list_li .little_img { - float: none; -} - -.busket_modal_header .busket_modal_02 .order_list .order_list_li .name_and_code { - text-align: left; - float: none; -} - -.busket_modal_header .busket_modal_02 .order_list .order_list_li .name_and_code .name { - margin-bottom: 14px; -} - -.busket_modal_header .busket_modal_02 .order_list .order_list_li .price { - padding: 0; -} - -.busket_modal_header .busket_modal_02 .order_list .order_list_li .count_block_wrap { - display: inline-block; - vertical-align: top; - text-align: right; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block { - display: block; - position: relative; - margin-bottom: 30px; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block .count_number { - display: inline-block; - font-size: 22px; - padding: 3px 13px 3px; - border: 1px solid #C6C7C9; - -webkit-border-radius: 3px; - border-radius: 3px; - position: relative; - /*top: -2px;*/ - background-color: #fff; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons { - position: relative; - /*top: 4px;*/ - right: 6px; - display: inline-block; - vertical-align: bottom; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_plus { - background-color: #898b8e; - color: white; - font-weight: bold; - border-bottom: 1px solid #707274; - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - font-size: 15px; - line-height: 15px; - padding: 0 7px; - cursor: pointer; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_plus:hover { - background-color: #7c7e81; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_minus { - background-color: #898b8e; - color: white; - font-weight: bold; - line-height: 16px; - text-align: center; - border-top: 1px solid #A2A2A2; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; - cursor: pointer; -} - -.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_minus:hover { - background-color: #7c7e81; -} - -.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn { - margin-top: 20px; - text-align: center; -} - -.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn a { - display: inline-block; - font-size: 13px; - margin-right: 130px; -} - -.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn button { - display: inline-block; - padding: 10px 20px; - color: white; - background-color: #6aa034; - border: none; - -webkit-border-radius: 2px; - border-radius: 2px; - font-size: 13px; - font-weight: normal; - -webkit-box-shadow: 0px 2px 0px #517a27; - box-shadow: 0px 2px 0px #517a27; -} - -.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn button:active { - position: relative; - -webkit-box-shadow: none; - box-shadow: none; - top: 2px; -} - -.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn button:hover { - background-color: #5d8d2e; -} - -.busket_modal_header .busket_modal_02 .order_list .delete_item_btn { - display: inline-block; - vertical-align: top; - margin-top: 30px; - padding: 0 10px 0 0; - cursor: pointer; - color: #C6C7C9; - font-size: 20px; -} - -.busket_modal_header .busket_modal_02 .order_list .delete_item_btn:hover { - color: red; -} - -/*=============================================== CATEGORY PAGE ================================================*/ - -.category_page_main_title { - margin-top: 0; - margin-bottom: 41px; - font-weight: bold; -} - -.category_wrap { - margin-bottom: 18px; -} - -.category_wrap .category_wrap_3_colum { - width: 300px; - display: inline-block; - vertical-align: top; - margin-right: 15px; -} - -.category_wrap .category_wrap_3_colum:last-of-type { - margin-right: 0px; -} - -.category_wrap .wrap { - margin-bottom: 16px; -} - -.category_wrap .wrap a { - text-decoration: none; -} - -.category_wrap .wrap .cat_li_cont { - border: 1px solid #C6C7C9; - -webkit-border-radius: 2px; - border-radius: 2px; - width: 298px; - height: 78px; - display: inline-block; - position: relative; -} - -.category_wrap .wrap .cat_li_cont img { - padding-top: 9px; - padding-left: 7px; - float: left; - padding-right: 20px; -} - -.category_wrap .wrap .cat_li_cont .desc { - font-size: 15px; - width: 150px; - color: #333333; - margin-left: 87px; - height: 78px; - display: table-cell; - vertical-align: middle; -} - -.category_wrap .wrap .cat_li_cont .arrow { - background-image: url("../images/category/green_arrows.png"); - width: 20px; - height: 10px; - background-repeat: no-repeat; - display: block; - position: absolute; - right: 15px; - top: 35px; - background-position: 0px 0px; -} - -.category_wrap .wrap .cat_li_sub_ul { - padding: 18px 2px 13px 18px; - font-size: 13px; - line-height: 20px; - border: 1px solid #C6C7C9; - width: 278px; - background-color: white; - position: relative; - top: -6px; - border-top: none; - display: none; -} - -/*=============================================== 404 PAGE ================================================*/ - -.wrap_for_404 { - min-height: 670px; -} - -.wrap_for_404 .main_title_404 { - font-size: 30px; - margin-top: 0; - margin-bottom: 30px; - font-weight: bold; -} - -.wrap_for_404 .main_img_404 { - float: left; - position: relative; - right: 10px; - padding: 27px 21px 10px 0px; -} - -.wrap_for_404 .block_404 .first { - font-size: 16px; - margin-top: 103px; - line-height: 20px; -} - -.wrap_for_404 .block_404 .second { - font-size: 13px; - margin-top: 60px; - line-height: 15px; - color: #898b8e; -} - -.wrap_for_404 .block_404 button { - padding: 7px 21px; - background-color: #6aa034; - margin-top: 47px; - margin-left: 151px; - border: none; - font-size: 13px; - color: white; - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-box-shadow: 0 2px #517a27; - box-shadow: 0 2px #517a27; -} - -.wrap_for_404 .block_404 button:hover { - background-color: #5d8d2e; -} - -.wrap_for_404 .block_404 button:active { - position: relative; - top: 2px; - -webkit-box-shadow: none; - box-shadow: none; -} - -.test_flex_example { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; -} - -/*=============================================== ZAGLUSHKA PAGE ================================================*/ - -.zaglushka_logo_img { - width: 230px; - margin: 80px auto 27px; -} - -.zaglushka_main_img { - width: 880px; - position: relative; - left: -6px; -} - -.zaglushka_text { - text-align: center; - font-weight: bold; - padding-top: 44px; - position: relative; - right: 4px; - padding-bottom: 130px; -} - -.zaglushka_text h2 { - color: #6aa034; - font-size: 20px; - letter-spacing: 1px; -} - -.zaglushka_text p { - font-size: 16px; - padding-bottom: 22px; -} - -.zaglushka_text .zaglushka_separate_line { - height: 1px; - background: #C6C7C9; - width: 508px; - margin: 13px auto 17px; -} - -/*=============================================== VALIDATION ================================================*/ - -.reg_form label.error { - margin-left: 180px; - width: 265px; - text-align: left; - color: #D75C5C; -} - -.modal_wrapper_login .modal_window label.error { - margin-left: 127px; - width: 265px; - text-align: left; - color: #D75C5C; -} - -.consultation_modal .modal_window label.error { - margin-left: 127px; - width: 265px; - text-align: left; - color: #D75C5C; -} - -.forgot_password_form label.error { - margin-left: 141px; - width: 265px; - text-align: left; - color: #D75C5C; +.w_100 { + width: 100%; +} + +.w_960 { + width: 960px; + margin: auto; +} + +.cat_p_bradcrump { + padding: 30px 0px; +} + +.cat_p_bradcrump ul { + list-style: none; +} + +.cat_p_bradcrump ul li { + display: inline-block; +} + +.cat_p_bradcrump ul li i { + position: relative; + top: 1px; + padding: 0px 2px 0 8px; + color: #8C9295; + font-size: 13px; +} + +.cat_p_bradcrump ul li a { + font-size: 12px; + color: #898b8e; +} + +.cat_p_bradcrump ul .active a { + text-decoration: none; +} + +.cat_p_filter_bar { + font-family: 'HelveticaRegular', sans-serif; + width: 210px; + padding-right: 20px; + display: inline-block; + float: left; +} + +.cat_p_filter_bar .filter_list ul { + list-style: none; +} + +.cat_p_filter_bar .filter_list ul .title_2 { + font-size: 15px; + font-weight: bold; + color: #898b8e; + padding: 30px 0 20px; +} + +.cat_p_filter_bar .filter_list ul li { + border-bottom: 1px solid #bbbbbb; + position: relative; + padding: 15px 0; + font-weight: bold; + color: #333333; +} + +.cat_p_filter_bar .filter_list ul li .width_li_filter { + width: 180px; + display: block; +} + +.cat_p_filter_bar .filter_list ul li .arrow { + position: absolute; + right: 2px; + top: 3px; + font-size: 20px; + color: #727272; + padding: 10px 0 10px 200px; +} + +.cat_p_filter_bar .filter_list ul li .arrow i { + font-weight: bold; +} + +.cat_p_filter_bar .filter_list ul li .arrow img { + -webkit-transform: scale(1.3); + -ms-transform: scale(1.3); + transform: scale(1.3); + position: relative; + bottom: 3px; +} + +.cat_p_filter_bar .filter_list .price_filter { + display: none; + padding-top: 10px; +} + +.cat_p_filter_bar .filter_list .price_filter a { + color: #6aa033; +} + +.cat_p_filter_bar .filter_list .first_price_li { + padding-top: 30px; + display: block; +} + +.cat_p_filter_bar .filter_accept_bloc { + padding: 20px 0 40px; +} + +.cat_p_filter_bar .filter_accept_bloc button { + color: #fff; + padding: 10px; + font-size: 15px; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #898b8e; + -webkit-box-shadow: 0 2px 0 #636567; + box-shadow: 0 2px 0 #636567; +} + +.cat_p_filter_bar .filter_accept_bloc button:hover { + background-color: #707274; +} + +.cat_p_filter_bar .filter_accept_bloc a { + color: #6AA033; + font-size: 12px; +} + +.cat_p_filter_bar .product_list .title { + padding-bottom: 5px; + color: #898b8e; +} + +.cat_p_filter_bar .product_list a { + display: block; + padding: 5px 0 0 15px; + font-weight: normal; +} + +.cat_p_filter_bar .price_slider { + width: 203px; + /*margin: auto;*/ +} + +.cat_p_filter_bar .checkbox { + margin-top: 5px; + font-weight: normal; +} + +.cat_p_filter_bar .see_all a { + font-size: 13px; + position: relative; + bottom: 3px; +} + +.cat_p_filter_bar .see_all i { + font-size: 18px; + color: #898B8E; +} + +.cat_p_filter_bar .title { + font-size: 16px; + font-weight: bold; + color: #898b8e; + padding-bottom: 20px; +} + +.cat_p_filter_bar p { + margin-bottom: 20px; +} + +.cat_p_filter_bar p input { + padding: 8px; + -webkit-border-radius: 3px; + border-radius: 3px; + border: none; + border: 1px solid #bbb; + width: 60px; +} + +.cat_p_filter_bar p label { + display: block; + margin-bottom: 15px; +} + +.cat_p_catalog_list { + font-family: 'HelveticaRegular', sans-serif; + width: 700px; + padding-right: 10px; + display: inline-block; +} + +.cat_p_catalog_list ul { + list-style: none; + display: inline-block; +} + +.cat_p_catalog_list ul li { + display: inline-block; +} + +.cat_p_catalog_list ul li .active { + color: #333333; + text-decoration: none; +} + +.cat_p_catalog_list ul li a { + color: #6aa033; + font-size: 13px; +} + +.cat_p_catalog_list .sort_menu { + padding-bottom: 10px; + border-bottom: 1px solid #DBDCDD; + margin-bottom: 30px; + width: 720px; +} + +.cat_p_catalog_list .title { + font-size: 30px; + font-weight: bold; + padding-bottom: 20px; +} + +.cat_p_catalog_list .sort_price { + display: inline-block; + width: 225px; + position: relative; + font-size: 13px; +} + +.cat_p_catalog_list .sort_price select { + text-decoration: underline; + width: 120px; + border: none; + color: #6aa033; + -webkit-appearance: none; + /* скрытие треугольника в селекте */ + -moz-appearance: none; + appearance: none; + /* скрытие треугольника в селекте */ + text-indent: 0.01px; + /* скрытие треугольника в селекте в firefox */ + text-overflow: ''; + /* скрытие треугольника в селекте в firefox */ + /*&::-ms-expand { display: none; } скрытие треугольника в селекте в IE */ + background: transparent; +} + +.cat_p_catalog_list .sort_price select:focus { + outline: none; +} + +.cat_p_catalog_list .sort_price select option { + background: transparent; +} + +.cat_p_catalog_list .sort_price i { + position: absolute; + right: 72px; + top: 3px; + cursor: pointer; + font-weight: bold; + color: #898b8e; + z-index: -1; +} + +.cat_p_catalog_list .show { + display: inline-block; + width: 225px; + text-align: center; + font-size: 13px; +} + +.cat_p_catalog_list .show_pages { + display: inline-block; + width: 250px; + text-align: right; + font-size: 13px; +} + +.cat_p_catalog_list .show_pages i { + color: #898b8e; + position: relative; + top: 1px; + padding-left: 5px; + font-size: 15px; + cursor: pointer; +} + +.cat_p_item_card_list { + font-family: 'HelveticaRegular', sans-serif; +} + +.cat_p_item_card_list .novelty { + text-align: center; +} + +.cat_p_item_card_list .novelty .content { + width: 720px; + padding: 0; +} + +.cat_p_item_card_list .novelty .content .novelty_cont { + width: 720px; + padding-bottom: 10px; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item { + /*min-height: 375px;*/ + margin-right: 20px; + margin-bottom: 20px; + margin-left: 0; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item:after { + display: none; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item .item_bottom_img { + position: relative; + top: 3px; + right: 1px; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item:before { + content: ""; + position: absolute; + bottom: -1px; + right: -1px; + width: 0px; + height: 0px; + border-width: 13px 13px 0px 0px; + border-style: solid; + border-color: transparent #fff; + z-index: 2; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item .brand span { + color: #6aa033; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item .new { + background-color: red; + width: auto; + padding-right: 20px; +} + +.cat_p_item_card_list .novelty .content .novelty_cont .item .new:after { + right: 0px; + width: 0px; + height: 0px; + border-width: 18px 13px 0px 0px; + border-style: solid; + border-color: transparent #fff; +} + +.cat_p_item_card_list .novelty .content .load_more_btn { + font-size: 13px; + padding: 10px 15px; + background: #6AA033; + -webkit-border-radius: 2px; + border-radius: 2px; + border: none; + color: white; + -webkit-box-shadow: 0 2px 0 #507927; + box-shadow: 0 2px 0 #507927; + margin-bottom: 20px; +} + +.cat_p_item_card_list .novelty .content .load_more_btn:hover { + background: #5d8d2d; +} + +.cat_p_item_card_list .novelty .content .show_pages { + display: block; + margin: auto; + text-align: center; + margin-bottom: 7px; +} + +.cat_p_item_card_list .novelty .content .description { + color: #333333; + text-align: left; + font-weight: normal; + font-size: 13px; +} + +.cat_p_item_card_list .novelty .content .description h2 { + padding: 30px 0; + font-size: 30px; + font-weight: normal; +} + +.cat_p_item_card_list .novelty .content .description .bold { + font-weight: bold; +} + +.cat_p_item_card_list .novelty .content .description h4 { + padding: 20px 0; + font-size: 14px; +} + +.cat_p_item_card_list .novelty .content .description .margin_bottom_20 { + margin-bottom: 20px; +} + +.cat_p_item_card_list .novelty .content .description .empty_padding_400 { + width: 100px; + height: 380px; +} +/* светлый зеленый цвет, текст и кнопки */ + +/* средний серый цвет, текст и кнопки */ + +/* светлый серый цвет, рамки и линии */ + +/* темный серый цвет, большие названия, цифры */ + +a { + color: #6aa034; +} + +a:hover { + color: #517a27; +} + +h1 { + color: #333333; + font-size: 30px; + font-weight: normal; +} + +.flex-container { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.bradcrumps_top { + padding: 30px 0; + line-height: 0; +} + +.bradcrumps_top ul li { + display: inline-block; +} + +.bradcrumps_top ul li a { + font-size: 12px; + color: #6aa034; + text-decoration: underline; +} + +.bradcrumps_top ul li:last-child a { + text-decoration: none; + color: #898b8e; +} + +.bradcrumps_top ul li:last-child i { + display: none; +} + +.bradcrumps_top ul li i { + color: #898b8e; + padding: 0 2px 0 6px; + font-weight: bold; + font-size: 11px; +} + +.my_custom_card { + width: 218px; + display: inline-block; + border: 1px solid #cdd1d9; + border-bottom: none; + -webkit-border-top-left-radius: 2px; + border-top-left-radius: 2px; + -webkit-border-top-right-radius: 2px; + border-top-right-radius: 2px; + position: relative; + text-align: center; + margin-bottom: 1px; + margin-bottom: 19px; + color: #333333; + /* &:before { + content: ""; + position: absolute; + bottom: -1px; + right: -1px; + width: 0px; + height: 0px; + border-width: 13px 13px 0px 0px; + border-style: solid; + border-color: transparent #fff; + z-index: 2; + }*/ +} + +.my_custom_card .item_bottom_img { + bottom: 61px; + left: -1px; + position: absolute; + top: 374px; +} + +.my_custom_card .new { + position: absolute; + color: #ffffff; + left: 0px; + top: 14px; + text-transform: uppercase; + font-size: 10px; + text-align: left; + background-color: red; + width: auto; + padding: 1px 20px 0px 5px; + z-index: 1; + line-height: 17px; +} + +.my_custom_card .new:after { + content: ""; + height: 0px; + top: 0; + right: 0; + border-width: 21px 14px 0px 0px; + border-style: solid; + border-color: transparent #fff; + position: absolute; +} + +.my_custom_card .top { + background: #ffde00; + position: absolute; + padding: 1px 20px 0px 5px; + color: #ffffff; + left: 0px; + top: 35px; + text-transform: uppercase; + font-size: 10px; + color: #333333; + z-index: 1; +} + +.my_custom_card .top:after { + content: ""; + top: 0; + right: 0px; + border-width: 21px 14px 0px 0px; + border-style: solid; + border-color: transparent #fff; + position: absolute; +} + +.my_custom_card .item_link { + text-decoration: none; + border: 0; +} + +.my_custom_card .item_link .pic { + margin-top: 25px; +} + +.my_custom_card .item_link .title_item { + padding: 13px; + color: #6aa033; + margin-bottom: 3px; + font-size: 15px; + line-height: 17px; +} + +.my_custom_card .brand { + font-size: 12px; + line-height: 12px; +} + +.my_custom_card .brand span { + color: #6aa033; +} + +.my_custom_card .type { + font-size: 12px; +} + +.my_custom_card .price { + font-size: 20px; + font-weight: bold; + font-family: HelveticaBold; + padding-bottom: 11px; + padding-top: 6px; +} + +.my_custom_card .price span { + font-size: 13px !important; +} + +.my_custom_card .foo { + padding: 5px 53px 5px 14px; + border: none; + background-color: #6aa034; + color: white; + font-size: 12px; + -webkit-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; + position: relative; + display: block; + margin: 0 auto 10px; +} + +.my_custom_card .foo:hover { + background-color: #5d8d2e; +} + +.my_custom_card .foo:active { + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.my_custom_card .foo img { + position: absolute; + padding: 3px 3px 3px 8px; + border-left: 1px solid #527B28; + right: 12px; + top: 3px; +} + +.my_custom_card .compare_add_but_d { + color: #6aa034; + font-size: 12px; + text-decoration: none; +} + +.my_custom_card .compare_add_but_d span { + border-bottom: 1px dotted #6aa034; + padding-left: 10px; +} + +.my_custom_card .compare_add_but_d span:hover { + color: #517a27; +} + +.my_custom_card img { + position: relative; + top: 4px; + right: 1px; +} + +ul { + list-style: none; +} + +h1.with_this { + margin-bottom: 21px; +} + +hr { + margin-bottom: 30px; + margin-top: 30px; + color: #C6C7C9; + border: none; + background-color: #C6C7C9; + height: 1px !important; + margin-right: -10px; + margin-left: -10px; +} + +.tabs_item_name { + font-weight: bold; + padding-bottom: 15px; + display: block; +} + +.open_card_item_title { + color: #333333; + font-size: 30px; + padding-bottom: 42px; + font-weight: bold; + margin: 0px; +} + +.item_3_blocks_wrap { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.item_3_blocks_wrap .item_img_block { + width: 320px; + position: relative; +} + +.item_3_blocks_wrap .item_img_block .main_img { + text-align: center; + border: 1px solid #C6C7C9; + height: 317px; + width: 318px; +} + +.item_3_blocks_wrap .item_img_block .main_img img { + height: 100%; +} + +.item_3_blocks_wrap .item_img_block .main_img .new { + background: #00adf0; + font-size: 10px; + padding: 1px 5px 0px 5px; + position: absolute; + left: 0; + top: 15px; + color: white; + line-height: 17px; +} + +.item_3_blocks_wrap .item_img_block .main_img .new:after { + content: ""; + border-width: 0px 0px 18px 17px; + border-style: solid; + border-color: black green transparent #00ADF0; + position: absolute; + bottom: 0px; + right: -17px; +} + +.item_3_blocks_wrap .item_img_block .main_img .top { + background: #ffde00; + font-size: 10px; + padding: 1px 5px 0px 5px; + position: absolute; + line-height: 17px; + left: 0; + top: 38px; + color: black; +} + +.item_3_blocks_wrap .item_img_block .main_img .top:after { + content: ""; + border-width: 0px 0px 18px 17px; + border-style: solid; + border-color: black green transparent #ffde00; + position: absolute; + bottom: 0px; + right: -17px; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide { + position: relative; + margin-top: 20px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-justify-content: space-around; + -ms-flex-pack: distribute; + justify-content: space-around; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block { + width: 80px; + height: 77px; + border: 1px solid #C6C7C9; + display: inline-block; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block img { + width: 96%; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block:first-child { + margin-left: 10px; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .small_img_block:nth-child(3) { + margin-right: 10px; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .active { + border: 2px solid #C6C7C9; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .slider_arrow_right { + position: absolute; + right: 0; + top: 39%; +} + +.item_3_blocks_wrap .item_img_block .main_img_slide .slider_arrow_left { + position: absolute; + left: 0; + top: 39%; +} + +.item_3_blocks_wrap .busket_block { + position: relative; + width: 295px; +} + +.item_3_blocks_wrap .busket_block .grey_bg { + background-color: #f4f4f4; + padding: 27px 0 20px; + margin-top: 20px; +} + +.item_3_blocks_wrap .busket_block .top_code .code { + background: #ffde00; + color: black; + font-size: 12px; + color: #333333; + font-weight: bold; + padding: 4px 12px; + display: inline-block; +} + +.item_3_blocks_wrap .busket_block .top_code .have { + font-size: 12px; + color: #333333; + font-weight: bold; + padding: 4px 19px 7px; + position: absolute; + top: 0; + right: 0; +} + +.item_3_blocks_wrap .busket_block .top_code .have img { + position: absolute; + right: 100px; + left: -5px; +} + +.item_3_blocks_wrap .busket_block .counter { + text-align: center; +} + +.item_3_blocks_wrap .busket_block .counter .price { + color: #333333; + font-size: 28px; + font-weight: bold; + display: inline-block; + padding-left: 20px; + padding-top: 8px; + padding-bottom: 11px; +} + +.item_3_blocks_wrap .busket_block .counter .sign { + font-size: 15px; + color: #333333; + font-weight: bold; + display: inline-block; + margin-right: 15px; +} + +.item_3_blocks_wrap .busket_block .counter .count_block { + display: inline-block; + position: relative; +} + +.item_3_blocks_wrap .busket_block .counter .count_block .count_number { + display: inline-block; + font-size: 22px; + padding: 6px 13px 6px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; + position: relative; + /*top: -2px;*/ + background-color: #fff; +} + +.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons { + position: relative; + /*top: 4px;*/ + right: 6px; + display: inline-block; + vertical-align: bottom; +} + +.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_plus { + background-color: #898b8e; + color: white; + font-weight: bold; + border-bottom: 1px solid #707274; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + font-size: 15px; + line-height: 15px; + padding: 0 7px; + cursor: pointer; +} + +.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_plus:hover { + background-color: #7c7e81; +} + +.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_minus { + background-color: #898b8e; + color: white; + font-weight: bold; + line-height: 16px; + border-top: 1px solid #A2A2A2; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; + cursor: pointer; +} + +.item_3_blocks_wrap .busket_block .counter .count_block .count_buttons .button_minus:hover { + background-color: #7c7e81; +} + +.item_3_blocks_wrap .busket_block .in_cart_btn { + text-align: center; + padding-top: 16px; +} + +.item_3_blocks_wrap .busket_block .in_cart_btn a { + color: white; + text-decoration: none; +} + +.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn { + background: #6aa034; + border: none; + padding: 10px 55px 10px 15px; + font-size: 16px; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; + -webkit-border-radius: 2px; + border-radius: 2px; + position: relative; +} + +.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn:hover { + background: #5d8d2e; +} + +.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn:active { + position: relative; + top: 2px; + -webkit-box-shadow: none; + box-shadow: none; +} + +.item_3_blocks_wrap .busket_block .in_cart_btn a .cart_btn img { + position: absolute; + padding: 7px 7px 7px 9px; + right: 7px; + width: 18px; + border-left: 1px solid #5d8d2e; + bottom: 2px; +} + +.item_3_blocks_wrap .busket_block .to_compare_link { + text-align: center; + margin-top: 18px; +} + +.item_3_blocks_wrap .busket_block .to_compare_link .add_to_compare { + border-bottom: 1px solid #6aa034; + border-style: dotted; + text-decoration: none; + border-top: none; + border-left: none; + border-right: none; + font-size: 12px; +} + +.item_3_blocks_wrap .busket_block .to_compare_link img { + position: relative; + top: 3px; + width: 19px; +} + +.item_3_blocks_wrap .busket_block .quick_order { + margin-top: 16px; +} + +.item_3_blocks_wrap .busket_block .quick_order form .text { + font-size: 12px; + color: #333333; + font-weight: bold; + padding-right: 3px; +} + +.item_3_blocks_wrap .busket_block .quick_order form .quick_order_phone { + font-size: 12px; + color: #333333; + padding: 9px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 2px; + border-radius: 2px; + width: 100px; +} + +.item_3_blocks_wrap .busket_block .quick_order form placeholder { + color: #C6C7C9; +} + +.item_3_blocks_wrap .busket_block .quick_order form button { + border: none; + font-size: 12px; + color: white; + padding: 7px 8px 6px 10px; + background: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; + -webkit-border-top-right-radius: 2px; + border-top-right-radius: 2px; + -webkit-border-bottom-right-radius: 2px; + border-bottom-right-radius: 2px; + position: absolute; + right: 1px; +} + +.item_3_blocks_wrap .busket_block .quick_order form button:hover { + background: #5d8d2e; +} + +.item_3_blocks_wrap .busket_block .delivery { + font-size: 13px; + color: #333333; + margin-top: 27px; +} + +.item_3_blocks_wrap .busket_block .delivery a { + text-decoration: underline; +} + +.character_block { + width: 265px; + color: #333333; +} + +.character_block h3 { + line-height: 16px; +} + +.character_block .each { + border-bottom: 1px solid #C6C7C9; + border-style: dotted; + border-top: none; + border-left: none; + border-right: none; + font-size: 13px; + margin-top: 2px; +} + +.character_block .title { + display: inline-block; + background: white; + position: relative; + top: 4px; + color: #898b8e; +} + +.character_block .tech { + display: inline-block; + background: white; + float: right; + position: relative; + top: 4px; +} + +.character_block .tech_links { + margin-top: 20px; +} + +.character_block .tech_links a { + text-decoration: none; + border-bottom: 1px solid #6aa034; + border-style: dashed; + border-left: none; + border-right: none; + border-top: none; + font-size: 18px; + margin-top: 6px; + margin-right: 100px; + display: inline-block; +} + +.flex_container { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.tabs_block { + color: #333333; +} + +.watched_block { + margin-bottom: 45px; +} + +.watched_block h1 { + font-size: 30px; + color: #333333; + margin-bottom: 18px; +} + +.just_test_tracs { + -webkit-transition: all 02s easy; + transition: all 02s easy; + -webkit-transform: rotate(7deg); + -ms-transform: rotate(7deg); + transform: rotate(7deg); +} +/* светлый зеленый цвет, текст и кнопки */ + +/* средний серый цвет, текст и кнопки */ + +/* светлый серый цвет, рамки и линии */ + +/* темный серый цвет, большие названия, цифры */ + +.main_cont_wrap { + width: 940px; + margin: auto; + padding: 0px 10px; + color: #333333; + line-height: 19px; +} + +.main_cont_wrap .services_title { + font-size: 30px; + padding-top: 0px; + padding-bottom: 26px; + font-weight: bold; + margin: 0px; +} + +.main_cont_wrap .services_title_servis { + font-size: 30px; + padding-top: 0px; + padding-bottom: 39px; + font-weight: bold; + margin: 0px; +} + +.main_cont_wrap .services_block { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; +} + +.main_cont_wrap .services_block .services_each { + width: 215px; + padding: 0 10px; + text-align: center; + display: inline-block; + margin-bottom: 45px; +} + +.main_cont_wrap .services_block .services_each .name { + font-size: 18px; + font-weight: bold; + padding: 20px 0px; + display: block; + padding-bottom: 16px; +} + +.main_cont_wrap .services_block .services_each img { + display: block; + height: 65px; + margin: auto; +} + +.main_cont_wrap .services_block .services_each p { + font-size: 13px; + line-height: 16px; +} + +.delivery_block { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding-bottom: 362px; + padding-top: 11px; +} + +.delivery_each_block { + font-size: 13px; + width: 450px; + line-height: 16px; +} + +.delivery_each_block img { + display: block; + width: 290px; + margin: auto; +} + +.delivery_each_block .name { + font-weight: bold; + padding: 27px 0 18px; + display: block; + text-align: center; + font-size: 15px; +} + +.delivery_each_block .address { + font-size: 16px; + font-weight: bold; + display: block; + padding-bottom: 20px; +} + +.contact_page_phones { + font-size: 16px; + font-weight: bold; + padding-bottom: 15px; +} + +.align_items_bottom { + -webkit-box-align: end; + -webkit-align-items: flex-end; + -ms-flex-align: end; + align-items: flex-end; +} + +.manufacturers_block { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + margin-bottom: 40px; + margin-top: 13px; +} + +.manufacturers_block a { + width: 172px; + height: 100px; + overflow: hidden; + margin-bottom: 20px; + display: inline-block; +} + +.payment_icon_1 { + display: inline-block; + background-image: url("../images/payment01.png"); + background-repeat: no-repeat; + width: 90px; + height: 40px; + float: left; + background-position: 26px 5px; +} + +.payment_icon_2 { + display: inline-block; + background-image: url("../images/payment01.png"); + background-repeat: no-repeat; + width: 90px; + height: 40px; + float: left; + background-position: 26px -32px; +} + +.payment_01 { + margin: 21px 2px; + display: block; +} + +span.bold { + font-weight: bold; +} + +span.red { + color: red; +} + +.font_size_13 { + font-size: 13px; +} + +.padding_450 { + padding-bottom: 450px; +} + +.basket_main_title { + margin-top: 0; + font-weight: bold; + font-size: 30px; + margin-bottom: 29px; +} + +.privet_info_block h3 { + font-size: 18px; + font-weight: bold; + padding-bottom: 16px; +} + +.privet_info_block label { + font-size: 13px; + font-weight: bold; +} + +.privet_info_block span.placehold { + font-size: 12px; + color: #898b8e; + font-weight: normal; +} + +.privet_info_block input { + padding: 7px 5px 9px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 2px; + border-radius: 2px; + margin: 0 12px 0 8px; + width: 256px; +} + +.privet_info_block .padding_cust { + padding: 0px 0px 8px 14px; +} + +.privet_info_block .padding_cust:nth-child(3) { + padding-left: 17px; +} + +.privet_info_block .padding_cust:nth-child(4) { + padding-left: 1px; +} + +.separator { + width: 960px; + height: 1px; + border-bottom: 1px solid #C6C7C9; + margin: 11px 0 27px; +} + +.delivery_radio h3 { + padding-bottom: 12px; +} + +.delivery_radio p { + display: inline-block; + font-size: 13px; +} + +.delivery_radio .padding_cust { + padding-bottom: 6px; +} + +.delivery_radio span.placehold { + color: #898b8e; + display: block; + font-size: 13px; + padding-left: 23px; + position: relative; + bottom: 4px; +} + +.basket_pay_block h3 { + padding-bottom: 12px; +} + +.basket_pay_block p { + display: inline-block; + font-size: 13px; +} + +.basket_pay_block .padding_cust { + padding-bottom: 6px; + position: relative; +} + +.basket_pay_block span.placehold { + color: #898b8e; + display: block; + font-size: 13px; + padding-left: 23px; + position: relative; + bottom: 4px; +} + +.basket_pay_block input[type="text"] { + margin-left: 8px; + height: 17px; + top: -11px; + position: absolute; + left: 315px; + height: 22px; + -webkit-border-radius: 2px; + border-radius: 2px; + border: 1px solid #C6C7C9; + width: 89px; + padding: 5px; +} + +.separator_02 { + width: 960px; + height: 1px; + border-bottom: 1px solid #C6C7C9; + margin: 3px 0 27px; +} + +.for_margin { + text-align: center; + margin: 27px 0 84px; +} + +.order_01_btn { + font-size: 13px; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; + border: none; + -webkit-border-radius: 2px; + border-radius: 2px; + background-color: #6aa034; + padding: 6px 22px; + color: white; +} + +.order_01_btn:hover { + background-color: #5d8d2e; +} + +.order_01_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.order_list { + width: 595px; +} + +.order_list .active { + background-color: #e0e1e2; +} + +.order_list h3 { + margin-bottom: 6px; +} + +.order_list hr { + margin-top: 0px; + margin-right: 0; + margin-left: 0; + margin-bottom: 16px; +} + +.order_list hr:nth-child(5) { + margin-top: 15px; + width: 930px; + margin-left: -10px; +} + +.order_list .all_price p { + font-size: 15px; + display: inline-block; +} + +.order_list .all_price p:nth-child(1) { + padding-left: 19px; + padding-right: 150px; +} + +.order_list .all_price p:nth-child(2) { + padding-right: 20px; +} + +.order_list .all_price .all_price { + font-size: 20px; + font-weight: bold; +} + +.order_list_li { + padding: 10px 20px; + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; +} + +.order_list_li .little_img { + height: 78px; + width: 78px; + border: 1px solid #C6C7C9; + overflow: hidden; + display: inline-block; + margin-right: 14px; + float: left; +} + +.order_list_li .little_img img { + height: 100%; +} + +.order_list_li .name_and_code { + display: inline-block; + float: left; +} + +.order_list_li .name_and_code .name { + display: block; + color: #6aa034; + font-size: 15px; + width: 175px; + margin-bottom: 7px; + position: relative; + line-height: 18px; + top: -3px; +} + +.order_list_li .name_and_code .code { + display: block; + font-size: 12px; +} + +.order_list_li .how_many { + display: inline-block; + padding: 32px 20px 0px 85px; + font-weight: bold; +} + +.order_list_li .price { + display: inline-block; + padding-left: 44px; + font-weight: bold; + font-size: 18px; + padding-top: 31px; + padding-left: 48px; +} + +.order_list_li .price .price_text { + font-size: 15px; + font-weight: normal; +} + +.basket_step_2_delivery h3 { + font-size: 18px; + font-weight: bold; + margin-top: 28px; + margin-bottom: 12px; +} + +.basket_step_2_delivery h4 { + font-size: 18px; + font-weight: bold; + margin-top: 24px; + margin-bottom: 12px; +} + +.basket_step_2_delivery .detail { + font-size: 13px; + margin-bottom: 7px; +} + +.basket_step_2_delivery .detail .grey { + color: #898b8e; + display: inline-block; + width: 69px; +} + +.for_margin_2 { + text-align: center; + margin: 34px 0 42px; +} + +.cabinet_main_title { + margin-top: 0; + font-weight: bold; + font-size: 30px; + margin-bottom: 38px; +} + +.cabinet_wrap { + position: relative; + margin-bottom: 282px; +} + +.cabinet_wrap span.grey { + color: #898b8e; +} + +.cabinet_wrap .cab_01 { + padding-bottom: 24px; +} + +.cabinet_wrap .block_01 { + display: inline-block; + width: 233px; +} + +.cabinet_wrap .block_02 { + display: inline-block; + width: 79px; +} + +.cabinet_wrap .block_03 { + display: inline-block; + width: auto; +} + +.cabinet_wrap .block_04 { + display: inline-block; + padding-left: 60px; + border-left: 1px solid #C6C7C9; + position: relative; + vertical-align: top; + margin-left: 20px; +} + +.cabinet_wrap .block_04 .link { + padding-top: 21px; + padding-bottom: 20px; + font-size: 13px; +} + +.cabinet_wrap .block_04 .link .dotted { + border-bottom: 1px dotted #6aa034; +} + +.cabinet_wrap .block_04 .link a { + text-decoration: none; +} + +.cabinet_wrap .block_04 .link:nth-child(2) { + padding-top: 4px; + font-size: 13px; + padding-bottom: 20px; +} + +.cabinet_wrap .block_04 .link:nth-child(2) a { + border-bottom: none; + text-decoration: none; +} + +/*=============================================== MODAL WINDOWS ================================================*/ + +/* registration window */ + +/* стили модального окна*/ + +/* стили основного модального окна */ + +.modal_close_btn { + position: absolute; + right: -42px; + top: -59px; + cursor: pointer; + width: 100px; + height: 120px; + overflow: hidden; + background-image: url("../images/modal_close_btn.png"); + background-repeat: no-repeat; + background-position: -143px 0; +} + +.modal_close_btn:hover { + background-position: 0 0; +} + +.modal_wrapper { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 2; + top: 0; + left: 0; +} + +.modal_wrapper_reg { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 4; + top: 0; + left: 0; + display: none; +} + +.modal_wrapper_reg .modal_window { + text-align: right; + height: 428px; + width: 560px; + background-color: #fff; + padding: 20px; + -webkit-border-radius: 2px; + border-radius: 2px; + overflow: hidden; + position: relative; + margin-left: auto; + margin-right: auto; + margin-top:35px; + z-index:5; +} + +.modal_wrapper_reg .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 29px; + padding-bottom: 27px; + text-transform: uppercase; + text-align: center; +} + +.modal_wrapper_reg .modal_window input { + padding: 8px; + width: 251px; + margin-right: 56px; + margin-left: 11px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.modal_wrapper_reg .modal_window .my_cust_btn { + font-size: 13px; + padding: 8px 31px; + color: white; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.modal_wrapper_reg .modal_window .my_cust_btn:hover { + background-color: #5d8d2e; +} + +.modal_wrapper_reg .modal_window .my_cust_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.modal_wrapper_reg .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 30px; + padding-bottom: 26px; + text-transform: uppercase; + text-align: center; +} + +.modal_wrapper_reg .modal_window label { + display: block; + font-size: 13px; + width: 500px; + margin: auto; + margin-bottom: 8px; +} + +.modal_wrapper_reg .modal_window label:last-of-type { + position: relative; +} + +.modal_wrapper_reg .modal_window label:last-of-type input { + width: 119px; + margin-left: 140px; +} + +.modal_wrapper_reg .modal_window label:last-of-type img { + position: absolute; + top: 4px; + left: 176px; +} + +.modal_wrapper_reg .modal_window .for_btn_position { + text-align: center; + margin-top: 30px; +} + +/* login window */ + +.modal_wrapper_login { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 4; + top: 0; + left: 0; + display: none; +} + +.modal_wrapper_login .modal_window { + text-align: right; + height: 247px; + width: 459px; + background-color: #fff; + padding: 20px; + position: relative; + margin-left:auto; + margin-right:auto; + margin-top: 35px; + -webkit-border-radius: 2px; + border-radius: 2px; + overflow: hidden; + z-index:999; +} + +.modal_wrapper_login .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 29px; + padding-bottom: 27px; + text-transform: uppercase; + text-align: center; +} + +.modal_wrapper_login .modal_window input { + padding: 8px; + width: 251px; + margin-right: 56px; + margin-left: 11px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.modal_wrapper_login .modal_window .my_cust_btn { + font-size: 13px; + padding: 8px 31px; + color: white; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.modal_wrapper_login .modal_window .my_cust_btn:hover { + background-color: #5d8d2e; +} + +.modal_wrapper_login .modal_window .my_cust_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.modal_wrapper_login .modal_window .title { + padding-right: 8px; +} + +.modal_wrapper_login .modal_window label { + display: block; + font-size: 13px; + width: 459px; + margin: auto; + margin-bottom: 8px; +} + +.modal_wrapper_login .modal_window label input { + margin-right: 68px; +} + +.modal_wrapper_login .modal_window .pass_links { + text-align: center; + padding-left: 55px; + font-size: 13px; + margin-top: 11px; +} + +.modal_wrapper_login .modal_window .pass_links a { + padding-left: 47px; +} + +.modal_wrapper_login .modal_window .pass_links label { + display: inline; +} + +.modal_wrapper_login .modal_window .pass_links .remember_pas { + color: #6aa034; + text-decoration: underline; +} + +.modal_wrapper_login .modal_window .for_btn_position { + text-align: center; + margin-top: 23px; +} + +.modal_wrapper_login .modal_window .for_btn_position .my_cust_btn { + padding: 8px 38px; +} + +/* login window */ + +.consultation_modal { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 4; + top: 0; + left: 0; + display: none; +} + +.consultation_modal .modal_window { + text-align: right; + height: 247px; + width: 459px; + background-color: #fff; + padding: 20px; + position: relative; + margin-left:auto; + margin-right:auto; + margin-top: 35px; + -webkit-border-radius: 2px; + border-radius: 2px; + overflow: hidden; + z-index:999; +} + +.consultation_modal .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 29px; + padding-bottom: 27px; + text-transform: uppercase; + text-align: center; +} + +.consultation_modal .modal_window input { + padding: 8px; + width: 251px; + margin-right: 56px; + margin-left: 11px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.consultation_modal .modal_window .my_cust_btn { + font-size: 13px; + padding: 8px 31px; + color: white; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.consultation_modal .modal_window .my_cust_btn:hover { + background-color: #5d8d2e; +} + +.consultation_modal .modal_window .my_cust_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.consultation_modal .modal_window .title { + padding-right: 8px; +} + +.consultation_modal .modal_window label { + display: block; + font-size: 13px; + width: 459px; + margin: auto; + margin-bottom: 8px; +} + +.consultation_modal .modal_window label input { + margin-right: 68px; +} + +.consultation_modal .modal_window .pass_links { + text-align: center; + padding-left: 55px; + font-size: 13px; + margin-top: 11px; +} + +.consultation_modal .modal_window .pass_links a { + padding-left: 47px; +} + +.consultation_modal .modal_window .pass_links label { + display: inline; +} + +.consultation_modal .modal_window .pass_links .remember_pas { + color: #6aa034; + text-decoration: underline; +} + +.consultation_modal .modal_window .for_btn_position { + text-align: center; + margin-top: 23px; +} + +.consultation_modal .modal_window .for_btn_position .my_cust_btn { + padding: 8px 38px; +} + +/* forgot password window */ + +.forgot_pass_modal_wrapper { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 4; + top: 0; + left: 0; + display: none; +} + +.forgot_pass_modal_wrapper .modal_window { + text-align: right; + height: 252px; + width: 459px; + background-color: #fff; + padding: 20px; + position: relative; + margin-top: 35px; + margin-left:auto; + margin-right:auto; + -webkit-border-radius: 2px; + border-radius: 2px; + overflow: hidden; + z-index:5; +} + +.forgot_pass_modal_wrapper .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 29px; + padding-bottom: 27px; + text-transform: uppercase; + text-align: center; +} + +.forgot_pass_modal_wrapper .modal_window input { + padding: 8px; + width: 251px; + margin-right: 56px; + margin-left: 11px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.forgot_pass_modal_wrapper .modal_window .my_cust_btn { + font-size: 13px; + padding: 8px 31px; + color: white; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.forgot_pass_modal_wrapper .modal_window .my_cust_btn:hover { + background-color: #5d8d2e; +} + +.forgot_pass_modal_wrapper .modal_window .my_cust_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.forgot_pass_modal_wrapper .modal_window .title { + padding-right: 0px; + padding-top: 30px; + padding-bottom: 23px; +} + +.forgot_pass_modal_wrapper .modal_window .text { + color: #898b8e; + font-size: 13px; + text-align: left; + margin-bottom: 28px; +} + +.forgot_pass_modal_wrapper .modal_window label { + display: block; + font-size: 13px; + width: 459px; + margin: auto; + margin-bottom: 30px; +} + +.forgot_pass_modal_wrapper .modal_window label input { + margin-right: 52px; +} + +.forgot_pass_modal_wrapper .modal_window .pass_links { + text-align: center; + padding-left: 55px; + font-size: 13px; + margin-top: 11px; +} + +.forgot_pass_modal_wrapper .modal_window .pass_links a { + padding-left: 47px; +} + +.forgot_pass_modal_wrapper .modal_window .pass_links label { + display: inline; +} + +.forgot_pass_modal_wrapper .modal_window .pass_links .remember_pas { + color: #6aa034; + text-decoration: underline; +} + +.forgot_pass_modal_wrapper .modal_window .for_btn_position { + text-align: center; + margin-top: 23px; +} + +.forgot_pass_modal_wrapper .modal_window .for_btn_position .my_cust_btn { + padding: 8px 28px; +} + +/* forgot password success window */ + +.forgot_pass_success_wrapper { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 2; + top: 0; + left: 0; + display: none; + z-index:4; +} + +.forgot_pass_success_wrapper .modal_window { + text-align: right; + height: 158px; + width: 459px; + background-color: #fff; + padding: 20px; + position: relative; + margin-top: 35px; + margin-left:auto; + margin-right:auto; + -webkit-border-radius: 2px; + border-radius: 2px; + overflow: hidden; +} + +.forgot_pass_success_wrapper .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 29px; + padding-bottom: 27px; + text-transform: uppercase; + text-align: center; +} + +.forgot_pass_success_wrapper .modal_window input { + padding: 8px; + width: 251px; + margin-right: 56px; + margin-left: 11px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.forgot_pass_success_wrapper .modal_window .my_cust_btn { + font-size: 13px; + padding: 8px 31px; + color: white; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.forgot_pass_success_wrapper .modal_window .my_cust_btn:hover { + background-color: #5d8d2e; +} + +.forgot_pass_success_wrapper .modal_window .my_cust_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.forgot_pass_success_wrapper .modal_window .title { + padding-right: 0px; + padding-top: 30px; + padding-bottom: 23px; +} + +.forgot_pass_success_wrapper .modal_window .text { + color: #898b8e; + font-size: 13px; + text-align: center; + margin-bottom: 27px; +} + +.forgot_pass_success_wrapper .modal_window .for_btn_position { + text-align: center; + margin-top: 23px; +} + +.forgot_pass_success_wrapper .modal_window .for_btn_position .my_cust_btn { + padding: 8px 22px; +} +/* callback window */ + +.callback_wrapper { + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: absolute; + z-index: 2; + top: 0; + left: 0; + display: none; + z-index:5; +} + +.callback_wrapper .modal_window { + text-align: right; + height: 158px; + width: 459px; + background-color: #fff; + padding: 20px; + position: relative; + margin-top: 35px; + margin-left:auto; + margin-right:auto; + -webkit-border-radius: 2px; + border-radius: 2px; + overflow: hidden; +} + +.callback_wrapper .modal_window .title { + font-size: 18px; + font-weight: bold; + padding-top: 29px; + padding-bottom: 27px; + text-transform: uppercase; + text-align: center; +} + +.callback_wrapper .modal_window input { + padding: 8px; + width: 251px; + margin-right: 56px; + margin-left: 11px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; +} + +.callback_wrapper .modal_window .my_cust_btn { + font-size: 13px; + padding: 8px 31px; + color: white; + border: none; + -webkit-border-radius: 3px; + border-radius: 3px; + background-color: #6aa034; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.callback_wrapper .modal_window .my_cust_btn:hover { + background-color: #5d8d2e; +} + +.callback_wrapper .modal_window .my_cust_btn:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.callback_wrapper .modal_window .title { + padding-right: 0px; + padding-top: 32px; + padding-bottom: 25px; + font-size: 28px; +} + +.callback_wrapper .modal_window .text { + color: #333333; + font-size: 16px; + text-align: center; + margin-bottom: 27px; +} +/* BUSKET MODAL WINDOW */ + +/*==================== BUSKET MODAL BASIC */ + +.busket_modal_basic { + display: inline-block; + background: white; + position: relative; + overflow: hidden; +} + +.busket_modal_basic .order_list { + width: auto; + padding: 25px; +} + +.busket_modal_basic .order_list ul { + max-height: 350px; + overflow-y: overlay; + overflow-x: hidden; +} + +.busket_modal_basic .order_list h3 { + text-transform: uppercase; + font-weight: normal; + font-size: 20px; + padding: 20px 0 15px; +} + +.busket_modal_basic .order_list .order_list_li { + display: block; +} + +.busket_modal_basic .order_list .order_list_li .little_img { + float: none; +} + +.busket_modal_basic .order_list .order_list_li .name_and_code { + text-align: left; + float: none; +} + +.busket_modal_basic .order_list .order_list_li .name_and_code .name { + margin-bottom: 14px; +} + +.busket_modal_basic .order_list .order_list_li .price { + padding: 0; +} + +.busket_modal_basic .order_list .order_list_li .count_block_wrap { + display: inline-block; + vertical-align: top; + text-align: right; +} + +.busket_modal_basic .order_list .count_block { + display: block; + position: relative; + margin-bottom: 30px; +} + +.busket_modal_basic .order_list .count_block .count_number { + display: inline-block; + font-size: 22px; + padding: 3px 13px 3px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; + position: relative; + /*top: -2px;*/ + background-color: #fff; +} + +.busket_modal_basic .order_list .count_block .count_buttons { + position: relative; + /*top: 4px;*/ + right: 6px; + display: inline-block; + vertical-align: bottom; +} + +.busket_modal_basic .order_list .count_block .count_buttons .button_plus { + background-color: #898b8e; + color: white; + font-weight: bold; + border-bottom: 1px solid #707274; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + font-size: 15px; + line-height: 15px; + padding: 0 7px; + cursor: pointer; +} + +.busket_modal_basic .order_list .count_block .count_buttons .button_plus:hover { + background-color: #7c7e81; +} + +.busket_modal_basic .order_list .count_block .count_buttons .button_minus { + background-color: #898b8e; + color: white; + font-weight: bold; + line-height: 16px; + text-align: center; + border-top: 1px solid #A2A2A2; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; + cursor: pointer; +} + +.busket_modal_basic .order_list .count_block .count_buttons .button_minus:hover { + background-color: #7c7e81; +} + +.busket_modal_basic .order_list .busket_bottom_btn { + margin-top: 20px; + text-align: center; +} + +.busket_modal_basic .order_list .busket_bottom_btn a { + display: inline-block; + font-size: 13px; + margin-right: 97px; +} + +.busket_modal_basic .order_list .busket_bottom_btn button { + display: inline-block; + padding: 10px 20px; + color: white; + background-color: #6aa034; + border: none; + -webkit-border-radius: 2px; + border-radius: 2px; + font-size: 13px; + font-weight: normal; + -webkit-box-shadow: 0px 2px 0px #517a27; + box-shadow: 0px 2px 0px #517a27; +} + +.busket_modal_basic .order_list .busket_bottom_btn button:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.busket_modal_basic .order_list .busket_bottom_btn button:hover { + background-color: #5d8d2e; +} + +.busket_modal_basic .order_list .delete_item_btn { + display: inline-block; + vertical-align: top; + margin-top: 30px; + padding: 0 10px 0 0; + cursor: pointer; + color: #C6C7C9; + font-size: 20px; +} + +.busket_modal_basic .order_list .delete_item_btn:hover { + color: red; +} + +/*==================== BUSKET MODAL 1 */ + +.busket_modal_wrapper { + display: none; + color: #333333; + width: 100%; + background: rgba(0, 0, 0, 0.4); + position: fixed; + z-index: 4; + top: 0; + left: 0; +} + +.busket_modal_wrapper .m_a { + display: block; + text-align: center; + position: relative; + margin-top: 35px; +} + +.busket_modal_wrapper .busket_modal_01 { + display: inline-block; + background: white; + position: relative; + overflow: hidden; +} + +.busket_modal_wrapper .busket_modal_01 .order_list { + width: auto; + padding: 25px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list ul { + max-height: 350px; + overflow-y: overlay; + overflow-x: hidden; +} + +.busket_modal_wrapper .busket_modal_01 .order_list h3 { + text-transform: uppercase; + font-weight: normal; + font-size: 20px; + padding: 20px 0 15px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li { + display: block; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .little_img { + float: none; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .name_and_code { + text-align: left; + float: none; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .name_and_code .name { + margin-bottom: 14px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .price { + padding: 0; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .order_list_li .count_block_wrap { + display: inline-block; + vertical-align: top; + text-align: right; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block { + display: block; + position: relative; + margin-bottom: 30px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_number { + display: inline-block; + font-size: 22px; + padding: 3px 13px 3px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; + position: relative; + /*top: -2px;*/ + background-color: #fff; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons { + position: relative; + right: 16px; + display: inline-block; + vertical-align: bottom; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_plus { + background-color: #898b8e; + color: white; + font-weight: bold; + border-bottom: 1px solid #707274; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + font-size: 15px; + line-height: 15px; + padding: 0 7px; + cursor: pointer; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_plus:hover { + background-color: #7c7e81; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_minus { + background-color: #898b8e; + color: white; + font-weight: bold; + line-height: 16px; + text-align: center; + border-top: 1px solid #A2A2A2; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; + cursor: pointer; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .count_block .count_buttons .button_minus:hover { + background-color: #7c7e81; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn { + margin-top: 20px; + text-align: center; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn a { + display: inline-block; + font-size: 13px; + margin-right: 97px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn button { + display: inline-block; + padding: 10px 20px; + color: white; + background-color: #6aa034; + border: none; + -webkit-border-radius: 2px; + border-radius: 2px; + font-size: 13px; + font-weight: normal; + -webkit-box-shadow: 0px 2px 0px #517a27; + box-shadow: 0px 2px 0px #517a27; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn button:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .busket_bottom_btn button:hover { + background-color: #5d8d2e; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .delete_item_btn { + display: inline-block; + vertical-align: top; + margin-top: 30px; + padding: 0 10px 0 0; + cursor: pointer; + color: #C6C7C9; + font-size: 20px; +} + +.busket_modal_wrapper .busket_modal_01 .order_list .delete_item_btn:hover { + color: red; +} + +/*==================== BUSKET MODAL 2 */ + +.busket_modal_header { + display: inline-block; + position: absolute; + top: 91px; + right: 0px; + border: 1px solid #898b8e; + z-index: 2; + display: none; + background-color: #fff; +} + +.busket_modal_header .busket_modal_02 { + display: inline-block; + background: white; + position: relative; + overflow: hidden; +} + +.busket_modal_header .busket_modal_02 .order_list { + width: auto; + padding: 25px; +} + +.busket_modal_header .busket_modal_02 .order_list ul { + max-height: 350px; + overflow-y: overlay; + overflow-x: hidden; +} + +.busket_modal_header .busket_modal_02 .order_list h3 { + text-transform: uppercase; + font-weight: normal; + font-size: 20px; + padding: 20px 0 15px; +} + +.busket_modal_header .busket_modal_02 .order_list .order_list_li { + display: block; +} + +.busket_modal_header .busket_modal_02 .order_list .order_list_li .little_img { + float: none; +} + +.busket_modal_header .busket_modal_02 .order_list .order_list_li .name_and_code { + text-align: left; + float: none; +} + +.busket_modal_header .busket_modal_02 .order_list .order_list_li .name_and_code .name { + margin-bottom: 14px; +} + +.busket_modal_header .busket_modal_02 .order_list .order_list_li .price { + padding: 0; +} + +.busket_modal_header .busket_modal_02 .order_list .order_list_li .count_block_wrap { + display: inline-block; + vertical-align: top; + text-align: right; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block { + display: block; + position: relative; + margin-bottom: 30px; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block .count_number { + display: inline-block; + font-size: 22px; + padding: 3px 13px 3px; + border: 1px solid #C6C7C9; + -webkit-border-radius: 3px; + border-radius: 3px; + position: relative; + /*top: -2px;*/ + background-color: #fff; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons { + position: relative; + /*top: 4px;*/ + right: 6px; + display: inline-block; + vertical-align: bottom; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_plus { + background-color: #898b8e; + color: white; + font-weight: bold; + border-bottom: 1px solid #707274; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + font-size: 15px; + line-height: 15px; + padding: 0 7px; + cursor: pointer; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_plus:hover { + background-color: #7c7e81; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_minus { + background-color: #898b8e; + color: white; + font-weight: bold; + line-height: 16px; + text-align: center; + border-top: 1px solid #A2A2A2; + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; + cursor: pointer; +} + +.busket_modal_header .busket_modal_02 .order_list .count_block .count_buttons .button_minus:hover { + background-color: #7c7e81; +} + +.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn { + margin-top: 20px; + text-align: center; +} + +.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn a { + display: inline-block; + font-size: 13px; + margin-right: 130px; +} + +.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn button { + display: inline-block; + padding: 10px 20px; + color: white; + background-color: #6aa034; + border: none; + -webkit-border-radius: 2px; + border-radius: 2px; + font-size: 13px; + font-weight: normal; + -webkit-box-shadow: 0px 2px 0px #517a27; + box-shadow: 0px 2px 0px #517a27; +} + +.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn button:active { + position: relative; + -webkit-box-shadow: none; + box-shadow: none; + top: 2px; +} + +.busket_modal_header .busket_modal_02 .order_list .busket_bottom_btn button:hover { + background-color: #5d8d2e; +} + +.busket_modal_header .busket_modal_02 .order_list .delete_item_btn { + display: inline-block; + vertical-align: top; + margin-top: 30px; + padding: 0 10px 0 0; + cursor: pointer; + color: #C6C7C9; + font-size: 20px; +} + +.busket_modal_header .busket_modal_02 .order_list .delete_item_btn:hover { + color: red; +} + +/*=============================================== CATEGORY PAGE ================================================*/ + +.category_page_main_title { + margin-top: 0; + margin-bottom: 41px; + font-weight: bold; +} + +.category_wrap { + margin-bottom: 18px; +} + +.category_wrap .category_wrap_3_colum { + width: 300px; + display: inline-block; + vertical-align: top; + margin-right: 15px; +} + +.category_wrap .category_wrap_3_colum:last-of-type { + margin-right: 0px; +} + +.category_wrap .wrap { + margin-bottom: 16px; +} + +.category_wrap .wrap a { + text-decoration: none; +} + +.category_wrap .wrap .cat_li_cont { + border: 1px solid #C6C7C9; + -webkit-border-radius: 2px; + border-radius: 2px; + width: 298px; + height: 78px; + display: inline-block; + position: relative; +} + +.category_wrap .wrap .cat_li_cont img { + padding-top: 9px; + padding-left: 7px; + float: left; + padding-right: 20px; +} + +.category_wrap .wrap .cat_li_cont .desc { + font-size: 15px; + width: 150px; + color: #333333; + margin-left: 87px; + height: 78px; + display: table-cell; + vertical-align: middle; +} + +.category_wrap .wrap .cat_li_cont .arrow { + background-image: url("../images/category/green_arrows.png"); + width: 20px; + height: 10px; + background-repeat: no-repeat; + display: block; + position: absolute; + right: 15px; + top: 35px; + background-position: 0px 0px; +} + +.category_wrap .wrap .cat_li_sub_ul { + padding: 18px 2px 13px 18px; + font-size: 13px; + line-height: 20px; + border: 1px solid #C6C7C9; + width: 278px; + background-color: white; + position: relative; + top: -6px; + border-top: none; + display: none; +} + +/*=============================================== 404 PAGE ================================================*/ + +.wrap_for_404 { + min-height: 670px; +} + +.wrap_for_404 .main_title_404 { + font-size: 30px; + margin-top: 0; + margin-bottom: 30px; + font-weight: bold; +} + +.wrap_for_404 .main_img_404 { + float: left; + position: relative; + right: 10px; + padding: 27px 21px 10px 0px; +} + +.wrap_for_404 .block_404 .first { + font-size: 16px; + margin-top: 103px; + line-height: 20px; +} + +.wrap_for_404 .block_404 .second { + font-size: 13px; + margin-top: 60px; + line-height: 15px; + color: #898b8e; +} + +.wrap_for_404 .block_404 button { + padding: 7px 21px; + background-color: #6aa034; + margin-top: 47px; + margin-left: 151px; + border: none; + font-size: 13px; + color: white; + -webkit-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: 0 2px #517a27; + box-shadow: 0 2px #517a27; +} + +.wrap_for_404 .block_404 button:hover { + background-color: #5d8d2e; +} + +.wrap_for_404 .block_404 button:active { + position: relative; + top: 2px; + -webkit-box-shadow: none; + box-shadow: none; +} + +.test_flex_example { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +/*=============================================== ZAGLUSHKA PAGE ================================================*/ + +.zaglushka_logo_img { + width: 230px; + margin: 80px auto 27px; +} + +.zaglushka_main_img { + width: 880px; + position: relative; + left: -6px; +} + +.zaglushka_text { + text-align: center; + font-weight: bold; + padding-top: 44px; + position: relative; + right: 4px; + padding-bottom: 130px; +} + +.zaglushka_text h2 { + color: #6aa034; + font-size: 20px; + letter-spacing: 1px; +} + +.zaglushka_text p { + font-size: 16px; + padding-bottom: 22px; +} + +.zaglushka_text .zaglushka_separate_line { + height: 1px; + background: #C6C7C9; + width: 508px; + margin: 13px auto 17px; +} + +/*=============================================== VALIDATION ================================================*/ + +.reg_form label.error { + margin-left: 180px; + width: 265px; + text-align: left; + color: #D75C5C; +} + +.modal_wrapper_login .modal_window label.error { + margin-left: 127px; + width: 265px; + text-align: left; + color: #D75C5C; +} + +.consultation_modal .modal_window label.error { + margin-left: 127px; + width: 265px; + text-align: left; + color: #D75C5C; +} + +.forgot_password_form label.error { + margin-left: 141px; + width: 265px; + text-align: left; + color: #D75C5C; } \ No newline at end of file diff --git a/frontend/web/css/site.css b/frontend/web/css/site.css index 25df5fb..09a19f1 100755 --- a/frontend/web/css/site.css +++ b/frontend/web/css/site.css @@ -1,105 +1,105 @@ -html, -body { - height: 100%; -} - -.wrap { - min-height: 100%; - height: auto; - margin: 0 auto -60px; - padding: 0 0 60px; -} - -.wrap > .container { - padding: 70px 15px 20px; -} - -.footer { - height: 60px; - background-color: #f5f5f5; - border-top: 1px solid #ddd; - padding-top: 20px; -} - -.jumbotron { - text-align: center; - background-color: transparent; -} - -.jumbotron .btn { - font-size: 21px; - padding: 14px 24px; -} - -.not-set { - color: #c55; - font-style: italic; -} - -/* add sorting icons to gridview sort links */ -a.asc:after, a.desc:after { - position: relative; - top: 1px; - display: inline-block; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - line-height: 1; - padding-left: 5px; -} - -a.asc:after { - content: "\e151"; -} - -a.desc:after { - content: "\e152"; -} - -.sort-numerical a.asc:after { - content: "\e153"; -} - -.sort-numerical a.desc:after { - content: "\e154"; -} - -.sort-ordinal a.asc:after { - content: "\e155"; -} - -.sort-ordinal a.desc:after { - content: "\e156"; -} - -.grid-view td { - white-space: nowrap; -} - -.grid-view .filters input, -.grid-view .filters select { - min-width: 50px; -} - -.hint-block { - display: block; - margin-top: 5px; - color: #999; -} - -.error-summary { - color: #a94442; - background: #fdf7f7; - border-left: 3px solid #eed3d7; - padding: 10px 20px; - margin: 0 0 15px 0; -} - -/* align the logout "link" (button in form) of the navbar */ -.nav > li > form { - padding: 8px; -} - -.nav > li > form > button:hover { - text-decoration: none; -} +html, +body { + height: 100%; +} + +.wrap { + min-height: 100%; + height: auto; + margin: 0 auto -60px; + padding: 0 0 60px; +} + +.wrap > .container { + padding: 70px 15px 20px; +} + +.footer { + height: 60px; + background-color: #f5f5f5; + border-top: 1px solid #ddd; + padding-top: 20px; +} + +.jumbotron { + text-align: center; + background-color: transparent; +} + +.jumbotron .btn { + font-size: 21px; + padding: 14px 24px; +} + +.not-set { + color: #c55; + font-style: italic; +} + +/* add sorting icons to gridview sort links */ +a.asc:after, a.desc:after { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + line-height: 1; + padding-left: 5px; +} + +a.asc:after { + content: "\e151"; +} + +a.desc:after { + content: "\e152"; +} + +.sort-numerical a.asc:after { + content: "\e153"; +} + +.sort-numerical a.desc:after { + content: "\e154"; +} + +.sort-ordinal a.asc:after { + content: "\e155"; +} + +.sort-ordinal a.desc:after { + content: "\e156"; +} + +.grid-view td { + white-space: nowrap; +} + +.grid-view .filters input, +.grid-view .filters select { + min-width: 50px; +} + +.hint-block { + display: block; + margin-top: 5px; + color: #999; +} + +.error-summary { + color: #a94442; + background: #fdf7f7; + border-left: 3px solid #eed3d7; + padding: 10px 20px; + margin: 0 0 15px 0; +} + +/* align the logout "link" (button in form) of the navbar */ +.nav > li > form { + padding: 8px; +} + +.nav > li > form > button:hover { + text-decoration: none; +} diff --git a/frontend/web/js/basket.js b/frontend/web/js/basket.js index 1fb7e4b..173662a 100755 --- a/frontend/web/js/basket.js +++ b/frontend/web/js/basket.js @@ -1,181 +1,181 @@ -$(document).ready(function(){ - - var result_block = $('.basket_result'); - var one_item_block = $('.busket_block'); - - function countItems(){ - var length = $('.busket_modal_01').find('.order_list_li').length; - if(length >= 1){ - $('.head_basket_count').html(length); - $('.all_count').html(length); - } else { - $('.head_basket_count').html(''); - $('.all_count').html(''); - } - } - - - - function changeAjaxPrice(id, num){ - $.post( "/orders/buy-items", {id: id, num:num}, function( data ) { - }); - } - - function countPrise(block){ - var totalBlock = block.parents('.order_list'); - var total_price = 0; - totalBlock.find('.price_val').each(function(){ - total_price += +$(this).html(); - }); - $('.all_price_span').html(total_price); - } - - - $('.item').on('click', '.basket_add_but', function(e){ - var id = $(this).data('id'); - $.post( "/orders/buy-items", {id: id, num:1}, function( data ) { - $('.basket_result').each(function(){ - $(this).html(data); - countItems(); - }); - - }); - - }); - - $('.main_cont_wrap').on('click', '.cart_btn', function(e){ - var id = $(this).data('id'); - var num = one_item_block.find('.buy_one_item').val(); - $.post( "/orders/buy-items", {id: id, num:num}, function( data ) { - $('.basket_result').each(function(){ - $(this).html(data) - }); - }); - - }); - - result_block.on('click', '.delete_item_btn', function(){ - var block = $(this).parents('.order_list_li'); - - - var id = block.data('id'); - - $.post( "/orders/delete", {id: id}, function( data ) { - }); - var forCount = block.parents('ul'); - $('.order_list_li[data-id='+id+']').each(function(){ - var block = $(this); - block.remove(); - }); - countPrise(forCount); - countItems(); - - - - }); - - result_block.on('click', '.button_minus', function(){ - var block = $(this).parents('.order_list_li'); - var price_block = block.find('.price_val'); - var input = block.find('input'); - var number = input.val(); - var id = block.data('id'); - - if(number > 1){ - number--; - input.val(number); - var price = price_block.data('price'); - var new_price = number * +price; - price_block.html(new_price); - changeAjaxPrice(id, number); - synchronizationPriceData(id, number); - } - - countPrise(block); - }); - - - result_block.on('click', '.button_plus', function(){ - var block = $(this).parents('.order_list_li'); - var price_block = block.find('.price_val'); - var input = block.find('input'); - var number = input.val(); - var id = block.data('id'); - - number++; - input.val(number); - var price = price_block.data('price'); - var new_price = number * +price; - price_block.html(new_price); - - changeAjaxPrice(id, number); - synchronizationPriceData(id, number); - countPrise(block); - }); - - result_block.on('change', '.buy_one_item', function(){ - var block = $(this).parents('.order_list_li'); - var num = $(this).val(); - var price_block = block.find('.price_val'); - var price = price_block.data('price'); - var id = block.data('id'); - - var new_price = num * +price; - price_block.html(new_price); - changeAjaxPrice(id, num); - synchronizationPriceData(id, num); - countPrise(block); - }); - - function synchronizationPriceData(id, number){ - $('.order_list_li[data-id='+id+']').each(function(){ - var block = $(this); - block.find('input').val(number); - var price_block = block.find('.price_val'); - var price = price_block.data('price'); - var new_price = number * +price; - price_block.html(new_price); - }); - } - - - - one_item_block.on('click', '.button_minus', function(){ - var input = one_item_block.find('.buy_one_item'); - var number = input.val(); - if(number > 1){ - number--; - input.val(number); - } - }); - - - one_item_block.on('click', '.button_plus', function(){ - var input = one_item_block.find('.buy_one_item'); - var number = input.val(); - number++; - input.val(number); - }); - - /****************************compare and bookmarks********************************************/ - - function addItemToCompare(id){ - $.post( "/orders/compare", {id: id}, function( data ) { - }); - } - - $('#add_to_compare').click(function (event) { - event.preventDefault(); - var id = $('#one_item_block').data('id'); - addItemToCompare(id); - }); - - $('#add_to_bookmarks').click(function(event){ - event.preventDefault(); - var id = $('#one_item_block').data('id'); - $.post( "/orders/bookmarks", {id: id}, function( data ) { - }); - }); - - +$(document).ready(function(){ + + var result_block = $('.basket_result'); + var one_item_block = $('.busket_block'); + + function countItems(){ + var length = $('.busket_modal_01').find('.order_list_li').length; + if(length >= 1){ + $('.head_basket_count').html(length); + $('.all_count').html(length); + } else { + $('.head_basket_count').html(''); + $('.all_count').html(''); + } + } + + + + function changeAjaxPrice(id, num){ + $.post( "/orders/buy-items", {id: id, num:num}, function( data ) { + }); + } + + function countPrise(block){ + var totalBlock = block.parents('.order_list'); + var total_price = 0; + totalBlock.find('.price_val').each(function(){ + total_price += +$(this).html(); + }); + $('.all_price_span').html(total_price); + } + + + $('.item').on('click', '.basket_add_but', function(e){ + var id = $(this).data('id'); + $.post( "/orders/buy-items", {id: id, num:1}, function( data ) { + $('.basket_result').each(function(){ + $(this).html(data); + countItems(); + }); + + }); + + }); + + $('.main_cont_wrap').on('click', '.cart_btn', function(e){ + var id = $(this).data('id'); + var num = one_item_block.find('.buy_one_item').val(); + $.post( "/orders/buy-items", {id: id, num:num}, function( data ) { + $('.basket_result').each(function(){ + $(this).html(data) + }); + }); + + }); + + result_block.on('click', '.delete_item_btn', function(){ + var block = $(this).parents('.order_list_li'); + + + var id = block.data('id'); + + $.post( "/orders/delete", {id: id}, function( data ) { + }); + var forCount = block.parents('ul'); + $('.order_list_li[data-id='+id+']').each(function(){ + var block = $(this); + block.remove(); + }); + countPrise(forCount); + countItems(); + + + + }); + + result_block.on('click', '.button_minus', function(){ + var block = $(this).parents('.order_list_li'); + var price_block = block.find('.price_val'); + var input = block.find('input'); + var number = input.val(); + var id = block.data('id'); + + if(number > 1){ + number--; + input.val(number); + var price = price_block.data('price'); + var new_price = number * +price; + price_block.html(new_price); + changeAjaxPrice(id, number); + synchronizationPriceData(id, number); + } + + countPrise(block); + }); + + + result_block.on('click', '.button_plus', function(){ + var block = $(this).parents('.order_list_li'); + var price_block = block.find('.price_val'); + var input = block.find('input'); + var number = input.val(); + var id = block.data('id'); + + number++; + input.val(number); + var price = price_block.data('price'); + var new_price = number * +price; + price_block.html(new_price); + + changeAjaxPrice(id, number); + synchronizationPriceData(id, number); + countPrise(block); + }); + + result_block.on('change', '.buy_one_item', function(){ + var block = $(this).parents('.order_list_li'); + var num = $(this).val(); + var price_block = block.find('.price_val'); + var price = price_block.data('price'); + var id = block.data('id'); + + var new_price = num * +price; + price_block.html(new_price); + changeAjaxPrice(id, num); + synchronizationPriceData(id, num); + countPrise(block); + }); + + function synchronizationPriceData(id, number){ + $('.order_list_li[data-id='+id+']').each(function(){ + var block = $(this); + block.find('input').val(number); + var price_block = block.find('.price_val'); + var price = price_block.data('price'); + var new_price = number * +price; + price_block.html(new_price); + }); + } + + + + one_item_block.on('click', '.button_minus', function(){ + var input = one_item_block.find('.buy_one_item'); + var number = input.val(); + if(number > 1){ + number--; + input.val(number); + } + }); + + + one_item_block.on('click', '.button_plus', function(){ + var input = one_item_block.find('.buy_one_item'); + var number = input.val(); + number++; + input.val(number); + }); + + /****************************compare and bookmarks********************************************/ + + function addItemToCompare(id){ + $.post( "/orders/compare", {id: id}, function( data ) { + }); + } + + $('#add_to_compare').click(function (event) { + event.preventDefault(); + var id = $('#one_item_block').data('id'); + addItemToCompare(id); + }); + + $('#add_to_bookmarks').click(function(event){ + event.preventDefault(); + var id = $('#one_item_block').data('id'); + $.post( "/orders/bookmarks", {id: id}, function( data ) { + }); + }); + + }); \ No newline at end of file diff --git a/frontend/web/js/jquery.maskedinput.min.js b/frontend/web/js/jquery.maskedinput.min.js index d4dfd01..e4112e3 100755 --- a/frontend/web/js/jquery.maskedinput.min.js +++ b/frontend/web/js/jquery.maskedinput.min.js @@ -1,7 +1,7 @@ -/* - jQuery Masked Input Plugin - Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) - Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) - Version: 1.4.1 -*/ +/* + jQuery Masked Input Plugin + Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) + Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) + Version: 1.4.1 +*/ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b,c=navigator.userAgent,d=/iphone/i.test(c),e=/chrome/i.test(c),f=/android/i.test(c);a.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof a?(b="number"==typeof b?b:a,this.each(function(){this.setSelectionRange?this.setSelectionRange(a,b):this.createTextRange&&(c=this.createTextRange(),c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})):(this[0].setSelectionRange?(a=this[0].selectionStart,b=this[0].selectionEnd):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),a=0-c.duplicate().moveStart("character",-1e5),b=a+c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var h,i,j,k,l,m,n,o;if(!c&&this.length>0){h=a(this[0]);var p=h.data(a.mask.dataName);return p?p():void 0}return g=a.extend({autoclear:a.mask.autoclear,placeholder:a.mask.placeholder,completed:null},g),i=a.mask.definitions,j=[],k=n=c.length,l=null,a.each(c.split(""),function(a,b){"?"==b?(n--,k=a):i[b]?(j.push(new RegExp(i[b])),null===l&&(l=j.length-1),k>a&&(m=j.length-1)):j.push(null)}),this.trigger("unmask").each(function(){function h(){if(g.completed){for(var a=l;m>=a;a++)if(j[a]&&C[a]===p(a))return;g.completed.call(B)}}function p(a){return g.placeholder.charAt(a=0&&!j[a];);return a}function s(a,b){var c,d;if(!(0>a)){for(c=a,d=q(b);n>c;c++)if(j[c]){if(!(n>d&&j[c].test(C[d])))break;C[c]=C[d],C[d]=p(d),d=q(d)}z(),B.caret(Math.max(l,a))}}function t(a){var b,c,d,e;for(b=a,c=p(a);n>b;b++)if(j[b]){if(d=q(b),e=C[b],C[b]=c,!(n>d&&j[d].test(e)))break;c=e}}function u(){var a=B.val(),b=B.caret();if(o&&o.length&&o.length>a.length){for(A(!0);b.begin>0&&!j[b.begin-1];)b.begin--;if(0===b.begin)for(;b.beging)&&g&&13!==g){if(i.end-i.begin!==0&&(y(i.begin,i.end),s(i.begin,i.end-1)),c=q(i.begin-1),n>c&&(d=String.fromCharCode(g),j[c].test(d))){if(t(c),C[c]=d,z(),e=q(c),f){var k=function(){a.proxy(a.fn.caret,B,e)()};setTimeout(k,0)}else B.caret(e);i.begin<=m&&h()}b.preventDefault()}}}function y(a,b){var c;for(c=a;b>c&&n>c;c++)j[c]&&(C[c]=p(c))}function z(){B.val(C.join(""))}function A(a){var b,c,d,e=B.val(),f=-1;for(b=0,d=0;n>b;b++)if(j[b]){for(C[b]=p(b);d++e.length){y(b+1,n);break}}else C[b]===e.charAt(d)&&d++,k>b&&(f=b);return a?z():k>f+1?g.autoclear||C.join("")===D?(B.val()&&B.val(""),y(0,n)):z():(z(),B.val(B.val().substring(0,f+1))),k?b:l}var B=a(this),C=a.map(c.split(""),function(a,b){return"?"!=a?i[a]?p(b):a:void 0}),D=C.join(""),E=B.val();B.data(a.mask.dataName,function(){return a.map(C,function(a,b){return j[b]&&a!=p(b)?a:null}).join("")}),B.one("unmask",function(){B.off(".mask").removeData(a.mask.dataName)}).on("focus.mask",function(){if(!B.prop("readonly")){clearTimeout(b);var a;E=B.val(),a=A(),b=setTimeout(function(){B.get(0)===document.activeElement&&(z(),a==c.replace("?","").length?B.caret(0,a):B.caret(a))},10)}}).on("blur.mask",v).on("keydown.mask",w).on("keypress.mask",x).on("input.mask paste.mask",function(){B.prop("readonly")||setTimeout(function(){var a=A(!0);B.caret(a),h()},0)}),e&&f&&B.off("input.mask").on("input.mask",u),A()})}})}); \ No newline at end of file diff --git a/frontend/web/robots.txt b/frontend/web/robots.txt index 6f27bb6..8093c87 100755 --- a/frontend/web/robots.txt +++ b/frontend/web/robots.txt @@ -1,2 +1,2 @@ -User-agent: * +User-agent: * Disallow: \ No newline at end of file -- libgit2 0.21.4