Series/Details rezie title

New: Series title will resize on details page if its too long
pull/2/head
Mark McDowall 12 years ago
parent a149a3ab5b
commit 50ad661a95

@ -65,12 +65,9 @@ hr
#logo #logo
{ {
font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif;
font-weight: 100;
height: 135px; height: 135px;
background: url(images/logo.png) no-repeat left top; background: url(images/logo.png) no-repeat left top;
background-color: #065EFE; background-color: #065EFE;
font-size: 110px;
color: white; /**color: rgb(40, 40, 40);**/ color: white; /**color: rgb(40, 40, 40);**/
text-transform: lowercase; text-transform: lowercase;
letter-spacing: -1px; letter-spacing: -1px;
@ -78,6 +75,16 @@ hr
padding-left: 140px; 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 .stackframe
{ {
font-family: Consolas, Monospace; font-family: Consolas, Monospace;

@ -10,7 +10,13 @@
Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + 1 Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + 1
).prop('checked', e.target.checked); ).prop('checked', e.target.checked);
} }
lastCheckbox = e.target; lastCheckbox = e.targety()
}); });
}; };
})(jQuery); })(jQuery);
$(document).ready(function () {
while($('#logo span').height() > $('#logo').height()) {
$('#logo span').css('font-size', (parseInt($('#logo span').css('font-size')) - 1) + "px" );
};
});

@ -34,7 +34,7 @@
<input id="localSeriesLookup" type="text" /> <input id="localSeriesLookup" type="text" />
</div> </div>
<div id="logo"> <div id="logo">
@ViewBag.Title <span>@ViewBag.Title</span>
</div> </div>
<div id="page"> <div id="page">
@RenderSection("ActionMenu", required: false) @RenderSection("ActionMenu", required: false)

Loading…
Cancel
Save