MediaWiki:Common.css

From Cramsession
Revision as of 00:14, 16 May 2026 by Mflavell (talk | contribs) (Created page with "→‎CSS placed here will be applied to all skins: →‎Style the main page InputBox wrapper: .mw-inputbox-form { display: flex; justify-content: center; align-items: center; gap: 10px; } →‎Make the text input field look modern and spacious: .mw-inputbox-form input[type="text"], .mw-inputbox-form input[type="search"] { padding: 12px 20px; font-size: 16px; border: 2px solid #ddd; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* Style the main page InputBox wrapper */
.mw-inputbox-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Make the text input field look modern and spacious */
.mw-inputbox-form input[type="text"], 
.mw-inputbox-form input[type="search"] {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mw-inputbox-form input[type="text"]:focus {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Style the search button to look like a modern CTA */
.mw-inputbox-form input[type="submit"] {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mw-inputbox-form input[type="submit"]:hover {
    background-color: #1a252f;
}