MediaWiki:Common.less/mainpage.less: Difference between revisions
no edit summary
Tag: Undo |
No edit summary |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 2:
MAIN PAGE
=================== */
body.page-Main_Page.action-view .catlinks,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view #firstHeading,
body.page-Main_Page.action-view #siteNotice {
display: none;
}
Line 98 ⟶ 105:
padding-right: 1.75em;
max-width: 100%;
border: none;
}
Line 104 ⟶ 112:
margin-bottom: 0;
}
}
Line 163 ⟶ 170:
wiki contents
-------------------- */
@mp-contents-height:
.mainpage-contents {
grid-area: content;
grid-template-columns: repeat(
.tile-halves {
flex: 1;
}
.tile-top {
height: @mp-contents-height;
position: relative; // needed for ribbon
&.tile-image img {
height: auto;
}
}
Line 181 ⟶ 194:
padding: 0;
}
.tile-bottom {
box-shadow: inset 0 0 2px rgba(255,255,255,0.5);
h2 {
background: var(--body-darker);
box-shadow: @infobox-card-shadow;
margin: 3px !important;
}
padding: 0.
}
}
Line 223 ⟶ 246:
/* --------------------
discord server & twitter/X
-------------------- */
.mainpage-
border: none;
box-shadow: @box-shadow-dark;
Line 232 ⟶ 255:
display: flex;
align-items: center;
a {
flex: 1;
position: relative;
text-decoration: none;
Line 249 ⟶ 271:
.tile-bottom {
▲ background: @discord-bg-dark;
border: none;
padding: 1em 1.75em;
Line 265 ⟶ 286:
}
.
margin-right: .75em;
text-align: center;
width: 60px;
}
.
color: @white;
font-weight: bold;
font-size: 1.
margin: .5em 0 -0.15em;
}
Line 290 ⟶ 313:
transition: .3s ease-out;
}
// Discord colors
&.mainpage-discord {
.tile-top {
background: @discord-bg;
}
.tile-bottom {
background: @discord-bg-dark;
}
}
// X (Twitter) colors
&.mainpage-twitter {
.tile-top {
background: @twitter-bg;
}
.tile-bottom {
background: @twitter-bg-dark;
}
}
}
Line 302 ⟶ 349:
.tile-top {
background:
}
|