modif css

This commit is contained in:
2020-01-20 11:51:20 +01:00
parent 7ca69e1549
commit b81be5ec03
178 changed files with 14005 additions and 187 deletions
@@ -0,0 +1,69 @@
$animate: all 0.2s ease-in-out;
#text_figli{
z-index: 999;
p{
& > a{
z-index: 999;
&:before,
&:after {
content: "";
position: absolute;
bottom: -1px;
width: 0px;
height: 1px;
margin: 1px 0 0;
transition: $animate;
transition-duration: 0.3s;
opacity: 0;
background-color: black;
}
&::before{
left: 50%;
}
&:after{
right: 50%;
}
&:hover {
cursor: pointer;
&:before,
&:after {
width: 100%;
opacity: 1;
}
&:before,
&:after {
width: 50%;
}
}
}
}
}
.circle_hover{
position: absolute;
width: 0px;
height: 0px;
transform: translate(-50%, -50%);
z-index: 0;
transition: height .2s, width .2s;
&.open{
width: 200px;
height: 200px;
transition: height .5s, width .5s;
}
&.publique{
background:
url("/user/themes/figureslibres/images/forme2.svg") center no-repeat;
background-size: cover;
}
&.sociale{
background: $color_sociale;
border-radius: 100px;
}
&.culturelle{
background:
url("/user/themes/figureslibres/images/forme3.svg") center no-repeat;
background-size: cover;
}
}
@@ -0,0 +1,20 @@
#item_list{
display: inline-flex;
flex-wrap: wrap;
width: 100%;
.card{
width: $Wi50;
&:nth-child(odd){
margin-right: $margI;
}
.card-header{
z-index: 999;
display: inline-flex;
width: 100%;
// margin-bottom: $marg;
& > * {
margin-right: $marg;
}
}
}
}
@@ -0,0 +1,7 @@
.search-input, [data-grav-field="array"] input, [data-grav-field="array"] textarea {
@extend .form-input;
}
.button {
@extend .btn;
}
@@ -0,0 +1,17 @@
// Sticky Footer solution
body.sticky-footer {
height: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
#page-wrapper {
flex: 1 0 auto;
}
}
#footer {
color: #acb3c2;
padding: 1rem $horiz-padding 0;
text-align: center;
}
@@ -0,0 +1,47 @@
form {
.button-wrapper {
margin-top: 0.75rem;
margin-bottom: 1rem;
}
span.required {
color: $error-color;
font-weight: 700;
font-size: 1.2rem;
}
.form-input[type=range] {
appearance: slider-horizontal;
&:focus {
box-shadow: none;
border: none;
}
}
}
#grav-login {
> form {
margin: 2rem auto 0;
max-width: 350px;
}
.form-label {
display: none;
}
.form-data {
margin: 1rem 0;
}
.form-input {
text-align: center;
}
.button-wrapper {
text-align: right;
.form-data.rememberme {
margin: 0;
float: left;
}
button[type="submit"] {
@include button-primary;
}
}
}
@@ -0,0 +1,156 @@
html {
height: 100%;
}
#body-wrapper {
.container {
padding: $vert-padding;
}
// Fixed Header solution
.header-fixed & {
padding-top: $header-height-large;
}
}
.header-fixed {
.hero + #start > #body-wrapper {
padding-top: 0;
}
}
section.section {
padding-left: $horiz-padding;
padding-right: $horiz-padding;
position: relative;
}
.overlay-light, .overlay-dark, .overlay-light-gradient, .overlay-dark-gradient {
z-index: 0;
}
// Hero
.hero {
display: flex;
align-items: center;
justify-content: center;
padding-top: 6rem;
padding-bottom: 7rem;
background-size: cover;
background-position: center;
h1 {
color: $header-text-dark;
font-size: 4rem;
}
h2 {
color: rgba($header-text-dark, 0.8);
font-size: 2.5rem;
}
&.hero-fullscreen {
min-height: 100vh;
}
&.hero-large {
min-height: 500px;
}
&.hero-medium {
min-height: 400px;
}
&.hero-small {
min-height: 110px;
}
&.hero-tiny {
min-height: 8rem;
}
.header-fixed & {
background-position: 50% 0;
}
//&.parallax {
// background-attachment: fixed;
//}
@include breakpoint(md) {
h1 {
font-size: 3rem;
}
h2 {
font-size: 1.75rem;
}
}
@include breakpoint(sm) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.25rem;
}
}
&.text-light {
h1 {
color: $header-text-light;
}
h2 {
color: rgba($header-text-light, 0.8);
}
}
p {
font-size: .9rem;
font-weight: 300;
}
#to-start {
display: inline-block;
position: absolute;
bottom: 10px;
font-size: 2rem;
cursor: pointer;
}
}
// Overlay
.image-overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -1;
.overlay-light & {
background: rgba(#fff, 0.4);
}
.overlay-light-gradient & {
background: linear-gradient(to bottom, rgba(#fff,0.5), rgba(#fff,0.2));
}
.overlay-dark & {
background: rgba(#000, 0.4);
}
.overlay-dark-gradient & {
background: linear-gradient(to bottom, rgba(#000,0.5), rgba(#000,0.2));
}
}
@@ -0,0 +1,4 @@
.home{
header{
}
}
@@ -0,0 +1,38 @@
#item{
.e-content{
-webkit-columns: 300px 2;
-moz-columns: 300px 2;
columns: 300px 2;
margin-bottom: $marg;
}
.card-image{
img:not(:last-of-type){
margin-bottom: $marg;
}
}
}
.other_projets{
border-top: 1px solid black;
display: flex;
flex-wrap: wrap;
margin-top: $margI;
margin-bottom: $margI;
h3{
margin: 1rem 0 $marg 0;
width: 100%;
}
.card{
width: $Wi33;
&:nth-child(-1n+3){
margin-right: $marg;
}
.card-header{
display: flex;
flex-wrap: wrap;
& > *{
margin-right: $marg;
}
}
}
}
@@ -0,0 +1,310 @@
@media screen and (max-width: 1024px){
body{
#start{
width: $Wi80-m;
#text_figli{
#item_list{
.card{
width: $Wi33-m;
#item{
width: calc(300% + (.5rem * 2));
}
}
}
}
}
}
}
@media screen and (max-width: 414px) {
body{
#start{
width: $Wi-m;
#text_figli{
p{
font-size: 1.7rem;
line-height: 2.3rem;
}
#item_list{
width: $Wi-m;
.card{
width: calc(100%);
margin: 0 0 0.5rem 0;
#item{
width: 100%;
padding: 1rem;
.content-title{
h2{
font-size: 2rem !important;
line-height: 2.5rem !important;
}
& > div{
line-height: 1rem;
}
}
}
}
}
}
}
.sidebar-right{
display: none;
}
}
}
// body{
// #start{
// width: $Wi-m;
// #text_figli{
// #item_list{
// .card{
// width: $Wi-m;
// #item{
// width: calc(100% + (.5rem * 3));
// }
// }
// }
// }
// }
// }
//
//
// // typographie
// header{
// a{
// font-size: $txt-figli-m;
// line-height: $Flhome-m;
// }
// }
// .home{
// p{
// font-size: $txt-figli-m!important;
// line-height: $Flhome-m!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-m;
// }
// }
//
// // mep
// header{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
//
// body{
// #start{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
// &:not(.home){
// #start{
// margin-top: $Flhome;
// }
// }
// .sidebar-right{
// display: none;
// }
// }
//
// #item_list{
// .card{
// width: calc( #{$Wi-m} )!important;
// &:nth-child(odd){
// margin-right: 0;
// }
// .card-header{
// margin-bottom: $marg;
// & > * {
// margin-right: $marg;
// }
// }
// }
// }
//
// .other_projets{
// margin-top: $margI;
// .card{
// width: $Wi-m;
// &:nth-child(-1n+3){
// margin-right: 0;
// }
// }
// }
// }
//
// @media screen and (max-width: 768px) {
// body{
// #start{
// width: $Wi80-m;
// #text_figli{
// #item_list{
// .card{
// width: $Wi33-m;
// #item{
// width: calc(300% + (.5rem * 3));
// }
// }
// }
// }
// }
// }
//
// // typographie
// header{
// a{
// font-size: 2.5rem;
// line-height: 3rem;
// }
// }
// // .home{
// // p{
// // font-size: $txt-figli-t!important;
// // line-height: $Flhome-t!important;
// // }
// // }
// .other_projets{
// h3{
// font-size: $txt-figli-t;
// }
// }
//
// body{
// &:not(.home){
// #start{
// margin-top: 5rem;
// }
// }
// }
//
// #item_list{
// .card{
// width: calc( #{$Wi-m} );
// &:nth-child(odd){
// margin-right: 0;
// }
// .card-header{
// margin-bottom: $marg;
// & > * {
// margin-right: $marg;
// }
// }
// }
// }
// }
//
// @media screen and (max-width: 812px) and (orientation: landscape) {
// // typographie
// header{
// a{
// font-size: $txt-figli-m;
// line-height: $Flhome-m;
// }
// }
// .home{
// p{
// font-size: $txt-figli-m!important;
// line-height: $Flhome-m!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-m;
// }
// }
//
// // mep
// header{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
//
// body{
// #start{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
// &:not(.home){
// #start{
// margin-top: $Flhome;
// }
// }
// .sidebar-right{
// display: none;
// }
// }
//
// #item_list{
// .card{
// width: $Wi50;
// &:nth-child(odd){
// margin-right: $margI;
// }
// }
// }
//
// .other_projets{
// .card{
// width: $Wi33;
// &:nth-child(-1n+3){
// margin-right: $marg;
// }
// }
// }
// }
//
// @media screen and (max-width: 910px) and (orientation: portrait) {
// header{
// a{
// font-size: 2.5rem;
// line-height: 3rem;
// }
// }
// .home{
// p{
// font-size: $txt-figli-t!important;
// line-height: $Flhome-t!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-t;
// }
// }
// body{
// &:not(.home){
// #start{
// margin-top: 5rem;
// }
// }
// }
// }
//
// @media screen and (max-width: 660px) {
// header{
// a{
// font-size: $txt-figli-m;
// line-height: $Flhome-m;
// }
// }
// .home{
// p{
// font-size: $txt-figli-m!important;
// line-height: $Flhome-m!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-m;
// }
// }
//
// body{
// &:not(.home){
// #start{
// margin-top: $Flhome;
// }
// }
// }
// }
//
@@ -0,0 +1,373 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
margin: 0;
padding: 0;
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
font-size: 16px;
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
padding: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: auto;
margin:0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
-webkit-box-sizing: content-box;
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
p{
margin: 0;
}
ul{
list-style: none;
}
ul,li{
margin: 0;
padding: 0;
}
a {
background-color: transparent;
color: black;
text-decoration: none;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
width: 100%;
height: 100%;
vertical-align: bottom;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
-webkit-box-sizing: border-box;
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
-webkit-box-sizing: border-box;
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}
@@ -0,0 +1,92 @@
.sidebar-right{
position: fixed;
width: 20%;
height: 100%;
right: calc( -20% + 0.9rem);
top: 0;
transition: 0.3s right ease;
#icone_list{
z-index: 999;
position: fixed;
top: 0;
right: 0;
.hamburger{
padding: 0.8rem;
padding-right: 2rem;
.hamburger-box{
width: 30px;
.hamburger-inner{
height: 2px;
width: 30px;
&::before{
width: 20px;
height: inherit;
}
&::after{
height: inherit;
width: inherit;
}
}
}
}
}
.list-projets{
height: 100%;
overflow: auto;
.container{
margin: auto;
ul{
text-align: left;
margin: 0;
span.cat{
display: block;
line-height: 3rem;
font-weight: bold;
padding-left: 23px;
}
li{
display: inline-flex;
width: 100%;
margin-top: -6px;
&::before{
content: " ";
display: inline-block;
min-width: 15px;
height: auto;
}
&.culturelle{
&::before{
background: $color_culturelle;
}
}
&.sociale{
&::before{
background: $color_sociale;
}
}
&.publique{
&::before{
background: $color_publique;
}
}
}
a{
color: black;
display: block;
padding-left: 0.5rem;
&.active{
color: black;
}
&:hover{
background: white;
transition: 0.3s background ease;
}
}
}
}
}
&.is-active{
right: 0;
transition: 0.3s right ease;
}
}
@@ -0,0 +1,183 @@
*{
box-sizing: border-box;
}
html, body{
background: #f9f9f9fe;
}
body{
#start{
width: $Wi80;
margin: $marg auto auto $marg;
#text_figli{
p {
a{
// position: relative;
&.marg{
margin-right: $marg;
}
}
}
#item_list{
width: 80vw;
margin-top: 0.5rem;
position: relative;
.card{
width: calc((100% / 5) - ( #{$marg} * 2) );
display: inline-block;
vertical-align: top;
position: relative;
margin: 0 $marg $marg 0;
height: 100%;
& > .card-image{
&.open{
a{
img{
filter: grayscale(0);
transition: filter 0.3s ease;
}
}
}
}
a{
display: block;
border-radius: 5px;
overflow: auto;
img{
filter: grayscale(1);
transition: filter 0.3s ease;
}
}
.card-header{
width: 100%;
padding: $marg;
flex-wrap: wrap;
display: none;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
& > *{
font-size: 0.8rem;
line-height: 1rem;
margin-right: $marg;
}
}
&:hover{
a{
display: block;
img{
filter: grayscale(0);
transition: filter 0.3s ease;
}
}
.card-header{
display: inline-flex;
position: absolute;
// transform: translateY(-100%);
bottom: 0;
}
}
&:last-of-type{
vertical-align: baseline!important;
}
#item{
width: calc( 500% + ( #{$marg} * 4) );
padding: 2rem;
margin-top: $marg;
border-radius: 5px;
.content-title{
margin: 0 auto 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
a{
display: block;
}
}
.e-content{
margin: 1rem auto 2rem auto;
p{
font-size: 1rem;
line-height: 1.2rem;
}
}
&.publique{
background: $color_publique;
}
&.sociale{
background: $color_sociale;
}
&.culturelle{
background: $color_culturelle;
}
}
}
&.publique{
.card{
&:hover{
.card-header{
background: $color_publique;
}
}
}
}
&.sociale{
.card{
&:hover{
.card-header{
background: $color_sociale;
}
}
}
}
&.culturelle{
.card{
&:hover{
.card-header{
background: $color_culturelle;
}
}
}
}
&.commanditaires{
flex-direction: column;
}
}
}
}
&:not(.home){
#start{
margin-top: calc( 2rem + #{$Flhome});
}
}
}
#icone_list{
z-index: 999;
position: absolute;
top: -60px;
right: 20px;
.hamburger{
padding: 0.8rem;
padding-right: 2rem;
.hamburger-box{
width: 30px;
.hamburger-inner{
height: 2px;
width: 30px;
&::before{
width: 20px;
height: inherit;
}
&::after{
height: inherit;
width: inherit;
}
}
}
}
}
@@ -0,0 +1,136 @@
h1, h2, h3, p, ul, li, a, span{
font-family: $lato;
font-weight: lighter;
}
header{
a{
font-size: $txt-figli;
line-height: $Flhome;
}
}
.home{
p{
font-size: $txt-figli;
line-height: 3rem;
}
#text_figli{
strong{
position: relative;
&::after{
display: block;
position: absolute;
content: "";
width: 100%;
height: 1px;
background: black;
bottom: 0;
}
}
a{
position: relative;
&#publique{
font-family: $playfair;
}
&#sociale{
font-family: $syne;
}
&#culturelle{
font-family: $avara;
}
&#commanditaires{
font-family: $moche;
}
}
#item{
.e-content{
p{
font-size: 1rem;
line-height: 1.2rem;
}
}
}
#item_list{
&.commanditaires{
flex-direction: column;
.card-title{
line-height: normal;
}
}
}
}
}
#item{
h2{
width: auto;
line-height: 4rem!important;
font-size: 4rem!important;
font-weight: normal!important;
}
span{
font-size: 1rem;
}
&.publique{
h2{
font-family: $playfair;
}
span{
font-family: $playfair;
font-weight: normal;
}
}
&.sociale{
h2{
font-family: $syne;
}
span{
font-family: $syne;
font-weight: normal;
}
}
&.culturelle{
h2{
font-family: $avara;
}
span{
font-family: $avara;
font-weight: normal;
}
}
}
a.publique, span.publique{
font-family: $playfair;
}
a.sociale, span.sociale{
font-family: $syne;
}
a.culturelle, span.culturelle{
font-family: $avara;
}
.sidebar-right{
ul, a{
font-size: 0.9rem;
line-height: 1.2rem;
}
}
.other_projets{
h3{
font-size: $txt-figli;
margin: 0;
}
}
.card{
h2{
margin: 0;
font-size: 1rem;
}
}