MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* Стили для модального окна */
/* Основной стиль для <li> */
.modal {
.tooltip23-container {
    display: inline;
  display: inline-block;
  position: relative;
  cursor: pointer;
}
}


.modal-open:checked + .modal-wrap {
/* Скрытый по умолчанию всплывающий блок */
    display: block;
.tooltip23-text {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Позиция всплывающего блока */
  left: 50%;
  margin-left: -100px; /* Сдвиг всплывающего блока влево на половину его ширины */
  opacity: 0;
  transition: opacity 0.3s;
}
}


.modal-wrap {
/* Треугольник-указатель всплывающего блока */
    display: none;
.tooltip23-text::after {
    position: fixed;
  content: "";
    top: 0;
  position: absolute;
    left: 0;
  top: 100%; /* Внизу всплывающего блока */
    right: 0;
  left: 50%;
    bottom: 0;
  margin-left: -5px;
    background: rgba(0, 0, 0, 0.8);
  border-width: 5px;
    justify-content: center;
  border-style: solid;
    align-items: center;
  border-color: #555 transparent transparent transparent;
    z-index: 1000;
}
}


.modal-dialog {
/* Показывать всплывающий блок при наведении */
    background: white;
.tooltip23-container:hover .tooltip23-text {
    border-radius: 5px;
  visibility: visible;
    padding: 1em;
  opacity: 1;
    width: 90%;
    max-width: 600px;
    margin: auto;
}
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-close {
    cursor: pointer;
    font-size: 1.5em;
}
.modal-body {
    margin: 1em 0;
}
.modal-footer {
    text-align: right;
}
.open-modal {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}




Navigation menu