MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 99: | Line 99: | ||
/*Make pretty button Layout */ | /*Make pretty button Layout */ | ||
/* Container | /* Container: Forces side-by-side layout regardless of hidden tags */ | ||
.button-grid-container { | .button-grid-container { | ||
display: | display: flex !important; | ||
flex-wrap: wrap !important; | |||
gap: 10px !important; | gap: 10px !important; | ||
width: 100% !important; | width: 100% !important; | ||
max-width: | max-width: 500px !important; | ||
margin: 20px 0 !important; | margin: 20px 0 !important; | ||
} | } | ||
/* | /* Force each button to take up roughly 48% of the width */ | ||
.static-button { | .static-button { | ||
display: block !important; | display: block !important; | ||
flex: 0 0 calc(50% - 10px) !important; /* Forces 2 per row */ | |||
box-sizing: border-box !important; | |||
background-color: #3eb489 !important; /* Mintarc Green */ | background-color: #3eb489 !important; /* Mintarc Green */ | ||
border: 1px solid #2e8b65 !important; | border: 1px solid #2e8b65 !important; | ||
| Line 122: | Line 120: | ||
} | } | ||
/* Link | /* Link inside the button */ | ||
.static-button a { | .static-button a { | ||
display: block !important; | display: block !important; | ||
padding: 12px 5px !important; | |||
color: #fff !important; | color: #fff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
width: 100% !important; | |||
} | } | ||
/* Remove | /* Remove MediaWiki's external link icon to keep centering clean */ | ||
.static-button a.external { | .static-button a.external { | ||
background-image: none !important; | background-image: none !important; | ||
Revision as of 06:40, 1 May 2026
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
h1.firstHeading {
font-family: 'Roboto', sans-serif;
}
.firstHeading {
display: none;
}
.mw-headline {
font-family: 'Roboto', sans-serif !important;
}
#p-search {
position: absolute;
top: 10px; /* Adjust as needed */
right: 20px; /* Change to move it left/right */
}
/* Change background color for Vector skin */
body {
background-color: #3eb489; /* Replace with your desired color */
}
#p-logo {
display: none;
}
#ca-talk { display: none !important; }
#ca-history { display: none !important;}
#ca-viewsource { display: none !important; }
.custom-button {
display: inline-block; /* Makes the button behave like a block */
padding: 5px 5px; /* Adds spacing inside the button */
font-size: 14px; /* Adjusts font size */
color: #fff; /* White text color */
background-color: #3eb489; /* Blue background */
border: 1px solid black; /* Black border */
border-radius: 3px; /* Rounded corners */
text-decoration: none; /* Removes underline from link */
text-align: center; /* Centers text inside the button */
cursor: pointer; /* Pointer cursor on hover */
}
.custom-button a {
display: block; /* Expands the link to fill the entire span */
color: #fff; /* White text color */
text-decoration: none; /* Removes underline from link */
vertical-align: middle; /* Ensures vertical alignment of text */
text-align: center; /* Centers text inside the button */
}
.custom-button:hover {
color: #fff; /* White text color */
}
.static-button {
width: 120px;
display: inline-block; /* Makes the button behave like a block */
padding: 5px 5px; /* Adds spacing inside the button */
font-size: 14px; /* Adjusts font size */
color: #fff; /* White text color */
background-color: #3eb489; /* Blue background */
border: 1px solid black; /* Black border */
border-radius: 3px; /* Rounded corners */
text-decoration: none; /* Removes underline from link */
text-align: center; /* Centers text inside the button */
cursor: pointer; /* Pointer cursor on hover */
}
.static-button a {
display: block; /* Expands the link to fill the entire span */
color: #fff; /* White text color */
text-decoration: none; /* Removes underline from link */
vertical-align: middle; /* Ensures vertical alignment of text */
text-align: center; /* Centers text inside the button */
}
.static-button:hover {
color: #fff; /* White text color */
}
.pre-content.heading-holder {
display: none !important;
}
/*Make pretty button Layout */
/* Container: Forces side-by-side layout regardless of hidden tags */
.button-grid-container {
display: flex !important;
flex-wrap: wrap !important;
gap: 10px !important;
width: 100% !important;
max-width: 500px !important;
margin: 20px 0 !important;
}
/* Force each button to take up roughly 48% of the width */
.static-button {
display: block !important;
flex: 0 0 calc(50% - 10px) !important; /* Forces 2 per row */
box-sizing: border-box !important;
background-color: #3eb489 !important; /* Mintarc Green */
border: 1px solid #2e8b65 !important;
border-radius: 4px !important;
text-align: center !important;
}
/* Link inside the button */
.static-button a {
display: block !important;
padding: 12px 5px !important;
color: #fff !important;
text-decoration: none !important;
font-weight: bold !important;
width: 100% !important;
}
/* Remove MediaWiki's external link icon to keep centering clean */
.static-button a.external {
background-image: none !important;
padding-right: 5px !important;
}
.static-button:hover {
background-color: #2e8b65 !important;
}