MediaWiki:VectorPlus.css: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision 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 {
.custom-tools-dropdown .mw-collapsible-toggle {
    cursor: pointer;
  background-color: #4CAF50;
  color: white;
  padding: 8px 12px;
  font-size: 13px;
  border: none;
}
}


/* Style for the dropdown content */
#p-tools .vector-menu-content {
.custom-tools-dropdown .pBody {
    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);
}
}


/* Show the dropdown content on hover */
#p-tools .vector-menu-content-list {
.custom-tools-dropdown:hover .pBody {
    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;
}