Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info.json) is not within the allowed path(s): (/www/wwwroot/wiki.guguwo.top/:/tmp/) in /www/wwwroot/wiki.guguwo.top/includes/utils/GitInfo.php on line 177
MediaWiki:Common.css - 咕咕窝wiki

MediaWiki:Common.css

MediaWiki界面页面
卡介菌讨论 | 贡献2025年6月9日 (一) 15:51的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
@import url('https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css');
/* --- ScoreBasedCaptcha CSS --- */

/* 包裹每个问题和答案的 div 的样式 */
.mw-scorebasedcaptcha-question {
    margin-bottom: 15px; /* 问题之间的间距 */
    padding: 10px;
    border: 1px solid #ccc; /* 给每个问题块一个边框 */
    border-radius: 4px;
    background-color: #f9f9f9; /* 轻微的背景色 */
}

/* 问题文本 (label) 的样式 */
.mw-scorebasedcaptcha-question label {
    display: block; /* 让标签占据一行 */
    margin-bottom: 8px; /* 标签和输入框之间的间距 */
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

/* 答案输入框的样式 */
.mw-scorebasedcaptcha-question input[type="text"] {
    width: 95%; /* 输入框宽度,根据您的布局调整 */
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 1em;
    box-sizing: border-box; /* 让 padding 和 border 不会增加总宽度 */
}

/* 输入框获得焦点时的样式 (可选) */
.mw-scorebasedcaptcha-question input[type="text"]:focus {
    border-color: #007bff; /* 例如,蓝色边框 */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* 类似 Bootstrap 的焦点效果 */
}

/* 您可以添加一个总的容器样式,但验证码通常嵌入在更大的表单中,
   所以直接样式化 .confirmemail- kilomètres 或特定于您皮肤的表单类可能更好。
   例如,如果您的验证码在id为 'userloginForm' 的表单内:
#userloginForm .mw-scorebasedcaptcha-question {
    ... 您的样式 ...
}
   或者,如果是在创建账户页面 (oo-ui-layout class通常存在):
.mw-htmlform-field-captcha .mw-scorebasedcaptcha-question {
    margin-left: 0; // 覆盖一些默认缩进
}
*/

/* 针对验证码区域本身的整体说明文字(如果 ConfirmEdit 或您的皮肤有的话)*/
.mw-confirmcaptchatext { /* 这个类名可能需要根据您的 ConfirmEdit 版本和皮肤调整 */
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}