new-doxa-monorepo

This commit is contained in:
kankys committed 2026-08-07 09:48:59 +02:00
1 parent b4401527a3
commit 5eacbb0182
162 files changed
+21820 -2

No files matched your search

+500
View File
@@ -0,0 +1,500 @@
/* --- STOICKÝ DESIGN PRO DOXA NOTES --- */
:root {
/* Světlý motiv - Inspirovaný antickým mramorem a pergamenem */
--bg: #f5f4f0;
--text: #2c2e30;
--muted: #73797e;
--button-bg: #e5e2da;
--button-text: #2c2e30;
--note-bg: #ffffff;
--note-border: #dcd8cd;
--note-hover: #edeae2;
--accent: #b3893e; /* Tlumená bronzová */
--accent-hover: #967131;
--modal-bg: #ffffff;
--modal-overlay: rgba(44, 46, 48, 0.4);
--active-bg: #fdfbf7;
--active-border: #b3893e;
}
/* Tmavý motiv - Hluboká noc a bronz (Výchozí pro landing page) */
body.dark {
--bg: #1a1c1e;
--text: #e2e4e9;
--muted: #9ba1a6;
--button-bg: #2d3135;
--button-text: #e2e4e9;
--note-bg: #222529;
--note-border: #2e3238;
--note-hover: #2b2e33;
--accent: #c5a059; /* Jasnější stoická bronzová */
--accent-hover: #dfba73;
--modal-bg: #222529;
--modal-overlay: rgba(0, 0, 0, 0.6);
--active-bg: rgba(197, 160, 89, 0.05);
--active-border: #c5a059;
}
/* Základní nastavení */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, monospace, sans-serif;
background: var(--bg);
color: var(--text);
padding: 40px 20px;
line-height: 1.6;
transition: background 250ms ease, color 250ms ease;
}
.container {
max-width: 900px;
margin: 0 auto;
}
/* Navigace */
.top-nav {
display: flex;
gap: 10px;
margin-bottom: 30px;
align-items: center;
flex-wrap: wrap;
border-bottom: 1px solid var(--note-border);
padding-bottom: 15px;
}
.top-nav a,
.top-nav .theme-toggle {
background: var(--button-bg);
color: var(--button-text);
text-decoration: none;
padding: 8px 16px;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
border: 1px solid transparent;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
}
.top-nav a:hover,
.top-nav .theme-toggle:hover {
background: var(--note-hover);
border-color: var(--accent);
}
.top-nav a.active {
background: var(--accent);
color: #111;
font-weight: bold;
}
/* Nadpisy */
h1 {
font-size: 2.2rem;
margin-bottom: 20px;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 10px;
}
h1::after {
content: " 🦅";
font-size: 1.5rem;
}
/* Formulářové prvky */
#noteTitle {
width: 100%;
padding: 12px 16px;
margin-bottom: 12px;
font-size: 1.1rem;
font-weight: 600;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
border-radius: 4px;
outline: none;
transition: border-color 0.2s;
}
#noteTitle:focus {
border-color: var(--accent);
}
textarea {
width: 100%;
height: 220px;
padding: 14px;
margin-bottom: 12px;
font-family: monospace;
font-size: 14px;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
border-radius: 4px;
outline: none;
resize: vertical;
line-height: 1.5;
}
textarea:focus {
border-color: var(--accent);
}
/* Tlačítka */
button {
background: var(--button-bg);
color: var(--button-text);
border: 1px solid var(--note-border);
padding: 10px 18px;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: background 0.2s, border-color 0.2s;
}
button:hover {
background: var(--note-hover);
border-color: var(--accent);
}
/* Editor toolbar */
.editor-toolbar {
display: flex;
gap: 6px;
margin-bottom: 12px;
flex-wrap: wrap;
background: var(--note-bg);
padding: 6px;
border-radius: 4px;
border: 1px solid var(--note-border);
}
.editor-toolbar button {
background: transparent;
border: none;
color: var(--text);
padding: 6px 10px;
cursor: pointer;
border-radius: 3px;
font-size: 13px;
}
.editor-toolbar button:hover {
background: var(--note-hover);
color: var(--accent);
}
.editor-toolbar button.active {
background: var(--accent);
color: #111;
font-weight: bold;
}
/* Layout editoru a náhledu */
.editor-wrap {
display: flex;
gap: 16px;
align-items: flex-start;
}
.editor-wrap textarea {
flex: 1 1 55%;
min-height: 250px;
}
.preview {
flex: 1 1 45%;
border: 1px solid var(--note-border);
background: var(--note-bg);
padding: 16px;
border-radius: 4px;
/*overflow-auto;*/
min-height: 250px;
max-height: 400px;
font-size: 0.95rem;
}
.hidden {
display: none;
}
/* Akce pod editorem */
.editor-actions {
margin: 15px 0;
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
#newNoteButton {
background: var(--accent);
color: #111;
font-weight: bold;
border: 1px solid transparent;
}
#newNoteButton:hover {
background: var(--accent-hover);
}
.save-status {
margin-left: auto;
font-size: 13px;
color: var(--accent);
font-weight: 500;
}
/* Seznam poznámek */
#notesContainer {
margin-top: 25px;
border-top: 1px solid var(--note-border);
padding-top: 20px;
display: flex;
flex-direction: column;
gap: 8px;
}
.note-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border: 1px solid var(--note-border);
border-radius: 6px;
background: var(--note-bg);
transition: transform 0.15s, border-color 0.15s;
}
.note-item:hover {
background: var(--note-hover);
border-color: rgba(197, 160, 89, 0.4);
}
.note-item.active {
background: var(--active-bg);
border-color: var(--active-border);
box-shadow: 0 0 10px rgba(197, 160, 89, 0.05);
}
.note-left {
flex: 1 1 auto;
padding-right: 15px;
cursor: pointer;
overflow: hidden;
}
.note-title {
font-weight: 600;
font-size: 1.05rem;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.note-preview {
font-size: 13px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.note-controls {
display: flex;
gap: 4px;
align-items: center;
}
.note-controls button {
background: transparent;
border: none;
padding: 6px 10px;
color: var(--text);
opacity: 0.6;
transition: opacity 0.2s, color 0.2s;
}
.note-controls button:hover {
background: var(--button-bg);
opacity: 1;
}
.note-controls button.delete:hover {
color: #ff6b6b;
}
.no-notes {
color: var(--muted);
font-style: italic;
padding: 15px;
text-align: center;
}
.notes-hint {
margin-top: 10px;
color: var(--muted);
font-size: 12px;
text-align: center;
}
/* Drag & Drop styly */
.note-item.drag-over {
border-style: dashed;
border-color: var(--accent);
}
.note-item.drag-after {
box-shadow: inset 0 -3px 0 0 var(--accent);
}
.note-item.dragging {
opacity: 0.4;
}
/* Modální okno */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--modal-overlay);
backdrop-filter: blur(2px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: var(--modal-bg);
padding: 24px;
border-radius: 8px;
width: 95%;
max-width: 800px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
position: relative;
border: 1px solid var(--note-border);
}
.modal h2 {
margin-bottom: 15px;
font-size: 1.4rem;
}
.modal .modal-close {
position: absolute;
right: 16px;
top: 16px;
border: none;
background: transparent;
font-size: 18px;
color: var(--muted);
cursor: pointer;
}
.modal .modal-close:hover {
color: var(--text);
}
.modal-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 10px;
}
#modalSaveBtn {
background: var(--accent);
color: #111;
font-weight: bold;
}
#modalSaveBtn:hover {
background: var(--accent-hover);
}
/* Styly pro renderovaný Markdown */
.preview h1, .preview h2, .preview h3 {
margin: 14px 0 8px 0;
color: var(--text);
}
.preview p {
margin-bottom: 10px;
}
.preview pre {
background: rgba(0, 0, 0, 0.15);
padding: 12px;
border-radius: 4px;
overflow: auto;
border: 1px solid var(--note-border);
margin: 10px 0;
}
body:not(.dark) .preview pre {
background: #f0ede6;
}
.preview code {
font-family: monospace;
background: rgba(197, 160, 89, 0.15);
padding: 2px 5px;
border-radius: 3px;
font-size: 0.9em;
}
.preview ul, .preview ol {
margin-left: 20px;
margin-bottom: 10px;
}
.preview blockquote {
border-left: 3px solid var(--accent);
padding-left: 12px;
font-style: italic;
color: var(--muted);
margin: 12px 0;
}
.preview table {
width: 100%;
border-collapse: collapse;
margin: 15px 0;
}
.preview th, .preview td {
border: 1px solid var(--note-border);
padding: 8px 12px;
text-align: left;
}
.preview th {
background: var(--button-bg);
}
/* Responzivita */
@media (max-width: 800px) {
body {
padding: 20px 10px;
}
.editor-wrap {
flex-direction: column;
}
.preview {
width: 100%;
min-height: 150px;
}
}
+387
View File
@@ -0,0 +1,387 @@
/* Theme variables */
:root {
--bg: #fafafa;
--text: #333333;
--muted: #666666;
--button-bg: #333333;
--button-text: #ffffff;
--note-bg: #ffffff;
--note-border: #dddddd;
--note-hover: #f5f5f5;
--accent: #0b63d6;
--modal-bg: #ffffff;
--modal-overlay: rgba(0, 0, 0, 0.45);
--active-bg: #e6f0ff;
--active-border: #a6c8ff;
}
/* Dark theme overrides */
body.dark {
--bg: #0b1220;
--text: #e6eef8;
--muted: #9aa6b2;
--button-bg: #1f2937;
--button-text: #ffffff;
--note-bg: #071022;
--note-border: #263046;
--note-hover: #092033;
--accent: #3b82f6;
--modal-bg: #0b1220;
--modal-overlay: rgba(0, 0, 0, 0.6);
--active-bg: rgba(59, 130, 246, 0.14);
--active-border: #60a5fa;
}
/* Base */
body {
font-family: monospace;
background: var(--bg);
padding: 40px;
color: var(--text);
transition:
background 200ms ease,
color 200ms ease;
}
.top-nav {
display: flex;
gap: 8px;
margin-bottom: 12px;
align-items: center;
flex-wrap: wrap;
}
.top-nav a,
.top-nav .theme-toggle {
background: var(--button-bg);
color: var(--button-text);
text-decoration: none;
padding: 8px 12px;
border-radius: 4px;
font-family: monospace;
font-size: 14px;
border: none;
cursor: pointer;
}
.top-nav a:hover,
.top-nav .theme-toggle:hover {
background: #555;
}
.top-nav a.active {
background: var(--accent);
}
h1::after {
content: " 🦅";
font-size: 1.5rem;
}
.container {
max-width: 600px;
margin: 0 auto;
}
#noteTitle {
width: 100%;
padding: 10px;
margin-bottom: 8px;
font-family: monospace;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
}
textarea {
width: 100%;
height: 150px;
padding: 10px;
margin-bottom: 10px;
font-family: monospace;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
}
button {
background: var(--button-bg);
color: var(--button-text);
border: none;
padding: 10px 20px;
cursor: pointer;
font-family: monospace;
}
button:hover {
background: #555;
}
#notesContainer {
margin-top: 10px;
border-top: 1px solid var(--note-border);
padding-top: 10px;
display: flex;
flex-direction: column;
gap: 6px;
}
.note-item {
padding: 8px;
border: 1px solid var(--note-border);
cursor: pointer;
background: var(--note-bg);
}
.note-item:hover {
background: var(--note-hover);
}
.note-item.active {
background: var(--active-bg);
border-color: var(--active-border);
}
.no-notes {
color: var(--muted);
font-style: italic;
padding: 6px;
}
/* Note list layout */
.note-item {
display: flex;
align-items: center;
justify-content: space-between;
}
.note-left {
flex: 1 1 auto;
padding-right: 10px;
cursor: pointer;
}
.note-title {
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.note-preview {
font-size: 12px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.note-controls {
display: flex;
gap: 6px;
align-items: center;
}
.note-controls button {
background: transparent;
border: none;
padding: 6px 8px;
cursor: pointer;
font-family: monospace;
border-radius: 4px;
color: var(--text);
}
.note-controls button:hover {
background: rgba(255, 255, 255, 0.03);
}
.note-item.drag-over {
border-style: dashed;
}
.note-item.drag-after {
box-shadow: inset 0 -3px 0 0 rgba(0, 123, 255, 0.25);
}
.note-item.dragging {
opacity: 0.5;
}
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--modal-overlay);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-overlay.hidden {
display: none;
}
.modal {
background: var(--modal-bg);
padding: 16px;
border-radius: 8px;
width: 92%;
max-width: 720px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
position: relative;
}
.modal .modal-close {
position: absolute;
right: 8px;
top: 8px;
border: none;
background: transparent;
font-size: 16px;
cursor: pointer;
}
.modal input,
.modal textarea {
width: 100%;
padding: 8px;
margin-bottom: 8px;
font-family: monospace;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
}
.modal-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
@media (min-width: 800px) {
.container {
max-width: 900px;
}
}
.notes-hint {
margin-top: 8px;
color: var(--muted);
font-size: 13px;
}
/* Editor toolbar & preview */
.editor-toolbar {
display: flex;
gap: 6px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.editor-toolbar button {
background: transparent;
border: 1px solid var(--note-border);
color: var(--text);
padding: 6px 8px;
cursor: pointer;
border-radius: 4px;
font-family: monospace;
}
.editor-toolbar button:hover {
background: var(--note-hover);
}
/* active toolbar button */
.editor-toolbar button.active {
background: var(--accent);
color: var(--button-text);
}
.editor-wrap {
display: flex;
gap: 12px;
align-items: flex-start;
}
.editor-wrap textarea {
flex: 1 1 60%;
min-height: 160px;
}
.preview {
flex: 1 1 40%;
border: 1px solid var(--note-border);
background: var(--note-bg);
padding: 10px;
border-radius: 4px;
overflow: auto;
max-height: 320px;
}
.hidden {
display: none;
}
.editor-actions {
margin-top: 8px;
display: flex;
gap: 8px;
align-items: center;
}
.save-status {
margin-left: 8px;
font-size: 13px;
color: var(--muted);
min-width: 80px;
}
/* Rendered markdown styles */
.preview h1,
.preview h2,
.preview h3 {
margin: 6px 0;
}
.preview pre {
background: rgba(0, 0, 0, 0.04);
padding: 8px;
overflow: auto;
}
.preview code {
background: rgba(0, 0, 0, 0.06);
padding: 2px 4px;
border-radius: 4px;
}
@media (max-width: 800px) {
.editor-wrap {
flex-direction: column;
}
.preview {
max-height: 240px;
}
}
footer {
margin-top: 16px;
text-align: center;
font-size: 13px;
color: var(--muted);
}
+604
View File
@@ -0,0 +1,604 @@
/* --- STOICKÝ DESIGN PRO DOXA NOTES --- */
:root {
/* Světlý motiv - Inspirovaný antickým mramorem a pergamenem */
--bg: #f5f4f0;
--text: #2c2e30;
--muted: #73797e;
--button-bg: #e5e2da;
--button-text: #2c2e30;
--note-bg: #ffffff;
--note-border: #dcd8cd;
--note-hover: #edeae2;
--accent: #b3893e; /* Tlumená bronzová */
--accent-hover: #967131;
--modal-bg: #ffffff;
--modal-overlay: rgba(44, 46, 48, 0.4);
--active-bg: #fdfbf7;
--active-border: #b3893e;
/* --card-bg: #222529;*/
}
/* Tmavý motiv - Hluboká noc a bronz (Výchozí pro landing page) */
body.dark {
--bg: #1a1c1e;
--text: #e2e4e9;
--muted: #9ba1a6;
--button-bg: #2d3135;
--button-text: #e2e4e9;
--note-bg: #222529;
--note-border: #2e3238;
--note-hover: #2b2e33;
--accent: #c5a059; /* Jasnější stoická bronzová */
--accent-hover: #dfba73;
--modal-bg: #222529;
--modal-overlay: rgba(0, 0, 0, 0.6);
--active-bg: rgba(197, 160, 89, 0.05);
--active-border: #c5a059;
}
/* Základní nastavení */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, monospace, sans-serif;
background: var(--bg);
color: var(--text);
padding: 40px 20px;
line-height: 1.6;
transition: background 250ms ease, color 250ms ease;
}
.container {
max-width: 900px;
margin: 0 auto;
background-color: var(--card-bg);
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
text-align: center;
border: 1px solid rgba(197, 160, 89, 0.1);
}
/* Navigace */
.top-nav {
display: flex;
gap: 10px;
margin-bottom: 30px;
align-items: center;
flex-wrap: wrap;
border-bottom: 1px solid var(--note-border);
padding-bottom: 15px;
}
.top-nav a,
.top-nav .theme-toggle {
background: var(--button-bg);
color: var(--button-text);
text-decoration: none;
padding: 8px 16px;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
border: 1px solid transparent;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
}
.top-nav a:hover,
.top-nav .theme-toggle:hover {
background: var(--note-hover);
border-color: var(--accent);
}
.top-nav a.active {
background: var(--accent);
color: #111;
font-weight: bold;
align-items: center;
}
/* Nadpisy */
h1 {
font-size: 2.2rem;
/*margin-bottom: 20px;*/
letter-spacing: 0.5px;
/*display: flex;*/
align-items: center;
gap: 10px;
text-align: center;
}
h1::after {
content: " 🦅";
font-size: 1.5rem;
}
/* Formulářové prvky */
#noteTitle {
width: 100%;
padding: 12px 16px;
margin-bottom: 12px;
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
border-radius: 4px;
outline: none;
transition: border-color 0.2s;
}
#noteTitle:focus {
border-color: var(--accent);
}
#noteTags {
width: 100%;
padding: 12px 16px;
margin-bottom: 12px;
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
border-radius: 4px;
outline: none;
transition: border-color 0.2s;
}
#noteTags:focus {
border-color: var(--accent);
}
textarea {
width: 100%;
height: 220px;
padding: 14px;
margin-bottom: 12px;
font-family: monospace;
font-size: 14px;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
border-radius: 4px;
outline: none;
resize: vertical;
line-height: 1.5;
}
textarea:focus {
border-color: var(--accent);
}
/* Tlačítka */
button {
background: var(--button-bg);
color: var(--button-text);
border: 1px solid var(--note-border);
padding: 10px 18px;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: background 0.2s, border-color 0.2s;
}
button:hover {
background: var(--note-hover);
border-color: var(--accent);
}
/* Editor toolbar */
.editor-toolbar {
display: flex;
gap: 6px;
margin-bottom: 12px;
flex-wrap: wrap;
background: var(--note-bg);
padding: 6px;
border-radius: 4px;
border: 1px solid var(--note-border);
}
.editor-toolbar button {
background: transparent;
border: none;
color: var(--text);
padding: 6px 10px;
cursor: pointer;
border-radius: 3px;
font-size: 13px;
}
.editor-toolbar button:hover {
background: var(--note-hover);
color: var(--accent);
}
.editor-toolbar button.active {
background: var(--accent);
color: #111;
font-weight: bold;
}
/* Layout editoru a náhledu */
.editor-wrap {
display: flex;
gap: 16px;
align-items: flex-start;
}
.editor-wrap textarea {
flex: 1 1 55%;
min-height: 250px;
}
.preview {
flex: 1 1 45%;
border: 1px solid var(--note-border);
background: var(--note-bg);
padding: 16px;
border-radius: 4px;
overflow: auto;
min-height: 250px;
max-height: 400px;
font-size: 0.95rem;
}
.hidden {
display: none;
}
/* Akce pod editorem */
.editor-actions {
margin: 15px 0;
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
#newNoteButton {
background: var(--accent);
color: #111;
font-weight: bold;
border: 1px solid transparent;
}
#newNoteButton:hover {
background: var(--accent-hover);
}
.save-status {
margin-left: auto;
font-size: 13px;
color: var(--accent);
font-weight: 500;
}
#searchTagInput {
width: 100%;
padding: 12px 16px;
margin-bottom: 12px;
font-size: 0.9rem;
font-weight: 600;
color: var(--text);
background: var(--note-bg);
border: 1px solid var(--note-border);
border-radius: 4px;
outline: none;
transition: border-color 0.2s;
}
#searchTagInput:focus {
border-color: var(--accent);
}
/* Seznam poznámek */
#notesContainer {
margin-top: 25px;
border-top: 1px solid var(--note-border);
padding-top: 20px;
display: flex;
flex-direction: column;
gap: 8px;
}
.note-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border: 1px solid var(--note-border);
border-radius: 6px;
background: var(--note-bg);
transition: transform 0.15s, border-color 0.15s;
}
.note-item:hover {
background: var(--note-hover);
border-color: rgba(197, 160, 89, 0.4);
}
.note-item.active {
background: var(--active-bg);
border-color: var(--active-border);
box-shadow: 0 0 10px rgba(197, 160, 89, 0.05);
}
.note-left {
flex: 1 1 auto;
padding-right: 15px;
cursor: pointer;
overflow: hidden;
}
.note-title {
font-weight: 600;
font-size: 1.05rem;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.note-preview {
font-size: 13px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.note-controls {
display: flex;
gap: 4px;
align-items: center;
}
.note-controls button {
background: transparent;
border: none;
padding: 6px 10px;
color: var(--text);
opacity: 0.6;
transition: opacity 0.2s, color 0.2s;
}
.note-controls button:hover {
background: var(--button-bg);
opacity: 1;
}
.note-controls button.delete:hover {
color: #ff6b6b;
}
.no-notes {
color: var(--muted);
font-style: italic;
padding: 15px;
text-align: center;
}
.notes-hint {
margin-top: 10px;
color: var(--muted);
font-size: 12px;
text-align: center;
}
/* Drag & Drop styly */
.note-item.drag-over {
border-style: dashed;
border-color: var(--accent);
}
.note-item.drag-after {
box-shadow: inset 0 -3px 0 0 var(--accent);
}
.note-item.dragging {
opacity: 0.4;
}
/* Modální okno */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--modal-overlay);
backdrop-filter: blur(2px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: var(--modal-bg);
padding: 24px;
border-radius: 8px;
width: 95%;
max-width: 800px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
position: relative;
border: 1px solid var(--note-border);
}
.modal h2 {
margin-bottom: 15px;
font-size: 1.4rem;
}
.modal .modal-close {
position: absolute;
right: 16px;
top: 16px;
border: none;
background: transparent;
font-size: 18px;
color: var(--muted);
cursor: pointer;
}
.modal .modal-close:hover {
color: var(--text);
}
.modal-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 10px;
}
#modalSaveBtn {
background: var(--accent);
color: #111;
font-weight: bold;
}
#modalSaveBtn:hover {
background: var(--accent-hover);
}
/* Styly pro renderovaný Markdown */
.preview h1, .preview h2, .preview h3 {
margin: 14px 0 8px 0;
color: var(--text);
}
.preview p {
margin-bottom: 10px;
}
.preview pre {
background: rgba(0, 0, 0, 0.15);
padding: 12px;
border-radius: 4px;
overflow: auto;
border: 1px solid var(--note-border);
margin: 10px 0;
}
body:not(.dark) .preview pre {
background: #f0ede6;
}
.preview code {
font-family: monospace;
background: rgba(197, 160, 89, 0.15);
padding: 2px 5px;
border-radius: 3px;
font-size: 0.9em;
}
.preview ul, .preview ol {
margin-left: 20px;
margin-bottom: 10px;
}
.preview blockquote {
border-left: 3px solid var(--accent);
padding-left: 12px;
font-style: italic;
color: var(--muted);
margin: 12px 0;
}
.preview table {
width: 100%;
border-collapse: collapse;
margin: 15px 0;
}
.preview th, .preview td {
border: 1px solid var(--note-border);
padding: 8px 12px;
text-align: left;
}
.preview th {
background: var(--button-bg);
}
/* Responzivita */
@media (max-width: 800px) {
body {
padding: 20px 10px;
}
.editor-wrap {
flex-direction: column;
}
.preview {
width: 100%;
min-height: 150px;
}
}
#links {
color: var(--accent);
}
#lineHR {
border: none;
border-top: 1px solid var(--accent);
}
footer {
margin-top: 26px;
text-align: center;
font-size: 13px;
color: var(--muted);
}
/* Homepage card*/
.new-name {
color: var(--accent-bronze);
font-weight: 700;
}
.philosophy {
font-style: italic;
border-left: 2px solid var(--accent-bronze);
padding-left: 15px;
text-align: left;
margin: 30px 0;
font-size: 0.95rem;
}
.btnHomePage {
display: inline-block;
background-color: var(--accent-bronze);
color: #e0961f;
text-decoration: none;
padding: 14px 28px;
border-radius: 4px;
font-weight: bold;
font-size: 1.1rem;
transition: background-color 0.2s ease, transform 0.1s ease;
box-shadow: 0 8px 16px rgba(197, 160, 89, 0.2);
}
.btnHomePage:hover {
background-color: var(--accent-hover);
transform: translateY(-1px);
}
.btnHomePage:active {
transform: translateY(1px);
}
ul {
list-style-type: none;
padding-left: 0;
}