Spaces:
Running
Running
create a daily journaling application with notion like UI i.e. a block style editor
2fff0e4
verified
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| :root { | |
| --primary-color: #6366f1; | |
| --secondary-color: #8b5cf6; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #f8fafc; | |
| color: #334155; | |
| } | |
| .editor-block { | |
| transition: all 0.2s ease; | |
| } | |
| .editor-block:focus-within { | |
| box-shadow: 0 0 0 2px var(--primary-color); | |
| } | |
| .block-placeholder { | |
| position: absolute; | |
| pointer-events: none; | |
| color: #94a3b8; | |
| } | |
| .drag-handle { | |
| opacity: 0; | |
| transition: opacity 0.2s ease; | |
| } | |
| .editor-block:hover .drag-handle { | |
| opacity: 1; | |
| } | |
| .delete-button { | |
| opacity: 0; | |
| transition: opacity 0.2s ease; | |
| } | |
| .editor-block:hover .delete-button { | |
| opacity: 1; | |
| } | |
| .entry-card { | |
| transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| } | |
| .entry-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .date-badge { | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| } | |
| @media (max-width: 640px) { | |
| .drag-handle { | |
| opacity: 1 ; | |
| } | |
| .delete-button { | |
| opacity: 1 ; | |
| } | |
| } |