chore: moar inline to stylez.css
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-02-12 21:47:51 +01:00
parent f2841fe0b3
commit 5cd55341da
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
8 changed files with 41 additions and 33 deletions

View File

@ -2,15 +2,6 @@
@{
ViewData["Title"] = "Carousel Select";
}
@section Styles {
<environment include="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
</environment>
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>

View File

@ -2,15 +2,6 @@
@{
ViewData["Title"] = "Products";
}
@section Styles {
<environment include="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
</environment>
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>

View File

@ -2,14 +2,6 @@
@{
ViewData["Title"] = "My Orders";
}
@section Styles {
<environment include="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
</environment>
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>

View File

@ -11,17 +11,17 @@
<h3>Login or <a href="/Security/Account/Register">Sign up</a></h3>
<div class="row row-xs-offset-1 row-sm-offset-2">
<div class="col-xs-2 col-sm-2">
<a href="#" class="btn btn-lg btn-block btn-facebook" style="background: #172d5e;color: #fff;" data-toggle="tooltip" data-placement="top" title="Facebook">
<a href="#" class="btn btn-lg btn-block btn-facebook" data-toggle="tooltip" data-placement="top" title="Facebook">
<i class="fa fa-facebook fa-1x"></i>
</a>
</div>
<div class="col-xs-2 col-sm-2">
<a href="#" class="btn btn-lg btn-block btn-twitter" style="background: #043d52;color: #fff;" data-toggle="tooltip" data-placement="top" title="Twitter">
<a href="#" class="btn btn-lg btn-block btn-twitter" data-toggle="tooltip" data-placement="top" title="Twitter">
<i class="fa fa-twitter fa-1x"></i>
</a>
</div>
<div class="col-xs-2 col-sm-2">
<a href="#" class="btn btn-lg btn-block btn-github" style="background: #666666;color: #fff;" data-toggle="tooltip" data-placement="top" title="GitHub">
<a href="#" class="btn btn-lg btn-block btn-github" data-toggle="tooltip" data-placement="top" title="GitHub">
<i class="fa fa-github fa-1x"></i>
</a>
</div>

View File

@ -30,7 +30,7 @@
<div class="card card-outline-secondary my-4">
<div class="card-body">
<hr>
<input type="button" class="btn btn-primary" value="Add to order" style="font-size:1.5em" onclick="Buy(@Model.id,'@Url.Action("AddOrderItemsToSession", "CustomerOrderNotCart", new { Area = "Customer" })', '#price_total', '@System.Globalization.CultureInfo.CurrentCulture.Name')" />
<input type="button" id="add_to_order" class="btn btn-primary" value="Add to order" onclick="Buy(@Model.id,'@Url.Action("AddOrderItemsToSession", "CustomerOrderNotCart", new { Area = "Customer" })', '#price_total', '@System.Globalization.CultureInfo.CurrentCulture.Name')" />
</div>
</div><!-- /.card -->
</div><!-- /.col-lg-9 -->

View File

@ -14,9 +14,9 @@
@{
if (Model != null && Model.Products.Count > 0){
for(int i = 0; i < Model.Products.Count; i++){
<div class="col-lg-4 col-md-6 mb-4">
<div id="prod_card" class="col-lg-4 col-md-6 mb-4">
<div class="card h-100">
<a asp-area="" asp-controller="Products" asp-action="Detail" asp-route-id="@Model.Products[i].id"><img class="card-img-top img-responsive" style="height: 150px;" src="@Model.Products[i].ImageSrc" alt="@Model.Products[i].ImageAlt"></a>
<a asp-area="" asp-controller="Products" asp-action="Detail" asp-route-id="@Model.Products[i].id"><img class="card-img-top img-responsive" id="prod_list_img" src="@Model.Products[i].ImageSrc" alt="@Model.Products[i].ImageAlt"></a>
<div class="card-body">
<h4 class="card-title">
<a asp-area="" asp-controller="Products" asp-action="Detail" asp-route-id="@Model.Products[i].id">@Model.Products[i].Name</a>

View File

@ -8,11 +8,13 @@
@RenderSection("Styles", required: false)
<environment include="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css"/>
<link rel="stylesheet" href="~/css/site.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="~/css/stylez.css"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute"/>
@ -70,7 +72,7 @@
price_total = (int)Context.Session.GetInt32(s_price_total).GetValueOrDefault();
System.Console.WriteLine("price total: " + price_total);
}
<li class="navbar-text"><label id="price_total" class="label" style="color:red;font-size:1.4em">@price_total.ToString("C2")</label></li>
<li class="navbar-text"><label id="price_total" class="label">@price_total.ToString("C2")</label></li>
}
}
</ul>

View File

@ -8,4 +8,36 @@
#details_summary {
margin-bottom: 3em;
}
#price_total {
color:red;
font-size:1.4em
}
#add_to_order {
font-size:1.5em;
}
#prod_list_img {
height: 150px;
}
#prod_card {
margin-bottom: 2em;
}
.btn-facebook {
background: #172d5e;
color: #fff;
}
.btn-twitter {
background: #043d52;
color: #fff;
}
.btn-github {
background: #666666;
color: #fff;
}