Alternative Breadcrumbs: For Black Theme
#1
tested using: IE, Opera, Firefox and Chrome

This is useful: Change Breadcrumbs to read "Home"

Screen:

[Image: QcTm1.png]

Download this http://img571.imageshack.us/img571/4340/fracture.png and put in your images folder of mybb

in global.css of your black theme

add:

.breadcrumb {
	font-size: 11px;
	background: rgb(38, 38, 38) url(images/fracture.png) repeat-x 0 1px;
	border: 1px solid rgb(62, 62, 62);
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	overflow: hidden;
        margin: 0;
        padding: 0;
}

.breadcrumb .crust {
	display: block;
	float: left;
	position: relative;
}
.breadcrumb .crust:first-child a.crumb {
	padding-left: 10px;
	-moz-border-radius-topleft:4px;
	-moz-border-radius-bottomleft:4px;
	-webkit-border-top-left-radius: 4px;
	-webkit-border-bottom-left-radius: 4px;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;

}
.breadcrumb .crust a.crumb, .breadcrumb .crust b.lastcrumb {
	text-decoration: none;
	background-color: rgb(32, 32, 32);
	padding: 0 10px 0 18px;
	border-bottom: 1px solid rgb(62, 62, 62);
	margin-bottom: -1px;
	outline: 0 none;
	-moz-outline-style: 0 none;
	display: block;
	line-height: 24px;
	_border-bottom: none;
	color: rgb(150, 150, 150);
	text-decoration: none;

}
.breadcrumb .crust b.lastcrumb {
	background: transparent none;
	font-weight: bold;

}
.breadcrumb .crust a.crumb, .breadcrumb .crust b.lastcrumb {
	line-height: 24px;

}

.breadcrumb .crust .arrow {
	border: 12px solid transparent;
	border-top-width: 13px;
	border-right: 1px none black;
	border-left-color: rgb(79, 79, 79);
	display: block;
	position: absolute;
	right: -12px;
	top: 0px;
	z-index: 50;
	width: 0px;
	height: 0px;

}
.breadcrumb .crust .arrow span {
	border: 12px solid transparent;
	border-right: 1px none black;
	border-left-color: rgb(32, 32, 32);
	display: block;
	position: absolute;
	left: -13px;
	top: -12px;
	z-index: 51;
	white-space: nowrap;
	overflow: hidden;
	text-indent: 9999px;
	width: 0px;
	height: 0px;

}

.breadcrumb .refresh:hover {
        background-position: 0px -16px; 

}
.breadcrumb .crust:last-child a.crumb { 
        font-weight: bold; 

}
.breadcrumb .crust:hover a.crumb { 
	background-color: rgb(22, 22, 22);
	color: #ffffff;
	text-decoration:none; 

}
.breadcrumb .crust:hover .arrow span { 
	border-left-color: rgb(22, 22, 22);
}


in nav of your template replace:

<fieldset class="breadcrumb"><span class="crumbs">{$nav}{$activesep}
<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
{$activebit}</span></span></fieldset>

in nav_bit of your template replace:

<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="{$navbit['url']}" class="crumb" rel="up" itemprop="url">
			{$navbit['name']}
		</a>
		<span class="arrow">
			<span>&gt;</span>
		</span></span>{$sep}

in nav_bit_active of your template replace:

<a href="{$navbit['url']}" class="crumb" rel="up" itemprop="url">
{$navbit['name']}
		</a>
		<span class="arrow">
			<span>&gt;</span>
		</span>

in nav_sep of your template: blank
in nav_sep_active of your template: blank


Bonus

if you want remove this [Image: oARPY.png]

in nav_bit of your template replace:

<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="{$navbit['url']}" class="crumb" rel="up" itemprop="url">
			{$navbit['name']}
		</a>
		<span class="arrow">
			<span>&gt;</span>
		</span></span>


Attached Files Image(s)
   
Reply
#2
Looks good. Smile
Reply
#3
Brilliant Smile
Reply
#4
(2012-05-13, 08:20 PM)Fábio Maia Wrote: Looks good. Smile

(2012-05-13, 09:26 PM)Yaldaram Wrote: Brilliant Smile

Thanks... Big Grin
Reply
#5
Relatively annoying to edit however.
Reply
#6
(2012-05-13, 10:27 PM)Spirit Wrote: Relatively annoying to edit however.

in VB too need edit some files http://www.vbulletin.org/forum/showthread.php?t=280518
unfortunately does not another way
or someone make plugin this..
Reply
#7
can you re-up the image?
Reply
#8
Where is the image?
Reply
#9
(2012-08-05, 02:21 AM)FooFighter Wrote: Where is the image?

Maybe you're thinking that link of image is broken because the image is transparent. But the link is working perfectly from the first day I made this thread.
Reply
#10
My forum is in a Right to Left language. Please help me to change this beautiful navbar for a right to left forum.
and what are these itemtype? May I remove them?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)