123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <script src="popup.js" type="module"></script>
- <style>
- body {
- width: 400px;
- height: 200px;
- padding: 0;
- }
- .p_ant-input {
- box-sizing: border-box;
- margin: 0;
- padding: 4px 11px;
- color: rgba(0, 0, 0, 0.88);
- font-size: 14px;
- line-height: 1.5714285714285714;
- list-style: none;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
- position: relative;
- display: inline-block;
- width: 100%;
- min-width: 0;
- background-color: #ffffff;
- background-image: none;
- border-width: 1px;
- border-style: solid;
- border-color: #d9d9d9;
- border-radius: 6px;
- transition: all 0.2s;
- }
- .p_ant-input:focus {
- border-color: #4096ff;
- box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
- border-inline-end-width: 1px;
- outline: 0;
- }
- .p_ant-btn {
- outline: none;
- position: relative;
- display: inline-block;
- font-weight: 400;
- white-space: nowrap;
- text-align: center;
- background-image: none;
- background-color: transparent;
- border: 1px solid transparent;
- cursor: pointer;
- transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
- user-select: none;
- touch-action: manipulation;
- line-height: 1.5714285714285714;
- color: rgba(0, 0, 0, 0.88);
- }
- .p_ant-btn {
- font-size: 14px;
- height: 32px;
- padding: 4px 15px;
- border-radius: 6px;
- }
- .p_ant-btn-default {
- background-color: #ffffff;
- border-color: #d9d9d9;
- box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
- }
- .p_ant-btn-default:not(:disabled):active {
- color: #0958d9;
- border-color: #0958d9;
- }
- .p_ant-btn-default:not(:disabled):hover {
- color: #4096ff;
- border-color: #4096ff;
- }
- p {
- margin: 8px 0px;
- }
- </style>
- </head>
- <body>
- <div style="padding: 10px;border-bottom: 1px solid #ddd;font-size: 16px;font-weight: 600;">配置</div>
- <div style="padding: 0px 10px 20px 10px;">
- <p style="font-size: 16px;">url</p>
- <input type="text" class="p_ant-input" id="url" placeholder="http://llm.com/api/chat/">
- <p style="font-size: 16px;">apiKey</p>
- <input type="password" class="p_ant-input" id="apiKey">
- </div>
- <div style="text-align: center;">
- <button id="myButton" style="margin:0 auto 16px;" class="p_ant-btn p_ant-btn-default">保存</button>
- </div>
- </body>
- </html>
|