Commit 709006af8daecfcd121aa65a16bc180e7805381b

Authored by hitier
1 parent d7a4e41b

Move agent style to main_bp static dir

app/main/__init__.py
1 from flask import Blueprint 1 from flask import Blueprint
2 2
3 bp = Blueprint('main', __name__, 3 bp = Blueprint('main', __name__,
4 - template_folder='templates') 4 + template_folder='templates',
  5 + static_folder='static',
  6 + static_url_path='/main/static')
5 7
6 from . import routes 8 from . import routes
app/main/static/css/charges.css 0 → 100644
@@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
  1 +#charge_table,
  2 +#charge_table th,
  3 +#charge_table td {
  4 + margin-top: 5em;
  5 + margin-bottom: 5em;
  6 + border: solid 1px lightsteelblue;
  7 +}
  8 +
  9 +#charge_table td {
  10 + padding: 0.8em;
  11 +}
  12 +
  13 +#charge_div {
  14 + background-color: #fAfAfA;
  15 + border: 1pt solid black;
  16 + display: inline-block;
  17 +}
  18 +
  19 +rect.bar:hover {
  20 + fill: dimgrey;
  21 +}
  22 +
  23 +rect.bar {
  24 + fill: rgb(127, 127, 159);
  25 +}
  26 +
  27 +.tooltip {
  28 + position: absolute;
  29 + opacity: 1.0;
  30 + z-index: 1000;
  31 + text-align: left;
  32 + border-radius: 4px;
  33 + -moz-border-radius: 4px;
  34 + -webkit-border-radius: 4px;
  35 + padding: 10px;
  36 + border: 1px solid;
  37 + background-color: white;
  38 + color: black;
  39 + /*font: 12px sans-serif;*/
  40 + max-width: 300px;
  41 +}
app/main/templates/agent.html
1 {% extends "base_page.html" %} 1 {% extends "base_page.html" %}
2 2
3 {% block more_heads %} 3 {% block more_heads %}
4 -<style type="text/css">  
5 - #charge_table,  
6 - #charge_table th,  
7 - #charge_table td{  
8 - margin-top: 5em;  
9 - margin-bottom: 5em;  
10 - border: solid 1px lightsteelblue;  
11 - }  
12 - #charge_table td {  
13 - padding: 0.8em;  
14 - }  
15 - #charge_div {  
16 - background-color: #fAfAfA;  
17 - border: 1pt solid black;  
18 - display: inline-block;  
19 - }  
20 -  
21 - rect.bar:hover {  
22 - fill: dimgrey;  
23 - }  
24 -  
25 - rect.bar {  
26 - fill: rgb(127, 127, 159);  
27 - }  
28 -  
29 - .tooltip {  
30 - position: absolute;  
31 - opacity: 1.0;  
32 - z-index: 1000;  
33 - text-align: left;  
34 - border-radius: 4px;  
35 - -moz-border-radius: 4px;  
36 - -webkit-border-radius: 4px;  
37 - padding: 10px;  
38 - border: 1px solid;  
39 - background-color: white;  
40 - color: black;  
41 - /*font: 12px sans-serif;*/  
42 - max-width: 300px;  
43 - }  
44 -  
45 -</style> 4 +<link href="{{ url_for('main.static', filename='css/style.css') }}" rel="stylesheet" type="text/css"/>
46 {% endblock %} 5 {% endblock %}
47 6
48 {% block content %} 7 {% block content %}