Emoji u1f384.svg
Merry Christmas from the IIWiki Team! Have a happy new year!

MediaWiki:VectorPlus.css: Difference between revisions

Jump to navigation Jump to search
(Created page with "→‎Style for the custom tools dropdown: .custom-tools-dropdown { position: relative; display: inline-block; } →‎Style for the dropdown button: .dropbtn { background-color: #4CAF50; color: white; padding: 16px; font-size: 16px; border: none; } →‎Style for the dropdown content: .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; } /...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Style for the custom tools dropdown */
/* Add custom CSS styles for the Tools dropdown */
.custom-tools-dropdown {
#p-tools {
  position: relative;
    position: relative;
  display: inline-block;
}
}


/* Style for the dropdown button */
#p-tools .vector-menu-heading {
.dropbtn {
    cursor: pointer;
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}
}


/* Style for the dropdown content */
#p-tools .vector-menu-content {
.dropdown-content {
    display: none;
  display: none;
    position: absolute;
  position: absolute;
    top: 100%;
  background-color: #f9f9f9;
    right: 0;
  min-width: 160px;
    z-index: 1000;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
}


/* Show the dropdown content on hover */
#p-tools .vector-menu-content-list {
.custom-tools-dropdown:hover .dropdown-content {
    list-style-type: none;
  display: block;
    padding: 0;
}
 
#p-tools .vector-menu-content-list li {
    padding: 5px 10px;
}
 
#p-tools .vector-menu-content-list li:hover {
    background-color: #f0f0f0;
}
}

Latest revision as of 01:44, 23 February 2024

/* Add custom CSS styles for the Tools dropdown */
#p-tools {
    position: relative;
}

#p-tools .vector-menu-heading {
    cursor: pointer;
}

#p-tools .vector-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
}

#p-tools .vector-menu-content-list {
    list-style-type: none;
    padding: 0;
}

#p-tools .vector-menu-content-list li {
    padding: 5px 10px;
}

#p-tools .vector-menu-content-list li:hover {
    background-color: #f0f0f0;
}