Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > (Minor) IntranetSolution Searchbox CSS + Fix View modes: 
User avatar
Member
Member
JimS - 1/24/2011 2:28:25 AM
   
(Minor) IntranetSolution Searchbox CSS + Fix
Hi,

this is more a potentially annoying user experience than a real bug in the default Intranet web template.

In CMSdesk I set visibility of search box on the Logon page to authenticated role only in order to disable search funtion for unauthenticated users. But apparently nothing changed, the input box was still visible. Than I found out that search was indeed disabled but the background image still remained on screen.

The search box GUI element is implemented as a background image in CSS in CSS "Intranet Portal - Blue" as follows:


.SearchBox
{
float: right;
height: 31px;
line-height: 31px;
background: url('~/App_Themes/IntranetPortal/Images/BackgroundSearchBox.png') no-repeat left center;
margin: 4px 30px 0px 0px;
width: 147px;
}


After moving the background definition from ".SearchBox" to ".SearchTextBox"
and adjusting the padding I achieved the intended result/behaviour:


.SearchBox
{
float: right;
height: 31px;
line-height: 31px;
background: url('~/App_Themes/IntranetPortal/Images/BackgroundSearchBox.png') no-repeat left center;
margin: 4px 30px 0px 0px;
width: 147px;
}

.SearchTextBox
{
width: 112px;
height: 21px;
line-height: 21px;
border: none;
background: url('~/App_Themes/IntranetPortal/Images/BackgroundSearchBox.png') no-repeat left center;
padding: 0px 3px;
padding:0px 30px 0px 3px;
color: #000;
margin-top: 3px;
}


Best regards,
Jim

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/3/2011 7:21:05 AM
   
RE:(Minor) IntranetSolution Searchbox CSS + Fix
Hi,

Thank you for the report and fix. I have forwarded it to our web developers and they will fix in the next version.

Best regards,
Juraj Ondrus