From 214f79d9357976f8c8a4fa29403c4a0adaba985c Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Tue, 4 Nov 2014 00:32:47 +0100 Subject: [PATCH] better design --- web/Theme/style.css | 37 +++++++++++++++--------- web/Views/FrontOffice/Estimate.aspx | 44 +++++++++++++++++++---------- web/Views/FrontOffice/Writting.ascx | 13 +++++---- 3 files changed, 60 insertions(+), 34 deletions(-) diff --git a/web/Theme/style.css b/web/Theme/style.css index 4757a3bc..e58efe88 100644 --- a/web/Theme/style.css +++ b/web/Theme/style.css @@ -8,13 +8,18 @@ body { margin-bottom:3em; } -main, aside { - background-color: rgba(0,0,0,0.8); +main { + background-color: rgba(0,0,0,0.8); + float:left; + margin:.5em; } - aside { - display:inline; - max-width:15em; +aside div { + display: block; + background-color: rgba(32,16,16,0.5); + margin: 0.7em; + float: left; + margin:.5em; } video,img { max-width:100%; @@ -41,9 +46,10 @@ a { background-color:rgba(0,30,0,0.5); } -a:hover { +.actionlink:hover { background-color:rgba(30,0,124,0.5); -border-color: white; + border-color: white; + } a:visited { @@ -60,8 +66,7 @@ label { .error { color: #f88; font-size: large; - border: solid green; - background-color: rgba(64,0,0,0.1); + background-color: rgba(128,0,0,0.3); } .validation-summary-errors{ color: #f88; @@ -98,6 +103,9 @@ padding-left: 20px; border-radius:25px; background-color:rgba(0,0,32,0.8); font-size:x-small; + z-index:1; + cursor: pointer; + font-family: 'Arial', cursive; } .code { @@ -138,14 +146,15 @@ padding-left: 20px; } .hidcom { - font-size: smaller; - display:none; -} -.actionlink:hover + .hidcom { - display:inline; position:relative; left:0x; top:0px; padding:5px; margin:5px; + display:none; position:fixed; z-index:-1; + padding:5px; margin:5px; background-color: rgba(0,0,40,.8); } +.actionlink:hover + .hidcom { + display:block; +} + @media print { body {background-color:white;color:black;} diff --git a/web/Views/FrontOffice/Estimate.aspx b/web/Views/FrontOffice/Estimate.aspx index c369caca..9ffeac78 100644 --- a/web/Views/FrontOffice/Estimate.aspx +++ b/web/Views/FrontOffice/Estimate.aspx @@ -44,7 +44,7 @@ <% int lc=0; if (Model.Lines!=null) foreach (Writting wr in Model.Lines) { lc++; %> -row" id="wr<%=wr.Id%>"> +row" id="wr<%=wr.Id%>"> <%=wr.Description%> <%=wr.ProductReference%> <%=wr.Count%> @@ -58,7 +58,7 @@ -
+ <% ViewData["EstimateId"]=Model.Id; %> <%= Html.Partial("Writting",new Writting(),new ViewDataDictionary(ViewData) { @@ -67,13 +67,17 @@ HtmlFieldPrefix = ViewData.TemplateInfo.HtmlFieldPrefix==""?"wr":ViewData.TemplateInfo.HtmlFieldPrefix+"_wr" } }) %> + +
- - - - -
+
+ + + + +
+