поиск и еще мелочи
This commit is contained in:
295
style.css
295
style.css
@@ -174,11 +174,11 @@ ul {
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0.75rem 0.5rem;
|
||||
padding: 1rem 0.5rem;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap; /* Исправлено: теперь не переносятся */
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
li:last-child { border-bottom: none; }
|
||||
@@ -194,8 +194,8 @@ li:hover {
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
gap: 0.75rem;
|
||||
flex-wrap: nowrap; /* Запрещаем перенос */
|
||||
gap: 1rem;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.file-link {
|
||||
@@ -222,11 +222,12 @@ li:hover {
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.file-meta {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.75rem;
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
@@ -240,6 +241,28 @@ li:hover {
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.file-meta {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
.file-meta.date {
|
||||
min-width: 75px;
|
||||
}
|
||||
.file-meta.size {
|
||||
min-width: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.file-meta.date {
|
||||
display: none !important;
|
||||
}
|
||||
.file-meta.size {
|
||||
font-size: 0.65rem;
|
||||
min-width: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
margin-right: 0.75rem;
|
||||
font-size: 1.3rem;
|
||||
@@ -324,8 +347,10 @@ li:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Стили для кнопок */
|
||||
.preview-btn, .copy-btn {
|
||||
/* ================================================
|
||||
ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ КНОПОК
|
||||
================================================ */
|
||||
.preview-btn, .copy-btn, .download-btn {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
@@ -342,7 +367,7 @@ li:hover {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.preview-btn:hover, .copy-btn:hover {
|
||||
.preview-btn:hover, .copy-btn:hover, .download-btn:hover {
|
||||
background: var(--accent-blue);
|
||||
color: white;
|
||||
border-color: var(--accent-blue);
|
||||
@@ -350,7 +375,103 @@ li:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Стили для формы ввода пароля */
|
||||
/* ================================================
|
||||
ТУЛБАР (поиск + сортировка)
|
||||
================================================ */
|
||||
.toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
background: var(--bg-primary);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.search-box {
|
||||
flex: 1 1 200px;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.search-box form {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.search-box input[type="text"] {
|
||||
flex: 1;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.9rem;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
.search-box input[type="text"]:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-blue);
|
||||
}
|
||||
|
||||
.search-box button {
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--accent-blue);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.search-box button:hover {
|
||||
background: var(--accent-green);
|
||||
}
|
||||
|
||||
.sort-buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sort-label {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
margin-right: 0.2rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sort-btn {
|
||||
padding: 0.4rem 0.75rem;
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
text-decoration: none;
|
||||
font-size: 0.8rem;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sort-btn:hover {
|
||||
background: var(--hover-bg);
|
||||
border-color: var(--accent-blue);
|
||||
}
|
||||
|
||||
.sort-btn.active {
|
||||
background: var(--accent-blue);
|
||||
color: white;
|
||||
border-color: var(--accent-blue);
|
||||
}
|
||||
|
||||
/* ================================================
|
||||
Стили для формы ввода пароля
|
||||
================================================ */
|
||||
.password-form-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -457,7 +578,9 @@ li:hover {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Модальное окно предпросмотра */
|
||||
/* ================================================
|
||||
Модальное окно предпросмотра
|
||||
================================================ */
|
||||
.preview-modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
@@ -575,7 +698,6 @@ li:hover {
|
||||
background: rgba(255,255,255,0.5);
|
||||
}
|
||||
|
||||
/* Уведомление */
|
||||
#copyNotification {
|
||||
position: fixed;
|
||||
bottom: 80px;
|
||||
@@ -592,18 +714,10 @@ li:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* === АДАПТИВНОСТЬ === */
|
||||
|
||||
/* ================================================
|
||||
Адаптивность
|
||||
================================================ */
|
||||
@media (max-width: 768px) {
|
||||
.file-meta {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.file-meta.date {
|
||||
min-width: 75px;
|
||||
}
|
||||
.file-meta.size {
|
||||
min-width: 60px;
|
||||
}
|
||||
.preview-content {
|
||||
margin: 2.5% auto;
|
||||
}
|
||||
@@ -616,39 +730,117 @@ li:hover {
|
||||
.preview-image-container {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0.5rem 0.25rem !important;
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
.file-row {
|
||||
flex-wrap: nowrap !important;
|
||||
gap: 0.3rem !important;
|
||||
}
|
||||
.file-controls {
|
||||
flex-wrap: nowrap !important;
|
||||
gap: 0.15rem !important;
|
||||
}
|
||||
.file-meta.date {
|
||||
min-width: 60px !important;
|
||||
}
|
||||
.file-meta.size {
|
||||
min-width: 50px !important;
|
||||
font-size: 0.65rem !important;
|
||||
}
|
||||
.toolbar {
|
||||
flex-wrap: wrap !important;
|
||||
gap: 0.5rem !important;
|
||||
padding: 0.5rem !important;
|
||||
}
|
||||
.search-box {
|
||||
flex: 1 1 100% !important;
|
||||
min-width: 0 !important;
|
||||
}
|
||||
.sort-buttons {
|
||||
flex-wrap: wrap !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
/* Скрываем дату на телефонах */
|
||||
.toolbar {
|
||||
flex-direction: column !important;
|
||||
align-items: stretch !important;
|
||||
gap: 0.5rem !important;
|
||||
padding: 0.5rem !important;
|
||||
}
|
||||
.search-box {
|
||||
width: 100% !important;
|
||||
min-width: 0 !important;
|
||||
flex: 1 1 auto !important;
|
||||
}
|
||||
.search-box form {
|
||||
flex-wrap: nowrap !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.search-box input[type="text"] {
|
||||
flex: 1 1 auto !important;
|
||||
min-width: 60px !important;
|
||||
font-size: 0.85rem !important;
|
||||
padding: 0.5rem 0.6rem !important;
|
||||
}
|
||||
.search-box button {
|
||||
flex: 0 0 auto !important;
|
||||
font-size: 0.8rem !important;
|
||||
padding: 0.4rem 0.7rem !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.sort-buttons {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap !important;
|
||||
justify-content: center !important;
|
||||
gap: 0.3rem !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.sort-label {
|
||||
font-size: 0.65rem !important;
|
||||
width: 100% !important;
|
||||
text-align: center !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
.sort-btn {
|
||||
flex: 0 1 auto !important;
|
||||
font-size: 0.65rem !important;
|
||||
padding: 0.25rem 0.4rem !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
.preview-btn, .copy-btn, .download-btn {
|
||||
width: 26px !important;
|
||||
height: 26px !important;
|
||||
font-size: 0.65rem !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.file-meta.date {
|
||||
display: none !important;
|
||||
}
|
||||
/* Уменьшаем размер кнопок */
|
||||
.preview-btn, .copy-btn {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.file-meta.size {
|
||||
font-size: 0.7rem;
|
||||
min-width: 50px;
|
||||
font-size: 0.55rem !important;
|
||||
min-width: 35px !important;
|
||||
}
|
||||
.file-name {
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.75rem !important;
|
||||
}
|
||||
.file-icon {
|
||||
font-size: 1.1rem;
|
||||
width: 20px;
|
||||
margin-right: 0.5rem;
|
||||
font-size: 1rem !important;
|
||||
width: 18px !important;
|
||||
margin-right: 0.3rem !important;
|
||||
}
|
||||
.file-controls {
|
||||
gap: 0.3rem;
|
||||
gap: 0.1rem !important;
|
||||
}
|
||||
li {
|
||||
padding: 0.5rem 0.25rem;
|
||||
padding: 0.3rem 0.15rem !important;
|
||||
}
|
||||
.file-row {
|
||||
gap: 0.4rem;
|
||||
gap: 0.15rem !important;
|
||||
}
|
||||
.theme-toggle {
|
||||
top: 5px;
|
||||
@@ -711,15 +903,28 @@ li:hover {
|
||||
margin: 0;
|
||||
}
|
||||
.file-name {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.7rem !important;
|
||||
}
|
||||
.file-meta.size {
|
||||
font-size: 0.65rem;
|
||||
min-width: 40px;
|
||||
font-size: 0.5rem !important;
|
||||
min-width: 28px !important;
|
||||
}
|
||||
.preview-btn, .copy-btn {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
font-size: 0.7rem;
|
||||
.preview-btn, .copy-btn, .download-btn {
|
||||
width: 20px !important;
|
||||
height: 20px !important;
|
||||
font-size: 0.5rem !important;
|
||||
}
|
||||
.search-box input[type="text"] {
|
||||
font-size: 0.75rem !important;
|
||||
padding: 0.3rem 0.4rem !important;
|
||||
min-width: 40px !important;
|
||||
}
|
||||
.search-box button {
|
||||
font-size: 0.7rem !important;
|
||||
padding: 0.3rem 0.5rem !important;
|
||||
}
|
||||
.sort-btn {
|
||||
font-size: 0.6rem !important;
|
||||
padding: 0.2rem 0.3rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user