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%-...")
 
Line 4: Line 4:
 
flex-wrap: wrap;
 
flex-wrap: wrap;
 
justify-content: space-around;
 
justify-content: space-around;
}
 
 
a.grid {
 
display: inline-block;
 
width:calc(50%-4px);
 
margin-bottom: 50px;
 
text-decoration: none;
 
color: black;
 
 
}
 
}
  
 
@media screen and (min-width: 1000px) {
 
@media screen and (min-width: 1000px) {
a.grid {
+
div.grid {
 
width: calc(20% - 6.4px);
 
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;
 
 
}
 
}

Revision as of 06:53, 10 June 2016

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

@media screen and (min-width: 1000px) {
	div.grid {
	width: calc(20% - 6.4px);
	}
}