MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:


/* Responsive main page frames */
/* Responsive main page frames */
.mp-frame {  
.mp-frames {
   width:32%;  
   display: grid;
   float:left;
   grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  min-width:240px;
   gap: 1rem;
  padding:.3em;
}
 
@media only screen and (max-width: 950px) {
  .mp-frame {
    width:48%;
   }
}
 
@media only screen and (max-width: 710px) {
  .mp-frame {
    width:98%;
  }
}
}


Line 376: Line 363:
}
}


/* Shields */
 
/* Shields
* We can't embed shields/badges from https://shields.io/ directly, so this is a workaround :)
* Add <span class="shield" id="insertyouridhere"></span> where you want to place the shield
* Add background image for a new id here in the CSS.
*/
 
.shield {
.shield {
   display:inline-block;
   display:inline-block;
   width:109px;
   width:109px;
   height:20px;
   height:20px;
  vertical-align:middle;
}
#shield-python310 {
  background-image:url("https://img.shields.io/badge/Python-3.10%2B-3776AB?logo=python&logoColor=white");
}
}