Thursday, February 24, 2011

SharePoint 2010: Large Search Box & Scopes

My previous post did not include a style for the search scope drop down. Use the following to CSS to update the search scope from:

image
To:
image

Download updated files HERE

How to implement:

  1. Upload the custom master page into the master page gallery
  2. Navigate to the following location on your server: “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\STYLES”
  3. Create a folder called “LGSEARCH” and place the “lgsearch.css” and the two image files into this directory.
  4. Apply the “lgsearch.master” to your site.

Wednesday, February 2, 2011

SharePoint 2010: Navigation Drop Down Styles

If you would like to stylize your navigation drop downs in SharePoint 2010 here are the 4 main key classes to update your CSS.

If you are looking for SharePoint 2007 styles see my previous blog post here.

The OOTB Navigation Drop Down CSS: “COREV4.CSS”
.s4-tn ul.dynamic{
/* [ReplaceColor(themeColor:"Light2")] */ background-color:white;
/* [ReplaceColor(themeColor:"Dark2-Lighter")] */ border:1px solid #D9D9D9;
}
.s4-tn li.dynamic > .menu-item{
display:block;
padding:3px 10px;
white-space:nowrap;
font-weight:normal;
}
a:link{
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072BC;
text-decoration:none;
}
.s4-tn li.dynamic > a:hover{
font-weight:normal;
/* [ReplaceColor(themeColor:"Light2-Lighter")] */ background-color:#D9D9D9;
}

image


Example (Not good design, but you get the point)

/* Drop Down: Container Style */
.s4-tn ul.dynamic{
background-color:white;
border:3px dashed #000;
}
/* Drop Down: Item Padding Style */
.s4-tn li.dynamic > .menu-item{
padding:10px 20px 10px 20px;
}
/* Drop Down: Hyperlink Styles */
.s4-tn li.dynamic > a{
font-size: 9pt;
font-weight:normal;
color:#000;
}
/* Drop Down: Hyperlink Hover Style */
.s4-tn li.dynamic > a:hover{
font-weight:bold;
background-color:#0C0;
color:#FFF;
}

What it will look like:
image

Simply take the above 4 main CSS classes and add/edit/delete the properties to make your drop down style truly unique.

Tuesday, February 1, 2011

SharePoint 2010: Large Search Box

The OOTB search box in my opinion is hidden and misplaced. In most cases it gets in the way with the top navigation especially when you have a lot of items in it.

image

The solution to this problem is to move the search box up to the left of the social tags and make it bigger with CSS and Images.

image

Here is what the search box will look like: This design consists of two images one for the search box (searchbox.gif) and the other for the button (searchbutton.gif).

image

image

Moving the Search Control:
In your custom master page simply move the s4-searcharea div up into a new <td></td> before the social tags.

image

The final code should look like this: Notice that I kept the div and the “s4-rp” class. This has the “float:right” attribute for the help icon.

image

Putting it all together:
I have placed all of the support files to create this large search box style into the following .zip file that you can download and apply to your development site.

Source Files: Download HERE

How to implement:

  1. Upload the custom master page into the master page gallery
  2. Navigate to the following location on your server: “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\STYLES”
  3. Create a folder called “LGSEARCH” and place the “lgsearch.css” and the two image files into this directory.
  4. Apply the “lgsearch.master” to your site.