MediaWiki:Minerva.less/mainpage.less: Difference between revisions

no edit summary
(Created page with "→‎=================== MAIN PAGE ===================: // preview the mobile main page at <https://brightershoreswiki.org/?useformat=mobile> →‎=================== mixins ===================: .uppercase-heading(@text-color: var(--byline-color)) { color: @text-color; font-weight: bold; text-transform: uppercase; letter-spacing: .025em; } @keyframes slide-up { from { opacity: 0; transform: translateY(1rem)...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 4:
 
// preview the mobile main page at <https://brightershoreswiki.org/?useformat=mobile>
 
/* ===================
variables
=================== */
 
@mp-text-light: fade( @white, 90% );
@mp-gutter-width: .9rem;
 
/* ===================
Line 55 ⟶ 62:
// common does width: 100%
width: inherit;
h2 {
border: none;
}
}
Line 61 ⟶ 70:
 
.tile {
padding: 2.5em2em 1.75em 2em;
 
h2 {
Line 179 ⟶ 188:
.tile-top {
padding: 0;
height: initial5.5rem;
}
 
.tile-bottom {
border: none;
}
 
h2 {
width: 100%;
}
}
Line 216 ⟶ 221:
 
/* --------------------
discord server social
-------------------- */
 
.mainpage-discordsocial {
border: none;
margin-bottom: 0;
 
.tile-top {
display: flex;
padding: 1em 2em;
align-items: center;
height: 70px; // not in em because the server icon is a fixed size
justify-content: center;
padding: 1em 2em;
min-height: 70px; // not in em because the server icon is a fixed size
 
.partnersocial-icon {
margin-rightfloat: 1emleft;
margin: 0 1em 0 -1em;
width: 100%60px;
text-align: center;
}
 
.serversocial-nameheader {
color: @white;
font-weight: bold;
font-size: 1.25em;
margin: 0;
}
 
.serversocial-tagline {
color: @mp-text-light;
margin: 0;
}
Line 239 ⟶ 256:
}
 
.tile-bottom {
}
border: none;
padding: 1em 2em;
 
.twitter-namep {
/* --------------------
twitter .uppercase-heading();
color: @white;
-------------------- */
font-size: .9em;
text-align: center;
margin: 0;
}
 
}
.mainpage-twitter {
margin-bottom: 0;
// Discord colors
&.mainpage-discord {
 
.tile-top {
background: @discord-bg;
padding: 1em 2em;
}
height: 70px; // not in em because the server icon is a fixed size
 
.twittertile-logobottom {
margin-rightbackground: 1em@discord-bg-dark;
}
 
}
.twitter-name {
 
margin: 0;
// X (Twitter) colors
&.mainpage-twitter {
 
.tile-top {
background: @twitter-bg;
}
 
.twittertile-taglinebottom {
marginbackground: 0@twitter-bg-dark;
}