Bread Crumbs
authorLuzifr <szekely@woltlab.com>
Tue, 25 Oct 2011 13:15:50 +0000 (15:15 +0200)
committerLuzifr <szekely@woltlab.com>
Tue, 25 Oct 2011 13:15:50 +0000 (15:15 +0200)
Fully working; ToDo: Bread crumbs without a link!

com.woltlab.wcf/template/breadcrumbs.tpl
wcfsetup/install/files/acp/style/style.css

index 67f7f3520f1f353a451648c57c20d17adb9a0469..11da7f477bf9b662cb65f98e882dae408f2cca8f 100644 (file)
@@ -1,7 +1,7 @@
 <nav class="breadcrumbs">
        <ul>
                {foreach from=$__wcf->getBreadcrumbs()->get() item=$breadcrumb}
-                       <li>
+                       <li title="{$breadcrumb->getLabel()}">
                                {if $breadcrumb->getURL()}<a href="{$breadcrumb->getURL()}">{/if}<span>{$breadcrumb->getLabel()}</span>{if $breadcrumb->getURL()}</a>{/if} <span><span>&raquo;</span></span>
                        </li>
                {/foreach}
index 8dcdd3c55535161652a8fa200f93ae859a92956b..f108f466694d5dcbb5b88e33536c47b5a0d09a11 100644 (file)
@@ -1528,6 +1528,94 @@ input[type='button'],
 
 
 
+/* ############## Bread Crumbs ############## */
+
+/* Globals */
+
+.breadcrumbs {
+       font-size: 100%;
+       text-align: left;
+       border: 1px solid #ccc;
+       border-radius: 5px;
+       background-color: rgba(255, 255, 255, 1);
+       margin-bottom: 7px !important;
+       display: block;
+       position: relative;
+       overflow: hidden;
+}
+
+.breadcrumbs ul li {
+       list-style: none;
+       float: left;
+       position: relative;
+}
+
+/* Arrow */
+
+.breadcrumbs ul li > span {
+       border-width: 15px;
+       border-style: solid none solid solid;
+       border-color: transparent transparent transparent #ccc;
+       display: block !important;
+       position: absolute;
+       width: 0;
+       height: 0;
+       top: -4px;
+       right: -15px;
+       z-index: 100;
+}
+
+.breadcrumbs ul li > span > span {
+       text-indent: -9000px;
+       border-width: 15px;
+       border-style: solid none solid solid;
+       border-color: transparent transparent transparent #fff;
+       display: block;
+       position: absolute;
+       width: 0;
+       height: 0;
+       top: -15px;
+       left: -16px;
+       overflow: hidden;
+}
+
+/* Caption */
+
+.breadcrumbs ul li a {
+       text-decoration: none;
+       color: #999;
+       margin: 0;
+       padding: 5px 1px 5px 20px;
+       display: inline-block;
+       max-width: 200px;
+       overflow: hidden;
+       white-space: nowrap;
+}
+
+.breadcrumbs ul li:first-child a {
+       border-radius: 5px 0 0 5px;
+       background-image: url('../wcf/icon/home1.svg');
+       background-position: 7px center;
+       background-repeat: no-repeat;
+       background-size: 16px;
+       padding-left: 30px;
+}
+
+.breadcrumbs ul li:hover a,
+.breadcrumbs ul li:last-child a {
+       color: #369;
+       background-color: #e7f2fd;
+       position: relative;
+       z-index: 90;
+}
+
+.breadcrumbs ul li:hover > span > span,
+.breadcrumbs ul li:last-child > span > span{
+       border-color: transparent transparent transparent #e7f2fd;
+}
+
+
+
 /* ############## Tables ############## */
 
 /* Globals */