Fixed search widget rendering and edit wrappers in the ThemeMachine. Work Item: 16941

--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2010-12-07 15:12:49 -08:00
parent c80af4ae1c
commit 2f93a0b870
3 changed files with 16 additions and 9 deletions

View File

@@ -15,4 +15,13 @@ form.search input {
}
.search-results {
clear:both;
}
}
.search-form input[type="text"] { float: left; }
.search-form button[type="submit"] { float: left; margin: 0; margin-left: 6px; }
/*Search widget styles. More syles could be added here to target specific zones.*/
.widget-search-form {
float:right;
}

View File

@@ -1,5 +1,10 @@
@using Orchard.Search.ViewModels;
@{
Style.Require("Search");
}
@using(Html.BeginForm("index", "search", new { area = "Orchard.Search" }, FormMethod.Get, new { @class = "search-form" })) {
<fieldset>
@Html.TextBox("q", (SearchViewModel)Model.ViewModel.Query)

View File

@@ -71,7 +71,7 @@ header, footer, aside, nav, article { display: block; }
visibility: hidden;
}
.zone:after /* Self clears every zone container */
.zone:after, .widget-control:after /* .zone:after self clears every zone container - .widget-control:after self clears any floats used in a widget */
{
content: ".";
display: block;
@@ -424,13 +424,6 @@ nav ul
.widgets {}
.widget h1 { font-size: 1.077em; }
/* Search */
/* Search widget shuld go into the sidebar for proper styling */
/* TODO: (mibach) Generic any zone compatible search widget */
.search-form {}
.search-form input[type="text"] { float: left; }
.search-form button[type="submit"] { float: left; margin: 0; margin-left: 6px; }
/* Edit Mode Widgets */
/* These are the edit controls that appear when you're logged-in */
.widget-control { position: relative; border: 1px dotted #5f97af; }