MediaWiki:Common.css: Difference between revisions

From Begonia Wiki

No edit summary
No edit summary
 
(99 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Default styles for larger screens */
.page-container {
  display: flex;
  align-items: flex-start; /* Align items to the top */
}
.infobox-container {
  width: 30%; /* Adjust the width as needed */
  float: left; /* Float the infobox-container to the left */
}
.infobox-wrapper {
  width: 100%; /* Ensure the wrapper takes up the full width */
  order: 2; /* Set the order to display the infobox below the image */
}
.infoboximg {
  width: 90%; /* Ensure the image takes up the full width of .infoboximg */
  order: 1; /* Set the order to display the image above the infobox */
}
.infobox {
.infobox {
    border: 1px solid #a2a9b1;
  width: 90%; /* Ensure the infobox takes up the full width */
    border-spacing: 3px;
}
     background-color: #f8f9fa;
 
     color: black;
.content {
    margin: 0.5em 0 0.5em 1em;
  width: 100%; /* Adjust the width as needed */
     padding: 0.2em;
  padding-left: 5%;
     float: right;
}
    clear: right;
 
    font-size: 88%;
/* Media query for smaller screens (tablets) */
     line-height: 1.5em;
@media (max-width: 1024px) {
  .page-container {
     flex-direction: column; /* Stack elements vertically on smaller screens */
     align-items: center; /* Center align content */
  }
 
  .infobox-container, .content {
     width: 100%; /* Allow each element to take up the full width */
     margin: 0; /* Remove any margins on smaller screens */
  }
}
 
/* Media query for mobile devices */
@media (max-width: 768px) {
  .page-container {
     align-items: flex-start; /* Align items to the top */
  }
}
}

Latest revision as of 08:07, 27 September 2023

/* Default styles for larger screens */
.page-container {
  display: flex;
  align-items: flex-start; /* Align items to the top */
}

.infobox-container {
  width: 30%; /* Adjust the width as needed */
  float: left; /* Float the infobox-container to the left */
}

.infobox-wrapper {
  width: 100%; /* Ensure the wrapper takes up the full width */
  order: 2; /* Set the order to display the infobox below the image */
}

.infoboximg {
  width: 90%; /* Ensure the image takes up the full width of .infoboximg */
  order: 1; /* Set the order to display the image above the infobox */
}

.infobox {
  width: 90%; /* Ensure the infobox takes up the full width */
}

.content {
  width: 100%; /* Adjust the width as needed */
  padding-left: 5%;
}

/* Media query for smaller screens (tablets) */
@media (max-width: 1024px) {
  .page-container {
    flex-direction: column; /* Stack elements vertically on smaller screens */
    align-items: center; /* Center align content */
  }

  .infobox-container, .content {
    width: 100%; /* Allow each element to take up the full width */
    margin: 0; /* Remove any margins on smaller screens */
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .page-container {
    align-items: flex-start; /* Align items to the top */
  }
}