MediaWiki:Common.less/mainpage.less: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(base cp from rsw) |
No edit summary Tag: Reverted |
||
Line 166: | Line 166: | ||
.mainpage-contents { |
.mainpage-contents { |
||
grid-area: content; |
|||
grid-template-columns: repeat(6, 1fr); |
|||
.tile-halves { |
.tile-halves { |
||
flex: 1; |
flex: 1; |
||
margin-right: @mp-gutter-width; |
|||
// zoom on hover |
|||
&:hover .tile-top img { |
|||
transform: scale(1.04); |
|||
⚫ | |||
&:last-child { |
|||
margin-right: 0; |
|||
} |
|||
} |
} |
||
.tile-top { |
.tile-top { |
||
height: @mp-contents-height; |
|||
position: relative; // needed for ribbon |
position: relative; // needed for ribbon |
||
h2 a { |
|||
display: block; |
|||
text-align: center; |
|||
text-decoration: none; |
|||
line-height: @mp-contents-height; |
|||
padding-left: .45rem; // to make up for arrow width |
|||
} |
|||
} |
} |
||
Line 180: | Line 199: | ||
margin: 0; |
margin: 0; |
||
padding: 0; |
padding: 0; |
||
⚫ | |||
.tile-bottom.link-button a { |
|||
padding: 0.75em 0.2em; // prevent grid gap misalignment |
|||
} |
} |
||