MediaWiki:Common.css: различия между версиями

Материал из Catware Wiki
Перейти к навигации Перейти к поиску
imported>Catweird
Нет описания правки
imported>Catweird
Нет описания правки
Строка 1: Строка 1:
.oo-ui-inputWidget-input, oo-ui-buttonElement-button {
/* Gentoo Wiki custom css.
   border-radius: 15px;
  Talk to a3li before changing anything here, please. */
 
a:visited,
.mw-body a.external:visited {
  color: #7E307E;
}
 
.cmd-box a, .cmd-box a.external, .cmd-box a.external:visited {
color: white !important;
}
 
a.list-group-item:visited {
  color: #555;
}
 
/* TODO: Find template that needed this to be white. USEFlag?
.mw-collapsible-toggle a:link {
  color: white;
}*/
 
.testcasehack p {
  line-height: 0;
  padding: 0;
  margin: 0;
}
 
.testcasehack p code {
   border: none;
  background: none;
  line-height: 0;
}
 
/* field trial! */
.mw-body h2 {
  border-bottom: 1px solid #e1e1e1;
}
 
/* Code highlighting */
.mw-code {
  border: none;
  padding: 1px;
  background: none;
  font-size: 1.2em;
}
 
/* HACK!
pre pre {
  font-size: .8em;
  padding: 0;
}*/
 
/* Message Boxes (new) */
.gw-msgbox, .gw-contentbox {
  padding: 3px;
  margin-top: .5em;
  margin-bottom: .5em;
}
 
.gw-msgbox .gw-msgbox-title {
  margin-top: -3px;
  margin-left: -3px;
  display: table-row;
  float: left;
  padding: 3px;
  margin-right: 3px;
  font-weight: bold;
}
 
.gw-msgbox .gw-msgbox-content {
  display: table-row;
}
 
/* Content Boxes (new) */
.gw-contentbox {
  padding-top: 0;
}
 
.gw-contentbox .gw-contentbox-title {
/**  margin-top: -.3em; old **/
  margin-top: 0;
  margin-left: -3px;
  display: table-row;
  padding: 3px;
  padding-top: 1px; /** new **/
  padding-left: 0;
  float: left;
}
 
.gw-contentbox .gw-contentbox-title1 {
  padding: 3px;
  font-weight: bold;
}
 
.gw-contentbox .gw-contentbox-subtitle {
  padding: 3px;
  font-weight: bold;
}
 
.gw-contentbox .gw-contentbox-description {
  padding: 3px;
  font-weight: bold;
}
 
.gw-contentbox .gw-contentbox-rightmsg {
  float: right;
  margin-top: -3px;
  margin-right: -3px;
  padding: 3px;
}
 
.gw-contentbox .gw-contentbox-content {
  clear: both;
  padding-top: 3px;
}
}


.thumbimage {
.gw-contentbox-content pre, .gw-cmdbox pre {
border-radius: 10px;
  border: none;
  background: none;
  margin: 0;
}
}
.thumbinner {
 
background-color: #dedede;
/* Notice/Warning/File/Kernel Boxes (old)
border-radius: 15px;
  Hybrid boxes are usable for one-line as well as multi-line content.
color: #000;
  To achieve that, the title box has position: absolute so that all text flows around it.
  You have to manually add padding for the first line. Got a better solution? Let a3li know.
*/
.OLDgw-box, .gw-hybrid-box {
  margin-top: .5em;
  margin-bottom: .5em;
  background-color: #f3f3f3;
}
}


.p {
.gw-hybrid-box {
font-family: 'Roboto', sans-serif;
  padding: .3em;
}
}


.toc {
.OLDgw-box pre, .gw-hybrid-box pre {
background-color: #dedede;
  border: none;
border-radius: 15px;
  background: none;
color: #000;
  margin: 0;
  padding: 0;
}
}


.mw-code, mw-css, pre {
.gw-box-show-pre pre {
background-color: #dedede;
  border: 1px solid silver !important;
border-radius: 15px;
  background-color: white !important;
color: #000;
font-family: 'Iosevka Web'
}
}


@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
.OLDgw-box .gw-box-title {
  padding: .3em;
  font-weight: bold;
  color: white;
}


