/
cto_ego
/
website
Обзор
Документация
Войти
/
cto_ego
/
website
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
styles.css
351 строка
8 KB
cto_ego
Create: index.html, index.js, styles.css, bugs.md, changelog.md, handbook.html, img_1.png, config.js, draw.js, formula.js, logger.js, mathf.js, matrixControllerState.js, matrixData.js, save.js, ui.js, update.js
22 июн 2026, 16:58
Верифицирован
22 июн 2026, 16:58
da9567f
Код
Авторство
О чём код?
body{ margin:0; padding:0; background-color: #222; color: #eee; overflow:hidden; overflow-y:hidden; /*для вертикального*/ overflow-x:hidden; /*для горизонтального*/ display: grid; } .toolbar{ position: fixed; top: 0; left: 0; right: 0; background-color: #222; border-bottom: 1px solid #ccc; } .toolbar a{ color: #00f798; display: inline-block; padding: 10px; text-decoration: none; font-family: Verdana; text-align: center; transition: color 0.2s ease; } .toolbar a:hover{color: #04bdebab;} .content{ color: #00f798; margin-top: 50px; padding: 10px; text-align: center; position: relative; cursor: pointer; transition: color 0.3s ease; } .content::after { content: attr(data-text); /* берём текст из атрибута */ position: absolute; top: 0; left: 0; opacity: 0; color: #2196F3; transition: opacity 0.4s ease-in-out; } .content:hover::after { opacity: 1; } .content:hover { color: transparent; /* скрываем исходный текст */ } .floating-window { position: fixed; bottom: 20px; right: 20px; width: 80%; height: 60%; background: rgb(0, 17, 38, 0.91); border: 1px solid #292121; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; top: 50%; /* centering the block */ left: 50%; transform: translate(-50%, -50%); /* size limitation */ max-width: 90vw; /* максимум 90% ширины экрана */ min-width: 300px; /* минимум 300 px */ width: 80%; /* базовая ширина */ max-height: 80vh; /* максимум 80% высоты экрана */ min-height: 200px; /* минимум 200 px */ overflow-y: auto; /* скролл, если содержимое не помещается */ display: flex; flex-direction: column; display: none; /* потом покажем */ } .floating-window-header { text-align: center; background: rgb(0, 23, 51); color: white; padding: 10px; border-radius: 8px 8px 0 0; position: sticky; top: 0; z-index: 10; font-style: italic; font-family: "Courier New"; } .floating-window-content { padding: 15px; color: #222; overflow-y: auto; flex: 1; height: 100%; } .close-btn { float: right; cursor: pointer; } .setWin { color:#eee; } /* Improve .setWin appearance while staying consistent with dark matrix theme */ /* Да, я сгенерировал тему для настроек. Имею полное право.*/ .setWin { color: #0f0; font-family: 'Courier New', monospace; text-shadow: 0 0 2px rgba(0, 255, 0, 0.3); } .setWin h2 { font-size: 1.2rem; margin: 1rem 0 0.5rem 0; padding-bottom: 0.25rem; border-bottom: 1px solid #0f0; display: inline-block; letter-spacing: 2px; color: #0f0; } .setWin hr { border: none; height: 1px; background: linear-gradient(90deg, #0f0, transparent); margin: 1rem 0; } .setWin form { display: flex; flex-direction: column; gap: 0.5rem; } .setWin p { margin: 0.25rem 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } /* Style radio buttons and checkboxes to match matrix theme */ .setWin input[type="radio"], .setWin input[type="checkbox"] { accent-color: #0a0; width: 1rem; height: 1rem; margin: 0; cursor: pointer; } /* Style text inputs */ .setWin input[type="text"] { background: rgba(0, 20, 0, 0.8); border: 1px solid #0a0; color: #0f0; padding: 0.3rem 0.5rem; font-family: 'Courier New', monospace; font-size: 0.85rem; border-radius: 3px; outline: none; transition: all 0.2s ease; } .setWin input[type="text"]:focus { border-color: #0f0; box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); background: rgba(0, 30, 0, 0.9); } /* Style buttons inside settings */ .setWin button { background: rgba(0, 20, 0, 0.8); border: 1px solid #0a0; color: #0f0; padding: 0.3rem 0.8rem; font-family: 'Courier New', monospace; font-size: 0.85rem; cursor: pointer; border-radius: 3px; transition: all 0.2s ease; } .setWin input[type="file"] { width: 100%; max-width: 280px; background: rgba(0, 20, 0, 0.8); border: 1px solid #0a0; border-radius: 3px; color: #0f0; font-family: 'Courier New', monospace; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; } .setWin input[type="file"]::file-selector-button, .setWin input[type="file"]::-webkit-file-upload-button { background: rgba(0, 20, 0, 0.9); border: 1px solid #0a0; border-right: none; color: #0f0; padding: 0.3rem 0.8rem; font-family: 'Courier New', monospace; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; margin-right: 0.75rem; } .setWin input[type="file"]::file-selector-button:hover, .setWin input[type="file"]::-webkit-file-upload-button:hover { background: #0a0; color: #000; box-shadow: 0 0 5px #0f0; } .setWin button:hover { background: #0a0; color: #000; box-shadow: 0 0 5px #0f0; } /* Style details/summary (collapsible sections) */ .setWin details { margin: 0.25rem 0 0.25rem 1rem; border-left: 1px dashed #0a0; padding-left: 0.75rem; } .setWin summary { cursor: pointer; color: #0f0; opacity: 0.8; transition: opacity 0.2s; margin-left: -0.5rem; } .setWin summary:hover { opacity: 1; text-shadow: 0 0 2px #0f0; } /* Nested details spacing */ .setWin details details { margin-left: 1rem; } /* Radio/checkbox groups spacing */ .setWin p details p { margin-left: 0.5rem; } /* Better visual grouping */ .setWin > form > p, .setWin > form > details { background: rgba(0, 15, 0, 0.2); padding: 0.3rem 0.5rem; border-radius: 4px; } /* Make placeholders visible */ .setWin input::placeholder { color: #3a3; font-size: 0.75rem; opacity: 0.7; } /* Scrollbar for settings area if needed */ .setWin::-webkit-scrollbar { width: 5px; } .setWin::-webkit-scrollbar-track { background: #0a0a0a; } .setWin::-webkit-scrollbar-thumb { background: #0a0; border-radius: 3px; } .colors span { display: inline-block; width: 5%; height: 10px; margin: 0; padding: 0; } .css-tabs { position: relative; font-family: 'Courier New', monospace; width: 100%; margin-top: 20px; } /* Скрываем радиокнопки */ .css-tabs-radio { display: none; } /* Стили для заголовков вкладок */ .tab-label { display: inline-block; padding: 8px 16px; background: rgba(0, 20, 0, 0.6); border: 1px solid #0a0; border-bottom: none; cursor: pointer; position: relative; bottom: -1px; font-family: 'Courier New', monospace; font-size: 14px; color: #0f0; transition: all 0.2s ease; } .tab-label:hover { background: rgba(0, 255, 0, 0.2); text-shadow: 0 0 3px #0f0; } /* Стили для контента вкладок */ .tab-pane { display: none; border: 1px solid #0a0; padding: 15px; background: rgba(0, 10, 0, 0.4); border-radius: 0 4px 4px 4px; } /* Показываем активную вкладку */ .tab-pane.active { display: block; } /* Активная кнопка вкладки */ .tab-label.active { background: rgba(0, 30, 0, 0.9); color: #0f0; text-shadow: 0 0 5px #0f0; border-bottom: 1px solid rgba(0, 30, 0, 0.9); }