/
meamka
/
HedgehogJournal
Обзор
Документация
Войти
/
meamka
/
HedgehogJournal
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
data/style.css
479 строк
9 KB
Andrey Maksimov
Add Markdown support and handle new-record event
16 янв 2026, 15:26
16 янв 2026, 15:26
808bdb2
Код
Авторство
О чём код?
/* Hedgehog Journal - Стили приложения */ /* Основные стили */ /*window.background { background: rgba(0, 0, 0, 0); }*/ /* Стили редактора */ .entry-editor { font-family: "Noto Sans", sans-serif; font-size: 14px; line-height: 1.4; } /* Заголовок записи */ .title-entry { font-size: 1.5em; font-weight: bold; background-color: transparent; padding: 12px 0; } /* Счётчик слов */ .word-count { font-size: 0.8em; color: rgba(0, 0, 0, 0.6); } /* Панель форматирования */ .format-toolbar { background: rgba(0, 0, 0, 0.03); border-bottom: 1px solid rgba(0, 0, 0, 0.1); } window.dark .format-toolbar { background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.1); } /* Кнопки форматирования */ .format-button { min-width: 36px; min-height: 36px; } .format-button:checked { background: rgba(0, 0, 0, 0.1); } window.dark .format-button:checked { background: rgba(255, 255, 255, 0.1); } /* Индикатор статуса */ .status-indicator { font-size: 0.85em; color: rgba(0, 0, 0, 0.5); } .status-indicator.saving { color: rgba(0, 122, 255, 1); } .status-indicator.saved { color: rgba(52, 199, 89, 1); } window.dark .status-indicator { color: rgba(255, 255, 255, 0.5); } window.dark .status-indicator.saving { color: rgba(10, 132, 255, 1); } window.dark .status-indicator.saved { color: rgba(48, 209, 88, 1); } /* Кнопки Undo/Redo */ .undo-redo-button { min-width: 32px; min-height: 32px; } .undo-redo-button:disabled { opacity: 0.5; } .dots { background: transparent; background-image: radial-gradient( var(--headerbar-shade-color) 1px, transparent 0 ); background-size: 16px 16px; background-position: -19px -19px; } /* Текстовый буфер */ textview { caret-color: var(--theme-fg-color); border-radius: var(--window-radius); } /*textview selection { background: var(--theme-selected-bg-color); color: var(--theme-selected-fg-color); }*/ /* Текстовое поле ввода */ .title-entry { font-size: 1.25em; font-weight: 600; } /* Стили для тёмной темы */ window.dark .word-count { color: rgba(255, 255, 255, 0.6); } /* Индикатор зашифрованной записи */ .encrypted-indicator { color: rgba(52, 199, 89, 1); } /* Пустые состояния */ .empty-state-title { font-size: 1.5em; font-weight: bold; } .empty-state-description { color: rgba(0, 0, 0, 0.6); font-size: 0.9em; } window.dark .empty-state-description { color: rgba(255, 255, 255, 0.6); } /* Стили списка записей */ .entry-row { padding: 8px 12px; } .entry-row:hover { background: rgba(0, 0, 0, 0.05); } window.dark .entry-row:hover { background: rgba(255, 255, 255, 0.05); } /* Форматирование текста в редакторе */ textview text bold { font-weight: bold; } textview text italic { font-style: italic; } textview text underline { text-decoration: underline; } /* Список */ textview text list-item { padding-left: 1.5em; } /* Успешное действие */ .success { color: rgba(52, 199, 89, 1); } window.dark .success { color: rgba(48, 209, 88, 1); } /* Ошибка */ .error { color: rgba(255, 59, 48, 1); } window.dark .error { color: rgba(255, 69, 58, 1); } /* Markdown стили в редакторе */ .markdown-heading-1 { font-size: 1.8em; font-weight: bold; } .markdown-heading-2 { font-size: 1.5em; font-weight: bold; } .markdown-heading-3 { font-size: 1.3em; font-weight: bold; } .markdown-bold { font-weight: bold; } .markdown-italic { font-style: italic; } .markdown-code { font-family: "Monospace", "Noto Sans Mono", monospace; background: rgba(0, 0, 0, 0.05); padding: 2px 4px; border-radius: 4px; } window.dark .markdown-code { background: rgba(255, 255, 255, 0.1); } /* Скроллбар */ /*scrollbar { -gtk-scrollbar-width: 8px; -gtk-scrollbar-radius: 4px; } scrollbar slider { min-width: 8px; min-height: 8px; background: rgba(0, 0, 0, 0.2); border-radius: 4px; } scrollbar slider:hover { background: rgba(0, 0, 0, 0.3); } window.dark scrollbar slider { background: rgba(255, 255, 255, 0.2); } window.dark scrollbar slider:hover { background: rgba(255, 255, 255, 0.3); }*/ /* ============================================ MARKDOWN STYLES - Основное форматирование ============================================ */ /* Базовое форматирование текста */ textview text bold { font-weight: 700; } textview text italic { font-style: italic; } textview text underline { text-decoration: underline; } textview text strikethrough { text-decoration: line-through; } /* ============================================ HEADINGS - Заголовки ============================================ */ textview text.heading_1 { font-size: 2em; font-weight: 700; color: #1a1a1a; margin-top: 16px; margin-bottom: 8px; } textview text.heading_2 { font-size: 1.5em; font-weight: 600; color: #2d2d2d; margin-top: 14px; margin-bottom: 6px; } textview text.heading_3 { font-size: 1.25em; font-weight: 600; color: #404040; margin-top: 12px; margin-bottom: 4px; } textview text.heading_4, textview text.heading_5, textview text.heading_6 { font-size: 1.1em; font-weight: 600; color: #505050; margin-top: 10px; margin-bottom: 4px; } window.dark textview text.heading_1 { color: #f0f0f0; } window.dark textview text.heading_2 { color: #e0e0e0; } window.dark textview text.heading_3 { color: #d0d0d0; } window.dark textview text.heading_4, window.dark textview text.heading_5, window.dark textview text.heading_6 { color: #c0c0c0; } /* ============================================ CODE - Код ============================================ */ /* Inline code */ textview text.code { font-family: "JetBrains Mono", "Fira Code", "Monaco", "Consolas", monospace; font-size: 0.9em; background-color: #f5f5f5; color: #d63384; padding: 2px 6px; border-radius: 4px; border: 1px solid #e0e0e0; } window.dark textview text.code { background-color: #2d2d2d; color: #ff79c6; border-color: #404040; } /* Code blocks */ textview text.codeblock { font-family: "JetBrains Mono", "Fira Code", "Monaco", "Consolas", monospace; font-size: 0.9em; background-color: #f8f8f8; color: #24292e; padding: 12px 16px; border-radius: 6px; border-left: 3px solid #3584e4; margin-top: 8px; margin-bottom: 8px; margin-left: 12px; } window.dark textview text.codeblock { background-color: #1e1e1e; color: #e6e6e6; border-left-color: #3584e4; } /* ============================================ QUOTES - Цитаты ============================================ */ textview text.quote { font-style: italic; color: #6a737d; background-color: transparent; border-left: 3px solid #dfe2e5; padding-left: 12px; margin-left: 8px; } window.dark textview text.quote { color: #8b949e; border-left-color: #30363d; } /* ============================================ LINKS - Ссылки ============================================ */ textview text.link { color: #0366d6; text-decoration: underline; text-decoration-color: #0366d6; } textview text.link:hover { color: #0256b9; } window.dark textview text.link { color: #58a6ff; text-decoration-color: #58a6ff; } window.dark textview text.link:hover { color: #79b8ff; } /* ============================================ LISTS - Списки ============================================ */ textview text.list_item { margin-left: 24px; /* text-indent: -12px; */ } /* textview text.list_item::before { */ /* content: "•"; */ /* margin-right: 8px; */ /* color: #6a737d; */ /* } */ /* Checked list item */ /* textview text.list_item[checkbox="checked"] { */ /* text-decoration: line-through; */ /* color: #6a737d; */ /* } */ /* ============================================ HORIZONTAL RULE - Разделитель ============================================ */ textview text.hr { background-color: #e1e4e8; min-height: 1px; margin-top: 12px; margin-bottom: 12px; } window.dark textview text.hr { background-color: #30363d; } /* ============================================ IMAGES - Изображения ============================================ */ textview text.image { color: #6a737d; font-style: italic; } /* textview text.image::before { */ /* content: "🖼️ "; */ /* } */ /* ============================================ STRIKETHROUGH - Зачёркнутый ============================================ */ textview text.strikethrough { text-decoration: line-through; color: #6a737d; } window.dark textview text.strikethrough { color: #8b949e; } /* ============================================ UI ELEMENTS - Элементы интерфейса ============================================ */ /* Markdown switch in toolbar */ .markdown-toggle { font-size: 0.85em; }