Skip to content

Commit

Permalink
Merge pull request #11 from latedreamdev/main
Browse files Browse the repository at this point in the history
🐞 fix: input style
  • Loading branch information
WJZ-P authored Dec 5, 2024
2 parents 9f54278 + d2fee58 commit 9217e39
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

## 目录

- [Echo Message](#projectname)
- [Change Summary](#change-summary)
- [目录](#目录)
- [上手指南](#上手指南)
- [开发前的配置要求](#开发前的配置要求)
Expand Down Expand Up @@ -112,8 +112,6 @@
[![Stargazers over time](https://starchart.cc/WJZ-P/LiteLoaderQQNT-Change-Summary.svg?variant=adaptive)](https://starchart.cc/WJZ-P/LiteLoaderQQNT-Change-Summary)
<!-- links -->

[your-project-path]:WJZ-P/LiteLoaderQQNT-Change-Summary

[contributors-shield]: https://img.shields.io/github/contributors/WJZ-P/LiteLoaderQQNT-Change-Summary.svg?style=flat-square

[contributors-url]: https://github.com/WJZ-P/LiteLoaderQQNT-Change-Summary/graphs/contributors
Expand Down
44 changes: 31 additions & 13 deletions src/pluginMenu.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<meta charset="UTF-8" xmlns="" xmlns="">
<meta charset="utf-8">
<change-summary-plugin-menu>
<setting-section data-title="主要配置">
<setting-panel>
Expand Down Expand Up @@ -51,7 +51,7 @@
<setting-text data-type="secondary">自定义随机文本API</setting-text>
</div>
<input data-type="primary" class="q-input__inner q-input__inner--clearable custom-input"
type="text" id="cs-input-rmapi" placeholder="请输入url" disabled="true">
type="text" id="cs-input-rmapi" placeholder="请输入url" disabled>
</setting-item>


Expand All @@ -61,7 +61,7 @@
<setting-text data-type="secondary">从自定义随机文本API获取到的json对象中文本的对应键值</setting-text>
</div>
<input data-type="primary" class="q-input__inner q-input__inner--clearable custom-input"
type="text" id="cs-input-rmapi-key" placeholder="请输入键值名" disabled="true">
type="text" id="cs-input-rmapi-key" placeholder="请输入键值名" disabled>
</setting-item>
</setting-list>
</setting-panel>
Expand All @@ -85,30 +85,48 @@
</div>
<setting-button data-type="primary" id="cs-check-update">检查更新</setting-button>
</setting-item>
<setting-item data-direction="row">
<!-- 感觉已经没什么问题了 就先注释掉吧 -->
<!-- <setting-item data-direction="row">
<div>
<setting-text id="cs-version">注意,当前版本修改了UI,旧QQ(如26909版本)可能不适配,有问题可降至v1.1.2版本</setting-text>
<setting-text data-type="secondary">一般在同时启用“背景插件”时UI会部分显示错误</setting-text>
</div>
</setting-item>
</setting-item> -->

</setting-list>
</setting-panel>
</setting-section>

<style>
.custom-input {
color: #757575;
border: #b9b6b6 solid 1px;
/*background-color: #abbbbb; !* 暗色背景 *!*/
}

.q-input__inner {
border-radius: 2px;
/*border: 1px solid #ccc;*/
.custom-input {
background-color: #cccc;
border-radius: 4px;
padding: 4px;
font-size: 14px;
}

.custom-input:hover,
.custom-input:focus {
outline: 1px solid #222; /* 用outline不会造成元素抖动 */
}

@media (prefers-color-scheme: dark) {
.custom-input {
color: #ccc;
background-color: #424242aa;
outline-color: #222;
}
.custom-input:hover,
.custom-input:focus {
outline-color: #ccc;
}
}

.custom-input[disabled] {
color: #757575;
outline: none;
}

</style>
</change-summary-plugin-menu>

0 comments on commit 9217e39

Please sign in to comment.