expo-33 clear button done

remotes/origin/1203
pavel 11 years ago
parent d6f457d0a7
commit 8ae67e3c6a
  1. 2
      templates/client/includes/catalog_search_main.html
  2. 5
      templates/client/popups/place.html
  3. 7
      templates/client/popups/theme.html
  4. 559
      templates/client/static_client/css/main.css
  5. 4
      templates/client/static_client/js/_modules/block.search.js
  6. 2
      templates/client/static_client/js_min/_modules/block.search.min.js

@ -35,7 +35,7 @@
</div> </div>
</div> </div>
<div class="sf-field-wrap"> <div class="sf-field-wrap">
<button type="submit"><span>{% trans 'найти' %}</span></button> <button type="submit" class="search_submit"><span>{% trans 'найти' %}</span></button>
</div> </div>
</div> </div>
<div class="search-line sl-options"> <div class="search-line sl-options">

@ -65,7 +65,6 @@
</div> </div>
<div class="q-sel"> <div class="q-sel">
<a class="clear" href="#">{% trans 'Сбросить выбранное' %}</a>
<div class="q-sel-title">{% trans 'Быстрый выбор' %}:</div> <div class="q-sel-title">{% trans 'Быстрый выбор' %}:</div>
<ul> <ul>
<li><a href="#" data-name="ci" data-id="-2960561">{% trans 'Москва' %}</a></li> <li><a href="#" data-name="ci" data-id="-2960561">{% trans 'Москва' %}</a></li>
@ -85,7 +84,9 @@
</div> </div>
</div> </div>
<div class="pwf-buttons-line"> <div class="pwf-buttons-line">
<button class="icon-check modal-approve" type="submit">{% if submitText %}{{ submitText }}{% else %}{% trans 'Искать' %}{% endif %}</button><a class="{% if filter %}{{ filter }}{% else %}search-{% endif %}modal-open specify-link" href="#{{ filter }}pwSubj">{% trans 'Уточнить тему' %}</a> <button class="icon-check modal-approve" type="submit">{% if submitText %}{{ submitText }}{% else %}{% trans 'Искать' %}{% endif %}</button>
<button class="gray modal-clear" type="submit">{% trans 'Очистить' %}</button>
<a class="{% if filter %}{{ filter }}{% else %}search-{% endif %}modal-open specify-link" href="#{{ filter }}pwSubj">{% trans 'Уточнить тему' %}</a>
{% if hasDate %}<a class=" search-modal-open specify-link" href="#pwPeriod">{% trans 'Уточнить дату' %}</a>{% endif %} {% if hasDate %}<a class=" search-modal-open specify-link" href="#pwPeriod">{% trans 'Уточнить дату' %}</a>{% endif %}
</div> </div>
</div> </div>

@ -68,15 +68,14 @@
</ul> </ul>
</div> </div>
<div class="q-sel">
<a class="clear" href="#">{% trans 'Сбросить выбранное' %}</a>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="pwf-buttons-line"> <div class="pwf-buttons-line">
<button class="icon-check modal-approve" type="submit">{% if submitText %}{{ submitText }}{% else %}{% trans 'Искать' %}{% endif %}</button><a class="{% if filter %}{{ filter }}{% else %}search-{% endif %}modal-open specify-link" href="#{{ filter }}pwPlace">{% trans 'Уточнить географию' %}</a> <button class="icon-check modal-approve" type="submit">{% if submitText %}{{ submitText }}{% else %}{% trans 'Искать' %}{% endif %}</button>
<button class="gray modal-clear" type="submit">{% trans 'Очистить' %}</button>
<a class="{% if filter %}{{ filter }}{% else %}search-{% endif %}modal-open specify-link" href="#{{ filter }}pwPlace">{% trans 'Уточнить географию' %}</a>
{% if hasDate %}<a class=" search-modal-open specify-link" href="#pwPeriod">{% trans 'Уточнить дату' %}</a>{% endif %} {% if hasDate %}<a class=" search-modal-open specify-link" href="#pwPeriod">{% trans 'Уточнить дату' %}</a>{% endif %}
</div> </div>
</div> </div>

