Browse Source

"À gauche le menu !"

master
Doug Le Tough 4 years ago
parent
commit
4f25b1304a
5 changed files with 25 additions and 2 deletions
  1. +11
    -0
      static/style/style_neutral.css
  2. +11
    -0
      static/style/style_tth.css
  3. +1
    -1
      templates/error.html
  4. +1
    -1
      templates/index.html
  5. +1
    -0
      tetastock.py

+ 11
- 0
static/style/style_neutral.css View File

@ -53,6 +53,17 @@ div.top_menu input {
margin-right: 4px;
}
div.top_menu .menu_button {
position: relative;
float: left;
top: 4px;
width: 16px;
height: 16px;
border-radius: 2px;
margin-left: 4px;
}
div.top_menu input:hover {
background-color: #FF5D00;
}


+ 11
- 0
static/style/style_tth.css View File

@ -53,6 +53,17 @@ div.top_menu input {
margin-right: 4px;
}
div.top_menu .menu_button {
position: relative;
float: left;
top: 4px;
width: 16px;
height: 16px;
border-radius: 2px;
margin-left: 4px;
}
div.top_menu input:hover {
background-color: #FF5D00;
}


+ 1
- 1
templates/error.html View File

@ -4,7 +4,7 @@
<title>Tetastock</title>
<meta name="viewport" content="initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/static/style/style_{{ css }}.css" />
<link rel="stylesheet" type="text/css" href="/static/style/style_neutral.css" />
<script type="text/javascript" src="/static/scripts/tetalab.js"></script>
</head>
<body>


+ 1
- 1
templates/index.html View File

@ -17,7 +17,7 @@
</div>
<div class='top_menu'>
{% block top_menu %} <span class='top_menu_item_selected' onclick='javascript:document.location="./";'>Accueil</span> {% endblock %}
<input type='image' src='/static/images/menu.png' title='Afficher/Cacher menu' value='' onclick='javascript:switch_css("{{ css }}");' />
<input type='image' class='menu_button' src='/static/images/menu.png' title='Afficher/Cacher menu' value='' onclick='javascript:switch_css("{{ css }}");' />
<input type='image' src='/static/images/logout.png' title='Se deconnecter' value='' onclick='javascript:logout();' />
</div>
<div class='content_wrapper'>


+ 1
- 0
tetastock.py View File

@ -301,6 +301,7 @@ def resume_session(func):
# Routes
########################################################################
@app.errorhandler(404)
@resume_session
def page_not_found(e):
""" 404 not found """
return render_template('error.html', css=session[u'css']), 404


Loading…
Cancel
Save