base.html 1.68 KB
Newer Older
1
{% extends "base.html" %}
2 3 4 5
{% load i18n %}
{% load staticfiles %}
{% get_current_language as LANGUAGE_CODE %}

6
{% block extra_css %}
7 8 9 10 11
<style type="text/css">
    html, body {
      background-color: #eee;
    }
    body {
12
      margin-top: 40px;
13 14 15 16 17 18 19 20
    }
    ul, li {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .container > .content {
21 22
      max-width: 570px;
      margin: auto;
23 24 25 26 27 28 29 30 31
      background-color: #fff;
      padding: 20px;
      -webkit-border-radius: 10px 10px 10px 10px;
         -moz-border-radius: 10px 10px 10px 10px;
              border-radius: 10px 10px 10px 10px;
      -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
         -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
              box-shadow: 0 1px 2px rgba(0,0,0,.15);
    }
32

33 34 35 36
    .login-form-errors .alert {
      margin-right: 30px;
      margin-left: 30px;
    }
37 38

    .login-form {
39
      margin: 20px auto 0 auto;
40
      padding: 0 10px;
41 42
      max-width: 250px;

43 44 45 46 47 48 49 50 51
    }

    .login-form form {
      padding: 0 20px;
    }

    .input-group {
      margin-bottom: 10px;
    }
52

53 54 55 56
    .input-group-addon {
      width: 38px;
    }

57 58 59 60 61 62 63 64
    .form-group label {
      margin-top: 20px;
    }

    #submit-password-button {
      margin-top: 15px;
    }

65 66 67 68 69 70 71 72 73
    /* fix for crispy-forms' html */
    .form-group {
      margin-bottom: 0px;
    }

    .help-block {
      display: none;
    }
  </style>
74 75 76 77 78
{% endblock %}


{% block navbar-brand %}
  <a class="navbar-brand" href="{% url "dashboard.index" %}" style="padding: 10px 15px;">
79
    <img src="{% static "dashboard/img/logo.png" %}" style="height: 25px;"/>
80 81
  </a>
{% endblock %}
82 83 84 85 86 87 88


{% block content %}
  <div class="content">
    {% block content_box %}{% endblock %}
  </div>
{% endblock %}