8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-06-30 11:04:38 +00:00

Change base layout

Make CSS a bit cleaner and remove useless separator.
This commit is contained in:
Alexandre Iooss 2018-09-19 14:42:34 +02:00 committed by Alexandre IOOSS
parent 4a4ba06112
commit dabf484422
2 changed files with 10 additions and 11 deletions

View file

@ -8,10 +8,9 @@ footer p {
margin-bottom: .25rem; margin-bottom: .25rem;
} }
/* Remove the navbar's default margin-bottom */ /* Move the space between navbar and content in the content */
.navbar { .navbar { margin-bottom: 0; }
margin-bottom: 0; .pt4 { padding-top: 1.5rem!important; }
}
/* Reserv space for icons and align */ /* Reserv space for icons and align */
a > i.fa { a > i.fa {
@ -58,10 +57,11 @@ a > i.fa {
overflow: auto; overflow: auto;
} }
/* Set gray background color and 100% height */ /* Set gray background color */
.sidenav { .sidenav {
padding-top: 20px;
background-color: #f1f1f1; background-color: #f1f1f1;
border: 1px solid #e0e0e0;
border-radius: 0 0 5px 5px;
} }
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th { .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
vertical-align: middle; vertical-align: middle;

View file

@ -53,7 +53,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<title>{{ name_website }} : {% block title %}{% trans "Home" %}{% endblock %}</title> <title>{{ name_website }} : {% block title %}{% trans "Home" %}{% endblock %}</title>
</head> </head>
<body> <body id="main">
<nav class="navbar navbar-inverse navbar-static-top"> <nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
@ -162,7 +162,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="container-fluid text-center"> <div class="container-fluid text-center">
<div class="row content"> <div class="row content">
<div class="col-sm-2 sidenav"> <div class="col-sm-2 sidenav pt4">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="text-left list-group"> <div class="text-left list-group">
{% block sidebar %} {% block sidebar %}
@ -170,13 +170,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-8 text-left"> <div class="col-sm-8 text-left pt4">
{# Display django.contrib.messages as Bootstrap alerts #} {# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %} {% bootstrap_messages %}
<hr>
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
<div class="col-sm-2 sidenav"> <div class="col-sm-2 sidenav pt4">
<div class="panel panel-default"> <div class="panel panel-default">
{% if request_user.is_authenticated %} {% if request_user.is_authenticated %}
<div class="panel-heading"> <div class="panel-heading">