Jump to content

MediaWiki:Common.css: Difference between revisions

From Adaris
No edit summary
No edit summary
Line 19: Line 19:
   border-radius: 3px;
   border-radius: 3px;
   display: block; /* Ensures the entire header is treated as a block */
   display: block; /* Ensures the entire header is treated as a block */
}
.mw-collapsible-toggle {
  display: inline-block; /* Resets display to inline-block */
  width: auto; /* Removes width constraint */
  float: none; /* Ensures the toggle does not float */
  margin: 0; /* Removes any default margin */
  padding: 0; /* Removes any default padding */
}
}



Revision as of 20:02, 31 August 2024

/* Styles for collapsible sections */
.collapsible-section {
  margin-bottom: 15px;
  border: 1px solid #ccc;
  padding: 5px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.collapsible-header {
  font-weight: bold;
  cursor: pointer;
  text-align: left; /* Ensures the header text is aligned to the left */
  padding: 10px; /* Adds padding for better spacing */
  background-color: #e0e0e0;
  border-radius: 3px;
  display: block; /* Ensures the entire header is treated as a block */
}

.mw-collapsible-toggle {
  display: inline-block; /* Resets display to inline-block */
  width: auto; /* Removes width constraint */
  float: none; /* Ensures the toggle does not float */
  margin: 0; /* Removes any default margin */
  padding: 0; /* Removes any default padding */
}

.mw-collapsible-content {
  margin-top: 10px;
}

.mw-collapsible.mw-collapsed .mw-collapsible-content {
  display: none;
}