MediaWiki:Gadget-AdvancedSiteNotices-pagestyles.css

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/**
 * SPDX-License-Identifier: CC-BY-SA-4.0
 * _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
 *
 * @base {@link https://zh.wikipedia.org/wiki/MediaWiki:Gadget-AdvancedSiteNotices.css}
 * @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/AdvancedSiteNotices-pagestyles}
 * @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0}
 */

/**
 * SPDX-License-Identifier: MIT
 *
 * close Icon from OOjs UI
 *
 * @base {@link https://www.qiuwenbaike.cn/wiki/File:OOjs_UI_icon_close.svg}
 * @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/AdvancedSiteNotices-pagestyles/images}
 * @license MIT {@link https://github.com/wikimedia/oojs-ui/blob/master/LICENSE-MIT}
 */

/**
 * Copyright 2011-2022 OOUI Team and other contributors.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
/**
 * +------------------------------------------------------------+
 * |            === 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 by opening an issue before editing. |
 * +------------------------------------------------------------+
 */
/* <nowiki> */

/* src/AdvancedSiteNotices-pagestyles/AdvancedSiteNotices-pagestyles.less */
.gadget-advanced_site_notices {
  display: flex;
  min-height: 4em;
  align-items: center;
  padding: 0 0.5em;
  border: 1px solid #e6e6e6;
  box-shadow: 0 0.5px 0 rgba(51, 102, 204, 0.25);
  background-color: rgba(255, 255, 255, 0.75);
  color: #191919;
  line-height: 1;
  overflow-y: hidden;
  text-align: center;
}
.client-darkmode .gadget-advanced_site_notices {
  background: #d9d9d9;
}
.gadget-advanced_site_notices__dismiss {
  min-width: 2em;
  order: 3;
  font-size: 150%;
}
.gadget-advanced_site_notices__dismiss a {
  display: block;
  width: 0;
  height: 16px;
  padding-left: 16px;
  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%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22m4.3%202.9%2012.8%2012.8-1.4%201.4L2.9%204.3z%22%2F%3E%3Cpath%20d%3D%22M17.1%204.3%204.3%2017.1l-1.4-1.4L15.7%202.9z%22%2F%3E%3C%2Fsvg%3E);
  background-position: left center;
  background-size: 16px;
  font-size: 0;
}
.gadget-advanced_site_notices__dismiss a:hover {
  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%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22m4.3%202.9%2012.8%2012.8-1.4%201.4L2.9%204.3z%22%2F%3E%3Cpath%20d%3D%22M17.1%204.3%204.3%2017.1l-1.4-1.4L15.7%202.9z%22%2F%3E%3C%2Fsvg%3E);
}
.gadget-advanced_site_notices__notice {
  width: 100%;
  order: 2;
  margin: 0.5em;
}
.gadget-advanced_site_notices__notice__content {
  word-break: break-word;
  will-change: opacity;
}
.gadget-advanced_site_notices__title {
  order: 1;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  background: #36c;
  color: #fff;
  white-space: nowrap;
}
.ve-activated .gadget-advanced_site_notices {
  display: none !important;
}

/* </nowiki> */