Changed site design v1

This commit is contained in:
Soldat 2018-10-07 20:38:03 +02:00
parent 3a778e2105
commit a78f1101c3
2 changed files with 124 additions and 61 deletions

View File

@ -1,23 +1,23 @@
$first-color: hsl(220, 100%, 50%); $first-color: hsl(220, 100%, 50%);
$second-color: hsl(40, 100%, 50%); $second-color: #ffdd59;
$primary-color: hsl(219.9, 53.7%, 50%); $primary-color: hsl(219.9, 53.7%, 50%);
$secondary-color: hsl(40.1, 78.0%, 50%); $secondary-color: #2980b9;
$primary-color-text: hsl(0, 0%, 100%); $primary-color-text: hsl(0, 0%, 100%);
$secondary-color-text: hsla(0, 0%, 0%, 0.87); $secondary-color-text: hsla(0, 0%, 0%, 0.87);
$primary-light-color: hsl(219.8, 46.4%, 64.9%); $primary-light-color: hsl(219.8, 46.4%, 64.9%);
$primary-dark-color: hsl(219.8, 46.4%, 35.1%); $primary-dark-color: #2d98da;
$secondary-light-color: hsl(40, 68%, 65%); $secondary-light-color: hsl(40, 68%, 65%);
$secondary-dark-color: hsl(40, 68%, 35%); $secondary-dark-color: hsl(40, 68%, 35%);
$primary-neutral-color: hsl(219.6, 20.8%, 50%); $primary-neutral-color: hsl(219.6, 20.8%, 50%);
$primary-neutral-light-color: hsl(219.6, 20.8%, 83%); $primary-neutral-light-color: #efefef;
$primary-neutral-dark-color: hsl(219.6, 20.8%, 17%); $primary-neutral-dark-color: #34495e;
$secondary-neutral-color: hsl(40, 57.6%, 50%); $secondary-neutral-color: #2980b9;
$secondary-neutral-light-color: hsl(40, 57.6%, 83%); $secondary-neutral-light-color: #e7e7e7;
$secondary-neutral-dark-color: hsl(40, 57.6%, 17%); $secondary-neutral-dark-color: hsl(40, 57.6%, 17%);
$white-color: hsl(219.6, 20.8%, 98%); $white-color: hsl(219.6, 20.8%, 98%);
@ -26,17 +26,71 @@ $black-color: hsl(40.0, 0%, 17%);
$faceblue: #3B5998; $faceblue: #3B5998;
$twitblue: #55acee; $twitblue: #55acee;
$shadow-color: rgb(223, 223, 223);
$background-bouton-color: #e6e6e6;
/*--------------------------------GENERAL------------------------------*/ /*--------------------------------GENERAL------------------------------*/
body { body {
background-color: $primary-neutral-light-color;
position: relative; position: relative;
width: 100%; width: 100%;
font-family: sans-serif; font-family: sans-serif;
} }
input[type=button], input[type=submit], input[type=reset],input[type=file] {
border: none;
text-decoration: none;
background-color: $background-bouton-color;
padding: 10px;
font-weight: bold;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
box-shadow: $shadow-color 0px 0px 1px;
&:hover {
background: #d3d3d3;
}
}
button{
border: none;
text-decoration: none;
background-color: $background-bouton-color;
padding: 10px;
font-size: 14px;
border-radius: 5px;
box-shadow: $shadow-color 0px 0px 1px;
cursor: pointer;
&:hover {
background: #d3d3d3;
}
}
input,textarea[type=text],[type=number]{
border: none;
text-decoration: none;
background-color: $background-bouton-color;
padding: 7px;
font-size: 16px;
border-radius: 5px;
}
textarea{
border: none;
text-decoration: none;
background-color: $background-bouton-color;
padding: 7px;
font-size: 16px;
border-radius: 5px;
}
select{
border: none;
text-decoration: none;
font-size: 15px;
background-color: $background-bouton-color;
padding: 10px;
border-radius: 5px;
cursor: pointer;
}
a { a {
text-decoration: none; text-decoration: none;
color: $primary-dark-color; color: $primary-dark-color;
@ -77,7 +131,7 @@ a {
input { input {
display: block; display: block;
width: 100%; width: 100%;
padding: 0px; padding: 4px;
margin: 0px; margin: 0px;
} }
form { form {
@ -91,10 +145,10 @@ header {
width: 90%; width: 90%;
margin: 0px auto; margin: 0px auto;
display: flex; display: flex;
box-shadow: grey 1px 1px 5px; box-shadow: $shadow-color 0px 0px 15px;
border: solid 1px grey;
border-top: none; border-top: none;
background-color: $primary-neutral-dark-color; background-color: $primary-neutral-dark-color;
border-radius: 0px 0px 10px 10px;
#header_logo { #header_logo {
display: inline-block; display: inline-block;
@ -102,6 +156,8 @@ header {
background-size: 100% 100%; background-size: 100% 100%;
background-color: $white-color; background-color: $white-color;
padding: 0.2em; padding: 0.2em;
border-radius: 0px 0px 0px 9px;
a { a {
display: inline-block; display: inline-block;
margin: 0px; margin: 0px;
@ -129,10 +185,11 @@ header {
display: flex; display: flex;
flex: auto; flex: auto;
width: 80%; width: 80%;
a { a {
text-decoration: none; text-decoration: none;
margin: 0em 1em; margin: 0em 1em;
font-weight: bold;
color: $white-color; color: $white-color;
&:hover { &:hover {
color: $secondary-color; color: $secondary-color;
@ -228,10 +285,10 @@ header {
margin: 1em auto; margin: 1em auto;
p { p {
margin: 0px; margin: 0px;
padding: 0px; padding: 7px;
} }
#alert_box, #info_box { #alert_box, #info_box {
font-size: smaller; font-size: 14px;
display: inline-block; display: inline-block;
flex: auto; flex: auto;
padding: 2px; padding: 2px;
@ -239,28 +296,23 @@ header {
min-width: 10%; min-width: 10%;
max-width: 46%; max-width: 46%;
min-height: 20px; min-height: 20px;
box-shadow: grey 1px 1px 5px;
&:before { &:before {
float: left; float: left;
margin: 0.2em; margin: 0.2em;
margin-right: 0.5em;
}
.markdown {
margin-top: 0.5em;
} }
} }
#info_box { #info_box {
border: solid 1px grey; border-radius: 10px;
background: $white-color; background: $primary-neutral-light-color;
&:before { &:before {
font-family: FontAwesome; font-family: FontAwesome;
font-size: 4em; font-size: 4em;
content: "\f05a"; content: "\f05a";
color: darkblue; color: #1e90ff;
} }
} }
#alert_box { #alert_box {
border: solid 1px grey; border-radius: 10px;
background: $second-color; background: $second-color;
&:before { &:before {
font-family: FontAwesome; font-family: FontAwesome;
@ -273,17 +325,17 @@ header {
#page { #page {
box-shadow: grey 1px 1px 5px;
width: 90%; width: 90%;
margin: 0em auto; margin: 0em auto;
border: solid 1px grey;
/*---------------------------------NAV---------------------------------*/ /*---------------------------------NAV---------------------------------*/
nav { nav {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
background-color: $primary-dark-color; background-color: $primary-dark-color;
color: $white-color; color: $white-color;
border-radius: 10px 10px 0px 0px;
box-shadow: $shadow-color 0px 0px 15px;
a { a {
flex: auto; flex: auto;
text-align: center; text-align: center;
@ -313,6 +365,7 @@ header {
#content { #content {
padding: 1em 1%; padding: 1em 1%;
box-shadow: $shadow-color 0px 0px 15px;
background: $white-color; background: $white-color;
overflow: auto; overflow: auto;
} }
@ -324,23 +377,27 @@ header {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
float: right; float: right;
background: $white-color; background: $primary-neutral-light-color;
border: 1px solid $black-color; padding: 5px;
border-radius: 10px;
text-align: center; text-align: center;
a { a {
padding: 10px; padding: 10px;
display: inline-block; display: inline-block;
color: $black-color; color: $black-color;
font-weight: bold;
flex: 1; flex: 1;
flex-wrap: nowrap; flex-wrap: nowrap;
white-space: nowrap; white-space: nowrap;
&.selected_tab { &.selected_tab {
background: $second-color; background: $primary-color;
color: $black-color; color: $white-color;
border-radius: 10px;
} }
&:hover { &:hover {
background: $primary-color; background: $primary-color;
color: $white-color; color: $white-color;
border-radius: 10px;
} }
} }
} }
@ -364,12 +421,11 @@ header {
width: 79%; width: 79%;
h3 { h3 {
background: $second-color; background: $second-color;
box-shadow: grey 2px 2px 2px; box-shadow: $shadow-color 1px 1px 1px;
padding: 0.4em; padding: 0.4em;
margin: 0em 0em 0.5em 0em; margin: 0em 0em 0.5em 0em;
text-transform: uppercase; text-transform: uppercase;
font-size: 1.1em; font-size: 1.1em;
border: solid 1px grey;
&:not(:first-of-type) { &:not(:first-of-type) {
margin: 2em 0em 1em 0em; margin: 2em 0em 1em 0em;
} }
@ -381,22 +437,22 @@ header {
display: block; display: block;
width: 100%; width: 100%;
background: white; background: white;
box-shadow: grey 2px 2px 2px;
font-size: 70%; font-size: 70%;
border: solid 1px grey;
margin-bottom: 1em; margin-bottom: 1em;
#agenda_title,#birthdays_title { #agenda_title,#birthdays_title {
margin: 0em; margin: 0em;
border-radius: 10px 10px 0px 0px;
box-shadow: $shadow-color 1px 1px 1px;
padding: 0.5em; padding: 0.5em;
font-weight: bold; font-weight: bold;
font-size: 150%; font-size: 150%;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
border-bottom: solid 1px grey;
background: $second-color; background: $second-color;
} }
#agenda_content { #agenda_content {
overflow: auto; overflow: auto;
box-shadow: $shadow-color 1px 1px 1px;
height: 20em; height: 20em;
} }
#agenda_content,#birthdays_content { #agenda_content,#birthdays_content {
@ -440,21 +496,22 @@ header {
/* EVENTS TODAY AND NEXT FEW DAYS */ /* EVENTS TODAY AND NEXT FEW DAYS */
.news_events_group { .news_events_group {
border: solid 1px grey; box-shadow: $shadow-color 1px 1px 1px;
box-shadow: grey 2px 2px 2px;
margin-left: 1em; margin-left: 1em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
.news_events_group_date { .news_events_group_date {
display: table-cell; display: table-cell;
padding: 0.6em; padding: 0.6em;
vertical-align: middle; vertical-align: middle;
background: $primary-dark-color; background: $primary-neutral-dark-color;
color: $white-color; color: $white-color;
text-transform: uppercase; text-transform: uppercase;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
font-family: monospace; font-family: monospace;
font-size: 1.4em; font-size: 1.4em;
border-radius: 10px 0px 0px 10px;
div { div {
margin: 0px auto; margin: 0px auto;
.day { .day {
@ -465,7 +522,6 @@ header {
.news_events_group_items { .news_events_group_items {
display: table-cell; display: table-cell;
width: 100%; width: 100%;
border-left: solid 1px grey;
.news_event:nth-of-type(odd) { .news_event:nth-of-type(odd) {
background: white; background: white;
} }
@ -541,9 +597,9 @@ header {
margin: 0em 0em 1em 1em; margin: 0em 0em 1em 1em;
padding: 0.4em; padding: 0.4em;
padding-left: 1em; padding-left: 1em;
background: lightgrey; background: $secondary-neutral-light-color;
border: 1px solid grey; box-shadow: $shadow-color 0px 0px 2px;
box-shadow: grey 2px 2px 2px; border-radius: 18px 5px 18px 5px;
h4 { h4 {
margin: 0em; margin: 0em;
} }
@ -560,7 +616,7 @@ header {
padding-left: 1em; padding-left: 1em;
background: $secondary-neutral-light-color; background: $secondary-neutral-light-color;
border: 1px solid grey; border: 1px solid grey;
box-shadow: grey 2px 2px 2px; box-shadow: $shadow-color 1px 1px 1px;
h4 { h4 {
margin: 0em; margin: 0em;
} }
@ -584,6 +640,7 @@ header {
#news_details { #news_details {
display: inline-block; display: inline-block;
margin-top: 20px;
padding: 0.4em; padding: 0.4em;
width: 80%; width: 80%;
background: $white-color; background: $white-color;
@ -603,6 +660,7 @@ header {
max-width: 12em; max-width: 12em;
display: block; display: block;
margin: 0em auto; margin: 0em auto;
margin-bottom: 10px;
} }
} }
.share_button { .share_button {
@ -637,6 +695,7 @@ header {
} }
.helptext { .helptext {
margin-top: 10px;
display: block; display: block;
} }
@ -1004,6 +1063,7 @@ u, .underline {
background: $primary-neutral-light-color; background: $primary-neutral-light-color;
float: right; float: right;
padding: 10px; padding: 10px;
border-radius: 10px;
} }
#products { #products {
@ -1189,7 +1249,7 @@ u, .underline {
height: 18em; height: 18em;
overflow: hidden; overflow: hidden;
border: 1px solid black; border: 1px solid black;
box-shadow: 2px 2px 5px grey; box-shadow: $shadow-color 1px 1px 1px;
&:hover { &:hover {
box-shadow: 1px 1px 5px $second-color; box-shadow: 1px 1px 5px $second-color;
} }
@ -1229,11 +1289,12 @@ textarea {
#forum { #forum {
.button { .button {
background-color: $primary-neutral-light-color; background-color: rgb(230, 230, 230);
border: outset $primary-neutral-dark-color 2px; padding: 7px;
padding: 4px; font-weight: bold;
border-radius: 5px;
&:hover { &:hover {
border: inset $primary-neutral-dark-color 2px; background-color: rgb(211, 211, 211);
} }
} }
.topic { .topic {
@ -1255,6 +1316,7 @@ textarea {
.tools { .tools {
font-size: x-small; font-size: x-small;
border: none; border: none;
font-weight: bold;
a { a {
padding: 1px; padding: 1px;
} }
@ -1297,6 +1359,8 @@ textarea {
.category { .category {
margin-top: 5px; margin-top: 5px;
background: $secondary-color; background: $secondary-color;
color: #ffffff;
border-radius: 10px 10px 0px 0px;
.title { .title {
text-transform: uppercase; text-transform: uppercase;
} }
@ -1305,7 +1369,7 @@ textarea {
.message { .message {
padding: 1px; padding: 1px;
margin: 1px; margin: 1px;
background: $white-color; background: #f3f3f3;
&:nth-child(odd) { &:nth-child(odd) {
background: $primary-neutral-light-color; background: $primary-neutral-light-color;
} }
@ -1334,7 +1398,6 @@ textarea {
display: inline-block; display: inline-block;
width: 19%; width: 19%;
text-align: center; text-align: center;
background: $primary-light-color;
img { img {
max-width: 70%; max-width: 70%;
margin: 0px auto; margin: 0px auto;
@ -1415,22 +1478,23 @@ footer {
width: 90%; width: 90%;
margin: 2em auto; margin: 2em auto;
font-size: 80%; font-size: 90%;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
div { div {
margin: 0.6em 0em; margin: 0.6em 0em;
color: $white-color; color: $white-color;
border-radius: 5px;
display: flex; display: flex;
background-color: $primary-neutral-dark-color; background-color: $primary-neutral-dark-color;
box-shadow: grey 1px 1px 5px; box-shadow: $shadow-color 0px 0px 15px;
border: solid 1px grey;
a { a {
padding: 0.8em; padding: 0.8em;
flex: 1; flex: 1;
font-weight: bold;
color: $white-color; color: $white-color;
&:hover { &:hover {
color: $secondary-color; color: $primary-dark-color;
} }
} }
} }
@ -1440,11 +1504,13 @@ footer {
form { form {
margin: 0px auto; margin: 0px auto;
margin-bottom: 10px;
width: 60%; width: 60%;
} }
label { label {
display: block; display: block;
margin-bottom: 8px;
} }
.choose_file_widget { .choose_file_widget {
@ -1490,8 +1556,6 @@ label {
font-size: 1.2em; font-size: 1.2em;
} }
button { button {
width: 100%;
height: 100%;
vertical-align: middle; vertical-align: middle;
} }
} }

View File

@ -53,7 +53,7 @@
</div> </div>
{% else %} {% else %}
<div id="header_logo" style="background-image: url('{{ <div id="header_logo" style="background-image: url('{{
static('core/img/logo.png') }}'); width: 92px; height: 50px;"> static('core/img/logo.png') }}'); width: 92px; height: 52px;">
<a href="{{ url('core:index') }}"></a> <a href="{{ url('core:index') }}"></a>
</div> </div>
<div id="header_bar"> <div id="header_bar">
@ -62,11 +62,11 @@
<li> <li>
<a href="{{ url('counter:activity', counter_id=bar.id) }}" style="padding: 0px"> <a href="{{ url('counter:activity', counter_id=bar.id) }}" style="padding: 0px">
{% if bar.is_inactive(): %} {% if bar.is_inactive(): %}
<i class="fa fa-question" style="color: orange"></i> <i class="fa fa-question" style="color: #f39c12"></i>
{% elif bar.is_open(): %} {% elif bar.is_open(): %}
<i class="fa fa-check" style="color: green"></i> <i class="fa fa-check" style="color: #2ecc71"></i>
{% else %} {% else %}
<i class="fa fa-times" style="color: red"></i> <i class="fa fa-times" style="color: #eb2f06"></i>
{% endif %} {% endif %}
{{ bar }} {{ bar }}
</a> </a>
@ -181,7 +181,6 @@
>{{ t.name }}</a> >{{ t.name }}</a>
{%- endfor %} {%- endfor %}
</div> </div>
<hr>
</div> </div>
{% endif %} {% endif %}