Jump to content

MediaWiki:Common.css: Difference between revisions

From Official NixOS Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
:root {
:root {
   --home-panel-border-color: #BBBBBB;
   --home-panel-border-color: #DDDDDD;
}
}



Revision as of 21:27, 4 April 2024

:root {
  --home-panel-border-color: #DDDDDD;
}

@media(prefers-color-scheme:dark){:root{
  /* TODO */
}}

/**
 * Long quotes
 */

blockquote,
blockquote + cite,
blockquote + p cite {
	padding: 1ex 1em;
	font-size: inherit;
	margin: 0;
	margin-bottom: 1em;
	border-left: 1ex solid #eee;
}
blockquote + cite,
blockquote + p cite {
	display: block;
	margin: 0;
	margin-top: -1em;
	font-size: inherit;
	padding-top: 1em;
}
blockquote + cite::before,
blockquote + p cite::before {
	content: "— ";
	display: inline;
}

/* References */
ol.references li:target, sup.reference:target {
	background: transparent;
}
ol.references li:target *, sup.reference:target * {
    background-color: #def;
    background-color: rgba( 0,127,255,0.133 );
}

#catlinks { display:block }

h1 { font-size: 4rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.6rem; }
h4 { font-size: 2.1rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.8rem; font-style: italic; }

/* Fixes issue with headings in mediawiki "system" pages. */
.mw-headline {
  pointer-events: none;
}

/* Paragraph / text styles */
p {
    text-align: initial;
}

/* Infobox */

.infobox {
    margin: auto;
    max-width: 272px;
}

@media (min-width: 768px) {
    .infobox {
	float: right;
	min-width: 272px;
	margin-left: 1rem;
	margin-bottom: 1rem;
        /*font-size: 1.2rem;*/
    }
}

.infobox > table {
    border: 1px solid #ddd;
    border-right-width: 5px;
}

.infobox > table tr:first-child th {
    text-align: center;
    background: #eee;
}

.infobox > table th[colspan="2"] {
    text-align: center;
    background: #eee;
}

.infobox .table > tbody > tr > td,
.infobox .table > tbody > tr > th,
.infobox .table > tfoot > tr > td,
.infobox .table > tfoot > tr > th,
.infobox .table > thead > tr > td,
.infobox .table > thead > tr > th {
    padding: 0.5rem;
}

textarea, input[type=text], input[type=password] {
background-color: #fefefe;
}

/* Ensures code-like stuff doesn't get hyphenated. */
code, pre {
    hyphens: none;
}

.mw-body img {
    max-width: 100%;
    height: auto;
}

.mw-highlight.mw-highlight {
    background-color: transparent;
}
.mw-highlight > pre {
    background: #f8f8f8;
}

#content a.external[href^="https://"], .link-https {
    background-image: none;
    padding-right: 0;
}

/**/

/* After the move, without tweeki */

@media (min-width: 768px) {
  .row.home-panes {
    margin-left: -0.6rem;
    margin-right: -0.6rem;
  }
  .row.home-panes::after {
    clear: both;
    display: block;
    content: "";
  }
  .row.home-panes > * {
    float: left;
    max-width: 50%;
  }
  .row.home-panes {
    clear: both;
  }
  .row.home-panes .col-md-7 {
    max-width: 58%;
  }
  .row.home-panes .col-md-5 {
    max-width: 42%;
  }
  .row.home-panes > * > * {
    margin-left: 0.6rem;
    margin-right: 0.6rem;
  }
}


.home-box {
  border: 1px solid var(--home-panel-border-color);
  margin-bottom: 1.6rem;
}
.home-box .panel-heading {
  margin: 0;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  border-bottom: 1px solid  var(--home-panel-border-color);
}
.home-box .panel-body {
  padding: 0.6rem;
}