MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 188: Line 188:
}
}
#editpage-specialchars {
#editpage-specialchars {
     position: fixed; /* Make it sticky */
     position: fixed;
     top: 20px; /* Distance from the top of the viewport */
     top: 20px;
     right: 20px; /* Distance from the right side of the viewport */
     left: 20px;
     width: 200px; /* Set the desired width */
     width: 200px;
    max-height: 90vh; /* Maximum height relative to viewport */
     z-index: 9999; /* Ensures it's on top of everything */
    overflow-y: auto; /* Scroll content if it overflows */
     background-color: #f9f9f9; /* Optional: Background color */
     z-index: 1000; /* Ensure it stays on top */
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Shadow */
     background-color: #f9f9f9; /* Optional: background color */
     padding: 10px; /* Optional: Padding */
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: shadow */
     border-radius: 5px; /* Optional: Rounded corners */
     padding: 10px; /* Optional: padding inside the box */
    cursor: move; /* Changes the cursor to indicate it can be dragged */
     border-radius: 5px; /* Optional: rounded corners */
}
 
#editpage-specialchars.dragging {
    opacity: 0.7; /* Makes the element semi-transparent while dragging */
}
}