From 7dc64c49c7bdd54533a812f13d74e2ccc6faec83 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 17 Mar 2011 15:16:33 +0000 Subject: [PATCH] [log][html] pure css --- SparkleShare/SparkleLog.cs | 12 ++--- data/html/event-entry.html | 26 +++++------ data/html/event-log.html | 89 +++++++++++++++++++++----------------- 3 files changed, 67 insertions(+), 60 deletions(-) diff --git a/SparkleShare/SparkleLog.cs b/SparkleShare/SparkleLog.cs index af3e6dcf..e0790b8c 100644 --- a/SparkleShare/SparkleLog.cs +++ b/SparkleShare/SparkleLog.cs @@ -104,12 +104,12 @@ namespace SparkleShare { process.StartInfo.Arguments = args.Request.Uri.Replace (" ", "\\ "); // Escape space-characters process.Start (); + // FIXME: Use the right event, waiting for newer webkit bindings + UpdateEventLog (); } - // FIXME: webview should stay on the same page - }; ScrolledWindow.AddWithViewport (WebView); @@ -181,8 +181,8 @@ namespace SparkleShare { HTML = SparkleShare.Controller.GetHTMLLog (System.IO.Path.GetFileName (LocalPath)); - HTML = HTML.Replace ("", (Style.FontDescription.Size / 1024 + 0.5) + "pt"); - HTML = HTML.Replace ("", (Style.FontDescription.Size / 1024 + 0.6) + "pt"); + HTML = HTML.Replace ("", (double) (Style.FontDescription.Size / 1024 + 3) + "px"); + HTML = HTML.Replace ("", (Style.FontDescription.Size / 1024 + 3) + "px"); HTML = HTML.Replace ("", "#0085cf"); HTML = HTML.Replace ("", "#009ff8"); HTML = HTML.Replace ("", "\"" + Style.FontDescription.Family + "\""); @@ -203,8 +203,6 @@ namespace SparkleShare { Application.Invoke (delegate { - WebView.LoadString (HTML, null, null, "file://"); - if (Spinner.Active) { LayoutVertical.Remove (Spinner); @@ -227,6 +225,8 @@ namespace SparkleShare { LayoutVertical.PackStart (ScrolledWindow, true, true, 0); LayoutVertical.ReorderChild (ScrolledWindow, 0); + WebView.LoadString (HTML, null, null, "file://"); + LayoutVertical.ShowAll (); }); diff --git a/data/html/event-entry.html b/data/html/event-entry.html index 5b321499..dfbbb45c 100644 --- a/data/html/event-entry.html +++ b/data/html/event-entry.html @@ -2,20 +2,18 @@
- - - - - - -
-
-
-
-
-
- -
+
+
+
+ +
+ + +
+ +
+ +
diff --git a/data/html/event-log.html b/data/html/event-log.html index 7e912ba5..e9dff0ba 100644 --- a/data/html/event-log.html +++ b/data/html/event-log.html @@ -23,37 +23,18 @@ } .day-entry-header { - font-size: ; - color: #babdb6; - text-align: center; - margin-left: auto; - margin-right: auto; - width: 90%; - text-shadow: 0 1px 0 rgba(255, 255, 255, 1.0); + font-size: ; + color: #babdb6; + text-align: center; + width: 90%; + text-shadow: 0 1px 0 rgba(255, 255, 255, 1.0); + margin-bottom: 9px; } .day-entry-content { padding: 9px; } - - dl { - padding: 0; - margin: 0; - padding-bottom: 15px; - } - - dt { - padding-bottom: 9px; - padding-top: 9px; - } - - dd { - width: 100px; - padding-left: 0; - margin-left: 12px; - text-overflow: ellipsis; - } - + a { color: ; text-decoration: none; @@ -63,22 +44,54 @@ color: ; } - td { - vertical-align: top; + .event-time { + font-size: 80%; + color: ; + float: right; } - .event-time, dt { - font-size: 80%; - color: ; + .event-entry-content { + display: block; + width: 400px; + background-color: #fff; + margin-left: auto; + margin-right: auto; + margin-bottom: 9px; + padding: 18px; + -webkit-border-radius: 6px; + border: #ddd 1px solid; } + + dl { + padding: 0; + margin: 0; + padding-bottom: 15px; + } + + dt { + padding-bottom: 12px; + padding-top: 12px; + font-size: 80%; + color: ; + } + + dd { + width: 300px; + overflow: hidden; + padding-left: 0; + margin-left: 12px; + text-overflow: ellipsis; + padding-bottom: 9px; + } + .no-buddy-icon { + float: left; margin-right: 12px; width: 36px; - height: 36px; background-image: url(''); background-repeat: no-repeat; - background-position: center; + background-position: top center; } .buddy-icon { @@ -86,19 +99,15 @@ height: 36px; } - .event-entry-content { - background-color: #fff; - margin: 12px; - padding: 12px; - -webkit-border-radius: 6px; - border: #ddd 1px solid; + .event-info { + float: left; } - +