Apparence et Responsiveness

This commit is contained in:
Evarin 2018-01-28 19:09:56 +01:00
parent c11ccf2ecc
commit f8952225d6
12 changed files with 453 additions and 99 deletions

View file

@ -1,7 +1,11 @@
$fond: #f5ffd2;
$bandeau: #400530;
$sousbandeau: #5a004f;
$aside: $sousbandeau;
$titre: darken($fond, 80%);
$lien: #3cb3a6;
$fond: #fefefe;
$bandeau: #5B0012;
$sousbandeau: #90001C;
$aside: #FFC500;
$titre: $sousbandeau;
$lien: #CC9500;
$headerlien: $fond;
$ombres: darken($aside, 20%);
$bodyfont: "Source Sans Pro", "sans-serif";
$headfont: "Carter One", "serif";

View file

@ -0,0 +1,124 @@
header .minimenu {
display: none;
}
@media only screen and (max-width: 600px) {
header {
position: fixed;
top: 0;
left: 0;
z-index: 10;
width: 100%;
max-height: 100vh;
height: 60px;
overflow: hidden;
.minimenu {
display: block;
position: absolute;
right: 3px;
top: 3px;
}
section {
display: block;
nav {
display: none;
}
}
}
header.expanded {
overflow: auto;
height: auto;
nav {
display: block;
text-align: center;
ul {
flex-wrap: wrap;
justify-content: right;
li > * {
padding: 18px;
}
}
}
}
.container {
margin-top: 65px;
.content {
max-width: unset;
margin: 6px;
section {
article {
padding: 10px;
}
.image {
padding: 0;
margin: 10px -6px;
}
&.directory article.entry {
width: 100%;
margin-left: 0;
}
}
}
.aside-wrap + .content {
max-width: unset;
margin-top: 120px;
}
.aside-wrap {
z-index: 3;
top: 60px;
position: fixed;
width: 100%;
margin: 0;
height: auto;
left: 0;
.aside {
margin: 0;
padding: 0;
top: 0;
position: absolute;
& > h2 {
position: relative;
cursor: pointer;
padding: 5px 10px;
&:after {
content: "v";
font-family: $bodyfont;
font-weight: bold;
color: $lien;
position: absolute;
right: 10px;
}
}
&:not(.expanded) {
.aside-content {
display: none;
}
}
ul {
text-align: center;
li {
display: inline-block;
& > * {
display: block;
padding: 15px;
}
}
}
}
}
}
}

View file

@ -15,7 +15,7 @@
body {
background: $fond;
font: 17px "Source Sans Pro", "sans-serif";
font: 17px $bodyfont;
}
header {
@ -23,7 +23,7 @@ header {
}
h1, h2 {
font-family: "Carter One";
font-family: $headfont;
color: $titre;
}
@ -109,17 +109,18 @@ article {
position: absolute;
top: 30px;
height: 100%;
width: 250px;
width: 25%;
left: 6px;
.aside {
color: #fff;
color: #222;
position: fixed;
position: sticky;
top: 5px;
width: 100%;
background: $aside;
padding: 15px;
box-shadow: -4px 4px 1px rgba(#000, 0.3);
box-shadow: -4px 4px 1px rgba($ombres, 0.3);
h2 {
color: #fff;
@ -129,28 +130,33 @@ article {
margin: 0 auto;
display: block;
}
a {
color: darken($lien, 10%);
}
}
}
.content {
max-width: 700px;
max-width: 900px;
margin-left: auto;
margin-right: 0;
margin-right: 6px;
.intro {
border-bottom: 3px solid darken($fond, 50%);
margin: 20px -10px;
margin: 20px 0;
margin-top: 5px;
padding: 15px 5px;
}
section {
article {
background: #fff;
padding: 30px;
box-shadow: -4px 4px 1px rgba(#000, 0.3);
padding: 20px 30px;;
box-shadow: -4px 4px 1px rgba($ombres, 0.3);
border: 1px solid rgba($ombres, 0.1);
border-radius: 2px;
a {
color: $lien;
}
@ -164,25 +170,39 @@ article {
margin-top: 25px;
}
.image {
margin: 15px 0;
text-align: center;
padding: 20px;
img {
max-width: 100%;
height: auto;
box-shadow: -7px 7px 1px rgba($ombres, 0.2);
}
}
&.directory {
article.entry {
width: 80%;
max-width: 600px;
max-height: 100%;
position: relative;
padding-right: 120px;
margin-left: 6%;
.entry-image {
display: block;
position: absolute;
float: right;
width: 150px;
background: #fff;
box-shadow: -4px 4px 1px rgba(#000, 0.2);
box-shadow: -4px 4px 1px rgba($ombres, 0.2);
border-right: 1px solid rgba($ombres, 0.2);
border-top: 1px solid rgba($ombres, 0.2);
padding: 1px;
overflow: hidden;
right: 100px;
transform: translateX(90%);
top: -15px;
margin-left: 10px;
margin-bottom: 10px;
transform: translateX(10px);
img {
width: auto;
@ -191,6 +211,12 @@ article {
max-height: 100%;
}
}
ul.links {
margin-top: 10px;
border-top: 1px solid $sousbandeau;
padding-top: 10px;
}
}
}
@ -208,19 +234,23 @@ article {
position: relative;
background: none;
box-shadow: none;
border: none;
max-width: 400px;
min-width: 300px;
flex: 1;
.actu-header {
position: relative;
box-shadow: -4px 5px 1px rgba(#000, 0.3);
box-shadow: -4px 5px 1px rgba($ombres, 0.3);
border-right: 1px solid rgba($ombres, 0.2);
border-top: 1px solid rgba($ombres, 0.2);
min-height: 180px;
padding: 0;
margin: 0;
overflow: hidden;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
h2 {
position: absolute;
@ -228,7 +258,7 @@ article {
bottom: 0;
left: 0;
padding: 5px;
text-shadow: 0 0 5px rgba(#000, 0.8);
text-shadow: 0 0 5px rgba($ombres, 0.8);
background: linear-gradient(to top, rgba(#000, 0.7), rgba(#000, 0));
a {
color: #fff;
@ -238,7 +268,9 @@ article {
.actu-misc {
background: lighten($fond, 15%);
box-shadow: -2px 2px 1px rgba(#000, 0.2);
box-shadow: -2px 2px 1px rgba($ombres, 0.2);
border: 1px solid rgba($ombres, 0.2);
border-radius: 2px;
margin: 0 10px;
padding: 15px;
padding-top: 5px;
@ -293,6 +325,10 @@ article {
}
}
}
.aside-wrap + .content {
max-width: 70%;
}
}
.calendar {
@ -326,8 +362,10 @@ article {
}
&.hasevent {
font-weight: bold;
color: $lien;
color: darken($lien, 10%);
font-size: 1em;
}
}
}
@import "_responsive";