r
This commit is contained in:
392
public/style.css
392
public/style.css
@@ -425,6 +425,11 @@ button.edit-date-btn:hover {
|
||||
color: #856404;
|
||||
}
|
||||
|
||||
.task-dates-files .file-list strong {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.task-dates-files .files-placeholder {
|
||||
color: #6c757d;
|
||||
font-style: italic;
|
||||
@@ -1342,4 +1347,391 @@ button.reopen-btn:hover {
|
||||
.task-dates-files .file-list {
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
/* Стили для иконок файлов */
|
||||
.file-icons-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.file-icon-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 80px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.file-icon-container:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.file-icon:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.file-icon::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 20px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.file-extension {
|
||||
color: white;
|
||||
font-size: 0.8rem;
|
||||
font-weight: bold;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
margin-top: 5px;
|
||||
font-size: 0.75rem;
|
||||
color: #495057;
|
||||
text-align: center;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.file-download-link {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.file-download-link:hover .file-name {
|
||||
color: #3498db;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Тултип при наведении */
|
||||
.file-icon-container::before {
|
||||
content: attr(title);
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
color: white;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.3s ease, visibility 0.3s ease;
|
||||
z-index: 100;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.file-icon-container:hover::before {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* Адаптивность */
|
||||
@media (max-width: 768px) {
|
||||
.file-icons-container {
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.file-icon-container {
|
||||
width: 70px;
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.file-extension {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.file-icons-container {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.file-icon-container {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.file-extension {
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
}
|
||||
.no-files {
|
||||
color: #6c757d;
|
||||
font-style: italic;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Сделаем файлы видимыми всегда */
|
||||
.task-dates-files .file-list {
|
||||
flex: 1;
|
||||
min-width: 250px;
|
||||
font-size: 0.95rem;
|
||||
color: #856404;
|
||||
}
|
||||
|
||||
.task-dates-files .file-list strong {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Уменьшим отступы для компактности */
|
||||
.task-dates-files {
|
||||
margin: 10px 0;
|
||||
padding: 12px;
|
||||
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
|
||||
border-radius: 10px;
|
||||
border-left: 4px solid #f39c12;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
}
|
||||
/* Стили для иконок файлов */
|
||||
.file-icons-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.file-icon-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 80px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.file-icon-container:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.file-icon:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.file-icon::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 20px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.file-extension {
|
||||
color: white;
|
||||
font-size: 0.8rem;
|
||||
font-weight: bold;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
||||
z-index: 1;
|
||||
padding: 0 5px;
|
||||
text-align: center;
|
||||
line-height: 1.2;
|
||||
max-width: 100%;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
/* Для коротких текстов (1-2 символа) */
|
||||
.file-extension.short {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Для средних текстов (3-4 символа) */
|
||||
.file-extension.medium {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Для длинных текстов (5+ символов) */
|
||||
.file-extension.long {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
margin-top: 5px;
|
||||
font-size: 0.75rem;
|
||||
color: #495057;
|
||||
text-align: center;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.file-download-link {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.file-download-link:hover .file-name {
|
||||
color: #3498db;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Тултип при наведении */
|
||||
.file-icon-container::before {
|
||||
content: attr(title);
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
color: white;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.3s ease, visibility 0.3s ease;
|
||||
z-index: 100;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.file-icon-container:hover::before {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* Адаптивность */
|
||||
@media (max-width: 768px) {
|
||||
.file-icons-container {
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.file-icon-container {
|
||||
width: 70px;
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.file-extension {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.file-extension.short {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.file-extension.medium {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.file-extension.long {
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.file-icons-container {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.file-icon-container {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.file-extension {
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
|
||||
.file-extension.short {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.file-extension.medium {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.file-extension.long {
|
||||
font-size: 0.55rem;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user