[ticket/11552] Add search link to responsive header

PHPBB3-11552
This commit is contained in:
Vjacheslav Trushkin 2013-10-17 21:12:45 +03:00
parent 5d999e008c
commit 118b66534e
3 changed files with 20 additions and 1 deletions

View file

@ -94,6 +94,7 @@
<!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF --> <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
<!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF --> <!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
<!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF --> <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH --><li class="responsive-search rightside" style="display: none;"><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH}</a></li><!-- ENDIF -->
</ul> </ul>
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->

View file

@ -706,7 +706,7 @@ a.sendemail {
.icon-subscribe { background-image: url("./images/icon_subscribe.gif"); } .icon-subscribe { background-image: url("./images/icon_subscribe.gif"); }
.icon-unsubscribe { background-image: url("./images/icon_unsubscribe.gif"); } .icon-unsubscribe { background-image: url("./images/icon_unsubscribe.gif"); }
.icon-pages { background-image: url("./images/icon_pages.gif"); } .icon-pages { background-image: url("./images/icon_pages.gif"); }
.icon-search { background-image: url("./images/icon_search.gif"); } .icon-search, .responsive-search a { background-image: url("./images/icon_search.gif"); }
.icon-notification { background-image: url("./images/icon_notification.gif"); } .icon-notification { background-image: url("./images/icon_notification.gif"); }
.icon-pm { background-image: url("./images/icon_pm.gif"); } .icon-pm { background-image: url("./images/icon_pm.gif"); }

View file

@ -1,6 +1,10 @@
/* Responsive Design /* Responsive Design
---------------------------------------- */ ---------------------------------------- */
.responsive-hide { display: none !important; }
.responsive-show { display: block !important; }
.responsive-show-inline { display: inline !important; }
/* Content wrappers /* Content wrappers
----------------------------------------*/ ----------------------------------------*/
html { html {
@ -56,6 +60,20 @@ body {
margin-top: -5px; margin-top: -5px;
} }
/* Search
----------------------------------------*/
.responsive-search { display: block !important; }
.responsive-search a {
display: block;
width: 16px;
height: 18px;
text-indent: 99px;
overflow: hidden;
background-position: 50% 50%;
background-repeat: no-repeat;
text-decoration: none;
}
/* .topiclist lists /* .topiclist lists
----------------------------------------*/ ----------------------------------------*/
li.header dt { li.header dt {