1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

Merge pull request #3866 from hanakin/ticket/14038

[Ticket/14038] Jumpbox improvements

* hanakin/ticket/14038:
  [ticket/14038] Minor color tweaks
  [ticket/14038] Switch to spacer spans
  [ticket/14038] Stylize & differintiate
  [ticket/14038] Give links some visual love
This commit is contained in:
Tristan Darricau
2015-09-01 18:07:06 +02:00
4 changed files with 82 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
<!-- IF S_DISPLAY_JUMPBOX -->
<div class="dropdown-container dropdown-container-{S_CONTENT_FLOW_END}<!-- IF not S_IN_MCP --> dropdown-up<!-- ENDIF --> dropdown-{S_CONTENT_FLOW_BEGIN} dropdown-button-control" id="jumpbox">
<div class="jumpbox dropdown-container dropdown-container-{S_CONTENT_FLOW_END}<!-- IF not S_IN_MCP --> dropdown-up<!-- ENDIF --> dropdown-{S_CONTENT_FLOW_BEGIN} dropdown-button-control" id="jumpbox">
<span title="<!-- IF S_IN_MCP and S_MERGE_SELECT -->{L_SELECT_TOPICS_FROM}<!-- ELSEIF S_IN_MCP -->{L_MODERATE_FORUM}<!-- ELSE -->{L_JUMP_TO}<!-- ENDIF -->" class="dropdown-trigger button dropdown-select">
<!-- IF S_IN_MCP and S_MERGE_SELECT -->{L_SELECT_TOPICS_FROM}<!-- ELSEIF S_IN_MCP -->{L_MODERATE_FORUM}<!-- ELSE -->{L_JUMP_TO}<!-- ENDIF -->
</span>
@@ -20,7 +20,7 @@
<ul class="dropdown-contents">
<!-- BEGIN jumpbox_forums -->
<!-- IF jumpbox_forums.FORUM_ID neq -1 -->
<li><!-- BEGIN level -->&nbsp; &nbsp;<!-- END level --><a href="{jumpbox_forums.LINK}">{jumpbox_forums.FORUM_NAME}</a></li>
<li><a href="{jumpbox_forums.LINK}" class="<!-- IF jumpbox_forums.level -->jumpbox-sub-link<!-- ELSEIF jumpbox_forums.S_IS_CAT -->jumpbox-cat-link<!-- ELSE -->jumpbox-forum-link<!-- ENDIF -->"><!-- BEGIN level --><span class="spacer"></span><!-- END level --> <span><!-- IF jumpbox_forums.level --> &#8627; &nbsp;<!-- ENDIF --> {jumpbox_forums.FORUM_NAME}</span></a></li>
<!-- ENDIF -->
<!-- END jumpbox_forums -->
</ul>
@@ -29,4 +29,4 @@
<!-- ELSE -->
<br /><br />
<!-- ENDIF -->
<!-- ENDIF -->

View File

@@ -197,6 +197,42 @@ dl.details dd {
background-image: url("./images/icon_pages.gif");
}
.jumpbox .dropdown li {
border-top-color: #CCCCCC;
}
.jumpbox-cat-link {
background-color: #0076b1;
border-top-color: #0076B1;
color: #FFFFFF;
}
.jumpbox-cat-link:hover {
background-color: #12A3EB;
border-top-color: #12A3EB;
color: #FFFFFF;
}
.jumpbox-forum-link {
background-color: #E1EBF2;
}
.jumpbox-forum-link:hover {
background-color: #F6F4D0;
}
.jumpbox .dropdown .pointer-inner {
border-color: #E1EBF2 transparent;
}
.jumpbox-sub-link {
background-color: #E1EBF2;
}
.jumpbox-sub-link:hover {
background-color: #F1F8FF;
}
/* Miscellaneous styles
---------------------------------------- */

View File

@@ -487,9 +487,45 @@ ul.linklist.bulletin > li.no-bulletin:before {
position: relative;
min-width: 40px;
max-height: 300px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.dropdown-contents a {
display: block;
padding: 5px;
}
.jumpbox .dropdown li {
border-top: 1px solid transparent;
}
.jumpbox .dropdown-select {
margin: 0;
}
.jumpbox .dropdown-contents {
padding: 0;
text-decoration: none;
}
.jumpbox .dropdown-contents li {
padding: 0;
}
.jumpbox .dropdown-contents a {
margin-right: 20px;
padding: 5px 10px;
text-decoration: none;
width: 100%;
}
.jumpbox .spacer {
display: inline-block;
width: 0px;
}
.jumpbox .spacer + .spacer {
width: 20px;
}
.dropdown li {

View File

@@ -58,6 +58,10 @@ li.breadcrumbs span:first-child > a {
width: 40px;
}
.jumpbox-cat-link,
.jumpbox-forum-link { font-weight: bold; }
/* Links for forum/topic lists */
a.forumtitle {
font-family: "Trebuchet MS", Helvetica, Arial, Sans-serif;