Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:ТаблицаРолей/Роль/styles.css: различия между версиями

Материал из FIRE STATION WIKI
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
/* Основные стили карточки */
.cardRole {
.cardRole {
     display: flex;
     display: flex;
Строка 4: Строка 5:
     max-width: 400px;
     max-width: 400px;
     min-width: 190px;
     min-width: 190px;
     padding: 8px;
     padding: 2px;
     border-radius: 8px;
     border-radius: 6px;
    min-height: 36px;
     box-sizing: border-box;
     box-sizing: border-box;
     height: 100%;
     height: 100%;
    background-color: #1a1c23;
    border: 1px solid #2d3142;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
      
      
     cursor: pointer;  
    border: 1px solid #2f314d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
     cursor: pointer;
    position: relative;
    overflow: hidden;
      
      
     transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, outline 0.2s ease;
     transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),  
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
 
.cardRole:hover {
    transform: translateY(-4px);
    border-color: #4c51bf;
    box-shadow: 0 10px 20px rgba(76, 81, 191, 0.15), 0 6px 6px rgba(0, 0, 0, 0.25);
}
 
.cardRole:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
}


.card_headerRole {
.card_headerRole {
    background-color: #2b305c;
     border-radius: 4px 4px 0 0;
     border-radius: 6px;
     text-align: center;
     text-align: center;
     padding: 6px 4px;
     background: rgba(76, 81, 191, 0.2);
    border-bottom: 1px solid rgba(76, 81, 191, 0.3);
    transition: background 0.25s ease;
}
 
.cardRole:hover .card_headerRole {
    background: rgba(76, 81, 191, 0.4);
}
}


.card_header_titleRole {
.card_header_titleRole {
     padding: 0 4px;
     padding: 0 3px;
}
}


.card_header_titleRole p {
.card_header_titleRole p {
     margin: 0;
     margin: 6px 0;
    font-size: 14px;
     font-weight: 600;
     font-weight: 600;
}
     font-size: 13px;
 
     letter-spacing: 0.5px;
.card_header_titleRole a {
     color: #ffffff;
     text-decoration: none;
}
}


.title_textRole {
.title_textRole {
     color: #ffffff;
     color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
}


.card_imageRole {
.card_imageRole {
     flex-grow: 1;
     height: 100%;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     background-color: transparent;
     background-color: transparent;
     padding: 16px 0;
     position: relative;
}
}


.fixed_imageRole {
.card_imageRole img {
     width: 100%;
    max-height: 120px;
     display: flex;
     width: auto;
     justify-content: center;
     image-rendering: pixelated;  
      
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
}


.card_imageRole img {
.cardRole:hover .card_imageRole img {
     object-fit: contain;
     transform: scale(1.12) translateY(-2px);
    height: auto;
     filter: drop-shadow(0 6px 12px rgba(76, 81, 191, 0.3)) drop-shadow(0 4px 4px rgba(0,0,0,0.6));
    max-height: 80px;  
     max-width: 100%;
    image-rendering: pixelated;
    transition: transform 0.2s ease-in-out;  
}
}


.cardRole:hover {
.fixed_imageRole {
     transform: translateY(-2px);
     padding: 0 64px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);border-color: #4c51bf;
}
}


.fixed_imageRole {
    padding: 0 64px;
}
.cardRole:hover .card_imageRole img {
.cardRole:hover .card_imageRole img {
     transform: scale(1.15);
     transform: scale(1.20) translateY(-2px);  
}
     filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));  
 
.card_imageRole img {
     transform: scale(1.15);
}
}

Текущая версия от 21:11, 27 июня 2026

/* Основные стили карточки */
.cardRole {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    min-width: 190px;
    padding: 2px;
    border-radius: 6px;
    min-height: 36px;
    box-sizing: border-box;
    height: 100%;
    
    border: 1px solid #2f314d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cardRole:hover {
    transform: translateY(-4px);
    border-color: #4c51bf; 
    box-shadow: 0 10px 20px rgba(76, 81, 191, 0.15), 0 6px 6px rgba(0, 0, 0, 0.25);
}

.cardRole:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card_headerRole {
    border-radius: 4px 4px 0 0;
    text-align: center;
    background: rgba(76, 81, 191, 0.2);
    border-bottom: 1px solid rgba(76, 81, 191, 0.3);
    transition: background 0.25s ease;
}

.cardRole:hover .card_headerRole {
    background: rgba(76, 81, 191, 0.4);
}

.card_header_titleRole {
    padding: 0 3px;
}

.card_header_titleRole p {
    margin: 6px 0;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.title_textRole {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card_imageRole {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    position: relative;
}

.card_imageRole img {
    max-height: 120px;
    width: auto;
    image-rendering: pixelated; 
    
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.cardRole:hover .card_imageRole img {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(76, 81, 191, 0.3)) drop-shadow(0 4px 4px rgba(0,0,0,0.6));
}

.fixed_imageRole {
    padding: 0 64px;
}

.fixed_imageRole {
    padding: 0 64px;
}
.cardRole:hover .card_imageRole img {
    transform: scale(1.20) translateY(-2px); 
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); 
}