MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 40: Line 40:


#p-themes-item-light a:before {
#p-themes-item-light a:before {
     content: "Светлая";
     content: "Light";
     visibility: visible;
     visibility: visible;
     position: absolute;
     position: absolute;
Line 57: Line 57:
}
}


#p-themes-item-dark {
#p-themes-item-dark a {
    --background-color: #f1f1f1;
    --header-background-color: #ffffff;
    --content-background-color: #ffffff;
    direction: ltr;
    font-family: 'MyCustomFont2', sans-serif;
    visibility: hidden;
    list-style: none;
    line-height: 1em;
    display: block;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.25em 0.5em;
    text-decoration: none;
    margin-left: -10px;
    text-align: center;
    font-size: 15px;
    color: red;
    background: transparent;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    width: 100%;
    position: relative;
}
 
#p-themes-item-dark a:before {
    content: "Dark";
    visibility: visible;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px; /* Отступ сверху */
    width: 100%;
    text-align: center;
    line-height: 1em;
    color: red;
    font-size: 15px;
    font-family: 'MyCustomFont2', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
 
#p-themes-item-light {
     position: relative;
     position: relative;
     top: -26px;
     top: -26px;

Navigation menu