mirror of
https://git.yoctoproject.org/poky
synced 2026-02-12 11:43:04 +01:00
[YOCTO 5778]
Implements the features described in the attachment to bugzilla 5778
- new global changes to the format of size data, and
- adding sorts by selected columns to specific detail pages.
Although new pagination and row search capabilities are shown on the
screen shots for the 5778 attachment, those features are specified in
a different bugzilla entry 5777 and are not implemented in this commit.
Also, the 5778 spec includes table sorting for the recipe package
detail page, but sorting for that page was not implemented in this
commit due to complications with sorting then returning to a page that
is only one URL fragment in a template.
The scope of file changes are described below.
Changes to support new 'size' field column formats...
default.css - added sizecol class style (right justified)
projecttags.py - changed filtered_filesizeformat to allow
".0" suffixes
Changes that add class 'sizecol, span2(as spec'd) ' to <th> and/or
<td> size columns were made to...
dirinfo.py,
package_built_dependencies.html,
package_included_dependencies.html,
recipe.html,
bpackage.html, and
target.html
More significant changes to support detail page table sorting
are:
- tablesort.html: New created to implement the sort icons,
directions, and table headings, and
suppress sort handling if 'disable_sort' in context,
without search or pagination elements ingrained
in basetable_top. Confining the changes to this small file
reduces the impact (testing and risk) on the larger set of
files that arleady include basetable_top/bottom files.
- view.py: Modified the following view functions with
- trivial changes for size formatting to the views: target,
- changes to package_built_detail, package_included_detail,
package_included_reverse_dependencies to handle the sorting
implementation as well as moving headings and size
formatting for size columns from templates to the views.
- Implementation of the detail sorting using above in:
package_built_detail.html,
package_included_detail.html, and
package_included_reverse_dependencies.html
to include the tablesort heading setup, format the size column,
and iterate over the new sorted objects, suppressing sorts if
table row count less than 2.
(Bitbake rev: d16126e9abfffde66ab70865a81997322847d44e)
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
133 lines
5.2 KiB
CSS
133 lines
5.2 KiB
CSS
/* Style the Yocto Project logo */
|
|
.logo img { height: 30px; width: auto !important; }
|
|
.logo { padding-top: 4px !important; padding-bottom:0px !important; }
|
|
|
|
/* Style the breadcrumb */
|
|
.breadcrumb { display: inline-block; background-color: transparent; }
|
|
.section { margin: 20px 0; }
|
|
|
|
/* Styles for the help information */
|
|
.get-help { color: #CCCCCC; }
|
|
.get-help:hover { color: #999999; cursor: pointer; }
|
|
.get-help-blue { color: #3A87AD; }
|
|
.get-help-blue:hover { color: #005580; cursor: pointer; }
|
|
.manual { margin-top: 11px; }
|
|
.heading-help { font-size: 14px; }
|
|
|
|
/* Styles for the external link */
|
|
.get-info { color: #0088CC; }
|
|
.get-info:hover { color: #005580; cursor: pointer; text-decoration: none; }
|
|
|
|
/* Styles for code and pre tags */
|
|
code { background-color: transparent; border: none; color: #333333; }
|
|
dd code, .alert code { white-space: pre-wrap; word-break: break-all; word-wrap: break-word; }
|
|
.alert-warning code, .alert-warning pre { background-color: transparent; border: none; color: #C09853; margin-bottom: 0px; }
|
|
.alert-error code { background-color: transparent; border: none; color: #B94A48; margin-bottom:0px; }
|
|
.alert-error pre { background-color: transparent; border: none; color: #B94A48; word-break: normal; margin-bottom: 0px; }
|
|
.alert-warning pre { word-break: normal; }
|
|
.alert-info a { font-weight: bold; }
|
|
.alert-info code { color: #3A87AD; }
|
|
.tooltip code { background-color: transparent; color: #FFFFFF; font-weight: normal; border: none; font-size: 1em; }
|
|
|
|
/* Style for definition lists */
|
|
dd ul { list-style-type: none; margin: 0px; }
|
|
dt, dd {line-height: 25px; }
|
|
dd li { line-height: 25px; }
|
|
dd p { line-height: 20px; }
|
|
|
|
/* Style the filter modal dialogs */
|
|
.modal { width: 800px; margin-left: -400px; }
|
|
.modal-footer .btn { float: left; }
|
|
|
|
/* Hover style for the clear search icon */
|
|
.icon-remove-sign:hover { color: #999999; cursor: pointer; }
|
|
|
|
/* Some extra space before headings when needed */
|
|
.details { margin-top: 30px; }
|
|
|
|
/* Required classes for the highlight behaviour in tables */
|
|
.highlight { -webkit-animation: target-fade 10s 1; -moz-animation: target-fade 10s 1; animation: target-fade 10s 1; }
|
|
@-webkit-keyframes target-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } }
|
|
@-moz-keyframes target-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } }
|
|
@keyframes target-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } }
|
|
|
|
/* This makes tooltips work inside modal dialogs */
|
|
.tooltip { z-index: 2000 !important; }
|
|
|
|
/* Override default Twitter Boostrap styles for anchor tags inside tables */
|
|
td a { color: #333333; }
|
|
td a:hover { color: #000000; text-decoration: underline; }
|
|
|
|
/* Override default Twitter Bootstrap styles for tr.error */
|
|
.table tbody tr.error > td { background-color: #FFFFFF; } /* override default Bootstrap behaviour */
|
|
.table-hover tbody tr.error:hover > td { background-color: #F5F5F5;} /* override default Bootstrap behaviour */
|
|
|
|
/* Right justify Bootstrap table columns for size fields */
|
|
.table .sizecol { text-align: right; }
|
|
|
|
/* Set error, warning, success and muted styles */
|
|
.error, .red, td.error a, tr.error a { color: #b94a48; }
|
|
a.error:hover, a.error:focus, tr.error a:hover { color: #943A38; text-decoration: underline; }
|
|
.warning, .yellow { color: #c09853;}
|
|
a.warning { background-color: transparent; }
|
|
a.warning:hover, a.warning:focus { color: #B38942; text-decoration: underline; }
|
|
.success, .green { color: #468847;}
|
|
.success:hover { color: #347132; text-decoration: underline; }
|
|
td > .success:hover { text-decoration: underline; }
|
|
.muted a { color:#999999; }
|
|
.muted a:hover { color:#999999; }
|
|
|
|
/* Sorting functionality styles for table headings */
|
|
.sorted { color: #333333; font-weight: bold; }
|
|
.sorted:hover { color: #000000; text-decoration: underline; }
|
|
th > a, th > span { font-weight: normal; }
|
|
|
|
/* Force long strings like commit hashes to wrap */
|
|
.iscommit { white-space: pre-wrap; word-break: break-all; word-wrap: break-word;}
|
|
|
|
/* Make the popovers scrollable if they are too long */
|
|
.popover-content { max-height: 30em; overflow-y: scroll; }
|
|
|
|
/* Styles for the directory structure table. We'll probably won't use those in production */
|
|
.one { padding-left: 18px !important; }
|
|
.two { padding-left: 36px !important; }
|
|
.three { padding-left: 54px !important; }
|
|
.content-directory a { color: #0088CC; }
|
|
.content-directory a:hover { color: #005580; text-decoration: underline; }
|
|
.symlink { color: #CCCCCC; }
|
|
|
|
/* Other styles */
|
|
.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; }
|
|
.no-results { margin: 10px 0; }
|
|
.task-name { margin-left: 7px; }
|
|
.icon-hand-right {color: #CCCCCC; }
|
|
.help-inline { margin: 5px; }
|
|
.hero-unit { margin: 20px 0 30px; }
|
|
.hero-unit > .close { font-size:40px; }
|
|
.hero-actions { margin-top: 30px; }
|
|
.dashboard-section { background-color: transparent; }
|
|
|
|
/* make tables Chrome-happy (me, not so much) */
|
|
#otable { table-layout: fixed; word-wrap: break-word; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|