Jump to content

MediaWiki:Common.css: Difference between revisions

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


.mw-collapsible .mw-collapsible-toggle {
.collapsible-header {
   display: inline-block;
   font-weight: bold;
  margin-right: 5px;
   cursor: pointer;
   cursor: pointer;
   font-weight: bold;
   margin-bottom: 5px;
  text-align: left;  /* Ensures the header is aligned to the left */
  padding: 5px 10px;
  background-color: #e0e0e0;
  border-radius: 3px;
}
}


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



Revision as of 20:00, 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;
  margin-bottom: 5px;
  text-align: left;  /* Ensures the header is aligned to the left */
  padding: 5px 10px;
  background-color: #e0e0e0;
  border-radius: 3px;
}

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

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