MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 104: Line 104:
}
}


/* Style the article window */
#show-article-wrapper {
#show-article-wrapper {
     display: none;
     display: none;
     position: relative;
     position: relative;
     width: 37%;
     width: 37%;
     max-height: 80vh; /* Set a maximum height, e.g., 80% of the viewport height */
     height: max-content;
}
}


#show-article {
#show-article {
     position: fixed;
     position: fixed;  
     z-index: 2;
     z-index: 1; /* Ensure it's above the wrapper */
     top: 0;
     top: 0;
     right: 0;
     right: 0;
     width: inherit;
     width: inherit;
    height: max-content; /* Set height to adjust based on content */
    margin-right: 2%;
    margin-top: 2%;
     background-color: white;
     background-color: white;
     border: 1px solid;
     border: 1px solid;
     padding: 10px;
     padding: 10px;
    transform-origin: center;
}
     transition: transform 0.3s;
 
#show-article:hover {
     /* Styles for show-article when hovered */
}
 
#show-article-wrapper:hover {
}
}


Line 133: Line 136:
     right: 0;
     right: 0;
     width: inherit;
     width: inherit;
    height: max-content; /* Set height to adjust based on content */
    margin-right: 2%;
    margin-top: 2%;
     background-color: white;
     background-color: white;
     border: 1px solid;
     border: 1px solid;
     padding: 10px;
     padding: 10px;
    transform-origin: center;
    transition: transform 0.3s;
}
}


#show-article-wrapper:hover #article-frame {
#article-frame:hover {
     border: 1px solid black;
     border: 1px solid black;
     transform: rotate(-2.5deg);
     transform: rotate(-2.5deg);

Navigation menu