User:Saag/common.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
No edit summary
Saag (talk | contribs)
mNo edit summary
 
(115 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Ensure the parent container is positioned relative */
/*:root {*/
.hover-wrapper {
/*    --weapon-orange: #d5903f;*/
  position: relative; /* Establishes a reference point for the absolute positioning of child elements */
/*    --vitality-green: #74b01c; */
}
/*   --spirit-purple: #c288f0;*/
/*}*/


/* The hover element */
/*a:link, a:visited {*/
.hover-to-show {
/* color: #694a2c;*/
  cursor: pointer;
/*}*/
}


/* The hidden overlay */
/*body, .mw-header, .mw-page-container, #article, #content, #catlinks {*/
.hide {
/* color: #21130b;*/
  display: none;
/*   background-color: #f5eedd;*/
  opacity: 0;
/*}*/
  transition: opacity 0.5s ease;
  position: absolute; /* Position absolute to overlay without shifting other content */
  top: 100%; /* Position it below the hover element, adjust as necessary */
  left: 0; /* Align it horizontally, adjust if needed */
  z-index: 2; /* Ensure it appears above other content */
  cursor: pointer;
}
 
/* Display the overlay on hover */
.hover-to-show:hover + .hide {
  display: block;
  opacity: 1;
}

Latest revision as of 15:40, 26 October 2024

/*:root {*/
/*    --weapon-orange: #d5903f;*/
/*    --vitality-green: #74b01c; */
/*    --spirit-purple: #c288f0;*/
/*}*/

/*a:link, a:visited {*/
/*	color: #694a2c;*/
/*}*/

/*body, .mw-header, .mw-page-container, #article, #content, #catlinks {*/
/*	color: #21130b;*/
/*    background-color: #f5eedd;*/
/*}*/