Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Louis
pypimonitor
Commits
b1276b2c
Commit
b1276b2c
authored
May 26, 2016
by
Louis
Browse files
Improve table CSS
parent
fcd54c91
Pipeline
#7405
failed with stage
in 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pypimonitor/data/static/style.css
View file @
b1276b2c
...
...
@@ -28,3 +28,20 @@
.tooltip
:hover
.tooltiptext
{
visibility
:
visible
;
}
/*******************************************************************************
* TABLE
******************************************************************************/
table
.badges
{
border-spacing
:
0
1px
;
border-collapse
:
separate
;
}
table
.badges
td
{
vertical-align
:
middle
;
}
table
.badges
thead
td
{
text-align
:
center
;
}
pypimonitor/data/templates/index.html
View file @
b1276b2c
...
...
@@ -26,7 +26,7 @@
{% if packages %}
{{ linecharts.plot(packages.values()) }}
<table>
<table
class=
"badges"
>
<thead><tr>
{% for column in config['columns'] -%}
<td>
...
...
@@ -40,7 +40,7 @@
</tr></thead>
<tbody>
{% for package in packages|sort -%}
<tr
bg
color
=
"
{{ package |color(0.1, 0.8) }}"
>
<tr
style=
"background-
color
:
{{ package |color(0.1, 0.8) }}
;
"
>
{% for column in config['columns'] -%}
<td>
{% if config['packages'][package][column]['column'] in columns %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment