[bitbake-devel] [PATCH 02/14] toaster: apply common styles to right hand column of detail pages
Alex DAMIAN
alexandru.damian at intel.com
Tue Jan 27 14:27:23 UTC 2015
From: Belen Barros Pena <belen.barros.pena at intel.com>
Layer, recipe and package details pages have a right column
with additional information. This commit standardises the
formatting of the content in that right column across
all these pages by creating a new css class .item-info
in default.css
Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
---
lib/toaster/toastergui/static/css/default.css | 3 +--
lib/toaster/toastergui/templates/layerdetails.html | 2 +-
lib/toaster/toastergui/templates/package_detail_base.html | 2 +-
lib/toaster/toastergui/templates/recipe.html | 6 +++---
4 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css
index a3fa0dd..5eeeea4 100644
--- a/lib/toaster/toastergui/static/css/default.css
+++ b/lib/toaster/toastergui/static/css/default.css
@@ -38,7 +38,7 @@ dd code, .alert code { white-space: pre-wrap; word-break: break-all; word-wrap:
dd ul { list-style-type: none; margin: 0px; }
dt, dd {line-height: 25px; }
dd li { line-height: 25px; }
-dd p { line-height: 20px; }
+.item-info dd { line-height: 20px; margin-bottom: 10px; }
/* Style the filter modal dialogs */
.modal { width: 800px; margin-left: -400px; }
@@ -200,7 +200,6 @@ dl textarea { resize: vertical; }
.lead .help-block { font-size: 14px; line-height: 20px; font-weight: normal; }
.button-place .btn { margin: 0 0 20px 0; }
.tooltip-inner { max-width: 250px; }
-dd > span { line-height: 20px; }
.new-build { padding: 20px; }
.new-build li { line-height: 30px; }
.new-build h6 { margin: 10px 0 0 0; color: #5a5a5a; }
diff --git a/lib/toaster/toastergui/templates/layerdetails.html b/lib/toaster/toastergui/templates/layerdetails.html
index 22e99e0..9286df6 100644
--- a/lib/toaster/toastergui/templates/layerdetails.html
+++ b/lib/toaster/toastergui/templates/layerdetails.html
@@ -431,7 +431,7 @@
</div>
<div class="row-fluid span4 well">
<h2>About {{layerversion.layer.name}}</h2>
- <dl>
+ <dl class="item-info">
<dt>
Summary
diff --git a/lib/toaster/toastergui/templates/package_detail_base.html b/lib/toaster/toastergui/templates/package_detail_base.html
index dfeba55..ad75454 100644
--- a/lib/toaster/toastergui/templates/package_detail_base.html
+++ b/lib/toaster/toastergui/templates/package_detail_base.html
@@ -54,7 +54,7 @@
<h2>Package information</h2>
<!-- info presented as definition list -->
- <dl>
+ <dl class="item-info">
<dt>
Size
<i class="icon-question-sign get-help" title="The size of the package"></i>
diff --git a/lib/toaster/toastergui/templates/recipe.html b/lib/toaster/toastergui/templates/recipe.html
index b20c65e..d91768d 100644
--- a/lib/toaster/toastergui/templates/recipe.html
+++ b/lib/toaster/toastergui/templates/recipe.html
@@ -250,14 +250,14 @@
<div class="row span4 well">
<h2>About {{object.name}}</h2>
- <dl>
+ <dl class="item-info">
{% if object.summary %}
<dt>Summary</dt>
- <dd><p>{{object.summary}}</p></dd>
+ <dd>{{object.summary}}</dd>
{% endif %}
{% if object.description %}
<dt>Description</dt>
- <dd><p>{{object.description}}</dd>
+ <dd>{{object.description}}</dd>
{% endif %}
{% if object.homepage %}
<dt>Homepage</dt>
--
1.9.1
More information about the bitbake-devel
mailing list