mirror of
https://github.com/arthur-pbty/LazyBot.git
synced 2026-06-03 23:36:37 +02:00
add readme & refonte css
This commit is contained in:
+74
-130
@@ -1,199 +1,143 @@
|
||||
:root {
|
||||
--bg: #0f1115;
|
||||
--bg-card: #161a22;
|
||||
--text: #e6e6eb;
|
||||
--muted: #9aa0b4;
|
||||
--primary: #5865F2;
|
||||
--primary-hover: #4752c4;
|
||||
--border: #23283a;
|
||||
--input-bg: #1f222b;
|
||||
--input-border: #2a2e3e;
|
||||
}
|
||||
|
||||
/* RESET & BASE */
|
||||
/* ===== Reset minimal ===== */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg);
|
||||
color: var(--text);
|
||||
margin: 0;
|
||||
background-color: #1e1f29; /* fond sombre type Discord */
|
||||
color: #ffffff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* NAVBAR */
|
||||
/* ===== Navigation ===== */
|
||||
nav {
|
||||
width: 100%;
|
||||
max-width: 900px;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
padding: 16px 24px;
|
||||
background: var(--bg-card);
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
justify-content: flex-start;
|
||||
background-color: #2f3136;
|
||||
padding: 10px 20px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: var(--muted);
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
margin-right: 15px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: var(--text);
|
||||
color: #5865f2;
|
||||
}
|
||||
|
||||
/* TITRE PRINCIPAL */
|
||||
/* ===== Titres ===== */
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* FORMS */
|
||||
h2 {
|
||||
font-size: 1.8rem;
|
||||
margin: 25px 0 10px 0;
|
||||
border-bottom: 2px solid #5865f2;
|
||||
display: inline-block;
|
||||
padding-bottom: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ===== Formulaires ===== */
|
||||
form {
|
||||
max-width: 700px;
|
||||
margin: 0 auto 40px auto;
|
||||
background-color: #2f3136;
|
||||
padding: 20px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 30px;
|
||||
width: 100%;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
form label {
|
||||
display: block;
|
||||
margin-bottom: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
form input[type="checkbox"] {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
select,
|
||||
textarea {
|
||||
form select,
|
||||
form textarea {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
padding: 8px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #5865f2;
|
||||
background-color: #161a22;
|
||||
color: #ffffff;
|
||||
margin-top: 5px;
|
||||
border: 1px solid var(--input-border);
|
||||
border-radius: 8px;
|
||||
background-color: var(--input-bg);
|
||||
color: var(--text);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
form textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
textarea::placeholder {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
button[type="submit"] {
|
||||
display: block;
|
||||
padding: 12px 24px;
|
||||
margin-top: 10px;
|
||||
background: var(--primary);
|
||||
form button {
|
||||
background-color: #5865f2;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s ease, transform 0.1s ease;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
button[type="submit"]:hover {
|
||||
background: var(--primary-hover);
|
||||
transform: translateY(-1px);
|
||||
form button:hover {
|
||||
background-color: #4752c4;
|
||||
}
|
||||
|
||||
/* PETIT TEXTE / VARIABLES */
|
||||
small {
|
||||
form small {
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
color: var(--muted);
|
||||
font-size: 0.85rem;
|
||||
color: #b9bbbe;
|
||||
}
|
||||
|
||||
small ul {
|
||||
form small ul {
|
||||
list-style: disc inside;
|
||||
margin-top: 5px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
small code {
|
||||
background: var(--input-bg);
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* STATUS FORM */
|
||||
#status-welcome-form,
|
||||
#status-goodbye-form {
|
||||
#status-goodbye-form,
|
||||
#status-autorole-form,
|
||||
#status-autorole-vocal-form {
|
||||
margin-top: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* RESPONSIVE */
|
||||
@media (max-width: 768px) {
|
||||
/* ===== Select multiple pour vocal ===== */
|
||||
select[multiple] {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* ===== Responsive ===== */
|
||||
@media (max-width: 600px) {
|
||||
body {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
form {
|
||||
padding: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
#autorole-vocal-exclude-channel {
|
||||
background-color: #0f1115;
|
||||
color: #e5e7eb;
|
||||
|
||||
border: 1px solid #2a2f3a;
|
||||
border-radius: 8px;
|
||||
|
||||
padding: 8px;
|
||||
font-size: 14px;
|
||||
|
||||
min-width: 240px;
|
||||
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* options */
|
||||
#autorole-vocal-exclude-channel option {
|
||||
background-color: #0f1115;
|
||||
color: #e5e7eb;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
/* hover */
|
||||
#autorole-vocal-exclude-channel option:hover {
|
||||
background-color: #1f2937;
|
||||
}
|
||||
|
||||
/* sélection */
|
||||
#autorole-vocal-exclude-channel option:checked {
|
||||
background-color: #2563eb; /* bleu */
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* focus */
|
||||
#autorole-vocal-exclude-channel:focus {
|
||||
border-color: #2563eb;
|
||||
box-shadow: 0 0 0 1px #2563eb;
|
||||
}
|
||||
|
||||
/* scrollbar (Chrome / Edge) */
|
||||
#autorole-vocal-exclude-channel::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
#autorole-vocal-exclude-channel::-webkit-scrollbar-track {
|
||||
background: #0f1115;
|
||||
}
|
||||
|
||||
#autorole-vocal-exclude-channel::-webkit-scrollbar-thumb {
|
||||
background: #2a2f3a;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#autorole-vocal-exclude-channel::-webkit-scrollbar-thumb:hover {
|
||||
background: #3b4252;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user