предпросмотр и скрипт для сборки бинарей
This commit is contained in:
287
style.css
287
style.css
@@ -187,32 +187,48 @@ li:hover {
|
||||
background-color: var(--hover-bg);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
padding-right: 0.5rem;
|
||||
/* Стили для строки файла */
|
||||
.file-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.file-link {
|
||||
color: var(--accent-blue);
|
||||
font-weight: 500;
|
||||
.file-link {
|
||||
color: var(--accent-blue);
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.dir-link {
|
||||
color: var(--accent-green);
|
||||
font-weight: 600;
|
||||
.dir-link {
|
||||
color: var(--accent-green);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.size {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
margin-left: auto;
|
||||
padding-left: 0.5rem;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
.file-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.size {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
white-space: nowrap;
|
||||
min-width: 70px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
@@ -299,6 +315,186 @@ a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Стили для кнопки предпросмотра */
|
||||
.preview-btn {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.preview-btn:hover {
|
||||
background: var(--accent-blue);
|
||||
color: white;
|
||||
border-color: var(--accent-blue);
|
||||
opacity: 1;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Модальное окно предпросмотра */
|
||||
.preview-modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 2000;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0,0,0,0.8);
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
.preview-content {
|
||||
background: var(--bg-secondary);
|
||||
margin: 2% auto;
|
||||
padding: 0;
|
||||
border-radius: 8px;
|
||||
width: 90%;
|
||||
height: 90%;
|
||||
max-width: 1200px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* Размеры для разных типов контента */
|
||||
.preview-content.image-type {
|
||||
max-width: 90%;
|
||||
max-height: 90%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.preview-content.text-type {
|
||||
max-width: 800px;
|
||||
max-height: 80%;
|
||||
}
|
||||
|
||||
.preview-content.audio-type {
|
||||
max-width: 500px;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.preview-content.video-type {
|
||||
max-width: 90%;
|
||||
max-height: 90%;
|
||||
}
|
||||
|
||||
.preview-content.pdf-type {
|
||||
max-width: 90%;
|
||||
max-height: 90%;
|
||||
}
|
||||
|
||||
.preview-content.default-type {
|
||||
max-width: 90%;
|
||||
max-height: 90%;
|
||||
}
|
||||
|
||||
.preview-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
background: var(--bg-primary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.preview-title {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin: 0;
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.close-preview {
|
||||
background: #dc3545;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.close-preview:hover {
|
||||
background: #c82333;
|
||||
}
|
||||
|
||||
.preview-iframe {
|
||||
flex-grow: 1;
|
||||
border: none;
|
||||
background: white;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.preview-iframe.pdf {
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
/* Адаптивность */
|
||||
@media (max-width: 768px) {
|
||||
.preview-content {
|
||||
width: 95%;
|
||||
height: 95%;
|
||||
margin: 2.5% auto;
|
||||
}
|
||||
|
||||
.preview-content.image-type {
|
||||
max-width: 95%;
|
||||
max-height: 95%;
|
||||
}
|
||||
|
||||
.preview-content.text-type {
|
||||
max-width: 95%;
|
||||
max-height: 80%;
|
||||
}
|
||||
|
||||
.preview-content.audio-type {
|
||||
max-width: 95%;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.preview-content.video-type {
|
||||
max-width: 95%;
|
||||
max-height: 95%;
|
||||
}
|
||||
|
||||
.preview-content.pdf-type {
|
||||
max-width: 95%;
|
||||
max-height: 95%;
|
||||
}
|
||||
|
||||
.preview-header {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.preview-title {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.theme-toggle {
|
||||
top: 5px;
|
||||
@@ -331,9 +527,15 @@ a {
|
||||
li {
|
||||
padding: 0.75rem 0.25rem;
|
||||
}
|
||||
.file-row {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.file-controls {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.size {
|
||||
font-size: 0.8rem;
|
||||
padding-left: 0.25rem;
|
||||
min-width: 60px;
|
||||
}
|
||||
.file-icon {
|
||||
margin-right: 0.75rem;
|
||||
@@ -352,6 +554,34 @@ a {
|
||||
padding: 0.75rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.preview-btn {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.preview-content {
|
||||
width: 98%;
|
||||
height: 98%;
|
||||
margin: 1% auto;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.preview-content.image-type,
|
||||
.preview-content.video-type,
|
||||
.preview-content.pdf-type {
|
||||
max-width: 98%;
|
||||
max-height: 98%;
|
||||
}
|
||||
|
||||
.preview-content.text-type {
|
||||
max-width: 98%;
|
||||
max-height: 80%;
|
||||
}
|
||||
|
||||
.preview-content.audio-type {
|
||||
max-width: 98%;
|
||||
max-height: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
@@ -368,4 +598,19 @@ a {
|
||||
.size {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.file-row {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
.file-controls {
|
||||
align-self: flex-end;
|
||||
}
|
||||
.file-link {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.preview-content.audio-type {
|
||||
max-height: 200px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user