Difference between revisions of "MediaWiki:Common.css"

From specialfunctionswiki
Jump to: navigation, search
(Created page with "CSS placed here will be applied to all skins: div.grid { display: flex; flex-wrap: wrap; justify-content: space-around; } a.grid { display: inline-block; width:calc(50%-...")
 
 
(10 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
flex-wrap: wrap;
 
flex-wrap: wrap;
 
justify-content: space-around;
 
justify-content: space-around;
 +
padding: 10px;
 
}
 
}
  
a.grid {
+
/* for footers */
display: inline-block;
+
div.grid2 {
width:calc(50%-4px);
+
display: flex;
margin-bottom: 50px;
+
flex-wrap: wrap;
text-decoration: none;
+
justify-content: center;
color: black;
+
padding: 10px;
}
 
 
 
@media screen and (min-width: 1000px) {
 
a.grid {
 
width: calc(20% - 6.4px);
 
}
 
}
 
 
 
a.grid:hover img.grid {
 
  transform: scale(1.15);
 
}
 
 
 
figure.grid {
 
    margin:0;
 
    overflow: hidden;
 
}
 
     
 
figcaption.grid {
 
    margin-top: 15px;
 
}
 
 
img.grid {
 
  border: none;
 
  max-width: 100%;
 
  height: 150px;
 
  display: block;
 
  margin: 0 auto;
 
  background: #ccc;
 
  transition: transform .2s ease-in-out;
 
 
}
 
}

Latest revision as of 19:10, 10 June 2016

/* CSS placed here will be applied to all skins */
div.grid {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 10px;
}

/* for footers */
div.grid2 {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 10px;
}