public static function addUser($idUser, $idProducer) | public static function addUser($idUser, $idProducer) | ||||
{ | { | ||||
$userProducer = UserProducer::searchOne([ | $userProducer = UserProducer::searchOne([ | ||||
'id_user' => $idUser, | |||||
'id_producer' => $idProducer | |||||
'user_producer.id_user' => $idUser, | |||||
'user_producer.id_producer' => $idProducer | |||||
]) ; | ]) ; | ||||
if (!$userProducer) { | if (!$userProducer) { |
margin: 0px auto; | margin: 0px auto; | ||||
} | } | ||||
/* line 167, ../sass/screen.scss */ | |||||
/* line 166, ../sass/screen.scss */ | |||||
#content { | |||||
border-right: solid 1px #e0e0e0; | |||||
} | |||||
/* line 170, ../sass/screen.scss */ | |||||
#content #the-content { | |||||
padding-top: 100px; | |||||
padding-left: 30px; | |||||
padding-right: 30px; | |||||
padding-bottom: 50px; | |||||
} | |||||
/* line 178, ../sass/screen.scss */ | |||||
#content .content-text h1 { | #content .content-text h1 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
font-size: 30px; | font-size: 30px; | ||||
color: black; | color: black; | ||||
text-transform: uppercase; | text-transform: uppercase; | ||||
} | } | ||||
/* line 174, ../sass/screen.scss */ | |||||
/* line 185, ../sass/screen.scss */ | |||||
#content .content-text h2 { | #content .content-text h2 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
font-size: 20px; | font-size: 20px; | ||||
margin-top: 5px; | margin-top: 5px; | ||||
} | } | ||||
/* line 186, ../sass/screen.scss */ | |||||
#content #the-content { | |||||
padding-top: 100px; | |||||
padding-left: 30px; | |||||
padding-right: 30px; | |||||
padding-bottom: 50px; | |||||
} | |||||
/* line 194, ../sass/screen.scss */ | |||||
/* line 196, ../sass/screen.scss */ | |||||
#block-demo { | #block-demo { | ||||
padding: 10px 0px; | padding: 10px 0px; | ||||
background-color: #FF7F00; | background-color: #FF7F00; | ||||
color: white; | color: white; | ||||
text-align: center; | text-align: center; | ||||
} | } | ||||
/* line 200, ../sass/screen.scss */ | |||||
/* line 202, ../sass/screen.scss */ | |||||
#block-demo a { | #block-demo a { | ||||
color: white; | color: white; | ||||
text-decoration: underline; | text-decoration: underline; | ||||
} | } | ||||
/* line 206, ../sass/screen.scss */ | |||||
/* line 208, ../sass/screen.scss */ | |||||
#header { | #header { | ||||
z-index: 100; | z-index: 100; | ||||
border-bottom: solid 1px #e0e0e0; | border-bottom: solid 1px #e0e0e0; | ||||
background-color: white; | background-color: white; | ||||
} | } | ||||
/* line 211, ../sass/screen.scss */ | |||||
/* line 213, ../sass/screen.scss */ | |||||
#header .container { | #header .container { | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 215, ../sass/screen.scss */ | |||||
/* line 217, ../sass/screen.scss */ | |||||
#header #the-header { | #header #the-header { | ||||
height: 80px; | height: 80px; | ||||
height: auto; | height: auto; | ||||
} | } | ||||
/* line 220, ../sass/screen.scss */ | |||||
/* line 222, ../sass/screen.scss */ | |||||
#header #env-dev { | #header #env-dev { | ||||
font-family: "comfortaabold"; | font-family: "comfortaabold"; | ||||
text-align: center; | text-align: center; | ||||
top: 18px; | top: 18px; | ||||
left: 79px; | left: 79px; | ||||
} | } | ||||
/* line 233, ../sass/screen.scss */ | |||||
/* line 235, ../sass/screen.scss */ | |||||
#header #link-home { | #header #link-home { | ||||
float: left; | float: left; | ||||
padding-top: 10px; | padding-top: 10px; | ||||
color: black; | color: black; | ||||
display: block; | display: block; | ||||
} | } | ||||
/* line 242, ../sass/screen.scss */ | |||||
/* line 244, ../sass/screen.scss */ | |||||
#header #link-home img { | #header #link-home img { | ||||
height: 50px; | height: 50px; | ||||
margin-bottom: 5px; | margin-bottom: 5px; | ||||
float: left; | float: left; | ||||
} | } | ||||
/* line 248, ../sass/screen.scss */ | |||||
/* line 250, ../sass/screen.scss */ | |||||
#header #link-home .text { | #header #link-home .text { | ||||
float: left; | float: left; | ||||
padding-left: 10px; | padding-left: 10px; | ||||
} | } | ||||
/* line 252, ../sass/screen.scss */ | |||||
/* line 254, ../sass/screen.scss */ | |||||
#header #link-home .text .bap { | #header #link-home .text .bap { | ||||
font-family: "comfortaalight"; | font-family: "comfortaalight"; | ||||
font-size: 24px; | font-size: 24px; | ||||
} | } | ||||
/* line 257, ../sass/screen.scss */ | |||||
/* line 259, ../sass/screen.scss */ | |||||
#header #link-home .text .plateforme { | #header #link-home .text .plateforme { | ||||
font-size: 17px; | font-size: 17px; | ||||
font-family: "myriadpro-light"; | font-family: "myriadpro-light"; | ||||
color: #FF7F00; | color: #FF7F00; | ||||
} | } | ||||
/* line 265, ../sass/screen.scss */ | |||||
/* line 267, ../sass/screen.scss */ | |||||
#header #link-space-producer { | #header #link-space-producer { | ||||
border-left: solid 1px #e0e0e0; | border-left: solid 1px #e0e0e0; | ||||
color: #FF7F00; | color: #FF7F00; | ||||
} | } | ||||
/* line 270, ../sass/screen.scss */ | |||||
/* line 272, ../sass/screen.scss */ | |||||
#header nav { | #header nav { | ||||
padding-top: 0px; | padding-top: 0px; | ||||
margin-bottom: 0px; | margin-bottom: 0px; | ||||
-webkit-box-shadow: none; | -webkit-box-shadow: none; | ||||
box-shadow: none; | box-shadow: none; | ||||
} | } | ||||
/* line 277, ../sass/screen.scss */ | |||||
/* line 279, ../sass/screen.scss */ | |||||
#header nav .navbar-toggle { | #header nav .navbar-toggle { | ||||
background-color: white; | background-color: white; | ||||
} | } | ||||
/* line 281, ../sass/screen.scss */ | |||||
/* line 283, ../sass/screen.scss */ | |||||
#header nav ul { | #header nav ul { | ||||
float: right; | float: right; | ||||
padding: 0px; | padding: 0px; | ||||
margin: 0px; | margin: 0px; | ||||
} | } | ||||
/* line 286, ../sass/screen.scss */ | |||||
/* line 288, ../sass/screen.scss */ | |||||
#header nav ul li { | #header nav ul li { | ||||
padding: 0px; | padding: 0px; | ||||
display: block; | display: block; | ||||
} | } | ||||
/* line 289, ../sass/screen.scss */ | |||||
/* line 291, ../sass/screen.scss */ | |||||
#header nav ul li a { | #header nav ul li a { | ||||
display: block; | display: block; | ||||
text-decoration: none; | text-decoration: none; | ||||
color: #323232; | |||||
background-color: transparent; | background-color: transparent; | ||||
padding: 30px 20px; | padding: 30px 20px; | ||||
margin: 0px; | margin: 0px; | ||||
border-right: solid 1px #e0e0e0; | border-right: solid 1px #e0e0e0; | ||||
font-family: "capsuularegular"; | |||||
color: black; | |||||
font-size: 18px; | |||||
-moz-border-radius: 0px; | -moz-border-radius: 0px; | ||||
-webkit-border-radius: 0px; | -webkit-border-radius: 0px; | ||||
border-radius: 0px; | border-radius: 0px; | ||||
-webkit-box-shadow: none; | -webkit-box-shadow: none; | ||||
box-shadow: none; | box-shadow: none; | ||||
} | } | ||||
/* line 300, ../sass/screen.scss */ | |||||
/* line 304, ../sass/screen.scss */ | |||||
#header nav ul li a span { | |||||
font-size: 15px; | |||||
} | |||||
/* line 308, ../sass/screen.scss */ | |||||
#header nav ul li a:hover { | #header nav ul li a:hover { | ||||
color: #FF7F00; | color: #FF7F00; | ||||
background-color: white; | background-color: white; | ||||
} | } | ||||
/* line 306, ../sass/screen.scss */ | |||||
/* line 314, ../sass/screen.scss */ | |||||
#header nav ul li#li-home a { | #header nav ul li#li-home a { | ||||
border-left: solid 1px #e0e0e0; | border-left: solid 1px #e0e0e0; | ||||
} | } | ||||
/* line 311, ../sass/screen.scss */ | |||||
/* line 319, ../sass/screen.scss */ | |||||
#header nav ul li.active a { | #header nav ul li.active a { | ||||
background-color: #FF7F00; | background-color: #FF7F00; | ||||
color: white; | color: white; | ||||
} | } | ||||
/* line 320, ../sass/screen.scss */ | |||||
/* line 328, ../sass/screen.scss */ | |||||
#header nav ul li ul li a { | #header nav ul li ul li a { | ||||
padding: 10px 10px; | padding: 10px 10px; | ||||
} | } | ||||
/* line 333, ../sass/screen.scss */ | |||||
/* line 341, ../sass/screen.scss */ | |||||
#header #link-logout .name { | #header #link-logout .name { | ||||
color: gray; | color: gray; | ||||
font-size: 10px; | font-size: 10px; | ||||
top: -4px; | top: -4px; | ||||
} | } | ||||
/* line 344, ../sass/screen.scss */ | |||||
/* line 352, ../sass/screen.scss */ | |||||
#content { | #content { | ||||
position: relative; | position: relative; | ||||
padding: 20px 0px; | padding: 20px 0px; | ||||
padding-top: 35px; | padding-top: 35px; | ||||
padding-bottom: 50px; | padding-bottom: 50px; | ||||
} | } | ||||
/* line 350, ../sass/screen.scss */ | |||||
/* line 358, ../sass/screen.scss */ | |||||
#content h1#title-site, #content h1 { | #content h1#title-site, #content h1 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
font-size: 35px; | font-size: 35px; | ||||
} | } | ||||
/* line 355, ../sass/screen.scss */ | |||||
/* line 363, ../sass/screen.scss */ | |||||
#content h2 { | #content h2 { | ||||
color: #323232; | color: #323232; | ||||
padding-bottom: 15px; | padding-bottom: 15px; | ||||
position: relative; | position: relative; | ||||
margin-top: 30px; | margin-top: 30px; | ||||
} | } | ||||
/* line 366, ../sass/screen.scss */ | |||||
/* line 374, ../sass/screen.scss */ | |||||
#content h3 { | #content h3 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
font-size: 20px; | font-size: 20px; | ||||
color: #323232; | color: #323232; | ||||
} | } | ||||
/* line 373, ../sass/screen.scss */ | |||||
/* line 381, ../sass/screen.scss */ | |||||
#content #description img { | #content #description img { | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
/* line 378, ../sass/screen.scss */ | |||||
/* line 386, ../sass/screen.scss */ | |||||
#content #main-img { | #content #main-img { | ||||
max-width: 100%; | max-width: 100%; | ||||
border: solid 1px #e0e0e0; | border: solid 1px #e0e0e0; | ||||
-webkit-border-radius: 5px; | -webkit-border-radius: 5px; | ||||
border-radius: 5px; | border-radius: 5px; | ||||
} | } | ||||
/* line 385, ../sass/screen.scss */ | |||||
/* line 393, ../sass/screen.scss */ | |||||
#content #row-signup { | #content #row-signup { | ||||
text-align: center; | text-align: center; | ||||
margin-top: 40px; | margin-top: 40px; | ||||
padding-top: 40px; | padding-top: 40px; | ||||
} | } | ||||
/* line 390, ../sass/screen.scss */ | |||||
/* line 398, ../sass/screen.scss */ | |||||
#content #row-signup a.btn { | #content #row-signup a.btn { | ||||
padding: 10px 20px; | padding: 10px 20px; | ||||
font-size: 20px; | font-size: 20px; | ||||
text-transform: uppercase; | text-transform: uppercase; | ||||
} | } | ||||
/* line 396, ../sass/screen.scss */ | |||||
/* line 404, ../sass/screen.scss */ | |||||
#content #row-signup a.btn-primary { | #content #row-signup a.btn-primary { | ||||
margin-right: 15px; | margin-right: 15px; | ||||
} | } | ||||
/* line 401, ../sass/screen.scss */ | |||||
/* line 409, ../sass/screen.scss */ | |||||
#content #row-presentation-distrib { | #content #row-presentation-distrib { | ||||
border-bottom: solid 1px #e0e0e0; | border-bottom: solid 1px #e0e0e0; | ||||
} | } | ||||
/* line 404, ../sass/screen.scss */ | |||||
/* line 412, ../sass/screen.scss */ | |||||
#content #row-presentation-distrib h2 { | #content #row-presentation-distrib h2 { | ||||
font-family: "capsuularegular"; | font-family: "capsuularegular"; | ||||
text-align: center; | text-align: center; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
text-transform: none; | text-transform: none; | ||||
} | } | ||||
/* line 412, ../sass/screen.scss */ | |||||
/* line 420, ../sass/screen.scss */ | |||||
#content #row-users-producers { | #content #row-users-producers { | ||||
margin-bottom: 50px; | margin-bottom: 50px; | ||||
padding-top: 30px; | padding-top: 30px; | ||||
} | } | ||||
/* line 416, ../sass/screen.scss */ | |||||
/* line 424, ../sass/screen.scss */ | |||||
#content #row-users-producers h2 { | #content #row-users-producers h2 { | ||||
text-align: left; | text-align: left; | ||||
margin-bottom: 10px; | margin-bottom: 10px; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
} | } | ||||
/* line 420, ../sass/screen.scss */ | |||||
/* line 428, ../sass/screen.scss */ | |||||
#content #row-users-producers h2 .img { | #content #row-users-producers h2 .img { | ||||
height: 35px; | height: 35px; | ||||
} | } | ||||
/* line 423, ../sass/screen.scss */ | |||||
/* line 431, ../sass/screen.scss */ | |||||
#content #row-users-producers h2 span { | #content #row-users-producers h2 span { | ||||
margin-left: 10px; | margin-left: 10px; | ||||
font-size: 25px; | font-size: 25px; | ||||
position: relative; | position: relative; | ||||
top: 5px; | top: 5px; | ||||
} | } | ||||
/* line 431, ../sass/screen.scss */ | |||||
/* line 439, ../sass/screen.scss */ | |||||
#content #row-users-producers h3 { | #content #row-users-producers h3 { | ||||
margin-top: 0px; | margin-top: 0px; | ||||
} | } | ||||
/* line 435, ../sass/screen.scss */ | |||||
/* line 443, ../sass/screen.scss */ | |||||
#content #row-users-producers p.presentation { | #content #row-users-producers p.presentation { | ||||
font-family: "capsuularegular"; | font-family: "capsuularegular"; | ||||
color: black; | color: black; | ||||
font-size: 20px; | font-size: 20px; | ||||
line-height: 26px; | line-height: 26px; | ||||
} | } | ||||
/* line 442, ../sass/screen.scss */ | |||||
/* line 450, ../sass/screen.scss */ | |||||
#content #row-users-producers ul { | #content #row-users-producers ul { | ||||
text-align: left; | text-align: left; | ||||
} | } | ||||
/* line 444, ../sass/screen.scss */ | |||||
/* line 452, ../sass/screen.scss */ | |||||
#content #row-users-producers ul li { | #content #row-users-producers ul li { | ||||
color: #FF7F00; | color: #FF7F00; | ||||
} | } | ||||
/* line 449, ../sass/screen.scss */ | |||||
/* line 457, ../sass/screen.scss */ | |||||
#content #row-users-producers p { | #content #row-users-producers p { | ||||
padding-bottom: 4px; | padding-bottom: 4px; | ||||
} | } | ||||
/* line 453, ../sass/screen.scss */ | |||||
/* line 461, ../sass/screen.scss */ | |||||
#content #row-users-producers .btn-primary { | #content #row-users-producers .btn-primary { | ||||
margin-top: 20px; | margin-top: 20px; | ||||
} | } | ||||
/* line 460, ../sass/screen.scss */ | |||||
/* line 468, ../sass/screen.scss */ | |||||
#content #btn-demo:hover, #content #btn-demo:focus, #content #btn-demo:active { | #content #btn-demo:hover, #content #btn-demo:focus, #content #btn-demo:active { | ||||
color: black; | color: black; | ||||
} | } | ||||
/* line 470, ../sass/screen.scss */ | |||||
/* line 478, ../sass/screen.scss */ | |||||
#content #contact { | #content #contact { | ||||
display: none; | display: none; | ||||
} | } | ||||
/* line 474, ../sass/screen.scss */ | |||||
/* line 482, ../sass/screen.scss */ | |||||
#content #contact .icon { | #content #contact .icon { | ||||
width: 55px; | width: 55px; | ||||
top: -15px; | top: -15px; | ||||
margin-left: -70px; | margin-left: -70px; | ||||
} | } | ||||
/* line 480, ../sass/screen.scss */ | |||||
/* line 488, ../sass/screen.scss */ | |||||
#content #contact .form-control:focus { | #content #contact .form-control:focus { | ||||
/*@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px $jaune) ; | /*@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px $jaune) ; | ||||
border-color: $jaune ;*/ | border-color: $jaune ;*/ | ||||
} | } | ||||
/* line 485, ../sass/screen.scss */ | |||||
/* line 493, ../sass/screen.scss */ | |||||
#content #contact .form-group { | #content #contact .form-group { | ||||
text-align: center; | text-align: center; | ||||
} | } | ||||
/* line 489, ../sass/screen.scss */ | |||||
/* line 497, ../sass/screen.scss */ | |||||
#content #contact .img-right { | #content #contact .img-right { | ||||
float: right; | float: right; | ||||
} | } | ||||
/* line 492, ../sass/screen.scss */ | |||||
/* line 500, ../sass/screen.scss */ | |||||
#content #contact .img-right img { | #content #contact .img-right img { | ||||
width: 300px; | width: 300px; | ||||
} | } | ||||
/* line 499, ../sass/screen.scss */ | |||||
/* line 507, ../sass/screen.scss */ | |||||
#bookmarked-producers { | #bookmarked-producers { | ||||
background-color: #323232; | |||||
padding: 0px; | padding: 0px; | ||||
padding-top: 20px; | padding-top: 20px; | ||||
margin: 0px; | margin: 0px; | ||||
border-bottom: solid 1px #e0e0e0; | |||||
} | } | ||||
/* line 505, ../sass/screen.scss */ | |||||
/* line 513, ../sass/screen.scss */ | |||||
#bookmarked-producers h2 { | #bookmarked-producers h2 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
color: white; | |||||
color: #323232; | |||||
text-align: left; | text-align: left; | ||||
font-size: 16px; | font-size: 16px; | ||||
margin: 0px; | margin: 0px; | ||||
margin-left: 15px; | margin-left: 15px; | ||||
margin-bottom: 15px; | margin-bottom: 15px; | ||||
} | } | ||||
/* line 516, ../sass/screen.scss */ | |||||
/* line 524, ../sass/screen.scss */ | |||||
#bookmarked-producers .col-md-12, #bookmarked-producers .col-md-6, #bookmarked-producers .col-md-3 { | #bookmarked-producers .col-md-12, #bookmarked-producers .col-md-6, #bookmarked-producers .col-md-3 { | ||||
float: left; | float: left; | ||||
} | } | ||||
/* line 520, ../sass/screen.scss */ | |||||
/* line 528, ../sass/screen.scss */ | |||||
#bookmarked-producers .col-md-12 .producer { | #bookmarked-producers .col-md-12 .producer { | ||||
background-size: 920px auto; | background-size: 920px auto; | ||||
} | } | ||||
/* line 523, ../sass/screen.scss */ | |||||
/* line 531, ../sass/screen.scss */ | |||||
#bookmarked-producers .col-md-6 .producer { | #bookmarked-producers .col-md-6 .producer { | ||||
background-size: 460px auto; | background-size: 460px auto; | ||||
} | } | ||||
/* line 527, ../sass/screen.scss */ | |||||
/* line 535, ../sass/screen.scss */ | |||||
#bookmarked-producers .col-md-3 .producer { | #bookmarked-producers .col-md-3 .producer { | ||||
background-size: 230px auto; | background-size: 230px auto; | ||||
} | } | ||||
/* line 531, ../sass/screen.scss */ | |||||
/* line 539, ../sass/screen.scss */ | |||||
#bookmarked-producers .producer { | #bookmarked-producers .producer { | ||||
position: relative; | position: relative; | ||||
height: 100px; | height: 100px; | ||||
background-size: 300px auto; | background-size: 300px auto; | ||||
background-position: center center; | background-position: center center; | ||||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||||
border: solid 1px white; | |||||
border: solid 1px #e0e0e0; | |||||
background-color: white; | background-color: white; | ||||
} | } | ||||
/* line 543, ../sass/screen.scss */ | |||||
/* line 551, ../sass/screen.scss */ | |||||
#bookmarked-producers .producer a { | #bookmarked-producers .producer a { | ||||
position: absolute; | position: absolute; | ||||
bottom: 0px; | bottom: 0px; | ||||
-webkit-border-radius: 0px; | -webkit-border-radius: 0px; | ||||
border-radius: 0px; | border-radius: 0px; | ||||
} | } | ||||
/* line 553, ../sass/screen.scss */ | |||||
/* line 561, ../sass/screen.scss */ | |||||
#bookmarked-producers .producer a:hover { | #bookmarked-producers .producer a:hover { | ||||
background-color: #fafafa; | |||||
border-color: white; | |||||
color: #FF7F00; | |||||
background-color: #f57a00; | |||||
} | } | ||||
/* line 561, ../sass/screen.scss */ | |||||
/* line 567, ../sass/screen.scss */ | |||||
#bookmarked-producers #discover { | #bookmarked-producers #discover { | ||||
padding-bottom: 20px; | padding-bottom: 20px; | ||||
text-align: center; | text-align: center; | ||||
} | } | ||||
/* line 565, ../sass/screen.scss */ | |||||
/* line 571, ../sass/screen.scss */ | |||||
#bookmarked-producers #discover p { | #bookmarked-producers #discover p { | ||||
padding-bottom: 0px; | padding-bottom: 0px; | ||||
color: white; | color: white; | ||||
} | } | ||||
/* line 570, ../sass/screen.scss */ | |||||
/* line 576, ../sass/screen.scss */ | |||||
#bookmarked-producers #discover .btn { | #bookmarked-producers #discover .btn { | ||||
background-color: white; | background-color: white; | ||||
color: #FF7F00; | color: #FF7F00; | ||||
border: solid 1px white; | border: solid 1px white; | ||||
} | } | ||||
/* line 579, ../sass/screen.scss */ | |||||
/* line 585, ../sass/screen.scss */ | |||||
#footer { | #footer { | ||||
position: absolute; | position: absolute; | ||||
bottom: 0px; | bottom: 0px; | ||||
background-color: white; | background-color: white; | ||||
border-top: solid 1px #e0e0e0; | border-top: solid 1px #e0e0e0; | ||||
} | } | ||||
/* line 589, ../sass/screen.scss */ | |||||
/* line 595, ../sass/screen.scss */ | |||||
#footer a { | #footer a { | ||||
color: #7e7e7e; | color: #7e7e7e; | ||||
color: white; | color: white; | ||||
border-right: solid 1px #7e7e7e; | border-right: solid 1px #7e7e7e; | ||||
border-right: solid 1px white; | border-right: solid 1px white; | ||||
} | } | ||||
/* line 599, ../sass/screen.scss */ | |||||
/* line 605, ../sass/screen.scss */ | |||||
#footer a:hover { | #footer a:hover { | ||||
color: gray; | color: gray; | ||||
} | } | ||||
/* line 603, ../sass/screen.scss */ | |||||
/* line 609, ../sass/screen.scss */ | |||||
#footer a:last-child { | #footer a:last-child { | ||||
border: 0px none; | border: 0px none; | ||||
} | } | ||||
/* line 609, ../sass/screen.scss */ | |||||
/* line 615, ../sass/screen.scss */ | |||||
#footer #code-source img { | #footer #code-source img { | ||||
height: 20px; | height: 20px; | ||||
} | } | ||||
/* line 615, ../sass/screen.scss */ | |||||
/* line 621, ../sass/screen.scss */ | |||||
#content #mentions { | #content #mentions { | ||||
padding-top: 20px; | padding-top: 20px; | ||||
} | } | ||||
/* line 618, ../sass/screen.scss */ | |||||
/* line 624, ../sass/screen.scss */ | |||||
#content #mentions div.content { | #content #mentions div.content { | ||||
width: 60%; | width: 60%; | ||||
font-size: 90%; | font-size: 90%; | ||||
} | } | ||||
/* line 623, ../sass/screen.scss */ | |||||
/* line 629, ../sass/screen.scss */ | |||||
#content #mentions p { | #content #mentions p { | ||||
padding-bottom: 15px; | padding-bottom: 15px; | ||||
} | } | ||||
/* line 627, ../sass/screen.scss */ | |||||
/* line 633, ../sass/screen.scss */ | |||||
#content #mentions h2 { | #content #mentions h2 { | ||||
color: black; | color: black; | ||||
padding-bottom: 40px; | padding-bottom: 40px; | ||||
line-height: 35px; | line-height: 35px; | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
} | } | ||||
/* line 635, ../sass/screen.scss */ | |||||
/* line 641, ../sass/screen.scss */ | |||||
#content #mentions h3 { | #content #mentions h3 { | ||||
font-family: "highvoltageregular"; | font-family: "highvoltageregular"; | ||||
font-size: 18px; | font-size: 18px; | ||||
color: black; | color: black; | ||||
} | } | ||||
/* line 650, ../sass/screen.scss */ | |||||
/* line 656, ../sass/screen.scss */ | |||||
.vegas-loading { | .vegas-loading { | ||||
display: none; | display: none; | ||||
} | } | ||||
/* line 657, ../sass/screen.scss */ | |||||
/* line 663, ../sass/screen.scss */ | |||||
#profil-user .form-group.field-user-no_mail label { | #profil-user .form-group.field-user-no_mail label { | ||||
font-weight: normal; | font-weight: normal; | ||||
} | } | ||||
/* line 661, ../sass/screen.scss */ | |||||
/* line 667, ../sass/screen.scss */ | |||||
#profil-user .form-group label { | #profil-user .form-group label { | ||||
cursor: pointer; | cursor: pointer; | ||||
} | } | ||||
/* line 666, ../sass/screen.scss */ | |||||
/* line 672, ../sass/screen.scss */ | |||||
#profil-user #mails-days-distribution .form-group { | #profil-user #mails-days-distribution .form-group { | ||||
float: left; | float: left; | ||||
margin-right: 15px; | margin-right: 15px; | ||||
} | } | ||||
/* line 669, ../sass/screen.scss */ | |||||
/* line 675, ../sass/screen.scss */ | |||||
#profil-user #mails-days-distribution .form-group label { | #profil-user #mails-days-distribution .form-group label { | ||||
font-weight: normal; | font-weight: normal; | ||||
} | } | ||||
/* line 675, ../sass/screen.scss */ | |||||
/* line 681, ../sass/screen.scss */ | |||||
#profil-user p.strong { | #profil-user p.strong { | ||||
font-weight: bold; | font-weight: bold; | ||||
} | } | ||||
/* login */ | /* login */ | ||||
/* line 684, ../sass/screen.scss */ | |||||
/* line 690, ../sass/screen.scss */ | |||||
.site-login .col-lg-5 { | .site-login .col-lg-5 { | ||||
margin: 0px auto; | margin: 0px auto; | ||||
float: none; | float: none; | ||||
} | } | ||||
/* signup */ | /* signup */ | ||||
/* line 692, ../sass/screen.scss */ | |||||
/* line 698, ../sass/screen.scss */ | |||||
.modal-backdrop { | .modal-backdrop { | ||||
z-index: 999; | z-index: 999; | ||||
} | } | ||||
/* line 697, ../sass/screen.scss */ | |||||
/* line 703, ../sass/screen.scss */ | |||||
.site-signup .col-lg-5 { | .site-signup .col-lg-5 { | ||||
margin: 0px auto; | margin: 0px auto; | ||||
float: none; | float: none; | ||||
} | } | ||||
/* line 707, ../sass/screen.scss */ | |||||
/* line 713, ../sass/screen.scss */ | |||||
#modal-cgv .modal-body h2 { | #modal-cgv .modal-body h2 { | ||||
margin-bottom: 5px; | margin-bottom: 5px; | ||||
padding-bottom: 0px; | padding-bottom: 0px; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
} | } | ||||
/* line 717, ../sass/screen.scss */ | |||||
/* line 723, ../sass/screen.scss */ | |||||
#form-signup #user-producer { | #form-signup #user-producer { | ||||
margin-bottom: 30px; | margin-bottom: 30px; | ||||
} | } | ||||
/* line 722, ../sass/screen.scss */ | |||||
/* line 728, ../sass/screen.scss */ | |||||
#form-signup #signupform-id_producer option:disabled { | #form-signup #signupform-id_producer option:disabled { | ||||
font-weight: bold; | font-weight: bold; | ||||
color: black; | color: black; | ||||
} | } | ||||
/* line 728, ../sass/screen.scss */ | |||||
/* line 734, ../sass/screen.scss */ | |||||
#form-signup #champs-producer { | #form-signup #champs-producer { | ||||
display: none; | display: none; | ||||
} | } | ||||
/* line 732, ../sass/screen.scss */ | |||||
/* line 738, ../sass/screen.scss */ | |||||
#form-signup #buttons-signup { | #form-signup #buttons-signup { | ||||
margin-top: 30px; | margin-top: 30px; | ||||
} | } | ||||
/* line 737, ../sass/screen.scss */ | |||||
/* line 743, ../sass/screen.scss */ | |||||
#col-left { | #col-left { | ||||
padding: 0px; | padding: 0px; | ||||
z-index: 15; | z-index: 15; | ||||
} | } | ||||
/* line 741, ../sass/screen.scss */ | |||||
/* line 747, ../sass/screen.scss */ | |||||
#col-left .affix { | #col-left .affix { | ||||
width: 25%; | width: 25%; | ||||
border-right: solid 1px #e0e0e0; | border-right: solid 1px #e0e0e0; | ||||
background-color: #FAFAFA; | background-color: #FAFAFA; | ||||
height: 100%; | height: 100%; | ||||
} | } | ||||
/* line 748, ../sass/screen.scss */ | |||||
/* line 754, ../sass/screen.scss */ | |||||
#col-left #link-home { | #col-left #link-home { | ||||
text-decoration: none; | text-decoration: none; | ||||
font-size: 22px; | font-size: 22px; | ||||
padding: 10px; | padding: 10px; | ||||
background-color: white; | background-color: white; | ||||
} | } | ||||
/* line 756, ../sass/screen.scss */ | |||||
/* line 762, ../sass/screen.scss */ | |||||
#col-left #link-home img { | #col-left #link-home img { | ||||
height: 50px; | height: 50px; | ||||
margin-bottom: 5px; | margin-bottom: 5px; | ||||
float: left; | float: left; | ||||
} | } | ||||
/* line 762, ../sass/screen.scss */ | |||||
/* line 768, ../sass/screen.scss */ | |||||
#col-left #link-home .text { | #col-left #link-home .text { | ||||
padding-left: 62px; | padding-left: 62px; | ||||
} | } | ||||
/* line 765, ../sass/screen.scss */ | |||||
/* line 771, ../sass/screen.scss */ | |||||
#col-left #link-home .text .bap { | #col-left #link-home .text .bap { | ||||
font-family: "comfortaalight"; | font-family: "comfortaalight"; | ||||
font-size: 24px; | font-size: 24px; | ||||
} | } | ||||
/* line 770, ../sass/screen.scss */ | |||||
/* line 776, ../sass/screen.scss */ | |||||
#col-left #link-home .text .plateforme { | #col-left #link-home .text .plateforme { | ||||
font-size: 17px; | font-size: 17px; | ||||
font-family: "myriadpro-light"; | font-family: "myriadpro-light"; | ||||
color: #FF7F00; | color: #FF7F00; | ||||
} | } | ||||
/* line 778, ../sass/screen.scss */ | |||||
/* line 784, ../sass/screen.scss */ | |||||
#col-left h2 { | #col-left h2 { | ||||
font-family: "myriadpro-regular"; | font-family: "myriadpro-regular"; | ||||
color: black; | color: black; | ||||
margin-bottom: 10px; | margin-bottom: 10px; | ||||
padding: 15px 0px 5px 15px; | padding: 15px 0px 5px 15px; | ||||
} | } | ||||
/* line 786, ../sass/screen.scss */ | |||||
/* line 792, ../sass/screen.scss */ | |||||
#col-left #links { | #col-left #links { | ||||
background-color: white; | background-color: white; | ||||
margin-bottom: 20px; | margin-bottom: 20px; | ||||
} | } | ||||
/* line 792, ../sass/screen.scss */ | |||||
/* line 798, ../sass/screen.scss */ | |||||
#col-left #links ul li a { | #col-left #links ul li a { | ||||
text-align: center; | text-align: center; | ||||
border-right: solid 1px #e0e0e0; | border-right: solid 1px #e0e0e0; | ||||
} | } | ||||
/* line 796, ../sass/screen.scss */ | |||||
/* line 802, ../sass/screen.scss */ | |||||
#col-left #links ul li a:hover { | #col-left #links ul li a:hover { | ||||
background-color: #FF7F00; | background-color: #FF7F00; | ||||
color: white; | color: white; | ||||
} | } | ||||
/* line 802, ../sass/screen.scss */ | |||||
/* line 808, ../sass/screen.scss */ | |||||
#col-left #links ul li:last-child a { | #col-left #links ul li:last-child a { | ||||
border-right: 0px none; | border-right: 0px none; | ||||
} | } | ||||
/* line 812, ../sass/screen.scss */ | |||||
/* line 818, ../sass/screen.scss */ | |||||
#col-left #producers nav.nav-producers ul li a { | #col-left #producers nav.nav-producers ul li a { | ||||
padding-left: 50px; | padding-left: 50px; | ||||
height: 40px; | height: 40px; | ||||
} | } | ||||
/* line 818, ../sass/screen.scss */ | |||||
/* line 824, ../sass/screen.scss */ | |||||
#col-left #producers nav.nav-producers ul li.active a { | #col-left #producers nav.nav-producers ul li.active a { | ||||
background-color: #FF7F00; | background-color: #FF7F00; | ||||
position: relative; | position: relative; | ||||
color: white; | color: white; | ||||
} | } | ||||
/* line 823, ../sass/screen.scss */ | |||||
/* line 829, ../sass/screen.scss */ | |||||
#col-left #producers nav.nav-producers ul li.active a:after { | #col-left #producers nav.nav-producers ul li.active a:after { | ||||
right: -40px; | right: -40px; | ||||
top: 50%; | top: 50%; | ||||
border-width: 20px; | border-width: 20px; | ||||
margin-top: -20px; | margin-top: -20px; | ||||
} | } | ||||
/* line 842, ../sass/screen.scss */ | |||||
/* line 848, ../sass/screen.scss */ | |||||
#col-left ul { | #col-left ul { | ||||
list-style-type: none; | list-style-type: none; | ||||
margin: 0px; | margin: 0px; | ||||
padding: 0px; | padding: 0px; | ||||
} | } | ||||
/* line 846, ../sass/screen.scss */ | |||||
/* line 852, ../sass/screen.scss */ | |||||
#col-left ul li { | #col-left ul li { | ||||
margin: 0px; | margin: 0px; | ||||
padding: 0px; | padding: 0px; | ||||
} | } | ||||
/* line 849, ../sass/screen.scss */ | |||||
/* line 855, ../sass/screen.scss */ | |||||
#col-left ul li a { | #col-left ul li a { | ||||
text-decoration: none; | text-decoration: none; | ||||
font-family: "comfortaaregular"; | font-family: "comfortaaregular"; | ||||
display: block; | display: block; | ||||
color: black; | color: black; | ||||
} | } | ||||
/* line 859, ../sass/screen.scss */ | |||||
/* line 865, ../sass/screen.scss */ | |||||
#col-left ul li a span.name, #col-left ul li a span.wording { | #col-left ul li a span.name, #col-left ul li a span.wording { | ||||
display: none; | display: none; | ||||
} | } | ||||
/* line 866, ../sass/screen.scss */ | |||||
/* line 872, ../sass/screen.scss */ | |||||
#col-left p { | #col-left p { | ||||
padding: 20px; | padding: 20px; | ||||
padding-top: 0px; | padding-top: 0px; | ||||
color: gray; | color: gray; | ||||
} | } | ||||
/* line 874, ../sass/screen.scss */ | |||||
/* line 880, ../sass/screen.scss */ | |||||
#content .header-title { | #content .header-title { | ||||
height: 79px; | height: 79px; | ||||
padding: 20px 20px; | padding: 20px 20px; | ||||
-webkit-box-shadow: 0px 0px 8px #e0e0e0; | -webkit-box-shadow: 0px 0px 8px #e0e0e0; | ||||
box-shadow: 0px 0px 8px #e0e0e0; | box-shadow: 0px 0px 8px #e0e0e0; | ||||
} | } | ||||
/* line 886, ../sass/screen.scss */ | |||||
/* line 892, ../sass/screen.scss */ | |||||
#content .header-title h1 { | #content .header-title h1 { | ||||
color: black; | color: black; | ||||
font-family: "myriadpro-regular"; | font-family: "myriadpro-regular"; | ||||
font-size: 25px; | font-size: 25px; | ||||
text-transform: uppercase; | text-transform: uppercase; | ||||
} | } | ||||
/* line 894, ../sass/screen.scss */ | |||||
/* line 900, ../sass/screen.scss */ | |||||
#content .header-title h2 { | #content .header-title h2 { | ||||
color: gray; | color: gray; | ||||
text-transform: none; | text-transform: none; | ||||
line-height: 20px; | line-height: 20px; | ||||
} | } | ||||
/* line 905, ../sass/screen.scss */ | |||||
/* line 911, ../sass/screen.scss */ | |||||
.header-producer { | .header-producer { | ||||
z-index: 1; | z-index: 1; | ||||
} | } | ||||
/* line 907, ../sass/screen.scss */ | |||||
/* line 913, ../sass/screen.scss */ | |||||
.header-producer #block-main-img { | .header-producer #block-main-img { | ||||
height: 144px; | height: 144px; | ||||
overflow: hidden; | overflow: hidden; | ||||
} | } | ||||
/* line 911, ../sass/screen.scss */ | |||||
/* line 917, ../sass/screen.scss */ | |||||
.header-producer #block-main-img #main-img { | .header-producer #block-main-img #main-img { | ||||
width: 100%; | width: 100%; | ||||
height: auto; | height: auto; | ||||
-webkit-border-radius: 0px; | -webkit-border-radius: 0px; | ||||
border-radius: 0px; | border-radius: 0px; | ||||
} | } | ||||
/* line 920, ../sass/screen.scss */ | |||||
/* line 926, ../sass/screen.scss */ | |||||
.header-producer h1 { | .header-producer h1 { | ||||
font-family: "comfortaaregular"; | font-family: "comfortaaregular"; | ||||
text-align: center; | text-align: center; | ||||
top: 30px; | top: 30px; | ||||
left: 40px; | left: 40px; | ||||
} | } | ||||
/* line 927, ../sass/screen.scss */ | |||||
/* line 933, ../sass/screen.scss */ | |||||
.header-producer h1 span { | .header-producer h1 span { | ||||
background-color: rgba(255, 255, 255, 0.8); | background-color: rgba(255, 255, 255, 0.8); | ||||
padding: 10px 30px; | padding: 10px 30px; | ||||
border: dotted 1px black; | border: dotted 1px black; | ||||
} | } | ||||
/* line 938, ../sass/screen.scss */ | |||||
/* line 944, ../sass/screen.scss */ | |||||
nav#menu-producer { | nav#menu-producer { | ||||
border-bottom: solid 1px #e0e0e0; | border-bottom: solid 1px #e0e0e0; | ||||
} | } | ||||
/* line 942, ../sass/screen.scss */ | |||||
/* line 948, ../sass/screen.scss */ | |||||
nav#menu-producer ul li { | nav#menu-producer ul li { | ||||
padding: 0px; | padding: 0px; | ||||
margin: 0px; | margin: 0px; | ||||
} | } | ||||
/* line 945, ../sass/screen.scss */ | |||||
/* line 951, ../sass/screen.scss */ | |||||
nav#menu-producer ul li a { | nav#menu-producer ul li a { | ||||
border-right: solid 1px #e0e0e0; | border-right: solid 1px #e0e0e0; | ||||
text-decoration: none; | text-decoration: none; | ||||
-webkit-border-radius: 0px; | -webkit-border-radius: 0px; | ||||
border-radius: 0px; | border-radius: 0px; | ||||
} | } | ||||
/* line 950, ../sass/screen.scss */ | |||||
/* line 956, ../sass/screen.scss */ | |||||
nav#menu-producer ul li a:hover { | nav#menu-producer ul li a:hover { | ||||
background-color: #FF7F00; | background-color: #FF7F00; | ||||
color: white; | color: white; | ||||
} | } | ||||
/* line 960, ../sass/screen.scss */ | |||||
/* line 966, ../sass/screen.scss */ | |||||
.site-contact .col-lg-5 { | .site-contact .col-lg-5 { | ||||
margin: 0px auto; | margin: 0px auto; | ||||
float: none; | float: none; |
width: 960px ; | width: 960px ; | ||||
margin: 0px auto ; | margin: 0px auto ; | ||||
} | } | ||||
} | |||||
#content .content-text { | |||||
h1 { | |||||
font-family: 'highvoltageregular' ; | |||||
font-size: 30px ; | |||||
color: black ; | |||||
text-transform: uppercase ; | |||||
} | |||||
h2 { | |||||
font-family: 'highvoltageregular' ; | |||||
font-size: 20px ; | |||||
text-transform: none ; | |||||
padding-bottom: 0px ; | |||||
margin-bottom: 5px ; | |||||
margin-top: 5px ; | |||||
} | |||||
} | |||||
} | |||||
#content { | #content { | ||||
border-right: solid 1px #e0e0e0 ; | |||||
#the-content { | #the-content { | ||||
padding-top: 100px ; | padding-top: 100px ; | ||||
padding-left: 30px ; | padding-left: 30px ; | ||||
padding-right: 30px ; | padding-right: 30px ; | ||||
padding-bottom: 50px ; | padding-bottom: 50px ; | ||||
} | } | ||||
.content-text { | |||||
h1 { | |||||
font-family: 'highvoltageregular' ; | |||||
font-size: 30px ; | |||||
color: black ; | |||||
text-transform: uppercase ; | |||||
} | |||||
h2 { | |||||
font-family: 'highvoltageregular' ; | |||||
font-size: 20px ; | |||||
text-transform: none ; | |||||
padding-bottom: 0px ; | |||||
margin-bottom: 5px ; | |||||
margin-top: 5px ; | |||||
} | |||||
} | |||||
} | } | ||||
#block-demo { | #block-demo { | ||||
a { | a { | ||||
display: block ; | display: block ; | ||||
text-decoration: none ; | text-decoration: none ; | ||||
color: $courant ; | |||||
background-color: transparent ; | background-color: transparent ; | ||||
padding: 30px 20px ; | padding: 30px 20px ; | ||||
margin: 0px ; | margin: 0px ; | ||||
border-right: solid 1px #e0e0e0 ; | border-right: solid 1px #e0e0e0 ; | ||||
font-family: 'capsuularegular' ; | |||||
color: black ; | |||||
font-size: 18px ; | |||||
@include border-radius(0px) ; | @include border-radius(0px) ; | ||||
@include box-shadow(none) ; | @include box-shadow(none) ; | ||||
span { | |||||
font-size: 15px ; | |||||
} | |||||
&:hover { | &:hover { | ||||
color: $color1 ; | color: $color1 ; | ||||
background-color: white ; | background-color: white ; | ||||
} | } | ||||
#bookmarked-producers { | #bookmarked-producers { | ||||
background-color: #323232 ; | |||||
padding: 0px ; | padding: 0px ; | ||||
padding-top: 20px ; | padding-top: 20px ; | ||||
margin: 0px ; | margin: 0px ; | ||||
border-bottom: solid 1px #e0e0e0 ; | |||||
h2 { | h2 { | ||||
font-family: 'highvoltageregular' ; | font-family: 'highvoltageregular' ; | ||||
color: $color2; | |||||
color: $courant ; | |||||
text-align: left ; | text-align: left ; | ||||
font-size: 16px ; | font-size: 16px ; | ||||
margin: 0px ; | margin: 0px ; | ||||
background-size: 300px auto ; | background-size: 300px auto ; | ||||
background-position: center center ; | background-position: center center ; | ||||
background-repeat: no-repeat ; | background-repeat: no-repeat ; | ||||
border: solid 1px $color2 ; | |||||
border: solid 1px #e0e0e0 ; | |||||
background-color: white ; | background-color: white ; | ||||
a { | a { | ||||
@include border-radius(0px) ; | @include border-radius(0px) ; | ||||
&:hover { | &:hover { | ||||
background-color: #fafafa ; | |||||
border-color: $color2 ; | |||||
color: $color1 ; | |||||
background-color: darken($color1, 2); | |||||
} | } | ||||
} | } | ||||
} | } |
use common\widgets\Alert; | use common\widgets\Alert; | ||||
use common\helpers\Url; | use common\helpers\Url; | ||||
use common\models\Producer; | use common\models\Producer; | ||||
use common\models\User; | |||||
\common\assets\CommonAsset::register($this); | \common\assets\CommonAsset::register($this); | ||||
\producer\assets\AppAsset::register($this); | \producer\assets\AppAsset::register($this); | ||||
$producer = $this->context->getProducer() ; | $producer = $this->context->getProducer() ; | ||||
if(!Yii::$app->user->isGuest) { | |||||
$userProducer = UserProducer::findOne(['id_user' => User::getCurrentId(), 'id_producer' => $producer->id ]) ; | |||||
} | |||||
?> | ?> | ||||
<?php $this->beginPage() ?> | <?php $this->beginPage() ?> | ||||
<!DOCTYPE html> | <!DOCTYPE html> | ||||
<head> | <head> | ||||
<title><?= Html::encode($producer->name); ?> • <?= $this->getPageTitle(); ?></title> | |||||
<title><?= Html::encode($producer->name); ?> | <?= $this->getPageTitle(); ?></title> | |||||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
<meta name="base-url" content="<?= Yii::$app->urlManager->baseUrl ; ?>"> | <meta name="base-url" content="<?= Yii::$app->urlManager->baseUrl ; ?>"> | ||||
<meta name="slug-producer" content="<?= $producer->slug ; ?>"> | <meta name="slug-producer" content="<?= $producer->slug ; ?>"> | ||||
<?= Html::csrfMetaTags() ?> | <?= Html::csrfMetaTags() ?> | ||||
<link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/favicon4.png" /> | |||||
<link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/favicon-distrib.png" /> | |||||
<?php $this->head() ?> | <?php $this->head() ?> | ||||
</head> | </head> | ||||
<body class="<?= Yii::$app->controller->id.'-'.Yii::$app->controller->action->id ?>"> | <body class="<?= Yii::$app->controller->id.'-'.Yii::$app->controller->action->id ?>"> | ||||
<?php $this->beginBody() ?> | <?php $this->beginBody() ?> | ||||
<div id="header-bap"> | <div id="header-bap"> | ||||
<div class="container"> | |||||
<a id="logo" href="<?= Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']); ?>"> | |||||
<img class="icon" src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/laboulange3.png" alt="" /> | |||||
<span class="text">La boîte à pain</span> | |||||
</a> | |||||
<?php | |||||
echo Nav::widget([ | |||||
'encodeLabels' => false, | |||||
'items' => [ | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-user"></span> Inscription', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/signup']), | |||||
'visible' => Yii::$app->user->isGuest | |||||
], | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-log-in"></span> Connexion', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/login','return_url' => Yii::$app->urlManager->createAbsoluteUrl(['site/index'])]), | |||||
'visible' => Yii::$app->user->isGuest | |||||
<a id="logo" href="<?= Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']); ?>"> | |||||
<img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-distrib.png" alt="" /> | |||||
</a> | |||||
<?php | |||||
echo Nav::widget([ | |||||
'encodeLabels' => false, | |||||
'items' => [ | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-menu-hamburger"></span>', | |||||
'options' => ['id' => 'label1'], | |||||
'url' => '#', | |||||
'items' => [ | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-user"></span> Inscription', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/signup']), | |||||
'visible' => Yii::$app->user->isGuest | |||||
], | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-log-in"></span> Connexion', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/login','return_url' => Yii::$app->urlManager->createAbsoluteUrl(['site/index'])]), | |||||
'visible' => Yii::$app->user->isGuest | |||||
], | |||||
], | ], | ||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-user"></span> '.((!Yii::$app->user->isGuest) ? Html::encode(Yii::$app->user->identity->name .' '.strtoupper(substr(Yii::$app->user->identity->lastname, 0, 1))) : '').'. ', | |||||
'options' => ['id' => 'label1'], | |||||
'url' => '#', | |||||
'items' => [ | |||||
[ | |||||
'label' => 'Profil', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['user/update']), | |||||
], | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-off"></span> Déconnexion', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/logout']), | |||||
] | |||||
'visible' => Yii::$app->user->isGuest | |||||
], | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-menu-hamburger"></span>', | |||||
'options' => ['id' => 'label1'], | |||||
'url' => '#', | |||||
'items' => [ | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-user"></span> Profil', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['user/update']), | |||||
], | ], | ||||
'visible' => !Yii::$app->user->isGuest | |||||
[ | |||||
'label' => '<span class="glyphicon glyphicon-off"></span> Déconnexion<br /><small>'.(!Yii::$app->user->isGuest ? Html::encode(Yii::$app->user->identity->name .' '.strtoupper(substr(Yii::$app->user->identity->lastname, 0, 1))) : '').'.</small>', | |||||
'url' => Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/logout']), | |||||
] | |||||
], | ], | ||||
'visible' => !Yii::$app->user->isGuest | |||||
], | ], | ||||
'options' => ['id' =>'nav-bap'], | |||||
]); | |||||
?> | |||||
</div> | |||||
], | |||||
'options' => ['id' =>'nav-bap'], | |||||
]); | |||||
?> | |||||
</div> | </div> | ||||
<header id="header"> | <header id="header"> | ||||
<div class="container"> | |||||
<h1><?= Html::encode($producer->name); ?> <span>/ <?= Html::encode($producer->type) ?> à <?= Html::encode($producer->city); ?> (<?= Html::encode($producer->postcode); ?>)</span></h1> | |||||
<?php if(!Yii::$app->user->isGuest): ?> | |||||
<?php | |||||
$userProducer = UserProducer::findOne(['id_user' => User::getCurrentId(), 'id_producer' => $producer->id ]) ; | |||||
if($userProducer): | |||||
?> | |||||
<div id="credit"> | |||||
<span class="info"><a href="<?= Yii::$app->urlManagerFrontend->createAbsoluteUrl('site/credit'); ?>"><span class="text">Crédit </span><span class="glyphicon glyphicon-info-sign"></span></a></span> | |||||
<a href="<?= Yii::$app->urlManagerProducer->createUrl(['credit/history']); ?>"><span id="the-credit"><?= number_format($userProducer->credit, 2); ?> €</span></a> | |||||
</div> | |||||
<div class="container"> | |||||
<h1><?= Html::encode($producer->name); ?></h1> | |||||
<h2><?= Html::encode($producer->type) ?> à <?= Html::encode($producer->city); ?> (<?= Html::encode($producer->postcode); ?>)</h2> | |||||
<div id="infos"> | |||||
<span data-toggle="tooltip" data-placement="bottom" title="Heure limite de commande"> | |||||
<span class="glyphicon glyphicon-time"></span> Commande avant | |||||
<strong><?php echo Html::encode($producer->order_deadline) ?> h</strong></span>, | |||||
<span data-toggle="tooltip" data-placement="bottom" title="Exemple : commande le lundi pour le <?php if($producer->order_delay == 1): ?>mardi<?php elseif($producer->order_delay == 2): ?>mercredi<?php elseif($producer->order_delay == 3): ?>jeudi<?php elseif($producer->order_delay == 4): ?>vendredi<?php elseif($producer->order_delay == 5): ?>samedi<?php elseif($producer->order_delay == 6): ?>dimanche<?php elseif($producer->order_delay == 7): ?>lundi d'après<?php endif; ?>"><strong><?= Html::encode($producer->order_delay) ?> jour<?php if($producer->order_delay > 1): ?>s<?php endif; ?></strong> à l'avance</span> | |||||
<?php if(!Yii::$app->user->isGuest): ?> | |||||
<span class="favorite"> | |||||
<?php if($userProducer && $userProducer->bookmark): ?> | |||||
<span class="glyphicon glyphicon-star"></span> <a href="<?= Yii::$app->urlManagerProducer->createUrl(['site/bookmarks','action' => 'delete']); ?>" data-toggle="tooltip" data-placement="bottom" title="Supprimer de mes favoris">Favoris</a> | |||||
<?php else: ?> | |||||
<span class="glyphicon glyphicon glyphicon-star-empty"></span> <a href="<?= Yii::$app->urlManagerProducer->createUrl(['site/bookmarks','action' => 'add']); ?>" data-toggle="tooltip" data-placement="bottom" title="Ajouter à mes favoris">Favoris</a> | |||||
<?php endif; ?> | <?php endif; ?> | ||||
</span> | |||||
<?php endif; ?> | <?php endif; ?> | ||||
<div id="infos"> | |||||
<span data-toggle="tooltip" data-placement="bottom" title="Heure limite de commande"> | |||||
<span class="glyphicon glyphicon-time"></span> Commande avant | |||||
<strong><?php echo Html::encode($producer->order_deadline) ?> h</strong></span>, | |||||
<span data-toggle="tooltip" data-placement="bottom" title="Exemple : commande le lundi pour le <?php if($producer->order_delay == 1): ?>mardi<?php elseif($producer->order_delay == 2): ?>mercredi<?php elseif($producer->order_delay == 3): ?>jeudi<?php elseif($producer->order_delay == 4): ?>vendredi<?php elseif($producer->order_delay == 5): ?>samedi<?php elseif($producer->order_delay == 6): ?>dimanche<?php elseif($producer->order_delay == 7): ?>lundi d'après<?php endif; ?>"><strong><?= Html::encode($producer->order_delay) ?> jour<?php if($producer->order_delay > 1): ?>s<?php endif; ?></strong> à l'avance</span> | |||||
<?php if(!Yii::$app->user->isGuest): ?> | |||||
<span class="favorite"> | |||||
<?php if($userProducer && $userProducer->bookmark): ?> | |||||
<span class="glyphicon glyphicon-star"></span> <a href="<?= Yii::$app->urlManagerProducer->createUrl(['site/bookmarks','action' => 'delete']); ?>" data-toggle="tooltip" data-placement="bottom" title="Supprimer de mes favoris">Favoris</a> | |||||
<?php else: ?> | |||||
<span class="glyphicon glyphicon glyphicon-star-empty"></span> <a href="<?= Yii::$app->urlManagerProducer->createUrl(['site/bookmarks','action' => 'add']); ?>" data-toggle="tooltip" data-placement="bottom" title="Ajouter à mes favoris">Favoris</a> | |||||
<?php endif; ?> | |||||
</span> | |||||
<?php endif; ?> | |||||
<div class="clr"></div> | |||||
</div> | |||||
<div class="clr"></div> | |||||
</div> | </div> | ||||
</div> | |||||
</header> | </header> | ||||
<div id="main"> | <div id="main"> | ||||
<div class="container"> | <div class="container"> | ||||
<nav id="main-nav"> | <nav id="main-nav"> | ||||
<?php | <?php | ||||
$credit = '' ; | |||||
if(isset($userProducer) && $userProducer) { | |||||
$labelType = $userProducer->credit > 0 ? 'success' : 'danger' ; | |||||
$credit = ' <span class="label label-'.$labelType.'">'.number_format($userProducer->credit, 2).' €</span>' ; | |||||
} | |||||
$countSubcriptions = Subscription::searchCount(['subscription.id_user' => User::getCurrentId()]) ; | |||||
$labelSubscription = $countSubcriptions > 0 ? 'success' : 'default' ; | |||||
$countOrders = Order::find() | |||||
->joinWith(['distribution']) | |||||
->where([ | |||||
'id_user' => User::getCurrentId(), | |||||
'distribution.id_producer' => Producer::getId() | |||||
]) | |||||
->params([':date_today' => date('Y-m-d')]) | |||||
->andWhere('distribution.date >= :date_today') | |||||
->count(); | |||||
$labelOrders = $countOrders > 0 ? 'success' : 'default' ; | |||||
echo Nav::widget([ | echo Nav::widget([ | ||||
'encodeLabels' => false, | 'encodeLabels' => false, | ||||
'options' => ['class' =>'nav nav-pills'], | 'options' => ['class' =>'nav nav-pills'], | ||||
'active' => $this->getControllerAction() == 'order/order', | 'active' => $this->getControllerAction() == 'order/order', | ||||
], | ], | ||||
[ | [ | ||||
'label' => '<span class="glyphicon glyphicon-folder-open"></span> Mes commandes', | |||||
'label' => '<span class="glyphicon glyphicon-folder-open"></span> Mes commandes <span class="label label-'.$labelOrders.'">'.$countOrders.'</span>', | |||||
'url' => Yii::$app->urlManager->createUrl(['order/history']), | 'url' => Yii::$app->urlManager->createUrl(['order/history']), | ||||
'visible' => !Yii::$app->user->isGuest, | 'visible' => !Yii::$app->user->isGuest, | ||||
'active' => $this->getControllerAction() == 'order/history', | 'active' => $this->getControllerAction() == 'order/history', | ||||
], | ], | ||||
[ | [ | ||||
'label' => '<span class="glyphicon glyphicon-repeat"></span> Abonnement', | |||||
'label' => '<span class="glyphicon glyphicon-repeat"></span> Abonnements <span class="label label-'.$labelSubscription.'">'.$countSubcriptions.'</span>', | |||||
'url' => Yii::$app->urlManager->createUrl(['subscription/index']), | 'url' => Yii::$app->urlManager->createUrl(['subscription/index']), | ||||
'visible' => !Yii::$app->user->isGuest && $producer->user_manage_subscription, | 'visible' => !Yii::$app->user->isGuest && $producer->user_manage_subscription, | ||||
'active' => $this->getControllerAction() == 'subscription/index', | 'active' => $this->getControllerAction() == 'subscription/index', | ||||
], | ], | ||||
[ | [ | ||||
'label' => '<span class="glyphicon glyphicon-euro"></span> Crédit', | |||||
'label' => '<span class="glyphicon glyphicon-euro"></span> Crédit'.$credit, | |||||
'url' => Yii::$app->urlManager->createUrl(['credit/history']), | 'url' => Yii::$app->urlManager->createUrl(['credit/history']), | ||||
'visible' => !Yii::$app->user->isGuest && $producer->credit, | 'visible' => !Yii::$app->user->isGuest && $producer->credit, | ||||
'active' => $this->getControllerAction() == 'credit/history', | 'active' => $this->getControllerAction() == 'credit/history', | ||||
if(count($this->buttons)): ?> | if(count($this->buttons)): ?> | ||||
<span id="buttons"> | <span id="buttons"> | ||||
<?php foreach($this->buttons as $button) { | <?php foreach($this->buttons as $button) { | ||||
echo '<a href="'.Yii::$app->urlManagerProducer->createUrl($button['url']).'" class="'.$button['class'].'">'.$button['label'].'</a>' ; | |||||
} | |||||
echo '<a href="'.Yii::$app->urlManagerProducer->createUrl($button['url']).'" class="'.$button['class'].'">'.$button['label'].'</a>' ; | |||||
} | |||||
?> | ?> | ||||
</span> | </span> | ||||
<?php endif; ?> | <?php endif; ?> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="overflow"></div> | <div class="overflow"></div> | ||||
<div class="content"> | <div class="content"> | ||||
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']) ; ?>">La boîte à pain</a> | |||||
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/index']) ; ?>">distrib</a> | |||||
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/mentions']) ; ?>">Mentions légales</a> | <a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/mentions']) ; ?>">Mentions légales</a> | ||||
<a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/cgv']) ; ?>">CGS</a> | <a href="<?php echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/cgv']) ; ?>">CGS</a> | ||||
<a id="code-source" href="https://framagit.org/guillaume-bourgeois/laboiteapain">Code source <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-framagit.png" alt="Hébergé par Framasoft" /> <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-gitlab.png" alt="Propulsé par Gitlab" /></a> | <a id="code-source" href="https://framagit.org/guillaume-bourgeois/laboiteapain">Code source <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-framagit.png" alt="Hébergé par Framasoft" /> <img src="<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/img/logo-gitlab.png" alt="Propulsé par Gitlab" /></a> |
$colSize = 'col-md-12' ; | $colSize = 'col-md-12' ; | ||||
?> | ?> | ||||
<section id="order"> | |||||
<a class="btn btn-primary btn-lg" href="<?php if(Yii::$app->user->isGuest): echo Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/producer','id' => $this->context->getProducer()->id,'return_url' => Yii::$app->urlManagerProducer->createAbsoluteUrl(['order/order','slug_producer' => $this->context->getProducer()->slug])]); else: echo Yii::$app->urlManager->createUrl(['order/order']); endif; ?>"><span class="glyphicon glyphicon-plus"></span> Passer une commande</a> | |||||
</section> | |||||
<section id="presentation"> | <section id="presentation"> | ||||
<?php if(strlen($producer->photo)): ?> | <?php if(strlen($producer->photo)): ?> | ||||
<div class="photo <?= $colSize ?>"> | <div class="photo <?= $colSize ?>"> |
availableDates: [], | availableDates: [], | ||||
themeStyles: { | themeStyles: { | ||||
wrapper: { | wrapper: { | ||||
background: '#BB8757', | |||||
color: '#fafafa', | |||||
background: '#F7F7F7', | |||||
color: '#333', | |||||
border: 'solid 1px #e0e0e0' | |||||
}, | }, | ||||
header: { | header: { | ||||
padding: '10px 10px', | padding: '10px 10px', | ||||
width: '80%', | width: '80%', | ||||
}, | }, | ||||
weekdays: { | weekdays: { | ||||
color: 'white', | |||||
color: 'gray', | |||||
fontWeight: '600', | fontWeight: '600', | ||||
padding: '10px 10px', | padding: '10px 10px', | ||||
fontSize: '2rem' | fontSize: '2rem' | ||||
for(var i= 0; i < distributions.length; i++) { | for(var i= 0; i < distributions.length; i++) { | ||||
this.calendar.attrs.push({ | this.calendar.attrs.push({ | ||||
highlight: { | highlight: { | ||||
backgroundColor: '#00A65A' | |||||
backgroundColor: '#5cb85c', | |||||
}, | |||||
contentStyle: { | |||||
color: 'white', | |||||
}, | }, | ||||
dates: distributions[i].date, | dates: distributions[i].date, | ||||
}) ; | }) ; | ||||
for(var i= 0; i < orders.length; i++) { | for(var i= 0; i < orders.length; i++) { | ||||
this.calendar.attrs.push({ | this.calendar.attrs.push({ | ||||
highlight: { | highlight: { | ||||
backgroundColor: '#018548', | |||||
backgroundColor: '#FF7F00' | |||||
}, | |||||
contentStyle: { | |||||
color: 'white' | |||||
}, | }, | ||||
popover: { | popover: { | ||||
label: orders[i].pointSale.name + ' / '+this.formatPrice(orders[i].amount_total), | label: orders[i].pointSale.name + ' / '+this.formatPrice(orders[i].amount_total), |
termes. | termes. | ||||
*/ | */ | ||||
$color1: #BB8757 ; | |||||
$color2: #F8F1DD ; | |||||
$color1: #FF7F00 ; | |||||
$color2: white ; | |||||
$courant: #323232 ; | |||||
$color-back: #F7F7F7 ; | |||||
body { | body { | ||||
font-family: 'Arial' ; | font-family: 'Arial' ; | ||||
background-color: $color1 ; | |||||
background-color: white ; | |||||
color: #333 ; | color: #333 ; | ||||
line-height: 20px ; | line-height: 20px ; | ||||
font-size: 14px ; | font-size: 14px ; | ||||
} | } | ||||
#header-bap { | #header-bap { | ||||
background-color: $color2 ; | |||||
position: absolute ; | |||||
right: 0px ; | |||||
top: 0px ; | |||||
width: 200px ; | |||||
background-color: white ; | |||||
padding-top: 7px ; | padding-top: 7px ; | ||||
padding-bottom: 7px ; | padding-bottom: 7px ; | ||||
text-align: center ; | |||||
z-index: 1000 ; | |||||
.container { | .container { | ||||
padding-left: 0px ; | padding-left: 0px ; | ||||
padding-right: 0px ; | padding-right: 0px ; | ||||
} | } | ||||
#logo { | |||||
a#logo { | |||||
color: black ; | color: black ; | ||||
text-decoration: none ; | text-decoration: none ; | ||||
position: relative ; | position: relative ; | ||||
top: 3px ; | top: 3px ; | ||||
img { | img { | ||||
width: 25px ; | |||||
} | |||||
.text { | |||||
font-size: 17px ; | |||||
font-family: 'comfortaalight' ; | |||||
position: relative ; | |||||
bottom: 6px ; | |||||
left: 3px ; | |||||
width: 45px ; | |||||
} | } | ||||
} | } | ||||
ul#nav-bap { | ul#nav-bap { | ||||
float: right ; | float: right ; | ||||
li { | li { | ||||
float: right ; | |||||
a { | a { | ||||
color: black ; | color: black ; | ||||
font-size: 15px ; | font-size: 15px ; | ||||
ul { | ul { | ||||
background-color: $color2 ; | background-color: $color2 ; | ||||
border-top: solid 2px $color1 ; | border-top: solid 2px $color1 ; | ||||
left: -141px ; | |||||
top: 50px ; | |||||
width: 200px ; | |||||
li { | li { | ||||
a { | a { | ||||
text-transform: uppercase ; | text-transform: uppercase ; | ||||
font-size: 13px ; | font-size: 13px ; | ||||
&:hover { | |||||
color: lighten($color1, 10) ; | |||||
} | |||||
small { | |||||
font-size: 10px ; | |||||
line-height: 13px ; | |||||
margin-left: 18px ; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
#header { | #header { | ||||
background-color: $color1 ; | |||||
background-color: $color-back ; | |||||
text-align: center ; | text-align: center ; | ||||
padding-top: 25px ; | padding-top: 25px ; | ||||
padding-bottom: 50px ; | |||||
border-bottom: solid 1px #e0e0e0 ; | |||||
padding-bottom: 10px ; | |||||
.container { | .container { | ||||
position: relative ; | position: relative ; | ||||
} | } | ||||
h1, h2 { | h1, h2 { | ||||
color: white ; | |||||
color: $courant ; | |||||
} | } | ||||
h1 { | h1 { | ||||
text-transform: uppercase ; | text-transform: uppercase ; | ||||
font-family: 'myriadpro-regular' ; | |||||
font-family: 'highvoltageregular' ; | |||||
font-size: 35px ; | font-size: 35px ; | ||||
line-height: 35px ; | line-height: 35px ; | ||||
font-weight: bold ; | font-weight: bold ; | ||||
padding-bottom: 5px ; | padding-bottom: 5px ; | ||||
text-align: left ; | |||||
span { | |||||
font-family: 'myriadpro-light' ; | |||||
font-size: 27px ; | |||||
font-weight: normal ; | |||||
} | |||||
text-align: center ; | |||||
font-weight: normal ; | |||||
} | |||||
h2 { | |||||
font-family: 'capsuularegular' ; | |||||
font-size: 27px ; | |||||
font-weight: normal ; | |||||
text-align: center ; | |||||
} | } | ||||
#infos { | #infos { | ||||
text-align: left ; | |||||
text-align: center ; | |||||
padding-bottom: 10px ; | padding-bottom: 10px ; | ||||
padding-top: 8px; | padding-top: 8px; | ||||
margin-bottom: 0px ; | margin-bottom: 0px ; | ||||
color: $color2 ; | |||||
color: $courant ; | |||||
font-size: 14px ; | font-size: 14px ; | ||||
color: gray ; | |||||
.favorite { | .favorite { | ||||
border-left: solid 1px $color2 ; | border-left: solid 1px $color2 ; | ||||
} | } | ||||
a { | a { | ||||
color: white ; | |||||
color: gray ; | |||||
text-decoration: underline ; | text-decoration: underline ; | ||||
} | } | ||||
font-weight: bold ; | font-weight: bold ; | ||||
} | } | ||||
} | } | ||||
#credit { | |||||
position: relative ; | |||||
top: 10px ; | |||||
float: right ; | |||||
color: white ; | |||||
font-family: 'myriadpro-semibold' ; | |||||
font-size: 16px ; | |||||
.info { | |||||
padding-bottom: 5px ; | |||||
border-bottom: solid 1px $color1 ; | |||||
text-align: right ; | |||||
a { | |||||
color: white ; | |||||
} | |||||
} | |||||
span.text { | |||||
font-family: 'myriadpro-regular' ; | |||||
} | |||||
span.glyphicon { | |||||
font-size: 16px ; | |||||
} | |||||
#the-credit { | |||||
margin-top: 7px ; | |||||
padding: 6px 15px ; | |||||
padding-bottom: 4px ; | |||||
background-color: $color2 ; | |||||
color: $color1 ; | |||||
@include border-radius(7px) ; | |||||
} | |||||
} | |||||
} | } | ||||
#main { | #main { | ||||
background-color: $color2 ; | |||||
background-color: $color-back ; | |||||
#main-nav { | |||||
nav#main-nav { | |||||
width: 100% ; | width: 100% ; | ||||
position: relative ; | |||||
top: -40px ; | |||||
background-color: white ; | background-color: white ; | ||||
border-top: solid 1px #e0e0e0 ; | |||||
border-bottom: solid 1px #e0e0e0 ; | border-bottom: solid 1px #e0e0e0 ; | ||||
margin-bottom: 30px ; | |||||
ul { | ul { | ||||
li { | li { | ||||
a { | a { | ||||
color: $color1 ; | |||||
text-transform: uppercase ; | |||||
font-family: 'myriadpro-regular' ; | |||||
color: $courant ; | |||||
color: black; | |||||
border-right: solid 1px #e0e0e0 ; | border-right: solid 1px #e0e0e0 ; | ||||
font-family: 'capsuularegular' ; | |||||
text-transform: uppercase ; | |||||
span.label { | |||||
padding-bottom: 3px ; | |||||
font-family: 'Arial' ; | |||||
} | |||||
} | |||||
&.active, a:hover { | |||||
span.label { | |||||
background-color: darken($color1, 5) ; | |||||
color: white ; | |||||
} | |||||
} | } | ||||
a:hover, | a:hover, | ||||
&.active a { | &.active a { | ||||
background: none ; | |||||
border-bottom: solid 1px $color1 ; | |||||
background: $color1 ; | |||||
color: white ; | |||||
@include border-radius(0px) ; | @include border-radius(0px) ; | ||||
} | } | ||||
&#btn-administration { | &#btn-administration { | ||||
background-color: $color2 ; | |||||
float: right ; | float: right ; | ||||
border-left: solid 1px #e0e0e0 ; | |||||
a { | |||||
color: $color1 ; | |||||
&:hover { | |||||
color: white ; | |||||
} | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
padding-bottom: 15px ; | padding-bottom: 15px ; | ||||
border-bottom: solid 1px #e0e0e0 ; | border-bottom: solid 1px #e0e0e0 ; | ||||
margin-bottom: 10px ; | margin-bottom: 10px ; | ||||
font-family: 'myriadpro-light' ; | |||||
font-family: 'highvoltageregular' ; | |||||
font-size: 30px ; | font-size: 30px ; | ||||
line-height: 40px; | |||||
position: relative ; | position: relative ; | ||||
top: -10px ; | top: -10px ; | ||||
text-align: center ; | |||||
text-align: left ; | |||||
#buttons { | #buttons { | ||||
//float: right ; | //float: right ; | ||||
padding: 0px 20px 20px 20px ; | padding: 0px 20px 20px 20px ; | ||||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||||
font-family: 'myriadpro-regular' ; | |||||
font-family: 'highvoltageregular' ; | |||||
margin-top: 30px ; | margin-top: 30px ; | ||||
margin-bottom: 20px ; | margin-bottom: 20px ; | ||||
} | } | ||||
h3 { | h3 { | ||||
font-family: 'myriadpro-light' ; | |||||
font-family: 'highvoltageregular' ; | |||||
text-transform: uppercase ; | text-transform: uppercase ; | ||||
font-size: 23px ; | font-size: 23px ; | ||||
text-align: left ; | text-align: left ; | ||||
margin-top: 45px ; | margin-top: 45px ; | ||||
span { | span { | ||||
background-color: $color1 ; | |||||
padding: 10px 20px ; | |||||
padding-top: 14px ; | padding-top: 14px ; | ||||
background-color: $color2 ; | |||||
color: $color1 ; | |||||
border: dotted 1px $color1 ; | |||||
color: $courant ; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
#footer { | #footer { | ||||
background-color: $color1 ; | |||||
background-color: $color-back ; | |||||
height: 100px ; | height: 100px ; | ||||
.container { | .container { | ||||
color: white ; | color: white ; | ||||
a { | a { | ||||
color: white ; | |||||
color: $courant ; | |||||
text-decoration: underline ; | text-decoration: underline ; | ||||
margin-right: 10px ; | margin-right: 10px ; | ||||
} | } |
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||||
#header-bap { | #header-bap { | ||||
display: block ; | |||||
position: relative ; | |||||
top: 0px ; | |||||
left: 0px ; | |||||
text-align: center ; | |||||
width: 100% ; | |||||
#logo { | #logo { | ||||
margin-left: 10px ; | margin-left: 10px ; | ||||
} | } | ||||
&.active a { | &.active a { | ||||
border-bottom: solid 1px $color2 ; | border-bottom: solid 1px $color2 ; | ||||
background-color: $color2 ; | |||||
background-color: $color1 ; | |||||
color: white ; | |||||
&:hover { | |||||
background-color: $color1 ; | |||||
color: white ; | |||||
} | |||||
} | } | ||||
a { | a { | ||||
display: block ; | display: block ; | ||||
border-bottom: solid 1px $color2 ; | |||||
border-bottom: solid 1px #e0e0e0 ; | |||||
&:hover { | &:hover { | ||||
border-bottom: solid 1px $color2 ; | |||||
background-color: $color2 ; | |||||
background-color: white ; | |||||
color: $color1 ; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
li#btn-administration { | li#btn-administration { | ||||
float: none ; | float: none ; | ||||
a:hover { | |||||
background-color: white ; | |||||
color: $color1 ; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } | ||||
h2#page-title { | |||||
text-align: center ; | |||||
} | |||||
#products { | #products { | ||||
td { | td { |
} | } | ||||
.slide-leave-active { | .slide-leave-active { | ||||
//transition: all .2s cubic-bezier(1.0, 0.5, 0.8, 1.0); | |||||
transition: all 0s ease; | transition: all 0s ease; | ||||
} | } | ||||
.slide-enter, .slide-leave-to { | .slide-enter, .slide-leave-to { | ||||
} | } | ||||
#order-date-color { | #order-date-color { | ||||
background-color: #018548 ; | |||||
background-color: #FF7F00 ; | |||||
} | } | ||||
#distribution-date-color { | #distribution-date-color { | ||||
background-color: #00A65A ; | |||||
background-color: #5cb85c ; | |||||
} | } | ||||
} | } | ||||
.c-day:hover { | .c-day:hover { | ||||
.c-day-background { | .c-day-background { | ||||
background-color: #F39C12 !important ; | |||||
background-color: #FF7F00 !important ; | |||||
color: white !important ; | |||||
} | } | ||||
} | } | ||||
td.name { | td.name { | ||||
.the-name { | .the-name { | ||||
text-transform: uppercase ; | text-transform: uppercase ; | ||||
font-family: 'myriadpro-regular' ; | |||||
font-family: 'capsuularegular' ; | |||||
color: black ; | color: black ; | ||||
font-size: 16px ; | |||||
font-size: 20px ; | |||||
line-height: 25px ; | |||||
} | } | ||||
} | } | ||||
td.name { | td.name { | ||||
.name { | .name { | ||||
text-transform: uppercase ; | text-transform: uppercase ; | ||||
font-family: 'myriadpro-regular' ; | |||||
font-family: 'capsuularegular' ; | |||||
color: black ; | color: black ; | ||||
font-size: 16px ; | |||||
font-size: 20px ; | |||||
line-height: 25px ; | |||||
} | } | ||||
.other { | .other { | ||||
font-size: 14px ; | font-size: 14px ; | ||||
margin-left: 151px ; | margin-left: 151px ; | ||||
h3 { | h3 { | ||||
font-family: 'myriadpro-light' ; | |||||
text-transform: uppercase ; | |||||
font-family: 'capsuularegular' ; | |||||
font-size: 30px ; | font-size: 30px ; | ||||
color: #333 ; | color: #333 ; | ||||
margin-bottom: 20px ; | margin-bottom: 20px ; | ||||
text-align: left ; | text-align: left ; | ||||
padding-left: 0px ; | padding-left: 0px ; | ||||
line-height: 35px ; | line-height: 35px ; | ||||
text-transform: none ; | |||||
} | } | ||||
.locality { | .locality { |