বিষয়বস্তুতে চলুন

মিডিয়াউইকি:Common.css: সংশোধিত সংস্করণের মধ্যে পার্থক্য

From ওয়ার্ল্ডপিডিয়া, the free encyclopedia
সম্পাদনা সারাংশ নেই
ট্যাগ: পুনর্বহালকৃত
সম্পাদনা সারাংশ নেই
ট্যাগ: পুনর্বহালকৃত
১ নং লাইন: ১ নং লাইন:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Layout for content and infobox
/* Ensure the page container uses flexbox to control layout */
.content-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 20px;
}
 
.intro-text {
  flex: 0 0 52%;
  margin-right: 20px;
}
 
.infobox {
  flex: 0 0 43%;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}
 
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }
 
  .intro-text,
  .infobox {
    flex: 0 0 100%;
    margin: 0 0 15px 0;
  }
}
*/
 
/* Make the main content area a flex container */
.page-content {
.page-content {
     display: flex;
     display: flex;
     flex-direction: row; /* Keep content in a row */
     flex-wrap: wrap; /* Allow wrapping on smaller screens */
     flex-wrap: wrap;
    justify-content: flex-start; /* Align content to the left */
     margin-top: 20px;
}
}


/* Infobox on the right side */
/* Infobox - floated to the right */
.infobox {
.infobox {
     float: right;
     float: right; /* Make sure it's on the right */
     margin-left: 20px; /* Space between text and infobox */
     margin-left: 20px; /* Space between the text and infobox */
     width: 300px; /* Adjust the width as necessary */
     width: 300px; /* Adjust width as needed */
     margin-bottom: 20px;
     margin-bottom: 20px; /* Space below the infobox */
}
}


/* Content on the left side */
/* Main text content area */
.page-content .text-content {
.page-content .text-content {
     width: calc(100% - 320px); /* Adjust based on infobox width */
     width: 70%; /* Adjust width to leave space for infobox */
     padding-right: 20px;
     padding-left: 10px; /* Padding on the left side */
    margin-top: 20px;
}
}


/* Prevent content overflow */
/* Optional: Add some spacing between content and infobox */
body {
body {
     overflow-x: hidden;
     margin-left: 20px; /* Ensure some space on the left */
}
 
/* Make sure infobox content doesn't overlap */
.infobox img {
    width: 100%;
    height: auto;
}
}

২০:৪৫, ২৬ ফেব্রুয়ারি ২০২৫ তারিখে সংশোধিত সংস্করণ

/* CSS placed here will be applied to all skins */
/* Ensure the page container uses flexbox to control layout */
.page-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: flex-start; /* Align content to the left */
    margin-top: 20px;
}

/* Infobox - floated to the right */
.infobox {
    float: right; /* Make sure it's on the right */
    margin-left: 20px; /* Space between the text and infobox */
    width: 300px; /* Adjust width as needed */
    margin-bottom: 20px; /* Space below the infobox */
}

/* Main text content area */
.page-content .text-content {
    width: 70%; /* Adjust width to leave space for infobox */
    padding-left: 10px; /* Padding on the left side */
}

/* Optional: Add some spacing between content and infobox */
body {
    margin-left: 20px; /* Ensure some space on the left */
}

/* Make sure infobox content doesn't overlap */
.infobox img {
    width: 100%;
    height: auto;
}