MediaWiki:Mobile.css

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Note: You may have to bypass your browser’s cache to see the changes. In addition, after saving a sitewide CSS file such as MediaWiki:Common.css, it will take 5-10 minutes before the changes take effect, even if you clear your cache.

  • Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh);
  • Konqueror and Chrome: click Reload or press F5;
  • Opera: clear the cache in Tools → Preferences;
  • Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.

.NavContent table {
    margin-bottom: 0;
}

.tunk, .tneg, .tpos {
    vertical-align: 20%;
    font-size: 80%;
}

.NavToggle {
    cursor: pointer;
    float: right;
    font-weight: normal;
    font-size: smaller;
}

.NavHead {
    cursor: pointer;
    min-height: 1.6em;
    font-weight: bold;
    line-height: 19px;
    padding: 2px;
}

.NavFrame {
    margin: 0 0 -1px 0;
    border: 1px solid #aaaaaa;
    padding: 1px;
}

.NavContent tbody {
    display: block;
}

#content ol dd {
    margin-left: 1em;
}

.use-with-mention, .ib-content {
    font-style: italic 
}

.senseid:target {
    background-color: #DEF
}

/* workaround for [[phab:T316670]] to prevent headings appearing with
   one character per line beside right-floated content */
h1, h2:not([data-mw-thread-id]), h3, h4, h5, h6 {
	min-width: fit-content;
}

/* hide redundant second interProject links */
.interProject {
	display: none;
	clear: both;
	border-top: 2px dotted #AAAAAA;
	margin-top: 2em;
}

.derivedterms,
.term-list {
	-moz-column-count: 1 !important;
	-ms-column-count: 1 !important;
	-webkit-column-count: 1 !important;
	column-count: 1 !important;
}

/* allow inline hieroglyphs */
.mw-hiero-outer {
	display: inline-table;
	vertical-align: middle;
	font-size: 11px;
}

/* WikiHiero kludge */
.wikt-hierokludge {
	display: inline-block;
}

/* Support lists that automatically split into limited-width columns (for translations tables and the like): */
.multicolumn-list > ul {
    -webkit-column-width: 25em;
    -moz-column-width: 25em;
    -ms-column-width: 25em;
    column-width: 25em;
    column-gap: 20px;
}
.multicolumn-list-wide > ul {
    -webkit-column-width: 55em;
    -moz-column-width: 55em;
    -ms-column-width: 55em;
    column-width: 55em;
    column-gap: 20px;
}
.multicolumn-list-narrow > ul {
    -webkit-column-width: 22em;
    -moz-column-width: 22em;
    -ms-column-width: 22em;
    column-width: 22em;
    column-gap: 20px;
}

/* Horizontal rules */
body.ns-0 #mw-content-text .mw-parser-output > :not(.collapsible-block) + h2:not(:first-of-type),
body.ns-0 #mw-content-text .mw-parser-output > .open-block + h2:not(:first-of-type) {
	border-top: 1px solid #a2a9b1;
	padding-top: calc(8px + 0.5em);
	margin-top: 8px;
}

/* Don't float sister project boxes and the like. Note, table.floatright is already dealt with by 
   built-in MediaWiki mobile site style overrides */
.content .floatright {
    float: none;
    margin-left: 0;
    margin-right: 0;
}

/* stuff visible when previewing an edit only */

.previewonly { display: none; }

#wikiPreview .previewonly { display: inline; }

/* To colour links in inflection tables (currently done with
	{{notred}}) black without using #ifexist and allowing for user
	override */
.inflection-table a.new { color: inherit; }