@font-face {
.gw-hybrid-box .gw-box-title {
font-family: 'Iosevka Web';
  padding: .3em;
font-display: swap;
  font-weight: bold;
font-weight: 400;
  color: white;
font-stretch: normal;
  display: inline-block;
font-style: normal;
  float: left;
src: url('https://pvinis.github.io/iosevka-webfont/3.4.1/woff2/iosevka-regular.woff2') format('woff2'), url('woff/iosevka-regular.woff') format('woff'), url('ttf/iosevka-regular.ttf') format('truetype');
  margin: -.3em .3em 0 -.3em;
  position: absolute;
}
}
.OLDgw-box .gw-box-content {
}
.client-js .noscript { display: none; }

Версия от 22:13, 29 апреля 2021

/* Gentoo Wiki custom css.
   Talk to a3li before changing anything here, please. */

a:visited,
.mw-body a.external:visited {
  color: #7E307E;
}

.cmd-box a, .cmd-box a.external, .cmd-box a.external:visited {
	color: white !important;
}

a.list-group-item:visited {
  color: #555;
}

/* TODO: Find template that needed this to be white. USEFlag?
.mw-collapsible-toggle a:link {
  color: white;
}*/

.testcasehack p {
  line-height: 0;
  padding: 0;
  margin: 0;
}

.testcasehack p code {
  border: none;
  background: none;
  line-height: 0;
}

/* field trial! */
.mw-body h2 {
  border-bottom: 1px solid #e1e1e1;
}

/* Code highlighting */
.mw-code {
  border: none;
  padding: 1px;
  background: none;
  font-size: 1.2em;
}

/* HACK!
pre pre {
  font-size: .8em;
  padding: 0;
}*/

/* Message Boxes (new) */
.gw-msgbox, .gw-contentbox {
  padding: 3px;
  margin-top: .5em;
  margin-bottom: .5em;
}

.gw-msgbox .gw-msgbox-title {
  margin-top: -3px;
  margin-left: -3px;
  display: table-row;
  float: left;
  padding: 3px;
  margin-right: 3px;
  font-weight: bold;
}

.gw-msgbox .gw-msgbox-content {
  display: table-row;
}

/* Content Boxes (new) */
.gw-contentbox {
  padding-top: 0;
}

.gw-contentbox .gw-contentbox-title {
/**  margin-top: -.3em; old **/
  margin-top: 0;
  margin-left: -3px;
  display: table-row;
  padding: 3px;
  padding-top: 1px; /** new **/
  padding-left: 0;
  float: left;
}

.gw-contentbox .gw-contentbox-title1 {
  padding: 3px;
  font-weight: bold;
}

.gw-contentbox .gw-contentbox-subtitle {
  padding: 3px;
  font-weight: bold;
}

.gw-contentbox .gw-contentbox-description {
  padding: 3px;
  font-weight: bold;
}

.gw-contentbox .gw-contentbox-rightmsg {
  float: right;
  margin-top: -3px;
  margin-right: -3px;
  padding: 3px;
}

.gw-contentbox .gw-contentbox-content {
  clear: both;
  padding-top: 3px;
}

.gw-contentbox-content pre, .gw-cmdbox pre {
  border: none;
  background: none;
  margin: 0;
}

/* Notice/Warning/File/Kernel Boxes (old)
   Hybrid boxes are usable for one-line as well as multi-line content.
   To achieve that, the title box has position: absolute so that all text flows around it.
   You have to manually add padding for the first line. Got a better solution? Let a3li know.
 */
.OLDgw-box, .gw-hybrid-box {
  margin-top: .5em;
  margin-bottom: .5em;
  background-color: #f3f3f3;
}

.gw-hybrid-box {
  padding: .3em;
}

.OLDgw-box pre, .gw-hybrid-box pre {
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}

.gw-box-show-pre pre {
  border: 1px solid silver !important;
  background-color: white !important;
}

.OLDgw-box .gw-box-title {
  padding: .3em;
  font-weight: bold;
  color: white;
}

.gw-hybrid-box .gw-box-title {
  padding: .3em;
  font-weight: bold;
  color: white;
  display: inline-block;
  float: left;
  margin: -.3em .3em 0 -.3em;
  position: absolute;
}

.OLDgw-box .gw-box-content {
}

.client-js .noscript { display: none; }