From 2841f0740024a8351606452a5f803b9b7f70c783 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Thu, 6 Feb 2014 18:57:56 +0000 Subject: [PATCH] toaster: Remove inline styles in h1 The templates bpackage.html, recipes.html and build.html included an inline style declaration in the div containing the h1 tag to add a top margin of 40px. The extra top margin is unnecessary in bpackage.html and recipes.html, but nicely separates the Recent builds and All builds sections in build.html. The changes remove the inline style declaration and create a .top-air class in default.css to include the extra top margin when needed, i.e. in the build.html template. Signed-off-by: Belen Barros Pena --- lib/toaster/toastergui/static/css/default.css | 1 + lib/toaster/toastergui/templates/bpackage.html | 2 +- lib/toaster/toastergui/templates/build.html | 4 ++-- lib/toaster/toastergui/templates/recipes.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css index f523d415f15..76d6cb9b8b2 100644 --- a/lib/toaster/toastergui/static/css/default.css +++ b/lib/toaster/toastergui/static/css/default.css @@ -98,6 +98,7 @@ th > a, th > span { font-weight: normal; } .dropdown-menu { padding: 10px; } select { width: auto; } .page-header { color: #5A5A5A; } +.top-air { margin-top: 40px;} .progress { margin-bottom: 0px; } .lead .badge { font-size: 18px; font-weight: normal; border-radius: 15px; padding: 9px; } .well > .lead, .alert .lead { margin-bottom: 0px; } diff --git a/lib/toaster/toastergui/templates/bpackage.html b/lib/toaster/toastergui/templates/bpackage.html index cc8ec90395f..1eb1f8e5c3c 100644 --- a/lib/toaster/toastergui/templates/bpackage.html +++ b/lib/toaster/toastergui/templates/bpackage.html @@ -8,7 +8,7 @@ {% block buildinfomain %}
-