mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/11241] Add border to dropdown menu options.
PHPBB3-11241
This commit is contained in:
parent
5579dc2412
commit
42a70154fa
5 changed files with 66 additions and 46 deletions
|
@ -403,13 +403,13 @@ viewtopic_topic_title_prepend
|
||||||
viewtopic_topic_tools_after
|
viewtopic_topic_tools_after
|
||||||
===
|
===
|
||||||
* Locations:
|
* Locations:
|
||||||
+ styles/prosilver/template/viewtopic_body.html
|
+ styles/prosilver/template/viewtopic_topic_tools.html
|
||||||
* Since: 3.1.0-a3
|
* Since: 3.1.0-a3
|
||||||
* Purpose: Add a new topic tool after the rest of the existing ones
|
* Purpose: Add a new topic tool after the rest of the existing ones
|
||||||
|
|
||||||
viewtopic_topic_tools_before
|
viewtopic_topic_tools_before
|
||||||
===
|
===
|
||||||
* Locations:
|
* Locations:
|
||||||
+ styles/prosilver/template/viewtopic_body.html
|
+ styles/prosilver/template/viewtopic_topic_tools.html
|
||||||
* Since: 3.1.0-a3
|
* Since: 3.1.0-a3
|
||||||
* Purpose: Add a new topic tool before the rest of the existing ones
|
* Purpose: Add a new topic tool before the rest of the existing ones
|
||||||
|
|
|
@ -33,48 +33,7 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DEFINE $TOPIC_TOOLS_BLOCK -->
|
<!-- INCLUDE viewtopic_topic_tools.html -->
|
||||||
<!-- IF not S_IS_BOT and (U_WATCH_TOPIC or U_BOOKMARK_TOPIC or U_BUMP_TOPIC or S_HAS_ATTACHMENTS or S_DISPLAY_TOPIC_TOOLS) -->
|
|
||||||
<div class="dropdown-container dropdown-button-control topic-tools">
|
|
||||||
<span title="{L_TOPIC_TOOLS}" class="dropdown-trigger dropdown-select dropdown-select-icon tools-icon"><span></span></span>
|
|
||||||
<div class="dropdown hidden">
|
|
||||||
<div class="pointer"><div class="pointer-inner"></div></div>
|
|
||||||
<ul class="dropdown-contents">
|
|
||||||
<!-- EVENT viewtopic_topic_tools_before -->
|
|
||||||
<!-- IF U_WATCH_TOPIC -->
|
|
||||||
<li class="small-icon <!-- IF S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->">
|
|
||||||
<a href="{U_WATCH_TOPIC}" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="small-icon <!-- IF not S_WATCHING_TOPIC -->icon-unsubscribe<!-- ELSE -->icon-subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}">
|
|
||||||
{S_WATCH_TOPIC_TITLE}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- IF U_BOOKMARK_TOPIC -->
|
|
||||||
<li class="small-icon icon-bookmark">
|
|
||||||
<a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}" data-ajax="alt_text" data-alt-text="{S_BOOKMARK_TOGGLE}">
|
|
||||||
{S_BOOKMARK_TOPIC}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- IF U_BUMP_TOPIC --><li class="small-icon icon-bump"><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}" data-ajax="true">{L_BUMP_TOPIC}</a></li><!-- ENDIF -->
|
|
||||||
<!-- IF S_HAS_ATTACHMENTS -->
|
|
||||||
<li class="small-icon icon-download">
|
|
||||||
<a class="dropdown-toggle-submenu" href="{U_DOWNLOAD_ALL_ATTACHMENTS}" title="{L_DOWNLOAD_ALL_ATTACHMENTS}">{L_DOWNLOAD_ALL_ATTACHMENTS}</a>
|
|
||||||
<ul class="dropdown-submenu hidden">
|
|
||||||
<li>
|
|
||||||
<!-- BEGIN dl_method -->
|
|
||||||
<a href="{dl_method.LINK}">{dl_method.TYPE}</a><!-- IF not dl_method.S_LAST_ROW --> • <!-- ENDIF -->
|
|
||||||
<!-- END dl_method -->
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- EVENT viewtopic_topic_tools_after -->
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- ENDIF -->
|
|
||||||
<!-- ENDDEFINE -->
|
|
||||||
{$TOPIC_TOOLS_BLOCK}
|
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_SEARCHBOX -->
|
<!-- IF S_DISPLAY_SEARCHBOX -->
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
|
@ -342,7 +301,7 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{$TOPIC_TOOLS_BLOCK}
|
<!-- INCLUDE viewtopic_topic_tools.html -->
|
||||||
|
|
||||||
<!-- IF .pagination or TOTAL_POSTS -->
|
<!-- IF .pagination or TOTAL_POSTS -->
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
|
39
phpBB/styles/prosilver/template/viewtopic_topic_tools.html
Normal file
39
phpBB/styles/prosilver/template/viewtopic_topic_tools.html
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<!-- IF not S_IS_BOT and (U_WATCH_TOPIC or U_BOOKMARK_TOPIC or U_BUMP_TOPIC or S_HAS_ATTACHMENTS or S_DISPLAY_TOPIC_TOOLS) -->
|
||||||
|
<div class="dropdown-container dropdown-button-control topic-tools">
|
||||||
|
<span title="{L_TOPIC_TOOLS}" class="dropdown-trigger dropdown-select dropdown-select-icon tools-icon"><span></span></span>
|
||||||
|
<div class="dropdown hidden">
|
||||||
|
<div class="pointer"><div class="pointer-inner"></div></div>
|
||||||
|
<ul class="dropdown-contents">
|
||||||
|
<!-- EVENT viewtopic_topic_tools_before -->
|
||||||
|
<!-- IF U_WATCH_TOPIC -->
|
||||||
|
<li class="small-icon icon-<!-- IF S_WATCHING_TOPIC -->unsubscribe<!-- ELSE -->subscribe<!-- ENDIF -->">
|
||||||
|
<a href="{U_WATCH_TOPIC}" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="small-icon icon-<!-- IF not S_WATCHING_TOPIC -->unsubscribe<!-- ELSE -->subscribe<!-- ENDIF -->" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}">
|
||||||
|
{S_WATCH_TOPIC_TITLE}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF U_BOOKMARK_TOPIC -->
|
||||||
|
<li class="small-icon icon-bookmark">
|
||||||
|
<a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}" data-ajax="alt_text" data-alt-text="{S_BOOKMARK_TOGGLE}">
|
||||||
|
{S_BOOKMARK_TOPIC}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF U_BUMP_TOPIC --><li class="small-icon icon-bump"><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}" data-ajax="true">{L_BUMP_TOPIC}</a></li><!-- ENDIF -->
|
||||||
|
<!-- IF S_HAS_ATTACHMENTS -->
|
||||||
|
<li class="small-icon icon-download">
|
||||||
|
<a class="dropdown-toggle-submenu" href="{U_DOWNLOAD_ALL_ATTACHMENTS}" title="{L_DOWNLOAD_ALL_ATTACHMENTS}">{L_DOWNLOAD_ALL_ATTACHMENTS}</a>
|
||||||
|
<ul class="dropdown-submenu hidden">
|
||||||
|
<li>
|
||||||
|
<!-- BEGIN dl_method -->
|
||||||
|
<a href="{dl_method.LINK}">{dl_method.TYPE}</a><!-- IF not dl_method.S_LAST_ROW --> • <!-- ENDIF -->
|
||||||
|
<!-- END dl_method -->
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- EVENT viewtopic_topic_tools_after -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ENDIF -->
|
|
@ -1181,6 +1181,10 @@ ul.linklist li.responsive-menu a.responsive-menu-link:hover:before, ul.linklist
|
||||||
box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2);
|
box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown li, .dropdown li li {
|
||||||
|
border-color: #DCDCDC;
|
||||||
|
}
|
||||||
|
|
||||||
#minitabs .dropdown-contents {
|
#minitabs .dropdown-contents {
|
||||||
background-color: #F1F8FF;
|
background-color: #F1F8FF;
|
||||||
}
|
}
|
||||||
|
|
|
@ -548,14 +548,32 @@ ul.linklist.bulletin li.no-bulletin:before {
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown li {
|
.dropdown li {
|
||||||
float: none;
|
border-bottom: 1px dotted transparent;
|
||||||
|
float: none !important;
|
||||||
|
line-height: normal !important;
|
||||||
|
font-size: 1em !important;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 4px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown li:last-child, .dropdown li li {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown li li:first-child {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown li li:last-child {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown li li {
|
.dropdown li li {
|
||||||
|
border-top: 1px dotted transparent;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue