1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
KyFlo/Assets/css/css.css

771 lines
12 KiB
CSS
Raw Normal View History

2019-12-15 13:04:13 +01:00
/*BODY + GENERAL*/
2019-12-15 13:04:13 +01:00
html{
scroll-behavior: smooth;
}
body {
2019-11-23 13:44:49 +01:00
margin: 0;
2019-12-15 13:04:13 +01:00
padding: 0;
font-family: 'Roboto', sans-serif;
2019-12-15 13:32:25 +01:00
z-index: 2;
2019-12-16 13:34:50 +01:00
background: linear-gradient(to left, rgb(10, 1, 92), rgb(0, 82, 50));
}
2019-12-16 13:34:50 +01:00
2019-12-15 13:04:13 +01:00
img {
width: 30%;
float: left;
}
2019-12-15 13:04:13 +01:00
.content {
background-color: #ddd;
padding: 2vw;
2019-12-16 22:04:27 +01:00
opacity: 1;
2019-12-16 13:34:50 +01:00
animation: 1s slider;
}
@keyframes content{
0%{height: 0%}
100%{height: 100%}
}
2019-12-15 13:04:13 +01:00
h1 {
font-size: 2vw;
color: white;
}
/*=====================================*/
2019-11-23 13:44:49 +01:00
/*NAVBAR*/
a#kyflo {
font-size: 3vw;
2019-12-15 13:04:13 +01:00
color: rgb(0, 0, 0);
padding: 0.5vw 1vw;
transform: none;
border: none;
2019-11-23 13:44:49 +01:00
}
2019-12-15 13:04:13 +01:00
a.raccourci {
border-right: 0.15vw solid rgb(0, 0, 0);
border-left: 0.15vw solid rgb(0, 0, 0);
2019-11-23 13:44:49 +01:00
}
2019-12-15 19:59:26 +01:00
#borL{
border-left: none;
}
2019-12-15 13:04:13 +01:00
#panier {
float: right;
width: 9%;
padding: 1.2vw 1vw;
2019-12-15 13:04:13 +01:00
border-left: 0.15vw solid rgb(0, 0, 0);
margin-right: -6%;
}
a#panier>h3{
margin-top :0.5vw;
margin-bottom: 0;
2019-12-15 13:04:13 +01:00
color: black;
2019-12-04 09:54:26 +01:00
}
2019-12-15 13:04:13 +01:00
#go {
float: right;
display: block;
2019-12-15 13:04:13 +01:00
color: rgb(0, 0, 0);
text-align: center;
margin-top: 1.2vw;
margin-right: 2vw;
padding: 0.5vw;
2019-12-15 13:04:13 +01:00
border: 0.1vw solid rgb(0, 0, 0);
text-decoration: none;
font-size: 1vw;
font-weight: bold;
transform: none;
border-left: none;
2019-12-15 13:04:13 +01:00
border-top: none;
background-color: rgb(255, 255, 255);
}
2019-12-15 13:04:13 +01:00
#go:hover {
color: rgb(255, 255, 255);
background-color: rgb(0, 0, 0);
transition-duration: 0.2s;
}
2019-12-15 19:59:26 +01:00
nav {
overflow: hidden;
2019-12-15 13:04:13 +01:00
background-color: rgb(255, 255, 255);
2019-12-15 13:32:25 +01:00
position: fixed;
z-index: 1;
2019-12-15 19:59:26 +01:00
width: 100%;
2019-12-15 20:39:14 +01:00
animation: 1s down;
}
@keyframes down {
0%{margin-top: -10%}
100%{margin-top: 0%}
2019-11-20 11:09:01 +01:00
}
2019-12-15 19:59:26 +01:00
nav a {
2019-11-23 13:44:49 +01:00
float: left;
display: block;
2019-12-15 13:04:13 +01:00
color: rgb(0, 0, 0);
text-align: center;
padding: 1.8vw 1.4vw;
text-decoration: none;
font-size: 1vw;
2019-12-15 13:04:13 +01:00
border-right: 0.15vw solid white;
font-weight: bold;
transform: skew(-0.2rad);
2019-11-23 13:44:49 +01:00
}
2019-12-15 19:59:26 +01:00
nav a:hover {
2019-12-15 13:04:13 +01:00
background-color: rgb(206, 206, 206);
color: black;
2019-11-23 13:44:49 +01:00
}
2019-12-15 19:59:26 +01:00
nav .raccourci:hover,
2019-12-15 13:04:13 +01:00
.raccourci:hover {
padding: 1.8vw 2.5vw;
}
2019-12-15 19:59:26 +01:00
nav a#kyflo:hover {
2019-12-15 13:04:13 +01:00
background-color :transparent;
}
2019-12-15 19:59:26 +01:00
nav a#panier:hover {
2019-12-15 13:04:13 +01:00
background-color: rgb(206, 206, 206);
margin-right: -2%;
}
2019-12-15 19:59:26 +01:00
nav input[type=text] {
2019-11-23 13:44:49 +01:00
float: right;
padding: 0.5vw;
2019-12-15 13:04:13 +01:00
color: black;
width: 40%;
2019-12-15 13:04:13 +01:00
border: none;
border-bottom: 0.1vw solid rgb(0, 0, 0);
font-size: 1vw;
margin-top: 1.2vw;
2019-12-15 13:04:13 +01:00
background-color: rgb(255, 255, 255);
2019-11-23 13:44:49 +01:00
}
2019-12-15 13:04:13 +01:00
/*================================================*/
2019-11-23 13:44:49 +01:00
2019-12-15 13:04:13 +01:00
/*TOP*/
div#bienvenue{
2019-12-15 13:32:25 +01:00
padding: 4vw;
2019-12-15 20:39:14 +01:00
animation: 1s right;
animation-fill-mode: forwards;
2019-12-15 13:04:13 +01:00
}
body>#bienvenue>h1 {
font-size: 3vw;
color: white;
text-align: center;
}
2019-12-15 20:39:14 +01:00
@keyframes right{
0% {margin-left: -150%}
100% {margin-left: 0%}
}
2019-12-15 13:04:13 +01:00
body>#bienvenue>h2 {
font-size: 2vw;
color: lightgrey;
text-align: center;
}
2019-12-15 20:39:14 +01:00
2019-12-15 13:04:13 +01:00
/*=================*/
/*Slide des promotions*/
div#slider {
width: 100%;
max-width: 1920px;
margin: auto;
2019-12-16 13:34:50 +01:00
animation: 1s slider;
}
@keyframes slider{
0%{margin-top: 150%}
100%{margin-top: 0%}
2019-12-15 13:04:13 +01:00
}
2019-12-15 13:04:13 +01:00
div#slider figure {
position: relative;
width: 500%;
margin: 0;
padding: 0;
font-size: 0;
text-align: left;
}
div#slider figure img {
width: 20%;
height: auto;
float: left;
}
div#slider {
width: 100%;
max-width: 1920px;
overflow: hidden
}
@keyframes slidy {
0% {left: 0%;}
20% {left: 0%;}
25% {left: -100%;}
45% {left: -100%;}
50% {left: -200%;}
70% {left: -200%;}
75% {left: -300%;}
95% {left: -300%;}
100% {left: -400%;}
}
div#slider figure {
position: relative;
width: 500%;
margin: 0;
padding: 0;
font-size: 0;
left: 0;
text-align: left;
animation: 16s slidy infinite;
}
/*======================================*/
2019-12-15 13:04:13 +01:00
/* TITRE */
.title h1{
2019-12-15 19:59:26 +01:00
font-size: 4vw;
2019-12-15 13:04:13 +01:00
padding: 6vw;
margin: 0;
2019-12-15 19:59:26 +01:00
color: white;
2019-12-16 22:04:27 +01:00
2019-12-15 13:04:13 +01:00
text-align: center;
}
.title{
2019-12-16 13:34:50 +01:00
background-color: rgba(255, 255, 255, 0.4);
animation: 1s right;
2019-12-16 22:04:27 +01:00
opacity: 1;
2019-12-15 13:04:13 +01:00
}
/*================================================*/
/*FLEX CONTAINER*/
.flex-container {
display: flex;
flex-wrap: wrap;
background-color: #ddd;
justify-content: center;
}
.flex-container>div {
width: 30%;
margin: 1vw;
text-align: center;
line-height: 3vw;
border-bottom: 0.2vw solid grey;
border-right: 0.2vw solid grey;
font-size: 30px;
}
.flex-container>div>a>h2 {
text-align: center;
font-size: 2vw;
color: rgb(0, 0, 0);
}
.flex-container>div>a>img {
float: none;
width: 50%;
}
.flex-container div:hover img{
width: 60%;
transition-duration: 0.5s;
}
.out img{
opacity: 0.4;
}
.out h1{
font-size: 2vw;
color: white;
background-color: black;
margin: 0;
padding: 0;
}
.flex-container div.out:hover img{
width: 50%;
2019-12-15 13:32:25 +01:00
cursor: not-allowed;
2019-12-15 13:04:13 +01:00
transition-duration: 0.5s;
}
.flex-container div.out:hover{
2019-12-15 13:32:25 +01:00
cursor: not-allowed;
2019-12-15 13:04:13 +01:00
border: none;
border-bottom: 0.2vw solid grey;
border-right: 0.2vw solid grey;
}
.flex-container div:hover{
2019-12-15 19:59:26 +01:00
border: 0.3vw solid grey;
2019-12-15 13:04:13 +01:00
transition-duration: 0.2s;
}
/*==========================================*/
/* CONTACT*/
#contact h2{
margin: 0;
padding: 2vw;
font-size: 2vw;
text-align: center;
}
/*==========================================================*/
2019-12-15 19:59:26 +01:00
/* QUI SOMMES NOUS ? */
div#nous .flex-container {
justify-content: center;
}
div#nous div{
border: none;
text-align: left;
}
2019-12-15 13:04:13 +01:00
2019-12-15 19:59:26 +01:00
div#nous .flex-container img{
width: 40%;
margin-left: 35%;
}
div#nous .flex-container ul {
font-size: 2vw;
color: rgb(61, 61, 61);
}
div#nous h2 {
font-size: 3vw;
color: black;
text-align: center;
}
div#nous .flex-container div#engagements{
border-left: 0.2vw solid grey;
}
/*================================*/
/*FOOTER*/
footer {
margin-top: 8vw;
bottom: 0;
2019-11-23 13:44:49 +01:00
}
2019-11-27 10:36:44 +01:00
footer>div>table {
width: 100%;
2019-12-15 19:59:26 +01:00
background-color: rgb(255, 255, 255);
margin: auto;
padding: 2vw 8vw;
}
a {
text-decoration: none;
2019-12-15 13:32:25 +01:00
color: rgb(90, 90, 90);
}
a:hover {
2019-12-15 19:59:26 +01:00
color: rgb(0, 0, 0);
transition-duration: 0.4s;
}
tr {
height: 5vw;
}
th {
font-size: 2vw;
2019-12-15 13:32:25 +01:00
color: black;
text-align: left;
2019-12-15 13:32:25 +01:00
border-bottom: 0.1vw solid rgb(0, 0, 0);
}
2019-12-15 19:59:26 +01:00
th#line{
border-bottom: none;
}
button#contactB {
margin: auto;
display: flex;
justify-content: center;
padding: 1.5vw 4vw;
font-size: 1.5vw;
2019-12-15 13:32:25 +01:00
color: rgb(90, 90, 90);
background-color: transparent;
border: 0.1vw solid rgb(90, 90, 90);
transform: skew(-.312rad);
margin-bottom: 2vw;
}
button#contactB:hover {
2019-12-15 13:32:25 +01:00
background-color: rgb(90, 90, 90);
color: white;
transition-duration: 0.5s;
border-radius: 1vw;
}
td {
width: 20%;
font-size: 1.5vw;
}
td#contact {
2019-11-27 10:36:44 +01:00
width: 100%;
2019-11-20 11:09:01 +01:00
}
/*======================================*/
/*CONFIRMATION COMMENTAIRE*/
#Merci>h1 {
font-size: 2.8vw;
color: white;
text-align: center;
margin-top: 7%;
}
#Merci>h2 {
font-size: 2vw;
text-align: center;
margin-top: 5%;
}
#Merci>h2>a {
color: lightgrey;
text-decoration: none;
}
#Merci>h2>a:hover {
2019-12-15 13:04:13 +01:00
color: white;
}
#Merci>img {
2019-12-11 21:33:44 +01:00
display: block;
margin-left: auto;
margin-right: auto;
width: 10%;
margin-top: 5%;
float: none;
}
/*==========================================*/
/* CSS DESCRIPTION PRODUIT */
/*EN TETE PRODUIT*/
#Produit {
margin-top: 5%;
2019-12-16 21:24:09 +01:00
padding-bottom: 5vw;
}
#Produit>h1 {
text-align: left;
font-size: 4vw;
2019-12-16 21:24:09 +01:00
color: black;
margin-left: 25%;
}
#Produit>h2#barre {
text-decoration: line-through;
}
#Produit>h2 {
text-align: left;
font-size: 3vw;
margin-left: 25%;
color: red;
}
#Produit>h2#barre {
text-decoration: line-through;
}
#Produit>h3 {
text-align: left;
font-size: 1.5vw;
margin-left: 25%;
2019-12-16 21:24:09 +01:00
color: rgb(63, 63, 63);
}
#Produit>img {
width: 20%;
float: left;
2019-12-15 13:04:13 +01:00
border: 0.2vw solid white;
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.5);
}
#Produit>button {
2019-12-16 21:24:09 +01:00
background-color: transparent;
padding: 1vw 1vw;
float: right;
text-align: center;
font-size: 2vw;
margin-right: 10%;
2019-12-16 21:24:09 +01:00
color: black;
border: 0.1vw solid rgb(68, 68, 68);
}
#Produit>button:hover {
color: white;
2019-12-16 21:24:09 +01:00
background-color: rgb(68, 68, 68);
transition-duration: 0.5s;
border-radius: 2vw;
}
/*=====================*/
/*CARACTERISTIQUES PRODUIT*/
#Carac>h1 {
font-size: 3vw;
color: white;
}
#Carac>h2 {
font-size: 1.5vw;
2019-12-16 21:24:09 +01:00
color: rgb(43, 43, 43);
}
/*================================================*/
/*COMMENTAIRES CLIENT*/
#Client {
width: 100%;
margin-left: 5%;
}
#Client>div>h1 {
font-size: 2vw;
2019-12-16 21:24:09 +01:00
color: rgb(0, 0, 0);
margin-left: 8%;
}
#Client>div>h2 {
font-size: 1.5vw;
2019-12-16 21:24:09 +01:00
color: rgb(56, 56, 56);
margin-left: 8%;
}
#Client>div>img {
float: left;
width: 7%;
border-radius: 50%;
}
#Client>div {
margin-bottom: 3%;
border-bottom: 0.1vw solid rgb(134, 134, 134);
margin-right: 8%;
}
/*================================================*/
/*ESPACE LAISSER COMMENTAIRE*/
2019-12-16 21:24:09 +01:00
#com h2{
text-align: center;
}
/*================================================*/
/*Panier*/
2019-12-15 19:59:26 +01:00
table#basket{
background-color: rgba(255, 255, 255, 0.5);
text-align: center;
width: 100%;
border: 0.2vw solid rgb(0, 0, 0);
border-collapse: collapse;
}
2019-12-15 19:59:26 +01:00
table#basket th{
border: 0.1vw solid grey;
font-size: 2.5vw;
text-align: center;
}
table#basket tr{
line-height: 5vh;
}
table#basket td{
border: 0.1vw solid grey;
font-size: 1.5vw;
}
2019-12-15 19:59:26 +01:00
table#basket td#total{
text-align: right;
font-size: 2.5vw;
font-weight: bold;
color: black;
padding-right: 2vw;
}
2019-12-15 19:59:26 +01:00
table#basket input{
text-align: center;
font-size: 2vw;
width: 10%;
padding: 0.3vw;
}
2019-12-15 19:59:26 +01:00
table#basket input:valid{
border: 0.1vw solid grey;
}
/*LIVRAISON*/
#livraison table{
width: 100%;
}
2019-12-16 21:24:09 +01:00
input{
2019-12-15 19:59:26 +01:00
width: 50%;
display: block;
margin: auto;
font-size: 2vw;
background-color: transparent;
border: none;
border-bottom: 0.2vw solid grey;
padding: 0.5vw;
margin-top: 0.5vh;
margin-bottom: 1.5vh;
}
2019-12-16 21:24:09 +01:00
input:valid{
border-bottom : 0.2vw solid rgb(24, 216, 40);
transition-duration: 0.3s;
}
input[placeholder=Commentaire],
select,
input[placeholder="Question, suggestion, remarque"],
select {
width: 60%;
padding: 1vw 1vw;
font-size: 1.5vw;
}
input[type=submit]{
width: 20%;
padding: 1vw 1vw;
font-size: 1.5vw;
background-color: rgba(0, 0, 0, 0.5);
border: 0.15vw solid white;
color: white;
display: block;
margin-left: auto;
margin-right: auto;
}
input[type=submit]:hover{
background-color: rgba(255, 255, 255, 0.5);
border: 0.15vw solid rgb(0, 0, 0);
color: rgb(0, 0, 0);
}
2019-12-15 19:59:26 +01:00
#livraison h2{
text-align: left;
font-size: 2.5vw;
}
#livraison h2#valid{
text-align: center;
}
2019-12-15 19:59:26 +01:00
#livraison td{
font-size: 1.5vw;
color: rgb(0, 0, 0);
text-align: center;
}
2019-12-15 19:59:26 +01:00
2019-12-16 22:04:27 +01:00
#dark_popup:target #popup{
display:block;
animation: 1s popup;
animation-fill-mode: forwards;
transition-duration: 0.5s;
}
#dark_popup:target .title, #dark_popup:target .content{
opacity: 0.2;
}
#popup{
display:none;
position: fixed;
background-color : #ddd;
2019-12-17 09:04:52 +01:00
top: 30%;
2019-12-16 22:04:27 +01:00
padding: 1vw;
border-radius: 1vw;
left: 15%;
width: 70%;
opacity: 1;
z-index: 1;
}
@keyframes popup{
0%{margin-top:-100%}
100%{margin-top:0%}
}
#popup h1{
color: black;
font-size: 2.5vw;
}
#popup h2{
color: rgb(61, 61, 61);
padding-top: 1vw;
font-size: 2vw;
cursor: pointer;
text-align: center;
border-top: 0.1vw solid rgb(59, 59, 59);
}
#popup h2:hover{
font-size: 2.5vw;
transition-duration: 0.5s;
}
2019-12-17 09:04:52 +01:00
#popup a[href="#"]{
float: right;
}
#popup a[href="#"] h1{
margin-top: 0;
}
2019-12-15 13:04:13 +01:00
/*===============================================*/