Adding is-url class with importent, as W3C says all URLs are LTR therefore importent makes sense in this case

This commit is contained in:
Nicholas Mayne
2014-08-16 17:34:59 +01:00
parent 92fc357ce0
commit 393902ec85
3 changed files with 7 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
</div>
<div>
<label for="@Html.FieldIdFor(m => m.BaseUrl)">@T("Base URL")</label>
@Html.TextBoxFor(m => m.BaseUrl, new { @class = "text medium" })
@Html.TextBoxFor(m => m.BaseUrl, new { @class = "text medium is-url" })
<span class="hint">@T("Enter the fully qualified base URL of the web site.")</span>
<span class="hint">@T("e.g., http://localhost:30320/orchardlocal, http://www.yourdomain.com")</span>
</div>

View File

@@ -21,9 +21,9 @@
<fieldset class="permalink">
<label>@T("Permalink")</label>
@if (Model.Settings.AllowCustomPattern) {
<span class="permalink-definition" dir="ltr">
<span class="permalink-definition">
<span>@Url.MakeAbsolute("/")@urlPrefix</span>
<span>@Html.TextBoxFor(m => m.CurrentUrl, new { @class = "text" })</span>
<span>@Html.TextBoxFor(m => m.CurrentUrl, new { @class = "text is-url" })</span>
</span>
<span class="hint">@T("Save the current item and leave the input empty to have it automatically generated using the pattern {0} e.g., {1}", defaultPattern.Name, defaultPattern.Description)</span>
}

View File

@@ -1095,12 +1095,16 @@ html.dyn #submit-pager, html.dyn .apply-bulk-actions-auto { display:none; }
margin-left:0;
margin-right:2em;
width:350px;
direction: ltr;
}
.permalink input.text:focus {
background:#FFF;
border-color:#666d51;
border-style:solid;
}
.is-url {
direction: ltr !important;
}
/* Routable and Containers (Core) */
.with-checkbox .checkbox-and-label { /* todo: (heskew) routable should be changed to use this too */
margin-left:10px;