242 lines
4.2 KiB
CSS
242 lines
4.2 KiB
CSS
:root {
|
|
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
|
--primary-bg: #0b0c10;
|
|
--header-bg: #111217;
|
|
--border: #1e1f27;
|
|
--input-bg: #14151c;
|
|
--input-border: #262837;
|
|
--button-bg: #1a1c27;
|
|
--button-border: #2a2d3e;
|
|
--danger-bg: #2a0f15;
|
|
--danger-border: #3c1e26;
|
|
--accent: #9ecbff;
|
|
--text: #eaeaea;
|
|
--muted: #8892a6;
|
|
--done: #8aa;
|
|
--discord: #5865F2;
|
|
--discord-hover: #4752C4;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--primary-bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 24px;
|
|
background: var(--header-bg);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
header nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
header a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
header a:hover {
|
|
background: #1a2333;
|
|
color: #fff;
|
|
}
|
|
|
|
main {
|
|
max-width: 720px;
|
|
margin: 24px auto;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.new form {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
input[type="text"] {
|
|
flex: 1;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--input-border);
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
outline: none;
|
|
transition: border 0.2s;
|
|
}
|
|
|
|
input[type="text"]:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
button, .discordAuth {
|
|
padding: 10px 18px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--button-border);
|
|
background: var(--button-bg);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
transition: filter 0.2s, background 0.2s, border 0.2s;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
|
|
button:hover, .discordAuth:hover {
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
button.danger {
|
|
border-color: var(--danger-border);
|
|
background: var(--danger-bg);
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
li > div {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
span.done {
|
|
text-decoration: line-through;
|
|
color: var(--done);
|
|
}
|
|
|
|
small {
|
|
color: var(--muted);
|
|
}
|
|
|
|
/* Discord Auth Button */
|
|
.discordAuth {
|
|
background: var(--discord);
|
|
border: none;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
box-shadow: 0 2px 8px 0 #23272a22;
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
position: relative;
|
|
padding-left: 44px;
|
|
}
|
|
|
|
.discordAuth::before {
|
|
content: "";
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 22px;
|
|
height: 22px;
|
|
background: url('https://cdn.jsdelivr.net/gh/edent/SuperTinyIcons/images/svg/discord.svg') no-repeat center/contain;
|
|
}
|
|
|
|
.discordAuth:hover {
|
|
background: var(--discord-hover);
|
|
box-shadow: 0 4px 16px 0 #23272a33;
|
|
}
|
|
|
|
.logout {
|
|
background: #e74c3c;
|
|
border: none;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
box-shadow: 0 2px 8px 0 #e74c3c22;
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
position: relative;
|
|
padding-left: 44px;
|
|
}
|
|
|
|
.logout::before {
|
|
content: "";
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 22px;
|
|
height: 22px;
|
|
background: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/icons/box-arrow-left.svg') no-repeat center/contain;
|
|
}
|
|
|
|
.logout:hover {
|
|
background: #c0392b;
|
|
box-shadow: 0 4px 16px 0 #e74c3c33;
|
|
}
|
|
|
|
footer {
|
|
background: var(--header-bg);
|
|
border-top: 1px solid var(--border);
|
|
padding: 16px 24px;
|
|
color: var(--muted);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: 48px;
|
|
}
|
|
|
|
.footer-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.footer-link {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.footer-link:hover {
|
|
color: #fff;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.toggle-btn, .delete-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
border-radius: 6px;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
background: #26323833;
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background: #e74c3c22;
|
|
}
|
|
|
|
.todo-meta {
|
|
margin-top: 2px;
|
|
color: var(--muted);
|
|
font-size: 0.92em;
|
|
}
|