Template:MainPageWelcomeCSS.css: Difference between revisions

From KSI Wiki
Jump to: navigation, search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 14: Line 14:
   padding: 0;
   padding: 0;
   margin: 0 auto;
   margin: 0 auto;
   max-width: 100%;
   max-width: 1500px;
  width: 100%;
   overflow: hidden;
   overflow: hidden;
   box-sizing: border-box;
   box-sizing: border-box;
Line 30: Line 31:
   display: flex;
   display: flex;
   justify-content: space-between;
   justify-content: space-between;
   gap: 1em;
   align-items: center;
   margin-top: 1em;
   margin-top: 1em;
   font-size: 95%;
   font-size: 95%;
Line 36: Line 37:
   flex-wrap: wrap;
   flex-wrap: wrap;
   text-align: center;
   text-align: center;
  padding: 0 1em;       
  height: 3em;           
  line-height: 3em;     
}
}



Latest revision as of 12:53, 10 April 2025

/* Outer purple container */
.mainpage-welcome-box {
  border: 2px solid #ddcef2;
  width: 95%;
  margin: 0 auto;
  padding: 1em;
  box-sizing: border-box;
  overflow: hidden;
}

/* Orange image box */
.mainpage-banner-wrapper {
  border: 2px solid #f79200;
  padding: 0;
  margin: 0 auto;
  max-width: 1500px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Responsive image */
.mainpage-banner-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Inline text row */
.mainpage-welcome-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  font-size: 95%;
  color: white;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 1em;         
  height: 3em;            
  line-height: 3em;       
}

.mainpage-welcome-text span {
  flex: 1;
  text-align: center;
}

/* Text alignment for different widths */
@media (min-width: 768px) {
  .mainpage-welcome-text span:first-child { text-align: left; }
  .mainpage-welcome-text span:last-child { text-align: right; }
}