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

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

Материал из FIRE STATION WIKI
Нет описания правки
Нет описания правки
Строка 30: Строка 30:
     margin: 0 !important;
     margin: 0 !important;
     color: white;
     color: white;
     font-size: 14px;
     font-size: 15px;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
Строка 49: Строка 49:
     flex-direction: row !important;
     flex-direction: row !important;
     flex-wrap: wrap !important;
     flex-wrap: wrap !important;
     justify-content: flex-start !important;
     justify-content: center !important;
     align-items: flex-start !important;
     align-items: flex-start !important;
     gap: 8px !important;
     gap: 8px !important;
Строка 56: Строка 56:
     box-sizing: border-box;  
     box-sizing: border-box;  
     width: 100%;
     width: 100%;
     background-color: rgba(0, 0, 0, 0.15);  
}
 
.RoleTable-content_main > p,
.RoleTable-content_secondary > p {
     display: contents !important;
}
.RoleTable-content_main > br,
.RoleTable-content_main > p > br,
.RoleTable-content_secondary > br,
.RoleTable-content_secondary > p > br {
    display: none !important;
}
}


Строка 62: Строка 72:
     display: grid;
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     grid-template-columns: repeat(2, 1fr);
     gap: 3px;
     gap: 4px;
     margin-top: 3px;
     margin-top: 4px;
     width: 100%;
     width: 100%;
     box-sizing: border-box;
     box-sizing: border-box;
Строка 75: Строка 85:
     border-radius: 3px;
     border-radius: 3px;
     padding: 6px;
     padding: 6px;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.1);
}
}


Строка 83: Строка 91:
     font-size: 12px;
     font-size: 12px;
     margin-bottom: 2px;
     margin-bottom: 2px;
    text-align: center;
}
}


Строка 88: Строка 97:
     padding: 0;
     padding: 0;
     line-height: 1.3;
     line-height: 1.3;
    font-size: 13px;
}
}


.RoleTable-content_main > p,
.RoleTable-content_secondary > p {
    display: contents !important;
}
.RoleTable-content_main > br,
.RoleTable-content_main > p > br,
.RoleTable-content_secondary > br,
.RoleTable-content_secondary > p > br {
    display: none !important;
}


.cardRole {
.cardRole {
     display: inline-flex !important;
     display: flex !important;
     flex-direction: column;
     flex-direction: column;
     width: 120px !important;       
     width: 120px !important;       
     max-width: 120px !important;
     max-width: 120px !important;
     min-width: 120px !important;
     min-width: 120px !important;
    height: 125px !important;
     border-radius: 4px;
     border-radius: 4px;
     box-sizing: border-box;
     box-sizing: border-box;                 
    height: 125px !important;                 
     overflow: hidden;
     overflow: hidden;
     background-color: rgba(0, 0, 0, 0.2);  
     background-color: rgba(0, 0, 0, 0.2);  
Строка 124: Строка 123:
     padding: 2px 4px;
     padding: 2px 4px;
     box-sizing: border-box;
     box-sizing: border-box;
}
.card_header_titleRole {
    width: 100%;
}
}


Строка 133: Строка 136:
     line-height: 1.1;
     line-height: 1.1;
     text-align: center;
     text-align: center;
    word-wrap: break-word;
}
}


Строка 147: Строка 151:
     padding: 4px;
     padding: 4px;
     box-sizing: border-box;
     box-sizing: border-box;
    height: calc(100% - 34px) !important;
}
}


Строка 152: Строка 157:
     max-width: 64px !important;   
     max-width: 64px !important;   
     max-height: 64px !important;
     max-height: 64px !important;
    width: auto !important;
    height: auto !important;
     object-fit: contain;
     object-fit: contain;
}
}
Строка 165: Строка 172:
     .cardRole {
     .cardRole {
         width: calc(50% - 8px) !important;
         width: calc(50% - 8px) !important;
         max-width: 100% !important;
         max-width: 160px !important;
         min-width: 100px !important;
         min-width: 100px !important;
     }
     }

Версия от 18:28, 23 июня 2026

.RoleTable-card {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0.6em 0;
    padding: 2px;
    border-radius: 5px;
    box-sizing: border-box;
}

.RoleTable-card_header {
    border-radius: 3px;
    text-align: center;
}

.RoleTable-card_header_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
}

.RoleTable-header_icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.RoleTable-card_title {
    margin: 0 !important;
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.RoleTable-card_title a {
    color: white !important;
}

.RoleTable-card_content {
    margin-top: 3px;
    width: 100%;
}

.RoleTable-content_main {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 8px;
    border-radius: 3px;
    box-sizing: border-box; 
    width: 100%;
}

.RoleTable-content_main > p,
.RoleTable-content_secondary > p {
    display: contents !important;
}
.RoleTable-content_main > br,
.RoleTable-content_main > p > br,
.RoleTable-content_secondary > br,
.RoleTable-content_secondary > p > br {
    display: none !important;
}

.RoleTable-content_secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}

.RoleTable-content_secondary > .RoleTable-content_block:only-child {
    grid-column: 1 / -1;
}

.RoleTable-content_block {
    border-radius: 3px;
    padding: 6px;
}

.RoleTable-block_title {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 2px;
    text-align: center;
}

.RoleTable-block_content {
    padding: 0;
    line-height: 1.3;
    font-size: 13px;
}


.cardRole {
    display: flex !important;
    flex-direction: column;
    width: 120px !important;      
    max-width: 120px !important;
    min-width: 120px !important;
    height: 125px !important;
    border-radius: 4px;
    box-sizing: border-box;                
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2); 
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.card_headerRole {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    box-sizing: border-box;
}

.card_header_titleRole {
    width: 100%;
}

.card_header_titleRole p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
    word-wrap: break-word;
}

.title_textRole {
    color: white;
}

.card_imageRole {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 4px;
    box-sizing: border-box;
    height: calc(100% - 34px) !important;
}

.card_imageRole img {
    max-width: 64px !important;  
    max-height: 64px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.fixed_imageRole {
    padding: 2px !important;
}

@media (max-width: 480px) {
    .RoleTable-content_main {
        justify-content: center !important;
    }
    .cardRole {
        width: calc(50% - 8px) !important;
        max-width: 160px !important;
        min-width: 100px !important;
    }
    .RoleTable-content_secondary {
        grid-template-columns: 1fr;
    }
}