MediaWiki:Common.css: различия между версиями

мНет описания правки
Новый стиль <tabs>
Строка 1318: Строка 1318:
}
}


/* Общие стили для вкладок */
.tabs-label {
.tabs-label {
     cursor: pointer;
     cursor: pointer;
     padding: 1px 6px;
     padding: 1px 6px;
     background: transparent !important;
     background: transparent;
     border: 1px solid black
     border: 1px solid black;
}
}


.tabs-tabbox > .tabs-input:checked + .tabs-label,.tabs-input-0:checked + .tabs-input-1 + .tabs-label {
.tabs-label:hover {
    box-shadow: lightgrey !important;
     z-index: 2;
     z-index: 2;
    box-shadow: 0px 2px 1px #3366cc
}
}


.tabs-tabbox > .tabs-input+ .tabs-input+ .tabs-label {
/* Стили для активных вкладок */
     margin: 0
.tabs-tabbox > .tabs-input:checked + .tabs-label,
.tabs-input-0:checked + .tabs-input-1 + .tabs-label {
     color: lightgrey;
    background: rgb(255 255 255 / 4%);
    border-top: 1px solid rgb(255 255 255 / 15%);
    /* border-bottom: 1px solid #3366cc; */
    z-index: 2;
}
}


.tabs-label:hover {
/* Стили для структуры вкладок */
     box-shadow: 0px 2px 1px darkblue;
.tabs-tabbox > .tabs-input + .tabs-input + .tabs-label {
    z-index: 2
     margin: 0;
}
}


.tabs-tabbox > .tabs-container {
.tabs-tabbox > .tabs-label {
     margin-top: -1px;
     margin: 0;
     padding: 2px 10px;
     vertical-align: baseline;
    background: #303037;
     border-radius: 0;
     border-radius: 0;
     position: relative;
     color: #a5a5a5;
    border: 1px solid #000000;
     background: transparent;
     width: inherit;
     border: 1px solid rgb(0 0 0 / 50%);
     max-width: inherit;
     border-top: 1px solid rgb(255 255 255 / 10%);
     min-width: inherit;
    z-index: 1
}
}


.tabs-tabbox > .tabs-label {
/* Стили для контейнера вкладок */
     margin: 0;
.tabs-tabbox > .tabs-container {
     background: transparent;
     padding: 8px 10px;
     position: relative;
     background: rgb(255 255 255 / 3%);
    display: inline-block;
     border-radius: 0;
    vertical-align: baseline;
     border: 1px solid rgb(0 0 0 / 50%);
     border-radius: 0
}
}


.tooltip {
.tooltip {
     position: relative;
     position: relative;
     display: inline
     display: inline;
}
}


Строка 3076: Строка 3079:


/* Удаление верхних и нижних отступов для первого и последнего дочернего элемента */
/* Удаление верхних и нижних отступов для первого и последнего дочернего элемента */
.no-margin-edges > :first-child {
.no-margin-edges, .tabs-container > :first-child {
     margin-top: 0 !important;
     margin-top: 0 !important;
}
}


.no-margin-edges > :last-child {
.no-margin-edges, .tabs-container > :last-child {
     margin-bottom: 0 !important;
     margin-bottom: 0 !important;
}
}