MediaWiki:Common.css: Difference between revisions
| No edit summary | No edit summary | ||
| (52 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| /* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
| /* Add keywords to show in a search query to find pages */ | |||
| .keywords { | |||
|    display: none !important; | |||
| } | |||
| /* Hide account creation */ | |||
| #mw-createaccount-cta, .mw-createacct-benefits-container { display: none !important; } | |||
| /* Hide the "Help with logging in" link */ | |||
| a[href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Logging_in"] { | |||
|     display: none !important; | |||
| } | |||
| /* Hide the "Forgot your password?" link */ | |||
| a[href="/help/index.php/Special:PasswordReset"] { | |||
|     display: none !important; | |||
| } | |||
| /* Hide new page summary | |||
| .oo-ui-window-body, .oo-ui-window-foot { display: none !important; } | |||
|  */ | |||
| /* Hide 'what to call you' */ | |||
| #ooui-php-27 { display: none !important; } | |||
| /* Hide Preferences */ | |||
| #pt-preferences { display: none !important; } | |||
| /* Hide Watch List Icon (upper right) */ | |||
| #pt-watchlist-2 { display: none !important; } | |||
| /* Hide 'User Talk / My Talk' */ | |||
| #pt-mytalk { display: none !important; } | |||
| /* Hide Contributions */ | |||
| #pt-mycontris { display: none !important; } | |||
| /* Hide History */ | |||
| #ca-history { display: none !important; } | #ca-history { display: none !important; } | ||
| /* Hide Protect */ | |||
| #ca-protect { display: none !important; } | |||
| /* Hide View Source */ | |||
| #ca-viewsource * {display: none !important; } | #ca-viewsource * {display: none !important; } | ||
| /* Hide Discussions */ | |||
| #ca-talk * {display: none !important; } | |||
| /* Hide Public Account Creation */ | |||
| #pt-createaccount-2 {display: none !important; } | |||
| /* Hide Help Link */ | |||
| #mw-indicator-mw-helplink {display: none !important; } | |||
| /* Hide Recent Changes  */ | |||
| #n-recentchanges {display: none !important; } | |||
| /* Hide Wiki link in sidebar */ | |||
| #n-help-mediawiki {display: none !important; } | |||
| /* Hide 'Tools' in sidebar */ | |||
| #p-tb {display: none !important; } | |||
| /* Hide edit footnotes | |||
| .ve-ui-mwSaveDialog-options, .ve-ui-mwSaveDialog-foot {display: none !important; } | |||
|  */ | |||
| /* Hide copyright warning */ | |||
| #editpage-copywarn {display: none !important; } | |||
| /* Hide footnotes when adding a picture */ | |||
| #ooui-29, .oo-ui-widget.oo-ui-widget-enabled.oo-ui-labelElement.oo-ui-labelElement-label.oo-ui-labelWidget {display: none !important; } | |||
| /* Hide 'Switch to old look' */ | |||
| .vector-main-menu-action.vector-main-menu-action-opt-out {display: none !important; } | |||
| /* Hide 'Watch this page', 'Minor Edit' and 'Summary' */ | |||
| #mw-editpage-watch, #mw-editpage-minoredit, #wpSummaryLabel, #wpSummaryWidget {display: none !important; } | |||
| /* Hide 'Editing Help' */ | |||
| #wpDiffWidget, .editHelp {display: none !important; } | |||
| /* Hide Footer */ | |||
| .mw-footer-container * {display: none !important; } | |||
| /* Button */ | |||
| .button { | |||
|     display: inline-block; | |||
|     padding: 10px 20px; | |||
|     background-color: #007BFF; /* Blue color */ | |||
|     border: none; | |||
|     border-radius: 5px; | |||
|     font-size: 16px; | |||
|     text-align: center; | |||
|     cursor: pointer; | |||
|     transition: background-color 0.3s, transform 0.3s; /* Transition for hover animation */ | |||
| } .button * {  | |||
|     color: #FFFFFF !important; /* White text */ | |||
|     text-decoration: none !important; | |||
|   } | |||
|   .button .external.text { | |||
|     background-image: none !important; | |||
|     padding-right: 0 !important; | |||
|   } | |||
| .button:hover { | |||
|     background-color: #0056b3; /* Darker blue on hover */ | |||
|     transform: scale(1.05); /* Slight zoom on hover */ | |||
| } .button:hover * { | |||
|     text-decoration: none !important; | |||
| } | |||
Latest revision as of 11:52, 18 October 2023
/* CSS placed here will be applied to all skins */
/* Add keywords to show in a search query to find pages */
.keywords {
   display: none !important;
}
/* Hide account creation */
#mw-createaccount-cta, .mw-createacct-benefits-container { display: none !important; }
/* Hide the "Help with logging in" link */
a[href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Logging_in"] {
    display: none !important;
}
/* Hide the "Forgot your password?" link */
a[href="/help/index.php/Special:PasswordReset"] {
    display: none !important;
}
/* Hide new page summary
.oo-ui-window-body, .oo-ui-window-foot { display: none !important; }
 */
/* Hide 'what to call you' */
#ooui-php-27 { display: none !important; }
/* Hide Preferences */
#pt-preferences { display: none !important; }
/* Hide Watch List Icon (upper right) */
#pt-watchlist-2 { display: none !important; }
/* Hide 'User Talk / My Talk' */
#pt-mytalk { display: none !important; }
/* Hide Contributions */
#pt-mycontris { display: none !important; }
/* Hide History */
#ca-history { display: none !important; }
/* Hide Protect */
#ca-protect { display: none !important; }
/* Hide View Source */
#ca-viewsource * {display: none !important; }
/* Hide Discussions */
#ca-talk * {display: none !important; }
/* Hide Public Account Creation */
#pt-createaccount-2 {display: none !important; }
/* Hide Help Link */
#mw-indicator-mw-helplink {display: none !important; }
/* Hide Recent Changes  */
#n-recentchanges {display: none !important; }
/* Hide Wiki link in sidebar */
#n-help-mediawiki {display: none !important; }
/* Hide 'Tools' in sidebar */
#p-tb {display: none !important; }
/* Hide edit footnotes
.ve-ui-mwSaveDialog-options, .ve-ui-mwSaveDialog-foot {display: none !important; }
 */
/* Hide copyright warning */
#editpage-copywarn {display: none !important; }
/* Hide footnotes when adding a picture */
#ooui-29, .oo-ui-widget.oo-ui-widget-enabled.oo-ui-labelElement.oo-ui-labelElement-label.oo-ui-labelWidget {display: none !important; }
/* Hide 'Switch to old look' */
.vector-main-menu-action.vector-main-menu-action-opt-out {display: none !important; }
/* Hide 'Watch this page', 'Minor Edit' and 'Summary' */
#mw-editpage-watch, #mw-editpage-minoredit, #wpSummaryLabel, #wpSummaryWidget {display: none !important; }
/* Hide 'Editing Help' */
#wpDiffWidget, .editHelp {display: none !important; }
/* Hide Footer */
.mw-footer-container * {display: none !important; }
/* Button */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF; /* Blue color */
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* Transition for hover animation */
} .button * { 
    color: #FFFFFF !important; /* White text */
    text-decoration: none !important;
  }
  .button .external.text {
    background-image: none !important;
    padding-right: 0 !important;
  }
.button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05); /* Slight zoom on hover */
} .button:hover * {
    text-decoration: none !important;
}
