Шаблон:CategoryMenu/styles.css: различия между версиями

Материал из Space Station 14 Вики
(Новая страница: «.category-menu { border: 2px solid #4a4a55; border-radius: 0.3em; background-color: #37373d; overflow: hidden; padding: 12px 10px; box-sizing: border-box; } →‎Категории: .main-container { display: flex; width: 100%; } .categories { display: flex; justify-content: center; padding: 6px; display: none; } .categories div { cursor: pointer; padding: 10px 20px; margin: 0 8px; backg...»)
 
мНет описания правки
Строка 37: Строка 37:
.menu-container {
.menu-container {
     width: 300px;
     width: 300px;
max-height: 400px;
overflow-y: auto;
padding: 2px;
    padding-right: 5px;
}
}


Строка 46: Строка 50:
     font-size: 16px;
     font-size: 16px;
     font-weight: bold;
     font-weight: bold;
    overflow-y: auto;
     box-sizing: border-box;
     box-sizing: border-box;
    max-height: 400px;
     transition: all 0.05s;
     transition: all 0.05s;
     box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
     box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);

Версия от 19:12, 23 сентября 2024

.category-menu {
    border: 2px solid #4a4a55;
    border-radius: 0.3em;
    background-color: #37373d;
    overflow: hidden;
    padding: 12px 10px;
    box-sizing: border-box;
}

/* Категории */
.main-container {
    display: flex;
    width: 100%;
}

.categories {
    display: flex;
    justify-content: center;
    padding: 6px;
    
    display: none;
}

.categories div {
    cursor: pointer;
    padding: 10px 20px;
    margin: 0 8px;
    background-color: #43434d;
    border-radius: 0.3em;
}

.categories .active {
    background-color: #717483; /* Выделение активного пункта меню */
}

/* Меню слева */
.menu-container {
    width: 300px;
	max-height: 400px;
	overflow-y: auto;
	padding: 2px;
    padding-right: 5px;
}

.menu div {
    cursor: pointer;
    padding: 10px;
    background-color: #53535f;
    border-radius: 0.3em;
    font-size: 16px;
    font-weight: bold;
    box-sizing: border-box;
    transition: all 0.05s;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
}
.menu div:not(:last-child) {
    margin-bottom: 8px;
}

.menu {
    display: none; /* Скрываем меню, если категория не выбрана */
}

.menu div:hover {
    background-color: #5d5d6b;
}

.menu.active {
    display: block; /* Отображаем активное меню */
}

.menu .active {
    outline: 2px solid #7b7e8f;
}

/* Контент */
.content {
    padding: 10px;
    width: 100%;
    background-color: #52525d;
    border-radius: 0.3em;
    min-height: 150px;
    max-height: 400px;
    overflow: auto;
    box-sizing: border-box;
    margin-left: 12px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
}

.content > div {
    display: none;
}

.content .active {
    display: block;
}