无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的4个中间版本) | |||
| 第1行: | 第1行: | ||
@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; | |||
} | |||
2025年6月9日 (一) 15:51的最新版本
@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;
}