MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
.grid.two-columns{ | .grid.two-columns{ | ||
grid-template-columns: repeat( 2, minmax(450px, 1fr) ); | grid-template-columns: repeat( 2, minmax(450px, 1fr) ); | ||
margin: 15px 0; | |||
} | } | ||
.grid.two-columns.two-thirds-left{ | .grid.two-columns.two-thirds-left{ | ||
Line 16: | Line 17: | ||
.grid.three-columns{ | .grid.three-columns{ | ||
grid-template-columns: repeat( 3, minmax(450px, 1fr) ); | grid-template-columns: repeat( 3, minmax(450px, 1fr) ); | ||
margin: 15px 0; | |||
} | } | ||
Revision as of 14:34, 6 January 2020
/* CSS placed here will be applied to all skins */
.grid{
display: grid;
column-gap: 15px;
row-gap: 60px;
}
.grid.two-columns{
grid-template-columns: repeat( 2, minmax(450px, 1fr) );
margin: 15px 0;
}
.grid.two-columns.two-thirds-left{
grid-template-columns: 2fr 1fr;
}
.grid.two-columns.slideshare{
grid-template-columns: 800px auto;
}
.grid.three-columns{
grid-template-columns: repeat( 3, minmax(450px, 1fr) );
margin: 15px 0;
}
.grid.three-columns > div, .grid.two-columns > div{
/*height: 450px;*/
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.no-border, div.no-border > div{
border: none !important;
box-shadow: none !important;
}
.grid.two-columns .full-width{
grid-column: span 2;
}
.grid.three-columns .full-width{
grid-column: span 3;
height: auto;
}
/* Common */
.box-header{
padding: 1px;
font-weight: bold;
font-size: 1.2em;
border-bottom: 1px solid #CCC;
}
.box-content{
padding: 10px;
}
.box-content.framework{
display: grid;
grid-template-columns: repeat( 4, minmax(150px, 1fr) );
}
.text-center{
text-align: center;
}
pre{
background-color: transparent;
border: none;
padding: 0;
white-space: pre-wrap;
}