1387 lines
28 KiB
CSS
Executable File
1387 lines
28 KiB
CSS
Executable File
/* ============================================
|
||
БАЗА
|
||
============================================ */
|
||
:root {
|
||
--bg-primary: #f8f9fa;
|
||
--bg-secondary: #ffffff;
|
||
--bg-header: linear-gradient(135deg, #2d3436, #636e72);
|
||
--text-primary: #2d3436;
|
||
--text-secondary: #636e72;
|
||
--text-muted: #b2bec3;
|
||
--border-color: #dfe6e9;
|
||
--border-light: #f1f2f6;
|
||
--accent-blue: #0984e3;
|
||
--accent-orange: #e17055;
|
||
--accent-green: #00b894;
|
||
--hover-bg: #f1f2f6;
|
||
--shadow: 0 4px 12px rgba(0,0,0,0.04);
|
||
--radius: 12px;
|
||
}
|
||
|
||
.dark-theme {
|
||
--bg-primary: #1e1e1e;
|
||
--bg-secondary: #2d2d2d;
|
||
--bg-header: linear-gradient(135deg, #1e1e1e, #2d2d2d);
|
||
--text-primary: #e0e0e0;
|
||
--text-secondary: #b0b0b0;
|
||
--text-muted: #6c6c6c;
|
||
--border-color: #3d3d3d;
|
||
--border-light: #333333;
|
||
--accent-blue: #74b9ff;
|
||
--accent-orange: #fdcb6e;
|
||
--accent-green: #55efc4;
|
||
--hover-bg: #3d3d3d;
|
||
--shadow: 0 4px 12px rgba(0,0,0,0.2);
|
||
--radius: 12px;
|
||
}
|
||
|
||
/* ============================================
|
||
ТЕЛО
|
||
============================================ */
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
background: var(--bg-primary);
|
||
color: var(--text-primary);
|
||
line-height: 1.6;
|
||
min-height: 100vh;
|
||
transition: background 0.25s ease, color 0.25s ease;
|
||
}
|
||
|
||
body.loaded * {
|
||
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
||
}
|
||
|
||
/* ============================================
|
||
КОНТЕЙНЕР
|
||
============================================ */
|
||
.container {
|
||
max-width: 100%;
|
||
margin: 0 auto;
|
||
background: var(--bg-secondary);
|
||
min-width: 320px;
|
||
min-height: 100vh;
|
||
box-shadow: var(--shadow);
|
||
transition: background 0.25s ease, box-shadow 0.25s ease;
|
||
}
|
||
|
||
@media (min-width: 768px) {
|
||
.container {
|
||
max-width: 1100px;
|
||
margin: 16px auto;
|
||
min-height: auto;
|
||
border-radius: var(--radius);
|
||
overflow: hidden;
|
||
box-shadow: var(--shadow);
|
||
}
|
||
}
|
||
|
||
/* ============================================
|
||
ШАПКА
|
||
============================================ */
|
||
.header {
|
||
background: var(--bg-header);
|
||
color: white;
|
||
padding: 2rem 1.5rem;
|
||
text-align: center;
|
||
position: relative;
|
||
}
|
||
|
||
.header h1 {
|
||
font-size: 2rem;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
letter-spacing: -0.5px;
|
||
}
|
||
|
||
.header .subtitle {
|
||
opacity: 0.85;
|
||
font-size: 1.05rem;
|
||
margin-top: 0.25rem;
|
||
font-weight: 400;
|
||
}
|
||
|
||
/* ============================================
|
||
ОПИСАНИЕ (НЕ УВЕЛИЧИВАЕМ)
|
||
============================================ */
|
||
.site-description {
|
||
text-align: center;
|
||
padding: 0.75rem 1.5rem;
|
||
font-size: 1rem;
|
||
color: var(--text-secondary);
|
||
border-bottom: 1px solid var(--border-color);
|
||
background: var(--bg-primary);
|
||
font-weight: 400;
|
||
letter-spacing: 0.2px;
|
||
}
|
||
|
||
/* ============================================
|
||
ХЛЕБНЫЕ КРОШКИ
|
||
============================================ */
|
||
.breadcrumb {
|
||
background: var(--bg-primary);
|
||
padding: 0.6rem 1.25rem;
|
||
border-bottom: 1px solid var(--border-color);
|
||
font-size: 0.85rem;
|
||
overflow-x: auto;
|
||
white-space: nowrap;
|
||
-webkit-overflow-scrolling: touch;
|
||
color: var(--text-secondary);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.3rem;
|
||
flex-wrap: nowrap;
|
||
}
|
||
|
||
.breadcrumb a {
|
||
color: var(--accent-blue);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
transition: color 0.15s ease;
|
||
padding: 0.1rem 0.2rem;
|
||
}
|
||
|
||
.breadcrumb a:hover {
|
||
color: var(--accent-orange);
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.breadcrumb .separator {
|
||
color: var(--text-muted);
|
||
user-select: none;
|
||
font-weight: 300;
|
||
margin: 0 0.1rem;
|
||
}
|
||
|
||
/* ============================================
|
||
ТУЛБАР
|
||
============================================ */
|
||
.toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 0.5rem 1rem;
|
||
padding: 0.6rem 1.25rem;
|
||
background: var(--bg-secondary);
|
||
border-bottom: 1px solid var(--border-light);
|
||
transition: background 0.2s ease;
|
||
}
|
||
|
||
/* Поиск */
|
||
.search-box {
|
||
flex: 1 1 220px;
|
||
min-width: 150px;
|
||
}
|
||
|
||
.search-box form {
|
||
display: flex;
|
||
gap: 0.4rem;
|
||
align-items: center;
|
||
}
|
||
|
||
.search-box input[type="text"] {
|
||
flex: 1;
|
||
padding: 0.5rem 1rem;
|
||
border: 1.5px solid var(--border-color);
|
||
border-radius: 50px;
|
||
background: var(--bg-primary);
|
||
color: var(--text-primary);
|
||
font-size: 0.85rem;
|
||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||
outline: none;
|
||
min-width: 80px;
|
||
height: 38px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.search-box input[type="text"]:focus {
|
||
border-color: var(--accent-blue);
|
||
box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.12);
|
||
}
|
||
|
||
.search-box button {
|
||
padding: 0 1.2rem;
|
||
background: var(--accent-blue);
|
||
color: white;
|
||
border: none;
|
||
border-radius: 50px;
|
||
cursor: pointer;
|
||
font-weight: 600;
|
||
font-size: 0.85rem;
|
||
transition: background 0.2s ease, transform 0.15s ease;
|
||
white-space: nowrap;
|
||
height: 38px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.search-box button:hover {
|
||
background: var(--accent-orange);
|
||
transform: scale(1.02);
|
||
}
|
||
|
||
/* Группы настроек */
|
||
.settings-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.25rem;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.settings-label {
|
||
color: var(--text-muted);
|
||
font-weight: 500;
|
||
font-size: 0.7rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.3px;
|
||
margin-right: 0.15rem;
|
||
}
|
||
|
||
/* Разделитель между группами */
|
||
.settings-divider {
|
||
width: 1px;
|
||
height: 30px;
|
||
background: var(--border-color);
|
||
margin: 0 0.25rem;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.settings-divider {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* Кнопки вида и сортировки */
|
||
.view-btn,
|
||
.sort-btn {
|
||
padding: 0 0.9rem;
|
||
background: transparent;
|
||
border: 1.5px solid var(--border-color);
|
||
border-radius: 50px;
|
||
color: var(--text-secondary);
|
||
font-size: 0.78rem;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
font-weight: 500;
|
||
text-decoration: none;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 38px;
|
||
line-height: 1;
|
||
gap: 0.2rem;
|
||
box-sizing: border-box;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.view-btn:hover,
|
||
.sort-btn:hover {
|
||
background: var(--hover-bg);
|
||
border-color: var(--accent-blue);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.view-btn.active,
|
||
.sort-btn.active {
|
||
background: var(--accent-blue);
|
||
color: white !important;
|
||
border-color: var(--accent-blue);
|
||
}
|
||
|
||
.view-btn .icon,
|
||
.sort-btn .icon {
|
||
font-size: 0.85rem;
|
||
line-height: 1;
|
||
}
|
||
|
||
/* Скрываем старый settings-row */
|
||
.settings-row {
|
||
display: none !important;
|
||
}
|
||
|
||
/* ============================================
|
||
СПИСОК ФАЙЛОВ
|
||
============================================ */
|
||
ul {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
|
||
li {
|
||
padding: 0.6rem 1.25rem;
|
||
border-bottom: 1px solid var(--border-light);
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
transition: background 0.15s ease;
|
||
}
|
||
|
||
li:hover {
|
||
background: var(--hover-bg);
|
||
}
|
||
|
||
li:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
li.section-title {
|
||
color: var(--text-secondary);
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
padding: 0.5rem 1.25rem;
|
||
border-bottom: 2px solid var(--border-color);
|
||
background: var(--bg-primary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
margin-top: 0.5rem;
|
||
}
|
||
|
||
li.section-title:first-of-type {
|
||
margin-top: 0;
|
||
}
|
||
|
||
/* ============================================
|
||
ФАЙЛОВАЯ СТРОКА — ФИНАЛЬНЫЙ ФИКС
|
||
============================================ */
|
||
.file-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-grow: 1;
|
||
min-width: 0;
|
||
gap: 0.75rem;
|
||
flex-wrap: nowrap;
|
||
width: 100%;
|
||
}
|
||
|
||
.file-link,
|
||
.dir-link {
|
||
display: flex;
|
||
align-items: center;
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
gap: 0.6rem;
|
||
overflow: hidden;
|
||
text-decoration: none;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.file-link .file-name {
|
||
font-weight: 500;
|
||
}
|
||
|
||
.dir-link .file-name {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.file-link:hover .file-name {
|
||
color: var(--accent-blue);
|
||
}
|
||
|
||
.dir-link:hover .file-name {
|
||
color: var(--accent-orange);
|
||
}
|
||
|
||
.file-icon {
|
||
font-size: 1.3rem;
|
||
flex-shrink: 0;
|
||
width: 28px;
|
||
min-width: 28px;
|
||
max-width: 28px;
|
||
text-align: center;
|
||
line-height: 1;
|
||
}
|
||
|
||
.file-name {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 0.92rem;
|
||
transition: color 0.15s ease;
|
||
}
|
||
|
||
.file-controls {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.3rem;
|
||
flex-shrink: 0;
|
||
flex-wrap: nowrap;
|
||
margin-left: auto;
|
||
}
|
||
|
||
.file-meta {
|
||
color: var(--text-muted);
|
||
font-size: 0.75rem;
|
||
font-weight: 500;
|
||
white-space: nowrap;
|
||
text-align: right;
|
||
font-variant-numeric: tabular-nums;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.file-meta.date {
|
||
min-width: 80px;
|
||
width: 80px;
|
||
}
|
||
|
||
.file-meta.size {
|
||
min-width: 60px;
|
||
width: 60px;
|
||
text-align: right;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Кнопки — фиксированный размер */
|
||
.preview-btn,
|
||
.copy-btn,
|
||
.download-btn {
|
||
background: transparent;
|
||
border: 1px solid var(--border-color);
|
||
border-radius: 6px;
|
||
width: 32px;
|
||
height: 32px;
|
||
min-width: 32px;
|
||
min-height: 32px;
|
||
max-width: 32px;
|
||
max-height: 32px;
|
||
cursor: pointer;
|
||
font-size: 0.8rem;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: all 0.15s ease;
|
||
opacity: 0.6;
|
||
color: var(--text-secondary);
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.preview-btn:hover,
|
||
.copy-btn:hover,
|
||
.download-btn:hover {
|
||
opacity: 1;
|
||
transform: scale(1.05);
|
||
}
|
||
|
||
.preview-btn:hover {
|
||
background: var(--accent-blue);
|
||
color: white;
|
||
border-color: var(--accent-blue);
|
||
}
|
||
|
||
.copy-btn:hover {
|
||
background: var(--accent-blue);
|
||
color: white;
|
||
border-color: var(--accent-blue);
|
||
}
|
||
|
||
.download-btn:hover {
|
||
background: var(--accent-green);
|
||
color: white;
|
||
border-color: var(--accent-green);
|
||
}
|
||
|
||
/* ============================================
|
||
СТАТИСТИКА
|
||
============================================ */
|
||
.stats {
|
||
text-align: center;
|
||
color: var(--text-secondary);
|
||
margin-top: 2rem;
|
||
padding: 1rem 1.25rem;
|
||
border-top: 1px solid var(--border-color);
|
||
font-size: 0.9rem;
|
||
background: var(--bg-primary);
|
||
}
|
||
|
||
.empty-state {
|
||
text-align: center;
|
||
padding: 3rem 1rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.empty-state .icon {
|
||
font-size: 3rem;
|
||
margin-bottom: 1rem;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
/* ============================================
|
||
ПАРОЛЬНАЯ ФОРМА
|
||
============================================ */
|
||
.password-form-container {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
min-height: 400px;
|
||
padding: 2rem;
|
||
}
|
||
|
||
.password-form {
|
||
background: var(--bg-secondary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: 12px;
|
||
padding: 2rem;
|
||
max-width: 400px;
|
||
width: 100%;
|
||
text-align: center;
|
||
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
||
}
|
||
|
||
.password-form .lock-icon {
|
||
font-size: 3rem;
|
||
margin-bottom: 1rem;
|
||
display: block;
|
||
}
|
||
|
||
.password-form h2 {
|
||
font-size: 1.3rem;
|
||
margin-bottom: 0.5rem;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.password-form p {
|
||
color: var(--text-secondary);
|
||
margin-bottom: 1.5rem;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.password-form p strong {
|
||
color: var(--text-primary);
|
||
word-break: break-all;
|
||
}
|
||
|
||
.password-form form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.password-form input[type="password"] {
|
||
padding: 0.75rem 1rem;
|
||
border: 2px solid var(--border-color);
|
||
border-radius: 8px;
|
||
font-size: 1rem;
|
||
background: var(--bg-primary);
|
||
color: var(--text-primary);
|
||
transition: border-color 0.2s ease;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.password-form input[type="password"]:focus {
|
||
outline: none;
|
||
border-color: var(--accent-blue);
|
||
}
|
||
|
||
.password-form button {
|
||
padding: 0.75rem;
|
||
background: var(--accent-blue);
|
||
color: white;
|
||
border: none;
|
||
border-radius: 8px;
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: background 0.2s ease;
|
||
}
|
||
|
||
.password-form button:hover {
|
||
background: var(--accent-green);
|
||
}
|
||
|
||
.password-form .error-msg {
|
||
color: #dc3545;
|
||
font-size: 0.9rem;
|
||
min-height: 1.5rem;
|
||
margin: 0.25rem 0;
|
||
}
|
||
|
||
.password-form .back-link {
|
||
display: inline-block;
|
||
margin-top: 0.75rem;
|
||
color: var(--text-secondary);
|
||
text-decoration: none;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.password-form .back-link:hover {
|
||
color: var(--accent-blue);
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.protected-folder {
|
||
position: relative;
|
||
}
|
||
|
||
/* ============================================
|
||
МОДАЛКА
|
||
============================================ */
|
||
.preview-modal {
|
||
display: none;
|
||
position: fixed;
|
||
z-index: 2000;
|
||
left: 0;
|
||
top: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: rgba(0, 0, 0, 0.7);
|
||
backdrop-filter: blur(5px);
|
||
-webkit-backdrop-filter: blur(5px);
|
||
overflow: auto;
|
||
}
|
||
|
||
.preview-modal.open {
|
||
display: flex !important;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.preview-content {
|
||
background: var(--bg-secondary);
|
||
border-radius: 12px;
|
||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
max-width: 90vw;
|
||
max-height: 90vh;
|
||
width: auto;
|
||
height: auto;
|
||
min-width: 320px;
|
||
min-height: 200px;
|
||
}
|
||
|
||
.preview-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 0.75rem 1rem;
|
||
border-bottom: 1px solid var(--border-color);
|
||
background: var(--bg-primary);
|
||
flex-shrink: 0;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.preview-title {
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0;
|
||
flex-grow: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.close-preview {
|
||
background: transparent;
|
||
color: var(--text-secondary);
|
||
border: none;
|
||
border-radius: 6px;
|
||
width: 34px;
|
||
height: 34px;
|
||
cursor: pointer;
|
||
font-size: 1.4rem;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.close-preview:hover {
|
||
background: #dc3545;
|
||
color: white;
|
||
}
|
||
|
||
.preview-iframe {
|
||
flex-grow: 1;
|
||
border: none;
|
||
background: var(--bg-secondary);
|
||
min-height: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.preview-image-container {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-grow: 1;
|
||
padding: 1rem;
|
||
background: var(--bg-primary);
|
||
overflow: hidden;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.preview-image {
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
width: auto;
|
||
height: auto;
|
||
object-fit: contain;
|
||
border-radius: 4px;
|
||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||
display: block;
|
||
}
|
||
|
||
/* Форма пароля в модалке */
|
||
#passwordFormContainer {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 2rem;
|
||
flex-grow: 1;
|
||
min-height: 300px;
|
||
}
|
||
|
||
#passwordFormContainer > div {
|
||
background: var(--bg-secondary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: 12px;
|
||
padding: 2rem;
|
||
max-width: 400px;
|
||
width: 100%;
|
||
text-align: center;
|
||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
/* ============================================
|
||
ФУТЕР — НЕ УВЕЛИЧИВАЕМ
|
||
============================================ */
|
||
.footer {
|
||
background: var(--bg-primary);
|
||
border-top: 1px solid var(--border-color);
|
||
padding: 1.5rem 1rem;
|
||
text-align: center;
|
||
color: var(--text-secondary);
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
.footer a {
|
||
color: var(--accent-blue);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
transition: opacity 0.15s ease;
|
||
}
|
||
|
||
.footer a:hover {
|
||
opacity: 0.7;
|
||
}
|
||
|
||
/* ============================================
|
||
ТЕМА И СКРОЛЛ
|
||
============================================ */
|
||
.theme-toggle {
|
||
position: fixed;
|
||
top: 12px;
|
||
right: 12px;
|
||
background: rgba(255,255,255,0.15);
|
||
border: 1px solid rgba(255,255,255,0.2);
|
||
border-radius: 50%;
|
||
width: 48px;
|
||
height: 48px;
|
||
font-size: 1.3rem;
|
||
cursor: pointer;
|
||
z-index: 1000;
|
||
backdrop-filter: blur(10px);
|
||
-webkit-backdrop-filter: blur(10px);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: all 0.3s ease;
|
||
color: white;
|
||
}
|
||
|
||
.dark-theme .theme-toggle {
|
||
background: rgba(0,0,0,0.3);
|
||
border-color: rgba(255,255,255,0.1);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.theme-toggle:hover {
|
||
transform: scale(1.1);
|
||
background: rgba(255,255,255,0.25);
|
||
}
|
||
|
||
.dark-theme .theme-toggle:hover {
|
||
background: rgba(0,0,0,0.4);
|
||
}
|
||
|
||
.scroll-top {
|
||
position: fixed;
|
||
bottom: 20px;
|
||
right: 20px;
|
||
width: 48px;
|
||
height: 48px;
|
||
background: var(--accent-blue);
|
||
color: white;
|
||
border: none;
|
||
border-radius: 50%;
|
||
font-size: 1.3rem;
|
||
cursor: pointer;
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transition: all 0.3s ease;
|
||
z-index: 1000;
|
||
box-shadow: 0 2px 12px rgba(0,0,0,0.2);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.scroll-top.visible {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
}
|
||
|
||
.scroll-top:hover {
|
||
background: var(--accent-green);
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
||
}
|
||
|
||
/* ============================================
|
||
УВЕДОМЛЕНИЕ
|
||
============================================ */
|
||
#copyNotification {
|
||
position: fixed;
|
||
bottom: 80px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
background: var(--accent-green);
|
||
color: white;
|
||
padding: 12px 24px;
|
||
border-radius: 8px;
|
||
font-weight: 600;
|
||
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
||
z-index: 3000;
|
||
transition: opacity 0.3s;
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ============================================
|
||
АДАПТИВ — ПЛАНШЕТЫ
|
||
============================================ */
|
||
@media (max-width: 768px) {
|
||
.header {
|
||
padding: 1.25rem 1rem;
|
||
}
|
||
.header h1 {
|
||
font-size: 1.5rem;
|
||
}
|
||
|
||
.toolbar {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 0.4rem;
|
||
padding: 0.6rem 1rem;
|
||
}
|
||
|
||
.search-box {
|
||
flex: 1 1 100%;
|
||
min-width: 0;
|
||
}
|
||
|
||
.search-box form {
|
||
flex-wrap: nowrap;
|
||
}
|
||
|
||
.search-box input[type="text"] {
|
||
min-width: 60px;
|
||
font-size: 0.8rem;
|
||
padding: 0.4rem 0.8rem;
|
||
height: 34px;
|
||
}
|
||
|
||
.search-box button {
|
||
font-size: 0.8rem;
|
||
padding: 0 0.9rem;
|
||
height: 34px;
|
||
}
|
||
|
||
.settings-group {
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
min-height: 34px;
|
||
align-items: center;
|
||
}
|
||
|
||
.view-btn,
|
||
.sort-btn {
|
||
font-size: 0.75rem;
|
||
padding: 0 0.7rem;
|
||
height: 34px;
|
||
}
|
||
|
||
.settings-divider {
|
||
height: 26px;
|
||
}
|
||
|
||
.file-controls {
|
||
gap: 0.2rem;
|
||
}
|
||
|
||
.preview-btn,
|
||
.copy-btn,
|
||
.download-btn {
|
||
width: 28px;
|
||
height: 28px;
|
||
min-width: 28px;
|
||
min-height: 28px;
|
||
max-width: 28px;
|
||
max-height: 28px;
|
||
font-size: 0.7rem;
|
||
}
|
||
|
||
.file-icon {
|
||
font-size: 1.2rem;
|
||
width: 24px;
|
||
}
|
||
|
||
.file-name {
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
li {
|
||
padding: 0.5rem 0.75rem;
|
||
}
|
||
|
||
.file-meta.date {
|
||
min-width: 60px;
|
||
width: 60px;
|
||
}
|
||
|
||
.file-meta.size {
|
||
min-width: 50px;
|
||
width: 50px;
|
||
}
|
||
|
||
.breadcrumb {
|
||
padding: 0.5rem 0.75rem;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
.preview-content {
|
||
max-width: 96vw;
|
||
max-height: 92vh;
|
||
min-width: auto;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
#passwordFormContainer {
|
||
padding: 1.5rem;
|
||
min-height: 250px;
|
||
}
|
||
|
||
#passwordFormContainer > div {
|
||
padding: 1.5rem;
|
||
}
|
||
}
|
||
|
||
/* ============================================
|
||
АДАПТИВ — МОБИЛКИ (ВСЁ УВЕЛИЧЕНО)
|
||
============================================ */
|
||
@media (max-width: 480px) {
|
||
.header {
|
||
padding: 1.25rem 0.75rem;
|
||
}
|
||
.header h1 {
|
||
font-size: 1.6rem;
|
||
}
|
||
.header .subtitle {
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.toolbar {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 0.6rem;
|
||
padding: 0.75rem 0.75rem;
|
||
}
|
||
|
||
.search-box {
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
|
||
.search-box form {
|
||
flex-wrap: nowrap;
|
||
width: 100%;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.search-box input[type="text"] {
|
||
font-size: 0.9rem;
|
||
padding: 0.6rem 0.8rem;
|
||
min-width: 60px;
|
||
height: 44px;
|
||
flex: 1;
|
||
}
|
||
|
||
.search-box button {
|
||
font-size: 0.9rem;
|
||
padding: 0 1rem;
|
||
height: 44px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.settings-group {
|
||
gap: 0.3rem;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
min-height: 40px;
|
||
align-items: center;
|
||
}
|
||
|
||
.settings-label {
|
||
font-size: 0.7rem;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.view-btn,
|
||
.sort-btn {
|
||
font-size: 0.8rem;
|
||
padding: 0 0.8rem;
|
||
height: 38px;
|
||
border-width: 1.5px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.view-btn .icon,
|
||
.sort-btn .icon {
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
/* ===== ФАЙЛОВАЯ СТРОКА — ФИКС ===== */
|
||
.file-row {
|
||
gap: 0.3rem !important;
|
||
flex-wrap: nowrap !important;
|
||
}
|
||
|
||
.file-link,
|
||
.dir-link {
|
||
gap: 0.3rem !important;
|
||
flex: 1 1 auto !important;
|
||
min-width: 0 !important;
|
||
}
|
||
|
||
.file-icon {
|
||
font-size: 1.4rem !important;
|
||
width: 32px !important;
|
||
min-width: 32px !important;
|
||
flex-shrink: 0 !important;
|
||
}
|
||
|
||
.file-name {
|
||
font-size: 0.95rem !important;
|
||
flex: 1 1 auto !important;
|
||
min-width: 0 !important;
|
||
overflow: hidden !important;
|
||
text-overflow: ellipsis !important;
|
||
white-space: nowrap !important;
|
||
}
|
||
|
||
.file-controls {
|
||
gap: 0.3rem !important;
|
||
flex-shrink: 0 !important;
|
||
margin-left: auto !important;
|
||
}
|
||
|
||
.file-meta.size {
|
||
font-size: 0.75rem !important;
|
||
min-width: 50px !important;
|
||
width: auto !important;
|
||
flex-shrink: 0 !important;
|
||
text-align: right !important;
|
||
}
|
||
|
||
.file-meta.date {
|
||
display: none !important;
|
||
}
|
||
|
||
.preview-btn,
|
||
.copy-btn,
|
||
.download-btn {
|
||
width: 38px !important;
|
||
height: 38px !important;
|
||
min-width: 38px !important;
|
||
min-height: 38px !important;
|
||
max-width: 38px !important;
|
||
max-height: 38px !important;
|
||
font-size: 0.9rem !important;
|
||
flex-shrink: 0 !important;
|
||
padding: 0 !important;
|
||
border-width: 1.5px !important;
|
||
margin: 0 !important;
|
||
border-radius: 8px !important;
|
||
}
|
||
|
||
li {
|
||
padding: 0.6rem 0.6rem !important;
|
||
min-height: 56px !important;
|
||
}
|
||
|
||
li.section-title {
|
||
font-size: 0.85rem;
|
||
padding: 0.5rem 0.6rem;
|
||
}
|
||
|
||
/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
|
||
.breadcrumb {
|
||
padding: 0.6rem 0.75rem;
|
||
font-size: 0.9rem;
|
||
gap: 0.3rem;
|
||
}
|
||
.breadcrumb a {
|
||
padding: 0.2rem 0.3rem;
|
||
}
|
||
|
||
/* ===== СТАТИСТИКА ===== */
|
||
.stats {
|
||
font-size: 0.85rem;
|
||
padding: 0.75rem 0.6rem;
|
||
}
|
||
|
||
/* ===== ТЕМА И СКРОЛЛ ===== */
|
||
.theme-toggle {
|
||
top: 8px;
|
||
right: 8px;
|
||
width: 48px;
|
||
height: 48px;
|
||
font-size: 1.3rem;
|
||
}
|
||
|
||
.scroll-top {
|
||
bottom: 20px;
|
||
right: 20px;
|
||
width: 48px;
|
||
height: 48px;
|
||
font-size: 1.3rem;
|
||
}
|
||
|
||
/* ===== ФУТЕР (НЕ УВЕЛИЧИВАЕМ) ===== */
|
||
.footer {
|
||
padding: 1rem 0.75rem;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
/* ===== МОДАЛКА ===== */
|
||
.preview-content {
|
||
max-width: 98vw;
|
||
max-height: 95vh;
|
||
border-radius: 8px;
|
||
min-height: 150px;
|
||
}
|
||
|
||
.preview-header {
|
||
padding: 0.6rem 0.8rem;
|
||
}
|
||
|
||
.preview-title {
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.close-preview {
|
||
width: 34px;
|
||
height: 34px;
|
||
font-size: 1.2rem;
|
||
}
|
||
|
||
.preview-image-container {
|
||
padding: 0.5rem;
|
||
}
|
||
|
||
#passwordFormContainer {
|
||
padding: 1rem;
|
||
min-height: 200px;
|
||
}
|
||
|
||
#passwordFormContainer > div {
|
||
padding: 1.5rem 1rem;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
/* ===== ФОРМА ПАРОЛЯ ===== */
|
||
.password-form {
|
||
padding: 1.5rem 1rem;
|
||
}
|
||
.password-form .lock-icon {
|
||
font-size: 2.5rem;
|
||
}
|
||
.password-form h2 {
|
||
font-size: 1.2rem;
|
||
}
|
||
.password-form p {
|
||
font-size: 0.9rem;
|
||
}
|
||
.password-form input[type="password"] {
|
||
font-size: 1rem;
|
||
padding: 0.7rem 0.8rem;
|
||
height: 48px;
|
||
}
|
||
.password-form button {
|
||
font-size: 1rem;
|
||
padding: 0.7rem;
|
||
height: 48px;
|
||
}
|
||
}
|
||
|
||
/* ============================================
|
||
АДАПТИВ — ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
|
||
============================================ */
|
||
@media (max-width: 360px) {
|
||
.header h1 {
|
||
font-size: 1.3rem;
|
||
}
|
||
|
||
.search-box input[type="text"] {
|
||
font-size: 0.8rem;
|
||
height: 40px;
|
||
padding: 0.4rem 0.6rem;
|
||
}
|
||
.search-box button {
|
||
font-size: 0.8rem;
|
||
height: 40px;
|
||
padding: 0 0.7rem;
|
||
}
|
||
|
||
.view-btn,
|
||
.sort-btn {
|
||
font-size: 0.7rem;
|
||
padding: 0 0.5rem;
|
||
height: 34px;
|
||
}
|
||
|
||
.file-icon {
|
||
font-size: 1.2rem !important;
|
||
width: 28px !important;
|
||
min-width: 28px !important;
|
||
}
|
||
|
||
.file-name {
|
||
font-size: 0.85rem !important;
|
||
}
|
||
|
||
.preview-btn,
|
||
.copy-btn,
|
||
.download-btn {
|
||
width: 34px !important;
|
||
height: 34px !important;
|
||
min-width: 34px !important;
|
||
min-height: 34px !important;
|
||
max-width: 34px !important;
|
||
max-height: 34px !important;
|
||
font-size: 0.8rem !important;
|
||
border-radius: 6px !important;
|
||
}
|
||
|
||
.file-meta.size {
|
||
font-size: 0.65rem !important;
|
||
min-width: 40px !important;
|
||
}
|
||
|
||
li {
|
||
padding: 0.4rem 0.4rem !important;
|
||
min-height: 48px !important;
|
||
}
|
||
|
||
.file-row {
|
||
gap: 0.3rem !important;
|
||
}
|
||
|
||
.theme-toggle {
|
||
width: 40px;
|
||
height: 40px;
|
||
font-size: 1.1rem;
|
||
top: 6px;
|
||
right: 6px;
|
||
}
|
||
|
||
.scroll-top {
|
||
width: 40px;
|
||
height: 40px;
|
||
font-size: 1.1rem;
|
||
bottom: 16px;
|
||
right: 16px;
|
||
}
|
||
|
||
.password-form input[type="password"] {
|
||
height: 42px;
|
||
font-size: 0.9rem;
|
||
}
|
||
.password-form button {
|
||
height: 42px;
|
||
font-size: 0.9rem;
|
||
}
|
||
}
|
||
|
||
/* ===== ФАЙЛЫ — МОБИЛКИ ===== */
|
||
.file-row {
|
||
gap: 0.3rem !important;
|
||
}
|
||
|
||
.file-link,
|
||
.dir-link {
|
||
gap: 0.3rem !important;
|
||
flex: 1 1 auto !important;
|
||
}
|
||
|
||
.file-icon {
|
||
font-size: 1.4rem !important;
|
||
width: 32px !important;
|
||
min-width: 32px !important;
|
||
max-width: 32px !important;
|
||
flex-shrink: 0 !important;
|
||
}
|
||
|
||
.file-name {
|
||
font-size: 0.95rem !important;
|
||
flex: 1 1 auto !important;
|
||
min-width: 0 !important;
|
||
}
|
||
|
||
.file-link .file-name {
|
||
font-weight: 500 !important;
|
||
}
|
||
|
||
.dir-link .file-name {
|
||
font-weight: 600 !important;
|
||
}
|
||
|
||
.file-controls {
|
||
gap: 0.3rem !important;
|
||
flex-shrink: 0 !important;
|
||
margin-left: auto !important;
|
||
}
|
||
|
||
.file-meta.size {
|
||
font-size: 0.75rem !important;
|
||
min-width: 50px !important;
|
||
width: auto !important;
|
||
flex-shrink: 0 !important;
|
||
}
|
||
|
||
.file-meta.date {
|
||
display: none !important;
|
||
}
|
||
|
||
.preview-btn,
|
||
.copy-btn,
|
||
.download-btn {
|
||
width: 38px !important;
|
||
height: 38px !important;
|
||
min-width: 38px !important;
|
||
min-height: 38px !important;
|
||
max-width: 38px !important;
|
||
max-height: 38px !important;
|
||
font-size: 0.9rem !important;
|
||
flex-shrink: 0 !important;
|
||
} |