"À gauche le menu !"

This commit is contained in:
Doug Le Tough 2017-10-30 12:01:47 +01:00
parent c0e9344a0a
commit 4f25b1304a
5 changed files with 25 additions and 2 deletions

View File

@ -53,6 +53,17 @@ div.top_menu input {
margin-right: 4px; 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 { div.top_menu input:hover {
background-color: #FF5D00; background-color: #FF5D00;
} }

View File

@ -53,6 +53,17 @@ div.top_menu input {
margin-right: 4px; 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 { div.top_menu input:hover {
background-color: #FF5D00; background-color: #FF5D00;
} }

View File

@ -4,7 +4,7 @@
<title>Tetastock</title> <title>Tetastock</title>
<meta name="viewport" content="initial-scale=1.0"> <meta name="viewport" content="initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <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> <script type="text/javascript" src="/static/scripts/tetalab.js"></script>
</head> </head>
<body> <body>

View File

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

View File

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