From 50ad661a951809e4ee8452c1a80547edef0cccd2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 28 Oct 2012 10:48:38 -0700 Subject: [PATCH] Series/Details rezie title New: Series title will resize on details page if its too long --- NzbDrone.Web/Content/NzbDrone.css | 13 ++++++++++--- NzbDrone.Web/Scripts/NzbDrone/common.js | 10 ++++++++-- NzbDrone.Web/Views/Shared/_Layout.cshtml | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/NzbDrone.Web/Content/NzbDrone.css b/NzbDrone.Web/Content/NzbDrone.css index d0d3bdeda..c751f9295 100644 --- a/NzbDrone.Web/Content/NzbDrone.css +++ b/NzbDrone.Web/Content/NzbDrone.css @@ -65,12 +65,9 @@ hr #logo { - font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif; - font-weight: 100; height: 135px; background: url(images/logo.png) no-repeat left top; background-color: #065EFE; - font-size: 110px; color: white; /**color: rgb(40, 40, 40);**/ text-transform: lowercase; letter-spacing: -1px; @@ -78,6 +75,16 @@ hr padding-left: 140px; } +#logo span { + font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif; + font-weight: 100; + margin-top: 0; + padding-top: 0; + font-size: 110px; + margin-bottom: -20px; + display: inline-block; +} + .stackframe { font-family: Consolas, Monospace; diff --git a/NzbDrone.Web/Scripts/NzbDrone/common.js b/NzbDrone.Web/Scripts/NzbDrone/common.js index 98c481dc1..07276d84c 100644 --- a/NzbDrone.Web/Scripts/NzbDrone/common.js +++ b/NzbDrone.Web/Scripts/NzbDrone/common.js @@ -10,7 +10,13 @@ Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + 1 ).prop('checked', e.target.checked); } - lastCheckbox = e.target; + lastCheckbox = e.targety() }); }; -})(jQuery); \ No newline at end of file +})(jQuery); + +$(document).ready(function () { + while($('#logo span').height() > $('#logo').height()) { + $('#logo span').css('font-size', (parseInt($('#logo span').css('font-size')) - 1) + "px" ); + }; +}); \ No newline at end of file diff --git a/NzbDrone.Web/Views/Shared/_Layout.cshtml b/NzbDrone.Web/Views/Shared/_Layout.cshtml index f183e4740..bc9ebe4f7 100644 --- a/NzbDrone.Web/Views/Shared/_Layout.cshtml +++ b/NzbDrone.Web/Views/Shared/_Layout.cshtml @@ -34,7 +34,7 @@
@RenderSection("ActionMenu", required: false)