MediaWiki:Gadget-WhoIsActive.css

MediaWiki系统消息页面
/**
 * SPDX-License-Identifier: CC-BY-SA-4.0
 * _addText: 'https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/WhoIsActive-pagestyles/branch/master/src/WhoIsActive-pagestyles}}'
 *
 * @base {@link https://www.mediawiki.org/wiki/MediaWiki:Gadget-whoisactive.css}
 * @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/WhoIsActive-pagestyles}
 */
/**
 * userContributions Icon (ltr) from OOjs UI
 *
 * @base {@link https://github.com/wikimedia/oojs-ui/blob/e17952e413cfc00c15cfd861d47463c29062afe7/src/themes/wikimediaui/images/icons/userContributions-ltr.svg}
 * @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/WhoIsActive/images}
 * @license MIT {@link https://github.com/wikimedia/oojs-ui/blob/master/LICENSE-MIT}
 */

/**
 * +--------------------------------------------------------+
 * |         === WARNING: GLOBAL GADGET FILE ===            |
 * +--------------------------------------------------------+
 * |      All changes should be made in the repository,     |
 * |              otherwise they will be lost.              |
 * +--------------------------------------------------------+
 * |      Changes to this page may affect many users.       |
 * |  Please discuss changes at talk page before editing.   |
 * +--------------------------------------------------------+
 */

/* <nowiki> */

/* src/WhoIsActive-pagestyles/WhoIsActive-pagestyles.less */
.gadget-whoisactive__span {
	display: inline-block;
	padding: 0 0.5em !important;
	border: 1px solid #ddd;
	margin: 0 0.25em;
	white-space: nowrap;
	border-radius: 0.25em;
	font-size: 0.9em;
  }
  .mw-footer .gadget-whoisactive__span {
	margin-bottom: 0.25em !important;
  }
  .ve-activated .mw-footer .gadget-whoisactive__span {
	display: none;
  }
  .gadget-whoisactive__ThisWeek {
	border-color: #181;
	color: #181 !important;
  }
  .gadget-whoisactive__ThisMonth {
	border-color: #36c;
	color: #36c !important;
  }
  .gadget-whoisactive__ThisYear {
	border-color: #a60;
	color: #a60 !important;
  }
  .gadget-whoisactive__OverAYear {
	border-color: #b32424;
	color: #b32424 !important;
  }
  .gadget-whoisactive__icon {
	margin: 0;
  }
  .gadget-whoisactive__icon::before {
	display: inline-block;
	width: 15px;
	height: 15px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 15px;
	content: "";
	vertical-align: middle;
  }
  .gadget-whoisactive__icon__ThisWeek::before {
	background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23181%22%3E%3Ccircle%20cx%3D%2215.5%22%20cy%3D%2210.5%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M1%2015h8v2H1Zm0-6h10v2H1Zm0-6h16v2H1Zm14.5%2010.6c-3.3%200-4.5%201.6-4.5%202.7V18h9v-1.7c0-1-1.2-2.7-4.5-2.7z%22%2F%3E%3C%2Fsvg%3E);
  }
  .gadget-whoisactive__icon__ThisMonth::before {
	background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%2336c%22%3E%3Ccircle%20cx%3D%2215.5%22%20cy%3D%2210.5%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M1%2015h8v2H1Zm0-6h10v2H1Zm0-6h16v2H1Zm14.5%2010.6c-3.3%200-4.5%201.6-4.5%202.7V18h9v-1.7c0-1-1.2-2.7-4.5-2.7z%22%2F%3E%3C%2Fsvg%3E);
  }
  .gadget-whoisactive__icon__ThisYear::before {
	background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23a60%22%3E%3Ccircle%20cx%3D%2215.5%22%20cy%3D%2210.5%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M1%2015h8v2H1Zm0-6h10v2H1Zm0-6h16v2H1Zm14.5%2010.6c-3.3%200-4.5%201.6-4.5%202.7V18h9v-1.7c0-1-1.2-2.7-4.5-2.7z%22%2F%3E%3C%2Fsvg%3E);
  }
  .gadget-whoisactive__icon__OverAYear::before {
	background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23b32424%22%3E%3Ccircle%20cx%3D%2215.5%22%20cy%3D%2210.5%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M1%2015h8v2H1Zm0-6h10v2H1Zm0-6h16v2H1Zm14.5%2010.6c-3.3%200-4.5%201.6-4.5%202.7V18h9v-1.7c0-1-1.2-2.7-4.5-2.7z%22%2F%3E%3C%2Fsvg%3E);
  }
  .gadget-whoisactive__text {
	margin-left: 5px;
	vertical-align: middle;
  }
  .gadget-whoisactive__notext {
	font-size: 0;
	margin-left: 0;
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
  }
  
  /* </nowiki> */