@ -1902,298 +1902,305 @@ button.icon-save:before {
# форма поиска # форма поиска
\**************************/ \**************************/
.in-search-form { .in-search-form {
position: relative; position: relative;
/*display: none;*/ /*display: none;*/
font-family: 'dindisplay_pro', Arial, sans-serif; font-family: 'dindisplay_pro', Arial, sans-serif;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 18px; line-height: 18px;
color: #fff; color: #fff;
background: #ff6600 url(../img/search-bg.jpg) 100% 100% no-repeat; background: #ff6600 url(../img/search-bg.jpg) 100% 100% no-repeat;
height: 150px; height: 150px;
margin: 0 0 15px -40px; margin: 0 0 15px -40px;
padding: 30px 0 5px 40px; padding: 30px 0 5px 40px;
z-index: 3; z-index: 3;
border-radius: 4px; border-radius: 4px;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
.modals .popup-window{
display: none;
}
.search-form aside .s-title {
font-size: 25px;
line-height: 25px;
text-transform: uppercase;
white-space: nowrap;
margin-right: -20px;
}
.in-search-form .s-title {
font-size: 25px;
line-height: 25px;
text-transform: uppercase;
margin-bottom: 15px;
}
.search-form .mcl { .modals .popup-window{
padding-right: 50px; display: none;
} }
.search-form-wrap { .search-form aside .s-title {
display: table; font-size: 25px;
width: 100%; line-height: 25px;
border-collapse: collapse; text-transform: uppercase;
} white-space: nowrap;
margin-right: -20px;
}
.search-form-wrap .search-line { .in-search-form .s-title {
display: table-row; font-size: 25px;
} line-height: 25px;
text-transform: uppercase;
margin-bottom: 15px;
}
.search-form-wrap .search-line .sf-field-wrap { .search-form .mcl {
display: table-cell; padding-right: 50px;
vertical-align: middle; }
padding: 0 10px 8px 0;
color: #ffd9bf;
line-height: 15px;
}
.search-form-wrap .search-line .sf-field-wrap:first-child { .search-form-wrap {
width: 48%; display: table;
} width: 100%;
border-collapse: collapse;
}
.search-form-wrap .search-line .sf-field-wrap + .sf-field-wrap { .search-form-wrap .search-line {
width: 32%; display: table-row;
} }
.search-form-wrap .search-line .sf-field-wrap + .sf-field-wrap + .sf-field-wrap { .search-form-wrap .search-line .sf-field-wrap {
width: 20%; display: table-cell;
} vertical-align: middle;
padding: 0 10px 8px 0;
color: #ffd9bf;
line-height: 15px;
}
.search-line.sl-options a { .search-form-wrap .search-line .sf-field-wrap:first-child {
display: inline-block; width: 48%;
color: #fff; }
text-decoration: none;
border-bottom: 1px dashed;
line-height: 13px;
}
.search-line.sl-options a:hover { .search-form-wrap .search-line .sf-field-wrap + .sf-field-wrap {
border-bottom: none; width: 32%;
} }
.search-line.sl-options a.sf-clear { .search-form-wrap .search-line .sf-field-wrap + .sf-field-wrap + .sf-field-wrap {
position: relative; width: 20%;
display: inline-block; }
vertical-align: middle;
border-bottom: none;
width: 16px;
height: 0;
padding-top: 24px;
margin: -5px 0 -5px 2px;
overflow: hidden;
}
.search-line.sl-options a.sf-clear:before { .search-line.sl-options a {
content: ''; display: inline-block;
display: block; color: #fff;
width: 6px; text-decoration: none;
height: 7px; border-bottom: 1px dashed;
background: url(../img/sprites.png) -135px -25px no-repeat; line-height: 13px;
position: absolute; }
left: 50%;
top: 50%;
margin: -3px 0 0 -3px;
}
.sf-field { .search-line.sl-options a:hover {
position: relative; border-bottom: none;
display: table; }
width: 100%;
height: 40px;
border-collapse: collapse;
background: #fff;
color: #aaa;
box-shadow: inset 0 1px 0 #d9d9d9, 0 -1px 0 rgba(0, 0, 0, .2);
z-index: 1;
}
.sf-field-wrap:first-child .sf-field { .search-line.sl-options a.sf-clear {
border-radius: 4px 0 0 4px; position: relative;
} display: inline-block;
vertical-align: middle;
border-bottom: none;
width: 16px;
height: 0;
padding-top: 24px;
margin: -5px 0 -5px 2px;
overflow: hidden;
}
.sf-field > * { .search-line.sl-options a.sf-clear:before {
display: table-cell; content: '';
vertical-align: middle; display: block;
} width: 6px;
height: 7px;
background: url(../img/sprites.png) -135px -25px no-repeat;
position: absolute;
left: 50%;
top: 50%;
margin: -3px 0 0 -3px;
}
.sf-field label { .sf-field {
font-size: 16px; position: relative;
line-height: 20px; display: table;
font-weight: normal; width: 100%;
padding: 10px 5px 10px 20px; height: 40px;
white-space: nowrap; border-collapse: collapse;
} background: #fff;
color: #aaa;
box-shadow: inset 0 1px 0 #d9d9d9, 0 -1px 0 rgba(0, 0, 0, .2);
z-index: 1;
}
.sf-field .input-text { .sf-field-wrap:first-child .sf-field {
width: 100%; border-radius: 4px 0 0 4px;
height: 100%; }
}
.sf-field .input-text input[type="text"] { .sf-field > * {
display: block; display: table-cell;
width: 100%; vertical-align: middle;
height: 100%; }
background: none;
border: none;
outline: none;
padding: 10px 10px 10px 0;
font-family: 'dindisplay_pro', Arial, sans-serif;
font-weight: normal;
font-size: 16px;
line-height: 20px;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.search-form button, .sf-field label {
.in-search-form button{ font-size: 16px;
display: inline-block; line-height: 20px;
vertical-align: top; font-weight: normal;
height: 40px; padding: 10px 5px 10px 20px;
border: 1px solid #fff; white-space: nowrap;
/*background: none;*/ }
outline: none;
color: #fff;
font-family: 'dindisplay_pro', Arial, sans-serif;
font-weight: bold;
font-size: 15px;
line-height: 41px;
text-transform: uppercase;
padding: 0 25px;
border-radius: 0 4px 4px 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(0, 0, 0, .2);
-webkit-filter: none;
filter: none;
}
.pwf-buttons-line button{
border-radius: 4px;
}
.search-form button:before, .sf-field .input-text {
.in-search-form button:before { width: 100%;
content: ' '; height: 100%;
display: inline-block; }
vertical-align: middle;
width: 15px;
height: 14px;
background: url(../img/sprites.png) -98px 0 no-repeat;
margin: -2px 5px 0 -1px;
}
.search-form button:hover, .sf-field .input-text input[type="text"] {
.in-search-form button:hover { display: block;
position: relative; width: 100%;
top: -1px; height: 100%;
/*background: none;*/ background: none;
} border: none;
outline: none;
padding: 10px 10px 10px 0;
font-family: 'dindisplay_pro', Arial, sans-serif;
font-weight: normal;
font-size: 16px;
line-height: 20px;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.sf-autocomplete { .search-form button.search_submit,
position: relative; .search-form button.modal-approve,
z-index: 3048; .in-search-form button.search_submit,
height: 40px; .in-search-form button.modal-approve{
display: none; display: inline-block;
} vertical-align: top;
.sf-autocomplete.show { height: 40px;
display: block; border: 1px solid #fff;
} /*background: none;*/
outline: none;
color: #fff;
font-family: 'dindisplay_pro', Arial, sans-serif;
font-weight: bold;
font-size: 15px;
line-height: 41px;
text-transform: uppercase;
padding: 0 25px;
border-radius: 0 4px 4px 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(0, 0, 0, .2);
-webkit-filter: none;
filter: none;
}
button.modal-approve{
border-radius: 4px !important;
}
.sf-autocomplete .sfa-wrap { .search-form button.search_submit:before,
position: absolute; .search-form button.modal-approve:before,
left: 0; .in-search-form button.search_submit:before ,
width: 100%; .in-search-form button.modal-approve:before {
top: 0; content: ' ';
background: #fff; display: inline-block;
padding: 20px 20px 20px 20px; vertical-align: middle;
overflow: hidden; width: 15px;
-moz-box-sizing: border-box; height: 14px;
box-sizing: border-box; background: url(../img/sprites.png) -98px 0 no-repeat;
border-radius: 4px; margin: -2px 5px 0 -1px;
box-shadow: 0 0 0 3px rgba(0, 0, 0, .2); }
visibility: hidden;
background: #ffffff; /* Old browsers */ /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(10%,#ffffff), color-stop(100%,#efefef)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 10%,#efefef 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 10%,#efefef 100%); /* Opera 11.10+ */ /* IE10+ */
background: -webkit-linear-gradient(top, #ffffff 10%, #efefef 100%);
background: -o-linear-gradient(top, #ffffff 10%, #efefef 100%);
background: linear-gradient(to bottom, #ffffff 10%,#efefef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */
} .search-form button:hover,
.in-search-form button:hover {
position: relative;
top: -1px;
/*background: none;*/
}
.sf-autocomplete .sfa-wrap { .sf-autocomplete {
border-radius: 4px 0 4px 4px; position: relative;
} z-index: 3048;
height: 40px;
display: none;
}
.sf-autocomplete.show {
display: block;
}
.sf-autocomplete .sfa-wrap.show { .sf-autocomplete .sfa-wrap {
visibility: visible; position: absolute;
} left: 0;
width: 100%;
top: 0;
background: #fff;
padding: 20px 20px 20px 20px;
overflow: hidden;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-radius: 4px;
box-shadow: 0 0 0 3px rgba(0, 0, 0, .2);
visibility: hidden;
background: #ffffff; /* Old browsers */ /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(10%,#ffffff), color-stop(100%,#efefef)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 10%,#efefef 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 10%,#efefef 100%); /* Opera 11.10+ */ /* IE10+ */
background: -webkit-linear-gradient(top, #ffffff 10%, #efefef 100%);
background: -o-linear-gradient(top, #ffffff 10%, #efefef 100%);
background: linear-gradient(to bottom, #ffffff 10%,#efefef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */
.ui-autocomplete { }
position: relative;
width: 100%;
max-height: 265px;
overflow-y: auto;
overflow-x: hidden;
left: 0 !important;
top: 0 !important;
padding: 5px 10px 0 0;
border-top: 1px dotted #ccc;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ui-autocomplete-category {
font-size: 15px;
line-height: 17px;
color: #ff6600;
padding: 8px 10px 0 0;
}
.ui-menu .ui-menu-item { .sf-autocomplete .sfa-wrap {
padding: 0 10px 0 5px; border-radius: 4px 0 4px 4px;
margin-top: 2px; }
}
.ui-menu .ui-menu-item a { .sf-autocomplete .sfa-wrap.show {
color: #464646; visibility: visible;
font-size: 15px; }
line-height: 15px;
border: none;
padding: 2px 5px;
cursor: pointer;
}
.ui-menu .ui-menu-item a.ui-state-focus, .ui-autocomplete {
.ui-menu .ui-menu-item a.ui-state-active { position: relative;
color: #ff6600; width: 100%;
margin: 0; max-height: 265px;
} overflow-y: auto;
overflow-x: hidden;
left: 0 !important;
top: 0 !important;
padding: 5px 10px 0 0;
border-top: 1px dotted #ccc;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.ui-autocomplete-category {
font-size: 15px;
line-height: 17px;
color: #ff6600;
padding: 8px 10px 0 0;
}
.ui-menu .ui-menu-item a i { .ui-menu .ui-menu-item {
font-style: normal; padding: 0 10px 0 5px;
color: #a2a2a2; margin-top: 2px;
} }
.ui-menu .ui-menu-item a {
color: #464646;
font-size: 15px;
line-height: 15px;
border: none;
padding: 2px 5px;
cursor: pointer;
}
.mp-catalog { .ui-menu .ui-menu-item a.ui-state-focus,
.ui-menu .ui-menu-item a.ui-state-active {
color: #ff6600;
margin: 0;
}
} .ui-menu .ui-menu-item a i {
font-style: normal;
color: #a2a2a2;
}
/* # clear all button*/
.in-search-form .modal-clear,
.search-form .modal-clear{
height: 40px;
border: 1px solid #fff;
padding: 0 25px;
box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(0, 0, 0, .2);
}
/* end of search block*/ /* end of search block*/
@ -4032,7 +4039,6 @@ form.s-message {
.c-select-box .csb-menu .q-sel { .c-select-box .csb-menu .q-sel {
width: 190px; width: 190px;
float: right; float: right;
margin-top: 1em;
} }
@ -12013,6 +12019,21 @@ hr + .rq-note {
.mt-0{ .mt-0{
margin-top: 0; margin-top: 0;
} }
button.gray{
background: #dbdbdb; /* Old browsers */
background: -moz-linear-gradient(top, #dbdbdb 0%, #bdbdbd 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dbdbdb), color-stop(100%,#bdbdbd)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #dbdbdb 0%,#bdbdbd 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #dbdbdb 0%,#bdbdbd 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #dbdbdb 0%,#bdbdbd 100%); /* IE10+ */
background: linear-gradient(to bottom, #dbdbdb 0%,#bdbdbd 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dbdbdb', endColorstr='#bdbdbd',GradientType=0 ); /* IE6-9 */
}
button.gray:hover{
background: #dbdbdb; /* Old browsers */
}
@ -12020,16 +12041,16 @@ hr + .rq-note {
# Модальное окно выбора тематики # Модальное окно выбора тематики
\******************************/ \******************************/
.pw-subj .q-sel{ .pw-subj .q-sel{
top: 0; top: 0;
position: absolute; position: absolute;
right: 0; right: 0;
margin-top: 1em; margin-top: 1em;
} }
.search_form .scroll-container{ .search_form .scroll-container{
overflow: hidden; overflow: hidden;
} }
/******************************\ /******************************\
# Модальное окно общий вид # Модальное окно общий вид
\******************************/ \******************************/

@ -359,7 +359,7 @@ if (EXPO.searchBlock){
} }
return false; return false;
}); });
$('.clear', $modal).on('click', function () { $('.modal-clear', $modal).on('click', function () {
self.resetList(); self.resetList();
return false; return false;
}); });
@ -1118,7 +1118,7 @@ if (EXPO.searchBlock){
/** /**
* clear all button behavior * clear all button behavior
*/ */
$('.clear',$modal).on('click', function () { $('.modal-clear',$modal).on('click', function () {
self.resetList(); self.resetList();
return false; return false;
}); });

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save