mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +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 {
|
.search-results {
|
||||||
clear:both;
|
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;
|
@using Orchard.Search.ViewModels;
|
||||||
|
|
||||||
|
@{
|
||||||
|
Style.Require("Search");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@using(Html.BeginForm("index", "search", new { area = "Orchard.Search" }, FormMethod.Get, new { @class = "search-form" })) {
|
@using(Html.BeginForm("index", "search", new { area = "Orchard.Search" }, FormMethod.Get, new { @class = "search-form" })) {
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@Html.TextBox("q", (SearchViewModel)Model.ViewModel.Query)
|
@Html.TextBox("q", (SearchViewModel)Model.ViewModel.Query)
|
||||||
|
@@ -71,7 +71,7 @@ header, footer, aside, nav, article { display: block; }
|
|||||||
visibility: hidden;
|
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: ".";
|
content: ".";
|
||||||
display: block;
|
display: block;
|
||||||
@@ -424,13 +424,6 @@ nav ul
|
|||||||
.widgets {}
|
.widgets {}
|
||||||
.widget h1 { font-size: 1.077em; }
|
.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 */
|
/* Edit Mode Widgets */
|
||||||
/* These are the edit controls that appear when you're logged-in */
|
/* These are the edit controls that appear when you're logged-in */
|
||||||
.widget-control { position: relative; border: 1px dotted #5f97af; }
|
.widget-control { position: relative; border: 1px dotted #5f97af; }
|
||||||
|
Reference in New Issue
Block a user