336 lines
7.9 KiB
CSS
336 lines
7.9 KiB
CSS
|
|
/* --- ПЕРЕМЕННЫЕ ТЕМ --- */
|
||
|
|
.dark-theme {
|
||
|
|
--bg-app: #bcbcbc;
|
||
|
|
--bg-editor: #1e1e1e;
|
||
|
|
--text-editor: #d4d4d4;
|
||
|
|
--bg-toolbar: #bcbcbc;
|
||
|
|
--bg-btns: #7a7a7a;
|
||
|
|
--text-footer: #555555;
|
||
|
|
--title-color: #333333;
|
||
|
|
--modal-bg: #f0f0f0;
|
||
|
|
--modal-text: #333333;
|
||
|
|
--hint-color: #666666;
|
||
|
|
}
|
||
|
|
|
||
|
|
.light-theme {
|
||
|
|
--bg-app: #e0e0e0;
|
||
|
|
--bg-editor: #ffffff;
|
||
|
|
--text-editor: #1a1a1a;
|
||
|
|
--bg-toolbar: #e0e0e0;
|
||
|
|
--bg-btns: #bdbdbd;
|
||
|
|
--text-footer: #777777;
|
||
|
|
--title-color: #444444;
|
||
|
|
--modal-bg: #ffffff;
|
||
|
|
--modal-text: #222222;
|
||
|
|
--hint-color: #888888;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* --- ОБЩИЕ СТИЛИ --- */
|
||
|
|
* { box-sizing: border-box; }
|
||
|
|
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
padding: 10px; /* Отступ для тени окна */
|
||
|
|
font-family: 'Segoe UI', Tahoma, sans-serif;
|
||
|
|
background: transparent;
|
||
|
|
overflow: hidden;
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.app-container {
|
||
|
|
background: var(--bg-app);
|
||
|
|
border-radius: 4px;
|
||
|
|
height: calc(100vh - 20px);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
border: 1px solid #999;
|
||
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.4);
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* --- TITLE BAR (WINDOWS STYLE) --- */
|
||
|
|
.title-bar {
|
||
|
|
height: 32px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
background: var(--bg-app);
|
||
|
|
color: var(--title-color);
|
||
|
|
font-size: 11px;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.drag-region {
|
||
|
|
flex-grow: 1;
|
||
|
|
-webkit-app-region: drag;
|
||
|
|
text-align: center;
|
||
|
|
height: 100%;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
letter-spacing: 1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.window-controls {
|
||
|
|
display: flex;
|
||
|
|
-webkit-app-region: no-drag;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.win-btn {
|
||
|
|
width: 46px;
|
||
|
|
height: 100%;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
transition: background 0.1s;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.win-btn:hover { background: rgba(0,0,0,0.1); }
|
||
|
|
.win-btn.close:hover { background: #e81123; color: white; }
|
||
|
|
|
||
|
|
/* --- TOOLBARS --- */
|
||
|
|
.top-toolbar {
|
||
|
|
padding: 8px 12px;
|
||
|
|
display: flex;
|
||
|
|
gap: 6px;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
display: flex;
|
||
|
|
flex-grow: 1;
|
||
|
|
background: var(--bg-btns);
|
||
|
|
border-radius: 3px;
|
||
|
|
overflow: hidden;
|
||
|
|
border: 1px solid rgba(0,0,0,0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
#note-search {
|
||
|
|
width: 90px;
|
||
|
|
background: rgba(255,255,255,0.1);
|
||
|
|
border: none;
|
||
|
|
color: white;
|
||
|
|
padding: 4px 8px;
|
||
|
|
font-size: 11px;
|
||
|
|
border-right: 1px solid rgba(0,0,0,0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
#note-search::placeholder { color: rgba(255,255,255,0.6); }
|
||
|
|
|
||
|
|
#file-list {
|
||
|
|
flex-grow: 1;
|
||
|
|
background: transparent;
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
padding: 4px;
|
||
|
|
outline: none;
|
||
|
|
font-size: 12px;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Фикс белого на белом в списке */
|
||
|
|
#file-list option {
|
||
|
|
background-color: #4a4a4a !important;
|
||
|
|
color: white !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.light-theme #file-list option {
|
||
|
|
background-color: #ffffff !important;
|
||
|
|
color: #333333 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tool-btn {
|
||
|
|
background: var(--bg-btns);
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
padding: 5px 12px;
|
||
|
|
border-radius: 3px;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 14px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tool-btn:hover { background: rgba(0,0,0,0.4); }
|
||
|
|
.tool-btn.active { background: #2980b9; }
|
||
|
|
|
||
|
|
.md-toolbar {
|
||
|
|
padding: 5px 15px;
|
||
|
|
display: flex;
|
||
|
|
gap: 12px;
|
||
|
|
align-items: center;
|
||
|
|
border-bottom: 1px solid rgba(0,0,0,0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.md-toolbar button {
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
color: #666;
|
||
|
|
cursor: pointer;
|
||
|
|
font-weight: bold;
|
||
|
|
font-size: 14px;
|
||
|
|
padding: 2px 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.md-toolbar button:hover { color: #000; }
|
||
|
|
.separator { color: rgba(0,0,0,0.2); }
|
||
|
|
.spacer { flex-grow: 1; }
|
||
|
|
|
||
|
|
/* --- EDITOR & PREVIEW --- */
|
||
|
|
.editor-view {
|
||
|
|
flex-grow: 1;
|
||
|
|
display: flex;
|
||
|
|
position: relative;
|
||
|
|
padding: 10px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
#editor, #preview {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
border-radius: 2px;
|
||
|
|
padding: 20px;
|
||
|
|
font-size: 14px;
|
||
|
|
line-height: 1.6;
|
||
|
|
overflow-y: auto;
|
||
|
|
border: 1px solid rgba(0,0,0,0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
#editor {
|
||
|
|
background: var(--bg-editor);
|
||
|
|
color: var(--text-editor);
|
||
|
|
resize: none;
|
||
|
|
outline: none;
|
||
|
|
font-family: 'Consolas', 'Courier New', monospace;
|
||
|
|
display: block;
|
||
|
|
user-select: text;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* --- MARKDOWN PREVIEW STYLES --- */
|
||
|
|
.markdown-body {
|
||
|
|
background: var(--bg-editor);
|
||
|
|
color: var(--text-editor);
|
||
|
|
user-select: text;
|
||
|
|
}
|
||
|
|
|
||
|
|
.markdown-body h1, .markdown-body h2 {
|
||
|
|
border-bottom: 1px solid rgba(128,128,128,0.2);
|
||
|
|
padding-bottom: 5px;
|
||
|
|
margin-top: 20px;
|
||
|
|
}
|
||
|
|
.markdown-body code {
|
||
|
|
background: rgba(128,128,128,0.2);
|
||
|
|
padding: 2px 4px;
|
||
|
|
border-radius: 3px;
|
||
|
|
font-family: monospace;
|
||
|
|
}
|
||
|
|
.markdown-body pre {
|
||
|
|
background: rgba(0,0,0,0.2);
|
||
|
|
padding: 15px;
|
||
|
|
border-radius: 5px;
|
||
|
|
overflow-x: auto;
|
||
|
|
}
|
||
|
|
.markdown-body blockquote {
|
||
|
|
border-left: 4px solid #7a7a7a;
|
||
|
|
padding-left: 15px;
|
||
|
|
color: #888;
|
||
|
|
font-style: italic;
|
||
|
|
margin: 15px 0;
|
||
|
|
}
|
||
|
|
.markdown-body img { max-width: 100%; border-radius: 4px; }
|
||
|
|
|
||
|
|
/* --- MODALS --- */
|
||
|
|
.modal {
|
||
|
|
position: absolute;
|
||
|
|
top: 0; left: 0; width: 100%; height: 100%;
|
||
|
|
background: rgba(0,0,0,0.6);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 5000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-content {
|
||
|
|
background: var(--modal-bg);
|
||
|
|
color: var(--modal-text);
|
||
|
|
padding: 25px;
|
||
|
|
border-radius: 6px;
|
||
|
|
width: 85%;
|
||
|
|
max-width: 450px;
|
||
|
|
box-shadow: 0 15px 40px rgba(0,0,0,0.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-row { display: flex; gap: 8px; margin: 15px 0; }
|
||
|
|
.modal-row input { flex-grow: 1; padding: 8px; border: 1px solid #ccc; border-radius: 3px; }
|
||
|
|
|
||
|
|
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
|
||
|
|
|
||
|
|
/* --- SETTINGS PANEL --- */
|
||
|
|
.settings-panel {
|
||
|
|
position: absolute;
|
||
|
|
top: 40px; left: 15px; right: 15px; bottom: 35px;
|
||
|
|
background: var(--modal-bg);
|
||
|
|
color: var(--modal-text);
|
||
|
|
padding: 20px;
|
||
|
|
border-radius: 4px;
|
||
|
|
z-index: 1000;
|
||
|
|
overflow-y: auto;
|
||
|
|
border: 1px solid #999;
|
||
|
|
box-shadow: 0 0 50px rgba(0,0,0,0.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.setting-group { margin-bottom: 15px; }
|
||
|
|
.setting-group label { display: block; font-size: 11px; font-weight: bold; color: #666; margin-bottom: 4px; text-transform: uppercase; }
|
||
|
|
.setting-group input, .setting-group select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 2px; }
|
||
|
|
|
||
|
|
.hint { display: block; font-size: 10px; color: var(--hint-color); margin-top: 3px; font-style: italic; line-height: 1.2; }
|
||
|
|
|
||
|
|
.ai-box { background: rgba(0,0,0,0.04); padding: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.1); margin-top: 10px; }
|
||
|
|
.row { display: flex; gap: 6px; margin-top: 6px; }
|
||
|
|
.row select { flex-grow: 1; }
|
||
|
|
|
||
|
|
.save-btn { background: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 3px; cursor: pointer; font-weight: bold; width: 100%; margin-top: 10px; }
|
||
|
|
.save-btn:hover { background: #2ecc71; }
|
||
|
|
|
||
|
|
.small-btn { background: #666; color: white; border: none; padding: 0 12px; border-radius: 2px; cursor: pointer; font-size: 11px; }
|
||
|
|
|
||
|
|
/* --- CONTEXT MENU --- */
|
||
|
|
.context-menu {
|
||
|
|
position: absolute;
|
||
|
|
background: #fdfdfd;
|
||
|
|
color: #333;
|
||
|
|
border: 1px solid #aaa;
|
||
|
|
border-radius: 3px;
|
||
|
|
width: 180px;
|
||
|
|
z-index: 9999;
|
||
|
|
box-shadow: 3px 3px 12px rgba(0,0,0,0.2);
|
||
|
|
padding: 4px 0;
|
||
|
|
font-size: 13px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.menu-item { padding: 8px 15px; cursor: pointer; }
|
||
|
|
.menu-item:hover { background: #2980b9; color: white; }
|
||
|
|
hr { border: 0; border-top: 1px solid rgba(0,0,0,0.1); margin: 4px 0; }
|
||
|
|
|
||
|
|
/* --- FOOTER --- */
|
||
|
|
.footer {
|
||
|
|
height: 28px;
|
||
|
|
padding: 0 15px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
font-size: 10px;
|
||
|
|
color: var(--text-footer);
|
||
|
|
background: rgba(0,0,0,0.03);
|
||
|
|
border-top: 1px solid rgba(0,0,0,0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.hidden { display: none !important; }
|
||
|
|
|
||
|
|
/* Стили для About */
|
||
|
|
.about-box { text-align: center; }
|
||
|
|
.about-info { background: rgba(0,0,0,0.05); padding: 10px; border-radius: 4px; margin: 15px 0; font-size: 13px; }
|
||
|
|
.github-link { color: #2980b9; text-decoration: none; font-weight: bold; }
|
||
|
|
.github-link:hover { text-decoration: underline; }
|