- π³πΏNew Zealand quietone
Bartik is now a contributed project. This can be added to that projects documentation, https://www.drupal.org/project/bartik β
*Disclaimer*
I have tested this only in Firefox 3 only. I would appreciate if people could post back any formatting problems with other browsers with screen shots so that I can fix them. Thanks in advance.
This post is for those who would like to use the Superfish menu module but have a style close to Bartik for the main navigation.
/*background-color: transparent !important;*/ /*Comment this line so that the style in the NewStylesheet.css will allow for a full background.*/<br />
width: 100%;<br />
}</code>
.sf-menu.sf-style-default li.sfHover,<br />
.sf-menu.sf-style-default li.active a,<br />
.sf-menu.sf-style-default a:focus,<br />
.sf-menu.sf-style-default a:hover,<br />
.sf-menu.sf-style-default a:active,<br />
.sf-navbar.sf-style-default li li {<br />
/*background: #4f5152;*/<br />
}</code>
CSS file attached
/* $Id: whiteTab.css,v 1.0 2011/02/18 05:45:00 erok415 Exp $ */
/*-------------------------------------------------------------*/
/* */
/* !Important! - Be sure to change all references */
/* from #superfish-3 below to match the number of the */
/* Superfish "X" block region you are using in your */
/* Block Settings. I used block region Superfish 3, */
/* hence I am using #superfish-3 below. */
/* */
/*-------------------------------------------------------------*/
/*-------------------------------------------------------------*/
/* */
/* I have not attempted to use style the 4th level flyout, */
/* Auto-arrows or the drop shadow features. */
/* */
/*-------------------------------------------------------------*/
#menu-bar{
margin-bottom:10px;/*Add padding so secondary navigation doesn't run over search sidebar*/
}
sfHover, ul#superfish-3 > li:hover{
background: none repeat scroll 0% 0% transparent;/*Remove default background on top level tabs in default state and hover state*/
}
ul#superfish-3 li.sfHover li a:hover, ul#superfish-3 li.sfHover li a.active{/*Secondary Nav: add effect to hover or active state here*/
color:#09F;
width:100%;
}
ul#superfish-3 > li > a{/*Fist level horizontal navigation*/
margin:4px 2px 0 0;/*Spacing around tabs*/
color: #333;
background: #fff;
background: rgba(255, 255, 255, 1.0);
float: left; /* LTR */
padding:0px 6px 6px 6px;
/*height: 1.8em;
line-height: 2.4em;
padding: 0 0.8em;*/
text-decoration: none;
/*text-shadow: 0 0.5px #999;*/
font-weight:bold;
-khtml-border-radius-topleft: 8px;
-khtml-border-radius-topright: 8px;
-moz-border-radius-topleft: 8px;
-moz-border-radius-topright: 8px;
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
ul#superfish-3 > li.sfHover {
background: none repeat scroll 0% 0% transparent;/*Remove default background from sfHover state*/
}
ul#superfish-3 > li.sfHover > a { /*First level hover and active state*/
margin:4px 2px 0 0;/*Spacing around tabs*/
color: #333;
background: #999;
background: rgba(153, 153, 153, 1.0);
float: left; /* LTR */
padding:0px 6px 6px 6px;
/*height: 1.8em;
line-height: 2.4em;
padding: 0 0.8em;*/
text-decoration: none;
/*text-shadow: 0 0.5px #999;*/
font-weight:bold;
-khtml-border-radius-topleft: 8px;
-khtml-border-radius-topright: 8px;
-moz-border-radius-topleft: 8px;
-moz-border-radius-topright: 8px;
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
/*----------------Secondary Nav-------------------*/
.sf-navbar > li > ul{/*add background color to secondary nav only*/
background:none repeat scroll 0% 0% rgb(51, 51, 51);
background: #333;
}
ul#superfish-3 > li > ul{
left:-15px;/*align menu with left edge of design*/
border-right:30px solid #333;/*add background color to right edge because style attribute above leaves a blank spot due to global conditions*/
}
ul#superfish-3 > li > ul > li {
left:15px;/*Fix: aligns secondary level nav text with top level nav*/
border:0;
}
ul#superfish-3 > li.sfHover > ul > li > a{/*Secondary Nav: Remove tab effect from sfHover state applied to lower level nav*/
color:#fff;
background: #333;
-khtml-border-radius: 0px;
-moz-border-radius: 0px;
-webkit-border-top: 0px;
border-radius: 0px;
width:100%;
height:2.0em;
line-height:1.1em;
padding:6px 0 0 6px;
margin:0 16px 0 0;
}
ul#superfish-3 > li > ul > li > a{/*secondary horizontal navigation*/
color:#fff;
font-weight:bold;
/*text-shadow: 0 0.5px #CCC;*/
background: none repeat scroll 0% 0% transparent;
-khtml-border-radius:0;
-moz-border-radius:0;
-webkit-border-radius:0;
padding:0;
}
/*---------------Third level DropDown navigation------------*/
ul#superfish-3 > li > ul > li > ul {
-khtml-border-radius: 0px;
-moz-border-radius: 0px;
-webkit-border-top: 0px;
border-radius: 0px;
margin:0;
padding:0 0 0 6px;
border:0;
left:-0px;
background: none repeat scroll 0% 0% transparent;
}
ul#superfish-3 > li > ul > li > ul > li {
margin:0px;
border-right:0;
left:0;
border:0;
padding:6px 6px 0px 6px;
background:#333;
}
ul#superfish-3 > li > ul > li > ul > li:hover{
}
ul#superfish-3 > li > ul > li > ul > li > a {
background:#333;
margin:0;
padding:0 6px 0px 6px;
line-height:1.3em;
background:#333;
}
ul#superfish-3 > li > ul > li > ul > li > a:hover {
background: none repeat scroll 0% 0% transparent!important;
}
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Bartik is now a contributed project. This can be added to that projects documentation, https://www.drupal.org/project/bartik β