Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlKho-Minerva committed Nov 3, 2024
2 parents 918c6b0 + b36e02f commit 913d73f
Show file tree
Hide file tree
Showing 5 changed files with 382 additions and 119 deletions.
Empty file added app/static/css/style.
Empty file.
326 changes: 282 additions & 44 deletions app/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,60 +188,81 @@ html {
color: var(--accent-color);
}

/* Todo list styles */
/* Updated Todo List Styles */
.todos-container {
background-color: rgba(0, 0, 0, 0.7);
border: 2px solid var(--secondary-color);
padding: 30px; /* Increased from 20px */
margin-top: 30px; /* Increased from 20px */
clip-path: polygon(0 10px, 10px 0,
calc(100% - 10px) 0, 100% 10px,
100% calc(100% - 10px), calc(100% - 10px) 100%,
10px 100%, 0 calc(100% - 10px));
background-color: transparent;
border: none;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}

.todo-list {
background-color: var(--primary-color);
border: 1px solid var(--secondary-color);
padding: 25px; /* Increased from 15px */
margin-bottom: 25px; /* Increased from 15px */
transition: all 0.3s ease;
}

.todo-list:hover {
transform: scale(1.01);
box-shadow: 0 0 15px rgba(192, 160, 128, 0.3);
}

/* Enhanced Todo Items Styling */
.items-container {
margin-top: 1.5rem; /* Increased from 1rem */
background-color: rgba(26, 10, 10, 0.95);
border-radius: 8px;
padding: 16px;
margin-bottom: 16px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Todoist-like Item Styles */
.todo-item {
margin: 0.8rem 0; /* Increased from 0.5rem */
margin: 4px 0;
transition: all 0.3s ease;
}

.item-content {
display: flex;
align-items: center;
gap: 1.5rem; /* Increased from 1rem */
padding: 1rem; /* Increased from 0.75rem */
border: 1px solid var(--secondary-color);
background: linear-gradient(
to right,
rgba(74, 44, 42, 0.7),
rgba(74, 44, 42, 0.3)
);
padding: 8px 12px;
border-radius: 4px;
position: relative;
overflow: hidden;
background: transparent;
border: none;
transition: background-color 0.2s ease;
}

.item-content:hover {
transform: translateX(5px);
box-shadow: -5px 0 10px rgba(192, 160, 128, 0.2);
background-color: rgba(255, 255, 255, 0.05);
transform: none;
box-shadow: none;
}

/* Children Container with Slide Animation */
.children-container {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
padding-left: 24px;
}

.children-container.expanded {
max-height: 1000px;
transition: max-height 0.5s ease-in;
}

/* Item Spacing and Icons */
.btn-toggle {
width: 24px;
height: 24px;
opacity: 0.8;
margin-right: 8px;
}

.btn-expand {
width: 20px;
height: 20px;
margin-right: 4px;
opacity: 0.6;
}

.item-title {
font-size: 0.95rem;
padding: 4px 0;
}

/* Enhanced Todo Items Styling */
.items-container {
margin-top: 1.5rem; /* Increased from 1rem */
}

/* Level indentation with decorative line */
Expand Down Expand Up @@ -317,7 +338,7 @@ html {
.item-title.completed {
opacity: 0.6;
text-decoration: none;
color: var(--accent-color);
color: var (--accent-color);
font-style: italic;
position: relative;
}
Expand Down Expand Up @@ -436,6 +457,7 @@ input[type="email"] {
font-family: 'Cinzel', serif;
font-size: 1em;
transition: all 0.3s ease;
position: relative; /* For tooltip positioning */
}

.btn:hover {
Expand All @@ -444,6 +466,87 @@ input[type="email"] {
box-shadow: 0 0 15px rgba(192, 160, 128, 0.3);
}

/* Tooltip styles - Updated */
[data-tooltip] {
position: relative;
cursor: pointer;
}

[data-tooltip]::before,
[data-tooltip]::after {
--tooltip-color: rgba(0, 0, 0, 0.9);
--tooltip-border: var(--secondary-color);

position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(5px);
opacity: 0;
pointer-events: none;
transition: all 0.15s ease-in-out;
}

[data-tooltip]::before {
content: attr(data-tooltip);
padding: 7px 12px;
background-color: var(--tooltip-color);
color: var(--text-color);
font-size: 0.85rem;
font-family: 'Open Sans', sans-serif;
font-weight: normal;
white-space: nowrap;
border-radius: 4px;
border: 1px solid var(--tooltip-border);
margin-bottom: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-tooltip]::after {
content: '';
border: 6px solid transparent;
border-top-color: var(--tooltip-color);
margin-bottom: -2px;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
opacity: 1;
transform: translateX(-50%) translateY(0);
}

/* Action Button Enhancements */
.btn-small {
min-width: 2rem;
height: 2rem;
padding: 0.25rem;
position: relative;
overflow: hidden;
}

.btn-small:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at center,
rgba(192, 160, 128, 0.2),
transparent 70%);
opacity: 0;
transition: opacity 0.2s ease;
}

.btn-small:hover:before {
opacity: 1;
}

/* Action button specific colors */
.btn-add { color: #4caf50; }
.btn-edit { color: #2196f3; }
.btn-move { color: #ff9800; }
.btn-delete { color: #f44336; }

/* Action buttons layout */
.item-actions,
.list-actions {
Expand Down Expand Up @@ -478,12 +581,6 @@ input[type="email"] {
box-shadow: 0 0 15px rgba(192, 160, 128, 0.3);
}

.btn-small {
min-width: 2rem;
height: 2rem;
padding: 0.25rem;
}

.btn-danger {
background-color: #8b0000;
}
Expand Down Expand Up @@ -543,6 +640,147 @@ input[type="email"] {
margin: 0;
}

/* Enhanced Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(4px);
animation: fadeIn 0.2s ease-out;
}

.modal-content {
background-color: var(--primary-color);
border: 1px solid var(--secondary-color);
border-radius: 8px;
margin: 8% auto;
padding: 24px;
width: 90%;
max-width: 480px;
position: relative;
transform: translateY(-20px);
opacity: 0;
animation: slideIn 0.3s ease-out forwards;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Modal Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes slideIn {
to {
transform: translateY(0);
opacity: 1;
}
}

/* Modal Header */
.modal-content h3,
.modal-content h4 {
color: var(--accent-color);
margin: 0 0 20px 0;
font-family: 'Cinzel', serif;
font-size: 1.4rem;
display: flex;
align-items: center;
gap: 8px;
}

.modal-content h3 i {
color: var(--secondary-color);
font-size: 1.2rem;
}

/* Enhanced Dropdown Styles */
.modal select {
width: 100%;
padding: 12px;
margin-bottom: 20px;
background-color: rgba(0, 0, 0, 0.2);
border: 1px solid var(--secondary-color);
border-radius: 4px;
color: var(--text-color);
font-family: 'Open Sans', sans-serif;
font-size: 0.95rem;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
position: relative;
transition: all 0.2s ease;
}

/* Custom Dropdown Arrow */
.select-wrapper {
position: relative;
width: 100%;
}

.select-wrapper::after {
content: '\f0d7';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--secondary-color);
pointer-events: none;
transition: all 0.2s ease;
}

.select-wrapper:hover::after {
color: var(--accent-color);
}

/* Dropdown Hover & Focus States */
.modal select:hover,
.modal select:focus {
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(192, 160, 128, 0.1);
outline: none;
}

/* Modal Buttons Container */
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 24px;
}

.modal-actions .btn {
min-width: 100px;
}

/* Close Button */
.modal-close {
position: absolute;
top: 16px;
right: 16px;
background: none;
border: none;
color: var(--secondary-color);
cursor: pointer;
font-size: 1.2rem;
opacity: 0.7;
transition: all 0.2s ease;
}

.modal-close:hover {
opacity: 1;
color: var(--accent-color);
transform: rotate(90deg);
}

/* Modal styles */
.modal {
display: none;
Expand Down
Loading

0 comments on commit 913d73f

Please sign in to comment.