Commit c011293f authored by tibezh's avatar tibezh
Browse files

Fixed coding standards.

parent 444a2427
......@@ -5,10 +5,8 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,700i&subset=cyrillic");
html {
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,700i&subset=cyrillic"); html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
......@@ -156,7 +154,6 @@ html input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
}
......@@ -188,7 +185,6 @@ input[type="number"]::-webkit-outer-spin-button {
input[type="search"] {
box-sizing: content-box;
-webkit-appearance: textfield;
}
......@@ -253,7 +249,6 @@ th {
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
......@@ -313,7 +308,6 @@ th {
font-weight: normal;
font-style: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
......@@ -1382,7 +1376,6 @@ th {
html {
font-size: 10px;
-webkit-tap-highlight-color: transparent;
}
......@@ -3061,7 +3054,6 @@ table th[class*="col-"] {
width: 100%;
margin-bottom: 15px;
border: 1px solid #ddd;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
.table-responsive > .table {
......@@ -3250,20 +3242,17 @@ input[type="search"] {
.input-group-sm > input[type="time"].form-control,
.input-group-sm > input[type="time"].input-group-addon,
.input-group-sm > .input-group-btn > input[type="time"].btn,
.input-group-sm
input[type="time"],
.input-group-sm input[type="time"],
input[type="datetime-local"].input-sm,
.input-group-sm > input[type="datetime-local"].form-control,
.input-group-sm > input[type="datetime-local"].input-group-addon,
.input-group-sm > .input-group-btn > input[type="datetime-local"].btn,
.input-group-sm
input[type="datetime-local"],
.input-group-sm input[type="datetime-local"],
input[type="month"].input-sm,
.input-group-sm > input[type="month"].form-control,
.input-group-sm > input[type="month"].input-group-addon,
.input-group-sm > .input-group-btn > input[type="month"].btn,
.input-group-sm
input[type="month"] {
.input-group-sm input[type="month"] {
line-height: 30px;
}
input[type="date"].input-lg,
......@@ -3275,20 +3264,17 @@ input[type="search"] {
.input-group-lg > input[type="time"].form-control,
.input-group-lg > input[type="time"].input-group-addon,
.input-group-lg > .input-group-btn > input[type="time"].btn,
.input-group-lg
input[type="time"],
.input-group-lg input[type="time"],
input[type="datetime-local"].input-lg,
.input-group-lg > input[type="datetime-local"].form-control,
.input-group-lg > input[type="datetime-local"].input-group-addon,
.input-group-lg > .input-group-btn > input[type="datetime-local"].btn,
.input-group-lg
input[type="datetime-local"],
.input-group-lg input[type="datetime-local"],
input[type="month"].input-lg,
.input-group-lg > input[type="month"].form-control,
.input-group-lg > input[type="month"].input-group-addon,
.input-group-lg > .input-group-btn > input[type="month"].btn,
.input-group-lg
input[type="month"] {
.input-group-lg input[type="month"] {
line-height: 46px;
}
}
......@@ -3350,24 +3336,21 @@ input[type="radio"].disabled,
fieldset[disabled] input[type="radio"],
input[type="checkbox"][disabled],
input[type="checkbox"].disabled,
fieldset[disabled]
input[type="checkbox"] {
fieldset[disabled] input[type="checkbox"] {
cursor: not-allowed;
}
.radio-inline.disabled,
fieldset[disabled] .radio-inline,
.checkbox-inline.disabled,
fieldset[disabled]
.checkbox-inline {
fieldset[disabled] .checkbox-inline {
cursor: not-allowed;
}
.radio.disabled label,
fieldset[disabled] .radio label,
.checkbox.disabled label,
fieldset[disabled]
.checkbox label {
fieldset[disabled] .checkbox label {
cursor: not-allowed;
}
......@@ -3789,7 +3772,6 @@ select[multiple].input-lg,
font-size: 14px;
font-weight: normal;
line-height: 1.42857;
touch-action: manipulation;
}
......@@ -7117,7 +7099,6 @@ button.close {
cursor: pointer;
border: 0;
background: transparent;
-webkit-appearance: none;
}
......@@ -7306,7 +7287,6 @@ button.close {
font-weight: normal;
font-style: normal;
line-height: 1.42857;
line-break: auto;
}
......@@ -7446,7 +7426,6 @@ button.close {
font-weight: normal;
font-style: normal;
line-height: 1.42857;
line-break: auto;
}
......@@ -7598,7 +7577,6 @@ button.close {
-moz-transition: -moz-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
......@@ -8375,7 +8353,6 @@ table .radio.form-no-label {
.select-wrapper select {
padding-right: 2em;
line-height: 1;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
......@@ -8404,7 +8381,6 @@ table .radio.form-no-label {
display: inline-block;
content: "\e114";
font-family: "Glyphicons Halflings";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
......
......@@ -5,7 +5,7 @@ global-styling:
js:
js/estore.header.js: {}
js/estore.anchor_scroll.js: {}
js/sshop.stacktable.js: {}
js/estore.stacktable.js: {}
dependencies:
- core/jquery
- core/drupal
......
......@@ -23,7 +23,7 @@ function estore_preprocess_breadcrumb(array &$vars) {
}
}
/*
/**
* Implements hook_theme_suggestions_HOOK_alter() for taxonomy-term.html.twig.
*/
function estore_theme_suggestions_taxonomy_term_alter(array &$suggestions, array $vars) {
......@@ -119,12 +119,12 @@ function estore_preprocess_page(&$vars) {
}
/**
* Implements hook_preprocess_HOOK() for commerce-cart-block.html.twig
* Implements hook_preprocess_HOOK() for commerce-cart-block.html.twig.
*/
function estore_preprocess_commerce_cart_block(&$vars) {
// Not sure if this right way.
// @todo: review the code.
$vars['total'] = [
$vars['total'] = [
'currency_code' => 'USD',
'number' => 0,
];
......
......@@ -3,10 +3,10 @@ description: 'Contains page and panel variant for the homepage.'
type: module
core: 8.x
dependencies:
- block
- block_class
- block_content
- page_manager
- panels
- system
- views
- drupal:block
- drupal:block_class
- drupal:block_content
- drupal:page_manager
- drupal:panels
- drupal:system
- drupal:views
......@@ -9,7 +9,7 @@
Drupal.behaviors.estoreHeaderCategoryMenu = {
attach: function (context) {
var $categoryMenu = $('header.navbar .category-menu', context);
$('.block-title', $categoryMenu).on('click', function() {
$('.block-title', $categoryMenu).on('click', function () {
$('ul.menu', $categoryMenu).slideToggle('slow');
$(this).toggleClass('active');
return false;
......@@ -21,7 +21,7 @@
Drupal.behaviors.estoreHeaderSearchBlock = {
attach: function (context) {
var $searchBlock = $('header.navbar .block-search-navigation', context);
$('.search-icon', $searchBlock).on('click', function() {
$('.search-icon', $searchBlock).on('click', function () {
$('.search-contents', $searchBlock).toggle();
$(this).toggleClass('active');
return false;
......
......@@ -17,4 +17,3 @@
};
})(window.jQuery, window.Drupal);
git
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment