MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Manual revert
No edit summary
Line 106: Line 106:
/* Style the article window */
/* Style the article window */
#show-article-wrapper {
#show-article-wrapper {
    display: none;
    position: relative;
     width: 40%;
     width: 40%;
     max-height: 80vh; /* Set a maximum height (adjust as needed) */
     max-height: 80vh;
     overflow-y: auto; /* Enable vertical scrolling when content overflows */
     overflow-y: auto;
}
}


#show-article {
#show-article {
    position: fixed;
    top: 0;
    right: 0;
    margin-right: 2%;
    margin-top: 2%;
    width: inherit;
     background-color: white;
     background-color: white;
     border: 1px solid;
     border: 1px solid;
     padding: 10px;
     padding: 10px;
    z-index: 2; /* Ensure it's above #article-frame */
}
#show-article:hover {
    /* Styles for show-article when hovered */
}
#show-article-wrapper:hover #article-frame {
    border: 1px solid black;
    transform: rotate(-2.5deg);
    z-index: 1; /* Ensure #article-frame is above other content in #show-article */
}
}


#article-frame {
#article-frame {
    position: fixed;
    top: 0;
    right: 0;
    margin-right: 2%;
    margin-top: 2%;
    width: inherit;
    max-height: 80vh; /* Set a maximum height (adjust as needed) */
    overflow-y: auto; /* Enable vertical scrolling when content overflows */
     background-color: white;
     background-color: white;
     border: 1px solid;
     border: 1px solid;
     padding: 10px;
     padding: 10px;
    z-index: 1; /* Ensure it's above other content in #show-article */
}
}


Navigation menu