mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Some RTL fixes for #24
This commit is contained in:
parent
db69587863
commit
856833d2ec
@ -19,6 +19,9 @@ namespace BuildFeed
|
||||
bundles.Add(new StyleBundle("~/content/css").Include(
|
||||
"~/content/style.css"));
|
||||
|
||||
bundles.Add(new StyleBundle("~/content/rtl").Include(
|
||||
"~/content/rtl.css"));
|
||||
|
||||
// Set EnableOptimizations to false for debugging. For more information,
|
||||
// visit http://go.microsoft.com/fwlink/?LinkId=301862
|
||||
BundleTable.EnableOptimizations = true;
|
||||
|
@ -666,6 +666,7 @@
|
||||
<Content Include="content\icons-2x.png" />
|
||||
<Content Include="content\icons.png" />
|
||||
<Content Include="content\tile\large.png" />
|
||||
<Content Include="content\rtl.css" />
|
||||
<Content Include="content\tile\square.png" />
|
||||
<Content Include="content\tile\tiny.png" />
|
||||
<Content Include="content\tile\wide.png" />
|
||||
|
@ -1,5 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html dir="@(System.Globalization.CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ? "rtl" : "ltr")">
|
||||
@{
|
||||
bool IsRTL = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft;
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html dir="@(IsRTL ? "rtl" : "ltr")">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
@ -13,6 +16,10 @@
|
||||
<meta name="application-name" content="@BuildFeed.Local.Common.SiteName" />
|
||||
|
||||
@Styles.Render("~/content/css")
|
||||
@if(IsRTL)
|
||||
{
|
||||
Styles.Render("~/content/rtl");
|
||||
}
|
||||
<title>@ViewBag.Title</title>
|
||||
@RenderSection("head", false)
|
||||
<script type="text/javascript">
|
||||
@ -89,10 +96,10 @@
|
||||
</article>
|
||||
<footer id="page-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="col-sm-8 text-left">
|
||||
<p>
|
||||
<a href="@Url.Action("sitemap", new { controller = "support" })">@BuildFeed.Local.Common.Sitemap</a><br />
|
||||
<i class="fa fa-language"></i>  @System.Globalization.CultureInfo.CurrentUICulture.NativeName (<a href="@Url.Action("credits", new { controller = "support" })">@BuildFeed.Local.Common.Credits</a>)
|
||||
<i class="fa fa-language"></i> @System.Globalization.CultureInfo.CurrentUICulture.NativeName (<a href="@Url.Action("credits", new { controller = "support" })">@BuildFeed.Local.Common.Credits</a>)
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-4 text-right">
|
||||
|
@ -1,10 +1,9 @@
|
||||
@model System.Web.Mvc.HandleErrorInfo
|
||||
@{
|
||||
Layout = null;
|
||||
bool IsRTL = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html dir="@(IsRTL ? "rtl" : "ltr")">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
@ -17,6 +16,10 @@
|
||||
<meta name="application-name" content="@BuildFeed.Local.Common.SiteName" />
|
||||
|
||||
@Styles.Render("~/content/css")
|
||||
@if (IsRTL)
|
||||
{
|
||||
Styles.Render("~/content/rtl");
|
||||
}
|
||||
<title>@BuildFeed.Local.Common.Error | @BuildFeed.Local.Common.SiteName</title>
|
||||
<script type="text/javascript">
|
||||
var appInsights = window.appInsights || function (config) {
|
||||
@ -59,7 +62,8 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h1>@BuildFeed.Local.Common.Error</h1>
|
||||
<p>Something's broke. Maybe it's because you did something weird. Probably it's because I did something weird. If you keep getting this error, take a screenshot and spam <a href="https://twitter.com/tomhounsell">me</a> on Twitter with it.
|
||||
<p>
|
||||
Something's broke. Maybe it's because you did something weird. Probably it's because I did something weird. If you keep getting this error, take a screenshot and spam <a href="https://twitter.com/tomhounsell">me</a> on Twitter with it.
|
||||
</p>
|
||||
<p>Controller: <code>@Model.ControllerName</code></p>
|
||||
<p>Action: <code>@Model.ActionName</code></p>
|
||||
@ -69,7 +73,12 @@
|
||||
</article>
|
||||
<footer id="page-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-offset-8 col-sm-4 text-right">
|
||||
<div class="col-sm-8 text-left">
|
||||
<p>
|
||||
<i class="fa fa-language"></i> @System.Globalization.CultureInfo.CurrentUICulture.NativeName (<a href="@Url.Action("credits", new { controller = "support" })">@BuildFeed.Local.Common.Credits</a>)
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-4 text-right">
|
||||
<p>
|
||||
© 2013 - @DateTime.Now.Year.ToString(), @BuildFeed.Local.Common.SiteName<br />
|
||||
@BuildFeed.Local.Common.DevelopedBy <a href="https://twitter.com/tomhounsell" target="_blank">Thomas Hounsell</a><br />
|
||||
|
4
BuildFeed/content/rtl.css
Normal file
4
BuildFeed/content/rtl.css
Normal file
@ -0,0 +1,4 @@
|
||||
.form-horizontal .form-control-static
|
||||
{
|
||||
text-align: left;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user