MediaWiki:Common.css:修订间差异

来自夜幕之下
跳到导航跳到搜索
Rin留言 | 贡献
无编辑摘要
Rin留言 | 贡献
无编辑摘要
第103行: 第103行:
/* 页面卡面背景系统 */
/* 页面卡面背景系统 */


body.has-page-card::before {
/* 全屏卡面样式 */
  content: "";
.card-fullscreen-img {
  position: fixed;
    width: 100%;       /* 宽度占满屏幕 */
  inset: 0;
    height: auto;     /* 高度自适应 */
  z-index: -100;
    text-align: center;
  background-image: var(--page-card-bg);
    margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
}


/* 渐变暗化 */
.card-fullscreen-img img {
body.has-page-card::after {
    width: 100%;       /* 图片自适应宽度 */
  content: "";
    height: auto;
  position: fixed;
     display: block;
  inset: 0;
  z-index: -99;
  background:
     radial-gradient(
      ellipse at 50% 35%,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,0.65) 100%
    );
  pointer-events: none;
}
}

2026年3月2日 (一) 22:52的版本

/* 这里放置的CSS将应用于所有皮肤 */

/* 全局 */
:root {
  color-scheme: dark;

  /* 色相:暖粉 */
  --color-progressive-oklch__h: 15 !important;

  /* 正文字亮度 */
  --color-base-oklch__l: 92% !important;
  --color-base-oklch__c: 0.03 !important;

  /* 次级文字 */
  --color-subtle-oklch__l: 75% !important;
  --color-subtle-oklch__c: 0.025 !important;

  /* 强调文字 */
  --color-emphasized-oklch__l: 98% !important;
  --color-emphasized-oklch__c: 0.04 !important;
}

/* 背景相关 */
html {
  background-image: url("/images/b/b5/Banner.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment:fixed;
}

body {
	background: radial-gradient(
    circle at 50% 30%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.4) 100%
  );
  
}

/* 遮罩 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* 用遮罩控制模糊范围 */
  mask-image: radial-gradient(
    circle at 50% 30%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.6) 75%,
    rgba(0,0,0,1) 100%
  );

  -webkit-mask-image: radial-gradient(
    circle at 50% 30%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.6) 75%,
    rgba(0,0,0,1) 100%
  );
}

/* 修复编辑背景 */
.editor.ace_editor.ace-tm {
    background: black;
    
     /* 恢复原来的冷色调 */
  --color-progressive-oklch__h: 262.29;
  
  --color-base-oklch__l: 20%;
  --color-base-oklch__c: 0.09;

  --color-subtle-oklch__l: 35%;
  --color-subtle-oklch__c: 0.11;

  --color-emphasized-oklch__l: 5%;
  --color-emphasized-oklch__c: 0.07;

}



/* 侧边栏 */
.citizen-header {
	background-color:rgba(255,255,255,0.2);
	backdrop-filter:blur(10px);
}


/* footer  */
.citizen-footer {
	background-color:unset;
}



/* --------------------------------------------------卡面相关--------------------------------------------------- */
/* 页面卡面背景系统 */

/* 全屏卡面样式 */
.card-fullscreen-img {
    width: 100%;       /* 宽度占满屏幕 */
    height: auto;      /* 高度自适应 */
    text-align: center;
    margin: 0 auto;
}

.card-fullscreen-img img {
    width: 100%;       /* 图片自适应宽度 */
    height: auto;
    display: block;
}