Jump to content

The wiki is in the process of updating to the latest major game changes. Any contributions are appreciated!
Start here to learn how to edit and join our Discord server to make suggestions.

User:Saag/common.css: Difference between revisions

From The Deadlock Wiki
No edit summary
No edit summary
Tag: Manual revert
Line 1: Line 1:
/*.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 {
.hide {
   display: none;
   display: none;
   opacity: 0;
   opacity: 0;
   transition: opacity 0.5s ease;
   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 {
.hover-to-show:hover + .hide {
  display: block;
display: block;
  opacity: 1;
    position: fixed;
    top: inherit;
z-index: 2;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease;
}
}

Revision as of 18:36, 6 September 2024

.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;
}