MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 2: Line 2:
     background-image: url(/images/3/37/Is-ø-lat-ed2.png);
     background-image: url(/images/3/37/Is-ø-lat-ed2.png);
     background-size: cover;
     background-size: cover;
    background-repeat: no-repeat;
     background-position: center;
     background-position: center;
     list-style-type: none;
     list-style-type: none;
     width: 300px;
     width: 100%; /* Ширина 100% родительского элемента */
     height: 300px;
     height: 300px; /* Высота элемента, можно регулировать */
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     text-align: center;
     text-align: center;
    padding: 20px; /* Отступы, чтобы текст не был прижат к краям */
    box-sizing: border-box; /* Учитывает отступы в общей ширине */
}
}


.list-item span {
.list-item span {
     color: black;
     color: black;
    background: rgba(255, 255, 255, 0.6); /* Полупрозрачный фон для улучшения читаемости текста */
    padding: 10px;
    border-radius: 5px; /* Сглаживание углов текста */
}
}




Navigation menu