User:Saag/common.css

From Deadlock Wiki
Revision as of 18:34, 6 September 2024 by Saag (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*.hide {*/
/*  display: none;*/
/*  opacity: 0;*/
/*  transition: opacity 0.5s ease;*/
/*}*/

/*.hover-to-show:hover + .hide {*/
/*	display: block;*/
/*    position: fixed; */
/*    top: inherit;*/
/*	z-index: 2;*/
/*    cursor: pointer;*/
/*    opacity: 1;*/
/*    transition: opacity 0.5s ease;*/
/*}*/

/* Wrapper to hold both elements */
.hover-wrapper {
  position: relative; /* Establish relative positioning for the wrapper */
}

/* The hover element */
.hover-to-show {
  cursor: pointer;
}

/* The hidden element */
.hide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute; /* Position relative to the .hover-wrapper */
  top: 100%; /* Ensure the hidden element appears directly below the hovered element */
  left: 0; /* Adjust horizontal positioning if necessary */
  z-index: 2;
  cursor: pointer;
}

/* Show hidden content on hover */
.hover-to-show:hover + .hide {
  display: block;
  opacity: 1;
}