first commit
This commit is contained in:
127
assets/add.css
Normal file
127
assets/add.css
Normal file
@@ -0,0 +1,127 @@
|
||||
/* --- Body --- */
|
||||
body {
|
||||
font-family: 'Segoe UI', Roboto, Arial, sans-serif;
|
||||
background-color: #f3f0f9;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* --- Bande violette en haut --- */
|
||||
header {
|
||||
background: linear-gradient(135deg, #6a11cb, #8e2de2);
|
||||
color: #fff;
|
||||
padding: 12px 0;
|
||||
display: flex;
|
||||
justify-content: center; /* titre centré */
|
||||
align-items: center;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
/* --- Espace distinct entre header et formulaire --- */
|
||||
section.form-section {
|
||||
margin-top: 40px; /* espace entre bande et formulaire */
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* --- Formulaire stylé --- */
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
background: #fff;
|
||||
padding: 30px 25px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #e0d4f7;
|
||||
box-shadow: 0 3px 6px rgba(0,0,0,0.08);
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
/* --- Labels et Inputs --- */
|
||||
form label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-weight: 600;
|
||||
color: #5b1dbb;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
form input[type="text"],
|
||||
form textarea {
|
||||
padding: 12px 15px;
|
||||
border: 1px solid #dcd0f5;
|
||||
border-radius: 6px;
|
||||
font-size: 1rem;
|
||||
resize: vertical;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
form input[type="text"]:focus,
|
||||
form textarea:focus {
|
||||
outline: none;
|
||||
border-color: #8e2de2;
|
||||
box-shadow: 0 0 5px rgba(142,45,226,0.5);
|
||||
}
|
||||
|
||||
/* --- Boutons Publier et Annuler --- */
|
||||
.form-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
button,
|
||||
a.btn {
|
||||
padding: 12px 25px;
|
||||
background: linear-gradient(135deg, #6a11cb, #8e2de2);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
a.btn:hover {
|
||||
background: linear-gradient(135deg, #8e2de2, #6a11cb);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* --- Messages d'erreur --- */
|
||||
.error {
|
||||
color: #721c24;
|
||||
background: #f8d7da;
|
||||
border: 1px solid #f5c6cb;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
margin-bottom: 15px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
/* --- Footer violet --- */
|
||||
footer {
|
||||
background: #6a11cb;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 15px 0;
|
||||
width: 100%;
|
||||
box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
|
||||
font-size: 0.95rem;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user