fixes and improvements

master
Laurent Morvillier 6 years ago
parent cfb9aee497
commit de50d9b4e9
  1. 14
      news/static/news/css/app.css
  2. 9
      news/templates/base.html
  3. 0
      news/templates/news/user/change_password.html
  4. 2
      news/templates/news/user/password_reset_confirm.html
  5. 2
      news/urls.py

@ -12,6 +12,14 @@
--header-bg-color: #FFD540;
}
.container {
background-color: #1a1a1a;
}
/* .imgcontainer img {
max-width: 100%;
} */
iframe {
border: 0;
}
@ -25,7 +33,7 @@ a:hover {
body {
color: #eee;
background-color: #222;
background-color: #111;
font-size:18px;
margin: 0px;
padding: 0px;
@ -42,7 +50,7 @@ header {
}
@media print, screen and (min-width: 40em) {
header {
width: 420px;
width: 400px;
}
}
@ -189,7 +197,7 @@ a h1 {
}
@media print, screen and (min-width: 40em) {
.imgcontainer {
width: 600px;
/* width: 600px; */
/* border-bottom: 10px solid #111; */
/* border-top: 20px solid #111; */
}

@ -35,20 +35,18 @@
</header> -->
<div class="grid-x">
<!-- <div class="cell large-2 header">
</div> -->
<div class="cell large-6 large-offset-3 content">
<div class="cell large-offset-3 large-6 medium-8 medium-offset-2 content container">
<!-- Header -->
<header>
<a href="{% url 'news:index' %}">
<img src="{% static 'image/icon128_transparent.png' %}" alt="Poker Rumble icon" width="96" height="96"/>
</a>
<div class="title">
<h1>
<a href="{% url 'news:index' %}">poker rumble</a>
</h1>
</div>
<!-- <h2>HOME OF NEWS GRINDERS</h2> -->
<nav>
{% if user.is_authenticated %}
@ -71,6 +69,7 @@
<!-- Body -->
{% block content %}{% endblock %}
</div>
</div>
<!-- Footer -->

@ -21,7 +21,7 @@
<label for="id_new_password2">Confirm password:</label>
{{ form.new_password2 }}
</div>
<input type="submit" value="Change my password">
<button class="primary_button" type="submit">Change my password</button>
</fieldset>
</form>

@ -36,5 +36,5 @@ urlpatterns = [
path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(
template_name='news/user/password_reset_confirm.html',
success_url='password-change/done'), name='password_reset_confirm'),
path('reset/Mg/set-password/password-change/done', auth_views.PasswordResetCompleteView.as_view(template_name='news/user/password_reset_complete.html'), name='password_change_done'),
path('reset/<uidb64>/set-password/password-change/done', auth_views.PasswordResetCompleteView.as_view(template_name='news/user/password_reset_complete.html'), name='password_change_done'),
]

Loading…
Cancel
Save