theme static files added(from Fred's patch)

This commit is contained in:
Serghei Mihai 2014-01-20 17:10:56 +01:00
parent 70ff103a31
commit 121b278e3f
No known key found for this signature in database
GPG Key ID: 76D1C964BF2FA1AF
7 changed files with 1013 additions and 2 deletions

View File

@ -49,7 +49,7 @@ USE_L10N = True
# Static files
STATIC_ROOT = os.environ.get('STATIC_ROOT', '/var/lib/%s/static' % PROJECT_NAME)
STATIC_URL = os.environ.get('STATIC_URL', '/static/')
STATIC_URL = os.environ.get('STATIC_URL', '/static/%s' % PROJECT_NAME)
MEDIA_ROOT = os.environ.get('MEDIA_ROOT', '/var/lib/%s/media' % PROJECT_NAME)
MEDIA_URL = os.environ.get('MEDIA_URL', '/media/')

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,941 @@
@font-face {
font-family: 'Museo500';
src: url(Museo500-Regular.otf);
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'MuseoSlab';
src: url(Museo_Slab.otf);
font-weight: normal;
font-style: normal;
}
html, body { margin: 0; font-family: arial, sans-serif; font-size: 13px;}
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin-top: 0; }
div#single-title, #nav,
#top, h2 {
font-family: MuseoSlab, sans-serif;
font-weight: normal;
}
h3, h4 {
font-family: Museo500, sans-serif;
font-weight: normal;
}
a {
-webkit-transition: color 200ms ease-out;
}
/* layout */
body {
overflow-x: hidden;
background: white;
}
div#page {
width: 100%;
}
div#header {
background-color: #ffffff;
width: 100%;
margin: 0 0 0 0;
position: absolute;
top: 0px;
margin-left: -500px;
z-index: 0;
}
div#top {
height: 456px;
width: 1500px;
margin: 0 auto 0 auto;
margin-left: 50%;
}
div#top h1 {
width: 10em;
text-align: center;
padding-top: 3em;
padding-left: 2em;
margin-left: 20px;
font-size: 120%;
font-weight: bold;
}
div#top h1 a {
color: white;
text-shadow: #6374AB 0px 0px 3px;
}
div#top a img {
border: 0;
}
div#main-content-wrapper {
position: relative;
z-index: 100;
width: 1000px;
margin: 200px auto 0px auto;
}
div#main-content {
margin: 0;
min-height: 300px;
}
div#footer {
clear: both;
background: white url(background_footer.png) no-repeat top left;
padding: 0px;
width: 1000px;
margin: 10px auto 0 auto;
position: relative;
}
p#legal {
font-size: small;
color: #666;
margin: 0;
margin-top: 5em;
font-size: 70%;
display: inline-block;
padding-top: 5px;
border-top: 1px solid #666;
}
#content {
position: relative;
margin:0;
color: rgb(58, 58, 58);
}
div#content a {
color: #37a7da;
}
div#content a:hover {
text-decoration: underline;
}
#menu {
font-size: 130%;
margin-top: -1px;
}
#menu ul {
list-style: none;
margin: 0;
padding: 10px 0 32px 0;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topright: 5px;
border-top-right-radius: 5px;
}
#menu li {
display: inline;
margin: 0px 10px 0 0;
padding: 5px;
background: #37a7da;
border: 5px solid transparent;
border-width: 2px 5px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
}
#menu li a {
color: white;
text-transform: uppercase;
white-space: pre;
}
#menu li:hover {
background-color: #f4bc03;
border-color: #f4bc03;
}
#menu li:hover a {
text-decoration: none;
}
#menu li.selected, #menu li.ancestor {
background: #515151;
border-color: #515151;
}
#menu li.selected a {
color: white;
}
#left {
float: left;
width: 49.5%;
}
#right {
float: right;
width: 49.5%;
}
br.clear {
clear: both;
}
#error-404, #error-500, #content .block, #password-changed {
background: white;
font-size: 110%;
margin-bottom: 1em;
}
#content .block h2 {
background: transparent;
font-weight: normal;
color: white;
text-transform: uppercase;
padding: 6px 10px 6px 10px;
color: #333;
font-size: 130%;
cursor: default; /* someday, perhaps, cursor: move */
}
#content .block h2.feeds {
background-image: url(Picto-Bulle.png);
}
#content .block h2.newsletters {
background-image: url(Picto-coeur.png);
}
#content .block h3,
#content .block p {
margin: 1ex 10px;
padding-bottom: 1px;
}
#content .demarches ul,
#content ul.mes-demarches {
list-style: none;
padding-left: 0px;
margin: 0px;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
}
#content ul.mes-demarches a,
#content .demarches ul a {
color: inherit;
font-weight: bold;
background: transparent url(bullet_rouge.png) left center no-repeat;
padding-left: 10px;
}
#content ul.mes-demarches a:hover,
#content .demarches ul a:hover {
color: #37a7da;
}
#content ul.mes-demarches li,
#content .demarches ul li {
margin: 1ex 0 10px 1ex;
padding-left: 10px;
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
column-break-inside: avoid;
}
#content .demarches .toutes-les-demarches {
padding: 10px 0 10px 0;
margin-left: 20px;
}
#content .toutes-les-demarches a {
background: transparent url(button_orange_eye.png) no-repeat 0px center;
color: #37a7da;
text-transform: uppercase;
padding-left: 30px;
font-size: 130%;
}
#content .toutes-les-demarches a:hover {
color: #37a7da;
}
#commune-selector {
margin-left: 5px;
margin-bottom: 10px;
}
#content #futurs-demarches {
overflow-y: hidden;
margin: 5px;
padding-bottom: 15px;
}
#content #futurs-demarches.selected {
display: block;
}
div#single-title {
border: 1px solid #a5a7aa;
border-width: 1px 0px;
font-size: 110%;
text-align: center;
padding: 10px 0;
}
body.narrow-page #main-content {
background: white;
margin-top: 0;
padding: 10px 10px 0 10px;
}
body.narrow-page #main-content form div input {
display: block;
margin-left: 10px;
margin-bottom: 2ex;
}
div#welcome {
text-align: justify;
margin: 0 1em;
}
div#welcome h2 {
margin: 1ex 0;
font-size: 300%;
background: transparent url(e54.png) left center no-repeat;
padding-left: 70px;
text-align: left;
width: 150%;
}
div#welcome {
float: left;
width: 60%;
}
span.helptext {
color: #666;
}
body.narrow-page div.right {
padding-top: 2em;
width: 30%;
float: right;
margin: 1ex auto;
margin-top: 10em;
}
body.narrow-page div.right form {
text-align: left;
background: white;
margin: 10px 10px;
padding: 10px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
border: 1px solid #ccc;
box-shadow: 0px 2px 3px rgba(0, 0, 0, .4);
-moz-box-shadow: 0px 2px 3px rgba(0, 0, 0, .4);
-webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, .4);
}
body.narrow-page div.right form div label {
font-weight: bold;
width: 14em;
display: block;
float: left;
padding-top: 3px;
}
body.narrow-page div.right form div input {
width: 17em;
}
body.narrow-page div.right form div.form-field-required label:after {
content: "";
}
body.narrow-page div.right form > input {
display: block;
margin: 1em auto 0 auto;
background: #37a7da;
color: white;
border: none;
padding: 3px 1em;
}
div.login-actions {
text-align: center;
}
.region-header {
width: 1000px;
position: absolute;
top: 0px;
}
#toplinks {
background: #ffffff;
position: relative;
float: right;
width: 250px;
padding: 5px 5px 5px 5px;
}
#toplinks span {
width: 100%;
display: block;
margin: 0;
padding: 0;
color: #888;
background: url(button_connexion.gif) left center no-repeat;
border: 1px solid #e9e9e9;
line-height: 20px;
height: 22px;
}
#toplinks a {
color: #888;
border: 1px solid transparent;
}
#toplinks a.logout {
padding-left: 30px;
}
#toplinks a:hover {
text-decoration: none;
color: #222;
}
#toplinks a.restricted {
color: white;
float: right;
padding: 0 1ex;
border: 1px outset #888;
background: #37a7da;
}
div#username {
float: right;
padding: 5px 5px 5px 5px;
background: white;
line-height: 20px;
height: 22px;
border: 1px solid white;
}
ul.newsList {
list-style: none;
}
ul.newsList li.abonne {
margin: 0;
padding: 0;
}
.abonne {
padding-left: 20px;
background: transparent url(Validation.png) center left no-repeat;
}
.nonAbonne {
padding-left: 20px;
background: transparent url(Annulation.png) center left no-repeat;
}
/* page de profil */
#my-informations {
margin-bottom: 15px;
padding: 0px;
}
#my-informations p {
padding: 0 5px;
}
#my-informations select,
#my-informations input {
margin-left: 10px;
display: block;
}
/* forms error reporting */
.errorlist {
list-style: none;
padding-left: 0;
margin-left: 0;
}
ul.errorlist li {
display: block;
color: #f44;
}
.form-field-required label:after {
content: '*';
color: #D90024;
}
ul.errorlist + p {
margin-top: 0px;
}
.passerelle-register-plugin input + label {
background: transparent url(Annulation.png) center left no-repeat;
}
.passerelle-register-plugin input:checked + label {
background: transparent url(Validation.png) center left no-repeat;
}
.passerelle-register-plugin td input {
display: none
}
.passerelle-register-plugin td label {
padding-left: 2em;
}
div.block form {
padding: 0 1ex;
}
table.announces {
width: 100%;
margin-bottom: 1em;
}
table.announces thead td {
font-weight: bold;
}
table.announces thead th {
width: 30%;
}
table.announces tbody td {
text-align: center;
}
table.announces tbody th {
width: 35%;
text-align: left;
font-weight: normal;
}
#agglolinks {
position: absolute;
right: 0;
top: -140px;
}
#agglolinks > a, #agglolinks > span > a {
width: 130px;
}
#agglolinks a, #agglolinks span {
display: inline-block;
margin-left: 10px;
color: white;
text-transform: uppercase;
text-align: center;
padding: 5px 5px;
font-size: 16px;
}
#agglolinks a.agglo-mon-agglo, #agglolinks a.agglo-mes-e-services {
background: #37a7da;
}
#agglolinks a.agglo-connaitre {
background: #d90024;
}
#agglolinks a.agglo-vivre {
background: #1f4791;
}
#agglolinks a.agglo-entreprendre {
background: #a3d117;
}
#agglolinks span.agglo-mes-e-services > a {
background: #37a7da;
width: 150px;
}
ul.agglo-autres-services-menu {
display: none;
position: relative;
padding: 0px;
margin: 10px;
margin-top: 0px;
width: 160px;
z-index: 10;
background: rgba(246, 132, 35, 0.5);
border-bottom: 5px solid #37a7da;
}
ul.agglo-autres-services-menu li {
list-style: none;
background: #FFA824;
opacity: 0.9;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
border-left: 5px solid #37a7da;
border-right: 5px solid #37a7da;
}
ul.agglo-autres-services-menu li:hover {
background: #f4bc03;
opacity: 1.0;
}
#agglolinks ul.agglo-autres-services-menu li a {
display: block;
margin-left: 0;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
overflow: hidden;
white-space: nowrap;
}
#agglolinks ul.agglo-autres-services-menu li a:hover {
letter-spacing: 1px;
font-weight: bold;
}
#agglolinks span.agglo-mes-e-services:hover ul.agglo-autres-services-menu {
float: right;
position: absolute;
display: block;
}
.chapeau {
font-style: italic;
font-size: 110%;
}
/* mon compte */
#my-informations-form {
width: 90%;
padding-bottom: 1em;
}
#my-informations-form input[type~=text] {
width: 100%;
}
#id_edit-profile-email_wrap, #id_edit-profile-address_wrap {
clear: both;
}
#id_edit-profile-first_name_wrap, #id_edit-profile-phone_wrap, #id_edit-profile-postal_code_wrap {
width: 45%;
float: left;
}
#id_edit-profile-last_name_wrap, #id_edit-profile-mobile_wrap, #id_edit-profile-city_wrap {
width: 45%;
float: right;
}
/* pied de page */
#footer-menu {
position: absolute;
display: block;
top: 20px;
left: 20px;
width: 435px;
list-style: none;
margin: 0;
padding: 0;
text-align: left;
}
.footer-menu-leaf {
display: inline;
margin: 0;
padding: 0;
padding-right: 20px;
padding-bottom: 20px;
float: left;
}
.footer-menu-leaf-link, .footer-menu-leaf-link:hover {
display: block;
width: 125px;
height: 26px;
line-height: 26px;
background: #ffffff;
text-align: center;
text-transform: uppercase;
color: #515151;
text-decoration: none;
font-size: 14px;
}
/* pages d'aide */
#help-content {
background: white;
position: relative;
padding: 10px 20px;
}
#help-title {
background: #e6e6d6 url(toptitle.png) no-repeat left top;
font-weight: bold;
color: #37a7da;
text-transform: uppercase;
padding: 6px 10px 6px 50px;
font-size: 200%;
cursor: default; /* someday, perhaps, cursor: move */
}
#help-page-title {
color: #37a7da;
padding-bottom: 20px;
}
#help-page-title.aide {
display: none;
}
#help-text {
width: 580px;
margin-left: 380px;
}
.clear {
clear: both;
}
#help-menu {
width: 360px;
float: left;
}
#help-summary-caption {
background: #37a7da;
color: white;
font-size: 150%;
font-weith: bold;
text-align: center;
padding: 15px 0px;
}
#help-menu #help-summary-caption-link, #help-menu #help-summary-caption-link:hover {
background: #37a7da;
color: white;
text-decoration: none;
}
#help-menu-content {
padding: 0;
margin: 0;
}
#help-menu-content > li {
background: #e6e6d6;
margin-bottom: 5px;
list-style: none;
font-size: 150%;
font-weight: bold;
line-height: 1.5em;
}
#help-menu-content > li > ul {
background: white;
margin-bottom: 5px;
list-style: none;
font-size: 100%;
font-weight: bold;
line-height: 1.5em;
padding: 10px 10px;
}
#help-menu-content li.ancestor {
background: rgb(58, 58, 58);
}
#help-menu-content li.ancestor > a, #help-menu-content li.ancestor > a.hover {
color: white;
}
#help-menu-content > li > ul > li {
padding: 0px 10px;
font-size: 80%;
}
#help-menu-content > li > ul > li.selected {
border-left: solid 4px #37a7da;
}
#help-menu-content li a, #help-menu-content li a:hover {
color: rgb(58, 58, 58);
text-decoration: none;
}
#my-password {
padding-bottom: 1ex;
}
#my-password p {
font-weight: bold;
}
#my-password p a {
color: inherit;
padding: 1ex;
}
ul.show-user-feeds li {
list-style: none;
background: url(mediathk.png) left center no-repeat;
min-height: 30px;
padding-left: 30px;
padding-bottom: 4px;
}
ul.show-user-feeds li.aquarium { background-image: url(aquarium.png); }
ul.show-user-feeds li.conservatoire { background-image: url(conservatoire.png); }
ul.show-user-feeds li.ecolothk { background-image: url(ecolothk.png); }
ul.show-user-feeds li.facebook { background-image: url(facebook.png); }
ul.show-user-feeds li.lattara { background-image: url(lattara.png); }
ul.show-user-feeds li.mediathk { background-image: url(mediathk.png); }
ul.show-user-feeds li.opendata { background-image: url(opendata.png); }
ul.show-user-feeds li.planet { background-image: url(planet.png); }
#id_new_password1_help_text, #id_password1_help_text {
font-style: italic;
font-size: 90%;
color: red;
}
/* saml post page */
.post-redirect {
background: white;
}
#messages li {
list-style-type: none;
padding: 10px;
color: white;
}
#messages {
position: absolute;
top: 120px;
left: 1200px;
}
#messages.messages-login {
position: static;
}
#messages.messages-login li {
margin: 0px;
margin-left: 100px;
margin-right: 100px;
}
#messages li.warning {
border: 1px solid #DB771F;
background: #37a7da;
}
#messages li.error {
border: 1px solid #DB771F;
background: #DB1F28;
}
#messages li.info {
border: 1px solid #301F91;
background: #1F8091;
}
/* registration form */
img.captcha {
float: left;
}
#id_captcha_1 {
width: 13em;
}
/* pimping up */
h1#logo img {
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
}
h1#logo img:hover {
-webkit-transform: scale(1.05);
-moz-transform: scale(1.05);
}
#nav {
border: 1px solid #a5a7aa;
border-width: 1px 0px;
list-style: none;
margin: 0 auto;
text-align: center;
padding: 10px 0;
width: 900px;
margin: auto;
margin-bottom: 12px;
font-size: 110%;
}
#nav ul {
margin: 0;
padding: 0;
}
#nav li {
margin: 0;
padding: 0 5px;
display: inline;
}
#nav a {
color: #404041;
text-decoration: none;
}
#nav li:after {
content: " /";
color: #404041;
}
#nav li.selected:after,
#nav li.ancestor:after,
#nav li a:hover,
#nav li.selected a,
#nav li.ancestor a {
color: #e0007a;
}
div.block {
text-align: left;
background: white;
margin: 10px 10px;
padding: 10px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
border: 1px solid #ccc;
box-shadow: 0px 2px 3px rgba(0, 0, 0, .4);
-moz-box-shadow: 0px 2px 3px rgba(0, 0, 0, .4);
-webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, .4);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -1 +1,71 @@
{% extends "base_auquo2.html" %}
<!DOCTYPE html>
{% load menu_tags cms_tags sekizai_tags i18n portail_citoyen_tags %}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="fr" />
<title>Compte Citoyen :: Démo :: {% page_attribute "page_title" %}</title>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/css/style.css">
{% render_block "css" %}
{% block extra_scripts %}
{% endblock %}
</head>
<body {% block bodyargs %}{% endblock %}>
{% cms_toolbar %}
<div id="page">
<div id="header">
<div id="top">
<h1 id="logo" href="/"><img src="{{ STATIC_URL }}/img/logo.png" alt="Entr'ouvert"/></a></h1>
<div class="region-header">
{% if user.is_authenticated %}
<div id="toplinks">
<span>
<a class="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a>
{% user_in_group "Agglo::Téléservices::Admin" as is_eservice_admin %}
{% user_in_group_prefix "Agglo::Téléservices::BackOffice::" as is_eservice_backoffice_user %}
{% if is_eservice_admin %}
<a class="restricted" href="{{ ESERVICES }}admin/">Administration</a>
{% elif is_eservice_backoffice_user %}
<a class="restricted" href="{{ ESERVICES }}backoffice/">Back office</a>
{% endif %}
</span>
</div>
<div id="username">{{ user.first_name }} {{ user.last_name }}</div>
{% endif %}
</div>
</div>
{% block messages %}
{% if messages %}
<div id="messages">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}
</div> <!-- header -->
<div id="main-content-wrapper">
{% block title %}{% endblock %}
{% block menu %}
<div id="nav">
<ul>{% show_menu_below_id "top-page" 0 1 100 100 "compte-agglo-montpellier/top-menu.html" %}</ul>
</div>
{% endblock %}
<div id="main-content">
<div id="content">
{% block content %}
{% endblock %}
</div> <!-- #content -->
</div> <!-- #main-content -->
</div> <!-- #main-content-wrapper -->
<div id="footer">
<p id="legal">Copyright © 2006-2013 Entr'ouvert</p>
<ul id="footer-menu">
</ul>
</div>
</div>
{% render_block "js" %}
</body>
</html>