mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixed search widget rendering and edit wrappers in the ThemeMachine. Work Item: 16941
--HG-- branch : dev
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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; }
|
||||
|
Reference in New Issue
Block a user